|
Krita Source Code Documentation
|
Inheritance diagram for AddSwatchCommand:Public Member Functions | |
| AddSwatchCommand (KoColorSet *colorSet, const KisSwatch &swatch, const QString &groupName, int column, int row) | |
| void | redo () override |
| redo the command | |
| void | undo () override |
| revert the actions done in redo | |
| ~AddSwatchCommand () 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 | |
| KoColorSet * | m_colorSet |
| QString | m_groupName |
| KisSwatch | m_swatch |
| int | m_x |
| int | m_y |
Definition at line 105 of file KoColorSet.cpp.
|
inline |
Definition at line 108 of file KoColorSet.cpp.
|
inlineoverride |
Definition at line 117 of file KoColorSet.cpp.
|
inlineoverridevirtual |
redo the command
Reimplemented from KUndo2Command.
Definition at line 120 of file KoColorSet.cpp.
References KoColorSet::getGroup(), m_colorSet, m_groupName, m_swatch, m_x, m_y, and KoColorSet::notifySwatchChanged().
|
inlineoverridevirtual |
revert the actions done in redo
Reimplemented from KUndo2Command.
Definition at line 135 of file KoColorSet.cpp.
References KoColorSet::getGroup(), m_colorSet, m_groupName, m_x, m_y, and KoColorSet::notifySwatchChanged().
|
private |
Definition at line 143 of file KoColorSet.cpp.
|
private |
Definition at line 145 of file KoColorSet.cpp.
|
private |
Definition at line 144 of file KoColorSet.cpp.
|
private |
Definition at line 146 of file KoColorSet.cpp.
|
private |
Definition at line 147 of file KoColorSet.cpp.