|
Krita Source Code Documentation
|
Inheritance diagram for SetPaletteTypeCommand:Public Member Functions | |
| void | redo () override |
| redo the command | |
| SetPaletteTypeCommand (KoColorSet *colorSet, const KoColorSet::PaletteType &paletteType) | |
| void | undo () override |
| revert the actions done in redo | |
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 Member Functions | |
| QString | suffix (KoColorSet::PaletteType paletteType) const |
Private Attributes | |
| KoColorSet * | m_colorSet |
| KoColorSet::PaletteType | m_oldPaletteType |
| KoColorSet::PaletteType | m_paletteType |
Definition at line 491 of file KoColorSet.cpp.
|
inline |
Definition at line 493 of file KoColorSet.cpp.
|
inlineoverridevirtual |
redo the command
Reimplemented from KUndo2Command.
Definition at line 501 of file KoColorSet.cpp.
References KoColorSet::d, KoResource::filename, m_colorSet, m_paletteType, KoResource::setFilename(), and suffix().
|
inlineprivate |
Definition at line 521 of file KoColorSet.cpp.
References KoColorSet::ACO, KoColorSet::ACT, KoColorSet::CSS, KoColorSet::defaultFileExtension(), KoColorSet::GPL, KoColorSet::KPL, m_colorSet, KoColorSet::PSP_PAL, KoColorSet::RIFF_PAL, KoColorSet::SBZ, suffix(), and KoColorSet::XML.
|
inlineoverridevirtual |
revert the actions done in redo
Reimplemented from KUndo2Command.
Definition at line 511 of file KoColorSet.cpp.
References KoColorSet::d, KoResource::filename, m_colorSet, m_oldPaletteType, KoResource::setFilename(), and suffix().
|
private |
Definition at line 556 of file KoColorSet.cpp.
|
private |
Definition at line 558 of file KoColorSet.cpp.
|
private |
Definition at line 557 of file KoColorSet.cpp.