|
Krita Source Code Documentation
|
The undo / redo command for shape sizing. More...
#include <KoShapeSizeCommand.h>
Inheritance diagram for KoShapeSizeCommand:Public Member Functions | |
| KoShapeSizeCommand (const QList< KoShape * > &shapes, const QList< QSizeF > &previousSizes, const QList< QSizeF > &newSizes, KUndo2Command *parent=0) | |
| void | redo () override |
| redo the command | |
| void | undo () override |
| revert the actions done in redo | |
| ~KoShapeSizeCommand () 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 | |
| QList< QSizeF > | newSizes |
| QList< QSizeF > | previousSizes |
| QList< KoShape * > | shapes |
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 shape sizing.
Definition at line 13 of file KoShapeSizeCommand.cpp.
| KoShapeSizeCommand::KoShapeSizeCommand | ( | const QList< KoShape * > & | shapes, |
| const QList< QSizeF > & | previousSizes, | ||
| const QList< QSizeF > & | newSizes, | ||
| KUndo2Command * | parent = 0 ) |
The undo / redo command for shape sizing.
| shapes | all the shapes that will be resized at the same time |
| previousSizes | the old sizes; in a list with a member for each shape |
| newSizes | the new sizes; in a list with a member for each shape |
| parent | the parent command used for macro commands |
Definition at line 20 of file KoShapeSizeCommand.cpp.
References d, kundo2_i18n(), newSizes, previousSizes, KUndo2Command::setText(), and shapes.
|
override |
|
overridevirtual |
redo the command
Reimplemented from KUndo2Command.
Definition at line 38 of file KoShapeSizeCommand.cpp.
References d, KUndo2Command::redo(), KoShape::setSize(), and KoShape::update().
|
overridevirtual |
revert the actions done in redo
Reimplemented from KUndo2Command.
Definition at line 49 of file KoShapeSizeCommand.cpp.
References d, KoShape::setSize(), KUndo2Command::undo(), and KoShape::update().
|
private |
Definition at line 40 of file KoShapeSizeCommand.h.
| QList<QSizeF> KoShapeSizeCommand::newSizes |
Definition at line 17 of file KoShapeSizeCommand.cpp.
| QList<QSizeF> KoShapeSizeCommand::previousSizes |
Definition at line 17 of file KoShapeSizeCommand.cpp.
Definition at line 16 of file KoShapeSizeCommand.cpp.