|
Krita Source Code Documentation
|
The undo / redo command for setting the fill rule of a path shape. More...
#include <KoPathFillRuleCommand.h>
Inheritance diagram for KoPathFillRuleCommand:Public Member Functions | |
| KoPathFillRuleCommand (const QList< KoPathShape * > &shapes, Qt::FillRule fillRule, KUndo2Command *parent=0) | |
| Private (Qt::FillRule fillRule) | |
| void | redo () override |
| redo the command | |
| void | undo () override |
| revert the actions done in redo | |
| ~KoPathFillRuleCommand () 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 | |
| Qt::FillRule | newFillRule |
| the new fill rule to set | |
| QList< Qt::FillRule > | oldFillRules |
| the old fill rules, one for each shape | |
| QList< KoPathShape * > | shapes |
| the shapes to set fill rule 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 fill rule of a path shape.
Definition at line 12 of file KoPathFillRuleCommand.cpp.
| KoPathFillRuleCommand::KoPathFillRuleCommand | ( | const QList< KoPathShape * > & | shapes, |
| Qt::FillRule | fillRule, | ||
| KUndo2Command * | parent = 0 ) |
Command to set a new shape background.
| shapes | a set of all the path shapes that should get the new fill rule |
| fillRule | the new fill rule |
| parent | the parent command used for macro commands |
Definition at line 23 of file KoPathFillRuleCommand.cpp.
References d, KoPathShape::fillRule(), kundo2_i18n(), KUndo2Command::setText(), and shapes.
|
override |
|
inline |
Definition at line 15 of file KoPathFillRuleCommand.cpp.
|
overridevirtual |
redo the command
Reimplemented from KUndo2Command.
Definition at line 39 of file KoPathFillRuleCommand.cpp.
References d, KUndo2Command::redo(), KoPathShape::setFillRule(), and KoShapeContainer::update().
|
overridevirtual |
revert the actions done in redo
Reimplemented from KUndo2Command.
Definition at line 48 of file KoPathFillRuleCommand.cpp.
References d, KoPathShape::setFillRule(), KUndo2Command::undo(), and KoShapeContainer::update().
|
private |
Definition at line 35 of file KoPathFillRuleCommand.h.
| Qt::FillRule KoPathFillRuleCommand::newFillRule |
the new fill rule to set
Definition at line 20 of file KoPathFillRuleCommand.cpp.
| QList<Qt::FillRule> KoPathFillRuleCommand::oldFillRules |
the old fill rules, one for each shape
Definition at line 19 of file KoPathFillRuleCommand.cpp.
| QList<KoPathShape*> KoPathFillRuleCommand::shapes |
the shapes to set fill rule for
Definition at line 18 of file KoPathFillRuleCommand.cpp.