|
Krita Source Code Documentation
|
The undo / redo command for reversing path directions. More...
#include <KoPathReverseCommand.h>
Inheritance diagram for KoPathReverseCommand:Public Member Functions | |
| KoPathReverseCommand (const QList< KoPathShape * > &paths, KUndo2Command *parent=0) | |
| Private (const QList< KoPathShape * > &p) | |
| void | redo () override |
| redo the command | |
| void | reverse () |
| void | undo () override |
| revert the actions done in redo | |
| ~KoPathReverseCommand () override | |
| ~Private () | |
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 () |
Public Attributes | |
| QList< KoPathShape * > | paths |
Private Attributes | |
| Private *const | d |
Private Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Additional Inherited Members | |
Private Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
The undo / redo command for reversing path directions.
Definition at line 11 of file KoPathReverseCommand.cpp.
|
inline |
Definition at line 17 of file KoPathReverseCommand.cpp.
|
explicit |
Command for reversing directions of a list of paths
| paths | the list of paths to reverse |
| parent | the parent command used for macro commands |
Definition at line 34 of file KoPathReverseCommand.cpp.
References kundo2_i18n(), and KUndo2Command::setText().
|
override |
|
inline |
Definition at line 14 of file KoPathReverseCommand.cpp.
|
overridevirtual |
redo the command
Reimplemented from KUndo2Command.
Definition at line 46 of file KoPathReverseCommand.cpp.
References d, and KUndo2Command::redo().
|
inline |
Definition at line 20 of file KoPathReverseCommand.cpp.
References KoPathShape::reverseSubpath(), and KoPathShape::subpathCount().
|
overridevirtual |
revert the actions done in redo
Reimplemented from KUndo2Command.
Definition at line 53 of file KoPathReverseCommand.cpp.
References d, and KUndo2Command::undo().
|
private |
Definition at line 33 of file KoPathReverseCommand.h.
| QList<KoPathShape*> KoPathReverseCommand::paths |
Definition at line 31 of file KoPathReverseCommand.cpp.