Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
/* This file is part of the KDE project
* SPDX-FileCopyrightText: 2007 Jan Hambrecht <[email protected]>
*
* SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef ELLIPSESHAPECONFIGWIDGET_H
#define ELLIPSESHAPECONFIGWIDGET_H
#include "EllipseShape.h"
#include <ui_EllipseShapeConfigWidget.h>
#include <KoShapeConfigWidgetBase.h>
#include <KoShape.h>
class EllipseShapeConfigWidget : public KoShapeConfigWidgetBase, public KoShape::ShapeChangeListener
{
Q_OBJECT
public:
EllipseShapeConfigWidget();
/// reimplemented
void open(KoShape *shape) override;
/// reimplemented
void save() override;
/// reimplemented
bool showOnShapeCreate() override
{
return false;
}
/// reimplemented
KUndo2Command *createCommand() override;
void notifyShapeChanged(KoShape::ChangeType type, KoShape *shape) override;
private Q_SLOTS:
void closeEllipse();
private:
void loadPropertiesFromShape(EllipseShape *shape);
private:
Ui::EllipseShapeConfigWidget widget;
EllipseShape *m_ellipse;
};
#endif // ELLIPSESHAPECONFIGWIDGET_H