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 STARSHAPECONFIGWIDGET_H
#define STARSHAPECONFIGWIDGET_H
#include <ui_StarShapeConfigWidget.h>
#include <KoShapeConfigWidgetBase.h>
class StarShape;
class StarShapeConfigWidget : public KoShapeConfigWidgetBase
{
Q_OBJECT
public:
StarShapeConfigWidget();
/// reimplemented
void open(KoShape *shape) override;
/// reimplemented
void save() override;
/// reimplemented
void setUnit(const KoUnit &unit) override;
/// reimplemented
bool showOnShapeCreate() override
{
return false;
}
/// reimplemented
KUndo2Command *createCommand() override;
private Q_SLOTS:
void typeChanged();
private:
Ui::StarShapeConfigWidget widget;
StarShape *m_star {nullptr};
};
#endif // STARSHAPECONFIGWIDGET_H