|
Krita Source Code Documentation
|
The undo / redo command for configuring a spiral shape. More...
#include <SpiralShapeConfigCommand.h>
Inheritance diagram for SpiralShapeConfigCommand:Public Member Functions | |
| void | redo () override |
| redo the command | |
| SpiralShapeConfigCommand (SpiralShape *spiral, SpiralShape::SpiralType type, bool clockWise, qreal fade, KUndo2Command *parent=0) | |
| void | undo () override |
| revert the actions done in redo | |
Public Member Functions inherited from KUndo2Command | |
| QString | actionText () const |
| virtual bool | canAnnihilateWith (const KUndo2Command *other) const |
| const KUndo2Command * | child (int index) const |
| int | childCount () const |
| virtual QTime | endTime () const |
| KUndo2CommandExtraData * | extraData () const |
| bool | hasParent () const |
| virtual int | id () const |
| virtual bool | isMerged () const |
| KUndo2Command (const KUndo2MagicString &text, KUndo2Command *parent=0) | |
| KUndo2Command (KUndo2Command *parent=0) | |
| virtual QVector< KUndo2Command * > | mergeCommandsVector () const |
| virtual bool | mergeWith (const KUndo2Command *other) |
| virtual void | redoMergedCommands () |
| void | setEndTime () |
| virtual void | setEndTime (const QTime &time) |
| void | setExtraData (KUndo2CommandExtraData *data) |
| void | setText (const KUndo2MagicString &text) |
| void | setTime () |
| virtual void | setTime (const QTime &time) |
| virtual void | setTimedID (int timedID) |
| KUndo2MagicString | text () const |
| virtual QTime | time () const |
| virtual int | timedId () const |
| virtual bool | timedMergeWith (KUndo2Command *other) |
| virtual void | undoMergedCommands () |
| virtual | ~KUndo2Command () |
Private Attributes | |
| bool | m_newClockWise |
| qreal | m_newFade |
| SpiralShape::SpiralType | m_newType |
| bool | m_oldClockWise |
| qreal | m_oldFade |
| SpiralShape::SpiralType | m_oldType |
| SpiralShape * | m_spiral |
The undo / redo command for configuring a spiral shape.
Definition at line 14 of file SpiralShapeConfigCommand.h.
| SpiralShapeConfigCommand::SpiralShapeConfigCommand | ( | SpiralShape * | spiral, |
| SpiralShape::SpiralType | type, | ||
| bool | clockWise, | ||
| qreal | fade, | ||
| KUndo2Command * | parent = 0 ) |
Configures an spiral shape
| spiral | the spiral shape to configure |
| type | the spiral type |
| fade | the fade parameter |
| parent | the optional parent command |
Definition at line 10 of file SpiralShapeConfigCommand.cpp.
References SpiralShape::clockWise(), SpiralShape::fade(), kundo2_i18n(), m_oldClockWise, m_oldFade, m_oldType, m_spiral, KUndo2Command::setText(), and SpiralShape::type().
|
overridevirtual |
redo the command
Reimplemented from KUndo2Command.
Definition at line 26 of file SpiralShapeConfigCommand.cpp.
References m_newClockWise, m_newFade, m_newType, m_oldClockWise, m_oldFade, m_oldType, m_spiral, KUndo2Command::redo(), SpiralShape::setClockWise(), SpiralShape::setFade(), SpiralShape::setType(), and KoShapeContainer::update().
|
overridevirtual |
revert the actions done in redo
Reimplemented from KUndo2Command.
Definition at line 45 of file SpiralShapeConfigCommand.cpp.
References m_newClockWise, m_newFade, m_newType, m_oldClockWise, m_oldFade, m_oldType, m_spiral, SpiralShape::setClockWise(), SpiralShape::setFade(), SpiralShape::setType(), KUndo2Command::undo(), and KoShapeContainer::update().
|
private |
Definition at line 35 of file SpiralShapeConfigCommand.h.
|
private |
Definition at line 36 of file SpiralShapeConfigCommand.h.
|
private |
Definition at line 34 of file SpiralShapeConfigCommand.h.
|
private |
Definition at line 32 of file SpiralShapeConfigCommand.h.
|
private |
Definition at line 33 of file SpiralShapeConfigCommand.h.
|
private |
Definition at line 31 of file SpiralShapeConfigCommand.h.
|
private |
Definition at line 30 of file SpiralShapeConfigCommand.h.