Krita Source Code Documentation
Loading...
Searching...
No Matches
EllipseShapeConfigCommand.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2007 Jan Hambrecht <jaham@gmx.net>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef ELLIPSESHAPECONFIGCOMMAND_H
8#define ELLIPSESHAPECONFIGCOMMAND_H
9
10#include "EllipseShape.h"
11#include <kundo2command.h>
12
15{
16public:
25 EllipseShapeConfigCommand(EllipseShape *ellipse, EllipseShape::EllipseType type, qreal startAngle, qreal startEndAngle, KUndo2Command *parent = 0);
27 void redo() override;
29 void undo() override;
30
31 int id() const override;
32 bool mergeWith(const KUndo2Command *command) override;
33
34private:
42};
43
44#endif // ELLIPSESHAPECONFIGCOMMAND_H
45
The undo / redo command for configuring an ellipse shape.
EllipseShape::EllipseType m_newType
void undo() override
revert the actions done in redo
void redo() override
redo the command
EllipseShape::EllipseType m_oldType
EllipseShapeConfigCommand(EllipseShape *ellipse, EllipseShape::EllipseType type, qreal startAngle, qreal startEndAngle, KUndo2Command *parent=0)
bool mergeWith(const KUndo2Command *command) override
EllipseType
the possible ellipse types