Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeConfigWidgetBase.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2006-2007 Thomas Zander <zander@kde.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef KOSHAPECONFIGWIDGETBASE_H
8#define KOSHAPECONFIGWIDGETBASE_H
9
10#include <QWidget>
11
12#include "kritaflake_export.h"
13
14class KoShape;
15class KUndo2Command;
16class KoUnit;
18
32class KRITAFLAKE_EXPORT KoShapeConfigWidgetBase : public QWidget
33{
34 Q_OBJECT
35public:
40 ~KoShapeConfigWidgetBase() override;
41
47 virtual void open(KoShape *shape) = 0;
53 virtual void save() = 0;
54
61 virtual void setUnit(const KoUnit &unit);
62
64 void setResourceManager(KoCanvasResourceProvider *rm);
65
67 virtual bool showOnShapeCreate();
68
70 virtual bool showOnShapeSelect();
71
73 virtual KUndo2Command * createCommand();
74
75Q_SIGNALS:
78
80 void accept();
81
82protected:
84};
85
86#endif
virtual void open(KoShape *shape)=0
void propertyChanged()
is emitted after one of the config options has changed
KoCanvasResourceProvider * m_resourceManager
the resource provider with data for this canvas
virtual void save()=0
void accept()
is emitted when the dialog should be accepted ie a file double clicked in a filebrowser