File indexing completed on 2024-06-23 04:27:04

0001 /* This file is part of the KDE project
0002  * SPDX-FileCopyrightText: 2007 Rob Buis <buis@kde.org>
0003  *
0004  * SPDX-License-Identifier: LGPL-2.0-or-later
0005  */
0006 
0007 #ifndef SPIRALSHAPECONFIGWIDGET_H
0008 #define SPIRALSHAPECONFIGWIDGET_H
0009 
0010 #include "SpiralShape.h"
0011 #include <ui_SpiralShapeConfigWidget.h>
0012 
0013 #include <KoShapeConfigWidgetBase.h>
0014 
0015 class SpiralShapeConfigWidget : public KoShapeConfigWidgetBase
0016 {
0017     Q_OBJECT
0018 public:
0019     SpiralShapeConfigWidget();
0020     /// reimplemented
0021     void open(KoShape *shape) override;
0022     /// reimplemented
0023     void save() override;
0024     /// reimplemented
0025     bool showOnShapeCreate() override
0026     {
0027         return false;
0028     }
0029     /// reimplemented
0030     KUndo2Command *createCommand() override;
0031 private:
0032     Ui::SpiralShapeConfigWidget widget;
0033     SpiralShape *m_spiral {nullptr};
0034 };
0035 
0036 #endif // SPIRALSHAPECONFIGWIDGET_H