|
Krita Source Code Documentation
|
The undo / redo command to lock a set of shapes position and size. More...
#include <KoShapeLockCommand.h>
Inheritance diagram for KoShapeLockCommand:Public Member Functions | |
| KoShapeLockCommand (const QList< KoShape * > &shapes, const QList< bool > &oldLock, const QList< bool > &newLock, KUndo2Command *parent=0) | |
| void | redo () override |
| redo the command | |
| void | undo () override |
| revert the actions done in redo | |
| ~KoShapeLockCommand () 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 () |
Private Attributes | |
| QList< bool > | m_newLock |
| old lock states | |
| QList< bool > | m_oldLock |
| the shapes to set background for | |
| QList< KoShape * > | m_shapes |
The undo / redo command to lock a set of shapes position and size.
Definition at line 17 of file KoShapeLockCommand.h.
| KoShapeLockCommand::KoShapeLockCommand | ( | const QList< KoShape * > & | shapes, |
| const QList< bool > & | oldLock, | ||
| const QList< bool > & | newLock, | ||
| KUndo2Command * | parent = 0 ) |
Command to lock a set of shapes position and size
| shapes | a set of shapes that should change lock state |
| oldLock | list of old lock states the same length as shapes |
| newLock | list of new lock states the same length as shapes |
| parent | the parent command used for macro commands |
Definition at line 13 of file KoShapeLockCommand.cpp.
References kundo2_i18n(), m_newLock, m_oldLock, m_shapes, and KUndo2Command::setText().
|
override |
Definition at line 25 of file KoShapeLockCommand.cpp.
|
overridevirtual |
redo the command
Reimplemented from KUndo2Command.
Definition at line 29 of file KoShapeLockCommand.cpp.
References m_newLock, m_shapes, and KUndo2Command::redo().
|
overridevirtual |
revert the actions done in redo
Reimplemented from KUndo2Command.
Definition at line 37 of file KoShapeLockCommand.cpp.
References m_oldLock, m_shapes, and KUndo2Command::undo().
|
private |
old lock states
Definition at line 39 of file KoShapeLockCommand.h.
|
private |
the shapes to set background for
Definition at line 38 of file KoShapeLockCommand.h.
Definition at line 37 of file KoShapeLockCommand.h.