|
Krita Source Code Documentation
|
The undo / redo command for creating shapes. More...
#include <KoShapeCreateCommand.h>
Inheritance diagram for KoShapeCreateCommand:Public Member Functions | |
| KoShapeCreateCommand (KoShapeControllerBase *controller, const QList< KoShape * > shape, KoShapeContainer *parentShape=0, KUndo2Command *parent=0) | |
| KoShapeCreateCommand (KoShapeControllerBase *controller, KoShape *shape, KoShapeContainer *parentShape=0, KUndo2Command *parent=0) | |
| Private (KoShapeControllerBase *_document, const QList< KoShape * > &_shapes, KoShapeContainer *_parentShape) | |
| void | redo () override |
| redo the command | |
| void | undo () override |
| revert the actions done in redo | |
| ~KoShapeCreateCommand () override | |
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 | |
| KoShapeContainer * | explicitParentShape |
| bool | firstRedo = true |
| QList< KoShape * > | shapes |
| KoShapeControllerBase * | shapesDocument |
| KisSurrogateUndoStore | undoStore |
Protected Member Functions | |
| KoShapeCreateCommand (KoShapeControllerBase *controller, const QList< KoShape * > shapes, KoShapeContainer *parentShape, KUndo2Command *parent, const KUndo2MagicString &undoString) | |
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 creating shapes.
Definition at line 25 of file KoShapeCreateCommand.cpp.
| KoShapeCreateCommand::KoShapeCreateCommand | ( | KoShapeControllerBase * | controller, |
| KoShape * | shape, | ||
| KoShapeContainer * | parentShape = 0, | ||
| KUndo2Command * | parent = 0 ) |
Command used on creation of new shapes
| controller | the controller used to add/remove the shape from |
| shape | the shape that's just been created. |
| parent | the parent command used for macro commands |
Definition at line 44 of file KoShapeCreateCommand.cpp.
| KoShapeCreateCommand::KoShapeCreateCommand | ( | KoShapeControllerBase * | controller, |
| const QList< KoShape * > | shape, | ||
| KoShapeContainer * | parentShape = 0, | ||
| KUndo2Command * | parent = 0 ) |
Command used on creation of new shapes
| controller | the controller used to add/remove the shape from |
| shapes | the shapes that have just been created. |
| parent | the parent command used for macro commands |
Definition at line 49 of file KoShapeCreateCommand.cpp.
|
override |
Definition at line 60 of file KoShapeCreateCommand.cpp.
References d.
|
protected |
Definition at line 54 of file KoShapeCreateCommand.cpp.
|
inline |
Definition at line 28 of file KoShapeCreateCommand.cpp.
|
overridevirtual |
redo the command
Reimplemented from KUndo2Command.
Definition at line 65 of file KoShapeCreateCommand.cpp.
References d, KIS_SAFE_ASSERT_RECOVER_NOOP, KIS_SAFE_ASSERT_RECOVER_RETURN, KoShapeReorderCommand::mergeInShape(), KoShape::parent(), KUndo2Command::redo(), and KoShapeContainer::shapes().
|
overridevirtual |
revert the actions done in redo
Reimplemented from KUndo2Command.
Definition at line 89 of file KoShapeCreateCommand.cpp.
References d, and KUndo2Command::undo().
|
private |
Definition at line 54 of file KoShapeCreateCommand.h.
| KoShapeContainer* KoShapeCreateCommand::explicitParentShape |
Definition at line 37 of file KoShapeCreateCommand.cpp.
| bool KoShapeCreateCommand::firstRedo = true |
Definition at line 40 of file KoShapeCreateCommand.cpp.
Definition at line 36 of file KoShapeCreateCommand.cpp.
| KoShapeControllerBase* KoShapeCreateCommand::shapesDocument |
Definition at line 35 of file KoShapeCreateCommand.cpp.
| KisSurrogateUndoStore KoShapeCreateCommand::undoStore |
Definition at line 39 of file KoShapeCreateCommand.cpp.