Warning, file /graphics/krita/plugins/flake/pathshapes/ellipse/EllipseShapeConfigWidget.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
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 ELLIPSESHAPECONFIGWIDGET_H 0008 #define ELLIPSESHAPECONFIGWIDGET_H 0009 0010 #include "EllipseShape.h" 0011 #include <ui_EllipseShapeConfigWidget.h> 0012 0013 #include <KoShapeConfigWidgetBase.h> 0014 #include <KoShape.h> 0015 0016 class EllipseShapeConfigWidget : public KoShapeConfigWidgetBase, public KoShape::ShapeChangeListener 0017 { 0018 Q_OBJECT 0019 public: 0020 EllipseShapeConfigWidget(); 0021 /// reimplemented 0022 void open(KoShape *shape) override; 0023 /// reimplemented 0024 void save() override; 0025 /// reimplemented 0026 bool showOnShapeCreate() override 0027 { 0028 return false; 0029 } 0030 /// reimplemented 0031 KUndo2Command *createCommand() override; 0032 0033 void notifyShapeChanged(KoShape::ChangeType type, KoShape *shape) override; 0034 0035 private Q_SLOTS: 0036 void closeEllipse(); 0037 0038 private: 0039 void loadPropertiesFromShape(EllipseShape *shape); 0040 0041 private: 0042 Ui::EllipseShapeConfigWidget widget; 0043 EllipseShape *m_ellipse; 0044 }; 0045 0046 #endif // ELLIPSESHAPECONFIGWIDGET_H