Krita Source Code Documentation
Loading...
Searching...
No Matches
StarShapeConfigWidget.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 STARSHAPECONFIGWIDGET_H
8#define STARSHAPECONFIGWIDGET_H
9
10#include <ui_StarShapeConfigWidget.h>
11
13
14class StarShape;
15
17{
18 Q_OBJECT
19public:
22 void open(KoShape *shape) override;
24 void save() override;
26 void setUnit(const KoUnit &unit) override;
28 bool showOnShapeCreate() override
29 {
30 return false;
31 }
33 KUndo2Command *createCommand() override;
34
35private Q_SLOTS:
36 void typeChanged();
37private:
38 Ui::StarShapeConfigWidget widget;
39 StarShape *m_star {nullptr};
40};
41
42#endif // STARSHAPECONFIGWIDGET_H
void save() override
reimplemented
KUndo2Command * createCommand() override
reimplemented
void open(KoShape *shape) override
reimplemented
bool showOnShapeCreate() override
reimplemented
Ui::StarShapeConfigWidget widget
void setUnit(const KoUnit &unit) override
reimplemented