Krita Source Code Documentation
Loading...
Searching...
No Matches
SpiralShapeConfigCommand.cpp
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
8#include <klocalizedstring.h>
9
11 : KUndo2Command(parent)
12 , m_spiral(spiral)
13 , m_newType(type)
14 , m_newClockWise(clockWise)
15 , m_newFade(fade)
16{
17 Q_ASSERT(m_spiral);
18
19 setText(kundo2_i18n("Change spiral"));
20
24}
25
44
virtual void undo()
void setText(const KUndo2MagicString &text)
virtual void redo()
void update() const override
reimplemented
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
void setType(SpiralType type)
bool clockWise() const
void setClockWise(bool clockwise)
qreal fade() const
Returns the actual fade parameter.
SpiralType type() const
Returns the actual spiral type.
void setFade(qreal fade)
KUndo2MagicString kundo2_i18n(const char *text)