Krita Source Code Documentation
Loading...
Searching...
No Matches
RectangleShapeConfigWidget.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2007 Jan Hambrecht <jaham@gmx.net>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef RECTANGLESHAPECONFIGWIDGET_H
8#define RECTANGLESHAPECONFIGWIDGET_H
9
10#include <ui_RectangleShapeConfigWidget.h>
11
13#include <KoShape.h>
14
15class RectangleShape;
16
18{
19 Q_OBJECT
20public:
23 void open(KoShape *shape) override;
25 void save() override;
27 void setUnit(const KoUnit &unit) override;
29 bool showOnShapeCreate() override
30 {
31 return false;
32 }
34 KUndo2Command *createCommand() override;
35
36 void notifyShapeChanged(KoShape::ChangeType type, KoShape *shape) override;
37
38private:
40
41private:
42 Ui::RectangleShapeConfigWidget widget;
44};
45
46#endif // RECTANGLESHAPECONFIGWIDGET_H
ChangeType
Used by shapeChanged() to select which change was made.
Definition KoShape.h:95
void notifyShapeChanged(KoShape::ChangeType type, KoShape *shape) override
void setUnit(const KoUnit &unit) override
reimplemented
void loadPropertiesFromShape(RectangleShape *shape)
KUndo2Command * createCommand() override
reimplemented
void save() override
reimplemented
bool showOnShapeCreate() override
reimplemented
Ui::RectangleShapeConfigWidget widget
void open(KoShape *shape) override
reimplemented