|
Krita Source Code Documentation
|
#include <KoShapeKeepAspectRatioCommand.h>
Inheritance diagram for KoShapeKeepAspectRatioCommand:Public Member Functions | |
| KoShapeKeepAspectRatioCommand (const QList< KoShape * > &shapes, bool newKeepAspectRatio, KUndo2Command *parent=0) | |
| void | redo () override |
| Execute the command. | |
| void | undo () override |
| Unexecute the command. | |
| ~KoShapeKeepAspectRatioCommand () 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_newKeepAspectRatio |
| QList< bool > | m_oldKeepAspectRatio |
| QList< KoShape * > | m_shapes |
Command that changes the keepAspectRatio property of KoShape
Definition at line 19 of file KoShapeKeepAspectRatioCommand.h.
| KoShapeKeepAspectRatioCommand::KoShapeKeepAspectRatioCommand | ( | const QList< KoShape * > & | shapes, |
| bool | newKeepAspectRatio, | ||
| KUndo2Command * | parent = 0 ) |
Constructor
| shapes | the shapes affected by the command |
| newKeepAspectRatio | the new setting |
| parent | the parent command |
Definition at line 13 of file KoShapeKeepAspectRatioCommand.cpp.
References KoShape::keepAspectRatio(), m_newKeepAspectRatio, and m_oldKeepAspectRatio.
|
override |
Definition at line 23 of file KoShapeKeepAspectRatioCommand.cpp.
|
overridevirtual |
Execute the command.
Reimplemented from KUndo2Command.
Definition at line 27 of file KoShapeKeepAspectRatioCommand.cpp.
References m_newKeepAspectRatio, m_shapes, and KUndo2Command::redo().
|
overridevirtual |
Unexecute the command.
Reimplemented from KUndo2Command.
Definition at line 35 of file KoShapeKeepAspectRatioCommand.cpp.
References m_oldKeepAspectRatio, m_shapes, and KUndo2Command::undo().
|
private |
Definition at line 39 of file KoShapeKeepAspectRatioCommand.h.
|
private |
Definition at line 38 of file KoShapeKeepAspectRatioCommand.h.
Definition at line 37 of file KoShapeKeepAspectRatioCommand.h.