File indexing completed on 2024-06-23 04:27:05
0001 /* This file is part of the KDE project 0002 * SPDX-FileCopyrightText: 2007 Jan Hambrecht <jaham@gmx.net> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef STARSHAPECONFIGWIDGET_H 0008 #define STARSHAPECONFIGWIDGET_H 0009 0010 #include <ui_StarShapeConfigWidget.h> 0011 0012 #include <KoShapeConfigWidgetBase.h> 0013 0014 class StarShape; 0015 0016 class StarShapeConfigWidget : public KoShapeConfigWidgetBase 0017 { 0018 Q_OBJECT 0019 public: 0020 StarShapeConfigWidget(); 0021 /// reimplemented 0022 void open(KoShape *shape) override; 0023 /// reimplemented 0024 void save() override; 0025 /// reimplemented 0026 void setUnit(const KoUnit &unit) override; 0027 /// reimplemented 0028 bool showOnShapeCreate() override 0029 { 0030 return false; 0031 } 0032 /// reimplemented 0033 KUndo2Command *createCommand() override; 0034 0035 private Q_SLOTS: 0036 void typeChanged(); 0037 private: 0038 Ui::StarShapeConfigWidget widget; 0039 StarShape *m_star {nullptr}; 0040 }; 0041 0042 #endif // STARSHAPECONFIGWIDGET_H