|
Krita Source Code Documentation
|
The undo / redo command for setting the shape shadow. More...
#include <KoShapeShadowCommand.h>
Inheritance diagram for KoShapeShadowCommand:Public Member Functions | |
| void | addNewShadow (KoShapeShadow *newShadow) |
| void | addOldShadow (KoShapeShadow *oldShadow) |
| KoShapeShadowCommand (const QList< KoShape * > &shapes, const QList< KoShapeShadow * > &shadows, KUndo2Command *parent=0) | |
| KoShapeShadowCommand (const QList< KoShape * > &shapes, KoShapeShadow *shadow, KUndo2Command *parent=0) | |
| KoShapeShadowCommand (KoShape *shape, KoShapeShadow *shadow, KUndo2Command *parent=0) | |
| Private () | |
| void | redo () override |
| redo the command | |
| void | undo () override |
| revert the actions done in redo | |
| ~KoShapeShadowCommand () override | |
| ~Private () | |
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< KoShapeShadow * > | newShadows |
| the new shadows to set | |
| QList< KoShapeShadow * > | oldShadows |
| the old shadows, one for each shape | |
| QList< KoShape * > | shapes |
| the shapes to set shadow for | |
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 setting the shape shadow.
Definition at line 13 of file KoShapeShadowCommand.cpp.
|
inline |
Definition at line 17 of file KoShapeShadowCommand.cpp.
References KoShapeShadow::deref().
| KoShapeShadowCommand::KoShapeShadowCommand | ( | const QList< KoShape * > & | shapes, |
| KoShapeShadow * | shadow, | ||
| KUndo2Command * | parent = 0 ) |
Command to set a new shape shadow.
| shapes | a set of all the shapes that should get the new shadow. |
| shadow | the new shadow, the same for all given shapes |
| parent | the parent command used for macro commands |
Definition at line 43 of file KoShapeShadowCommand.cpp.
References d, kundo2_i18n(), KUndo2Command::setText(), KoShape::shadow(), and shapes.
| KoShapeShadowCommand::KoShapeShadowCommand | ( | const QList< KoShape * > & | shapes, |
| const QList< KoShapeShadow * > & | shadows, | ||
| KUndo2Command * | parent = 0 ) |
Command to set new shape shadows.
| shapes | a set of all the shapes that should get a new shadow. |
| shadows | the new shadows, one for each shape |
| parent | the parent command used for macro commands |
Definition at line 57 of file KoShapeShadowCommand.cpp.
References d, kundo2_i18n(), KUndo2Command::setText(), KoShape::shadow(), and shapes.
| KoShapeShadowCommand::KoShapeShadowCommand | ( | KoShape * | shape, |
| KoShapeShadow * | shadow, | ||
| KUndo2Command * | parent = 0 ) |
Command to set a new shape shadow.
| shape | a single shape that should get the new shadow. |
| shadow | the new shadow |
| parent | the parent command used for macro commands |
Definition at line 74 of file KoShapeShadowCommand.cpp.
References d, kundo2_i18n(), KUndo2Command::setText(), and KoShape::shadow().
|
override |
|
inline |
Definition at line 31 of file KoShapeShadowCommand.cpp.
References KoShapeShadow::ref().
|
inline |
Definition at line 24 of file KoShapeShadowCommand.cpp.
References KoShapeShadow::ref().
|
inline |
Definition at line 16 of file KoShapeShadowCommand.cpp.
|
overridevirtual |
redo the command
Reimplemented from KUndo2Command.
Definition at line 90 of file KoShapeShadowCommand.cpp.
References KoShape::boundingRect(), d, KUndo2Command::redo(), KoShape::setShadow(), KoShape::shadow(), and KoShape::updateAbsolute().
|
overridevirtual |
revert the actions done in redo
Reimplemented from KUndo2Command.
Definition at line 107 of file KoShapeShadowCommand.cpp.
References KoShape::boundingRect(), d, KoShape::setShadow(), KoShape::shadow(), KUndo2Command::undo(), and KoShape::updateAbsolute().
|
private |
Definition at line 52 of file KoShapeShadowCommand.h.
| QList<KoShapeShadow*> KoShapeShadowCommand::newShadows |
the new shadows to set
Definition at line 40 of file KoShapeShadowCommand.cpp.
| QList<KoShapeShadow*> KoShapeShadowCommand::oldShadows |
the old shadows, one for each shape
Definition at line 39 of file KoShapeShadowCommand.cpp.
the shapes to set shadow for
Definition at line 38 of file KoShapeShadowCommand.cpp.