|
Krita Source Code Documentation
|
The undo / redo command for removing the shape clip path. More...
#include <KoShapeUnclipCommand.h>
Inheritance diagram for KoShapeUnclipCommand:Classes | |
| class | Private |
Public Member Functions | |
| KoShapeUnclipCommand (KoShapeControllerBase *controller, const QList< KoShape * > &shapes, KUndo2Command *parent=0) | |
| KoShapeUnclipCommand (KoShapeControllerBase *controller, KoShape *shape, KUndo2Command *parent=0) | |
| void | redo () override |
| redo the command | |
| void | undo () override |
| revert the actions done in redo | |
| ~KoShapeUnclipCommand () override | |
| Destroys the command. | |
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 | |
| Private *const | d |
The undo / redo command for removing the shape clip path.
Definition at line 18 of file KoShapeUnclipCommand.h.
| KoShapeUnclipCommand::KoShapeUnclipCommand | ( | KoShapeControllerBase * | controller, |
| const QList< KoShape * > & | shapes, | ||
| KUndo2Command * | parent = 0 ) |
Command to remove clip path from multiple shapes.
| controller | the controller to used for adding the clip shapes. |
| shapes | a set of all the shapes to remove the clip path from. |
| parent | the parent command used for macro commands |
Definition at line 75 of file KoShapeUnclipCommand.cpp.
References KoShape::clipPath(), d, kundo2_i18n(), KoShapeUnclipCommand::Private::oldClipPaths, KUndo2Command::setText(), and KoShapeUnclipCommand::Private::shapesToUnclip.
| KoShapeUnclipCommand::KoShapeUnclipCommand | ( | KoShapeControllerBase * | controller, |
| KoShape * | shape, | ||
| KUndo2Command * | parent = 0 ) |
Command to remove clip path from a single shape.
| controller | the controller to used for adding the clip shapes. |
| shape | a single shape to remove the clip path from. |
| parent | the parent command used for macro commands |
Definition at line 86 of file KoShapeUnclipCommand.cpp.
References KoShape::clipPath(), d, kundo2_i18n(), KoShapeUnclipCommand::Private::oldClipPaths, KUndo2Command::setText(), and KoShapeUnclipCommand::Private::shapesToUnclip.
|
override |
|
overridevirtual |
redo the command
Reimplemented from KUndo2Command.
Definition at line 100 of file KoShapeUnclipCommand.cpp.
References KoShapeUnclipCommand::Private::clipPathParents, KoShapeUnclipCommand::Private::clipPathShapes, KoShapeUnclipCommand::Private::createClipPathShapes(), d, KoShapeUnclipCommand::Private::executed, KUndo2Command::redo(), and KoShapeUnclipCommand::Private::shapesToUnclip.
|
overridevirtual |
revert the actions done in redo
Reimplemented from KUndo2Command.
Definition at line 122 of file KoShapeUnclipCommand.cpp.
References KoShapeUnclipCommand::Private::clipPathParents, KoShapeUnclipCommand::Private::clipPathShapes, d, KoShapeUnclipCommand::Private::executed, KoShapeUnclipCommand::Private::oldClipPaths, KoShapeUnclipCommand::Private::shapesToUnclip, and KUndo2Command::undo().
|
private |
Definition at line 47 of file KoShapeUnclipCommand.h.