|
Krita Source Code Documentation
|
The undo / redo command for shape shearing. More...
#include <KoShapeShearCommand.h>
Inheritance diagram for KoShapeShearCommand:Public Member Functions | |
| KoShapeShearCommand (const QList< KoShape * > &shapes, const QList< qreal > &previousShearXs, const QList< qreal > &previousShearYs, const QList< qreal > &newShearXs, const QList< qreal > &newShearYs, KUndo2Command *parent=0) | |
| void | redo () override |
| redo the command | |
| void | undo () override |
| revert the actions done in redo | |
| ~KoShapeShearCommand () 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 | |
| KoShapeShearCommandPrivate *const | d |
The undo / redo command for shape shearing.
Definition at line 20 of file KoShapeShearCommand.h.
| KoShapeShearCommand::KoShapeShearCommand | ( | const QList< KoShape * > & | shapes, |
| const QList< qreal > & | previousShearXs, | ||
| const QList< qreal > & | previousShearYs, | ||
| const QList< qreal > & | newShearXs, | ||
| const QList< qreal > & | newShearYs, | ||
| KUndo2Command * | parent = 0 ) |
Command to rotate a selection of shapes. Note that it just alters the rotated property of those shapes, and nothing more.
| shapes | all the shapes that should be rotated |
| previousShearXs | a list with the same amount of items as shapes with the old shearX values |
| previousShearYs | a list with the same amount of items as shapes with the old shearY values |
| newShearXs | a list with the same amount of items as shapes with the new values. |
| newShearYs | a list with the same amount of items as shapes with the new values. |
| parent | the parent command used for macro commands |
Definition at line 23 of file KoShapeShearCommand.cpp.
References d, kundo2_i18n(), KoShapeShearCommandPrivate::newShearXs, KoShapeShearCommandPrivate::newShearYs, KoShapeShearCommandPrivate::previousShearXs, KoShapeShearCommandPrivate::previousShearYs, KUndo2Command::setText(), and KoShapeShearCommandPrivate::shapes.
|
override |
|
overridevirtual |
redo the command
Reimplemented from KUndo2Command.
Definition at line 46 of file KoShapeShearCommand.cpp.
References d, KoShapeShearCommandPrivate::newShearXs, KoShapeShearCommandPrivate::newShearYs, KUndo2Command::redo(), and KoShapeShearCommandPrivate::shapes.
|
overridevirtual |
revert the actions done in redo
Reimplemented from KUndo2Command.
Definition at line 56 of file KoShapeShearCommand.cpp.
References d, KoShapeShearCommandPrivate::previousShearXs, KoShapeShearCommandPrivate::previousShearYs, KoShapeShearCommandPrivate::shapes, and KUndo2Command::undo().
|
private |
Definition at line 44 of file KoShapeShearCommand.h.