Krita Source Code Documentation
Loading...
Searching...
No Matches
SpiralShapeConfigCommand.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2007 Rob Buis <buis@kde.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef SPIRALSHAPECONFIGCOMMAND_H
8#define SPIRALSHAPECONFIGCOMMAND_H
9
10#include "SpiralShape.h"
11#include <kundo2command.h>
12
15{
16public:
24 SpiralShapeConfigCommand(SpiralShape *spiral, SpiralShape::SpiralType type, bool clockWise, qreal fade, KUndo2Command *parent = 0);
26 void redo() override;
28 void undo() override;
29private:
33 qreal m_oldFade;
36 qreal m_newFade;
37};
38
39#endif // SPIRALSHAPECONFIGCOMMAND_H
40
The undo / redo command for configuring a spiral shape.
SpiralShape::SpiralType m_oldType
SpiralShapeConfigCommand(SpiralShape *spiral, SpiralShape::SpiralType type, bool clockWise, qreal fade, KUndo2Command *parent=0)
void undo() override
revert the actions done in redo
SpiralShape::SpiralType m_newType
void redo() override
redo the command
SpiralType
the possible spiral types
Definition SpiralShape.h:22