|
Krita Source Code Documentation
|
#include <kis_macro_based_undo_store.h>
Inheritance diagram for KisMacroBasedUndoStore:Classes | |
| struct | Private |
Public Member Functions | |
| void | addCommand (KUndo2Command *cmd) override |
| void | beginMacro (const KUndo2MagicString ¯oName) override |
| void | endMacro () override |
| KisMacroBasedUndoStore (KisSavedMacroCommand *command) | |
| const KUndo2Command * | presentCommand () override |
| void | purgeRedoState () override |
| void | undoLastCommand () override |
| ~KisMacroBasedUndoStore () override | |
Public Member Functions inherited from KisUndoStore | |
| KisUndoStore () | |
| virtual | ~KisUndoStore () |
Private Attributes | |
| const QScopedPointer< Private > | m_d |
Additional Inherited Members | |
Signals inherited from KisUndoStore | |
| void | historyStateChanged () |
This undo store is supposed to be stacked with a KisPostExecutionUndoAdapter.
That chain looks like: KisPostExecutionUndoAdapter -> KisMacroBasedUndoStore -> KisSavedMacroCommand;
So the store calls redo() on every command that is added via addCommand();
Definition at line 27 of file kis_macro_based_undo_store.h.
| KisMacroBasedUndoStore::KisMacroBasedUndoStore | ( | KisSavedMacroCommand * | command | ) |
Definition at line 19 of file kis_macro_based_undo_store.cpp.
|
override |
Definition at line 24 of file kis_macro_based_undo_store.cpp.
|
overridevirtual |
This store if stacked with a post-execution undo adapter, so we should call redo() explicitly when adding a command.
Implements KisUndoStore.
Definition at line 39 of file kis_macro_based_undo_store.cpp.
References KisUndoStore::historyStateChanged(), m_d, KUndo2Command::redo(), and toQShared().
|
overridevirtual |
Implements KisUndoStore.
Definition at line 51 of file kis_macro_based_undo_store.cpp.
References KIS_ASSERT.
|
overridevirtual |
Implements KisUndoStore.
Definition at line 57 of file kis_macro_based_undo_store.cpp.
References KIS_ASSERT.
|
overridevirtual |
WARNING: All these methods are not considered as thread-safe
Implements KisUndoStore.
Definition at line 28 of file kis_macro_based_undo_store.cpp.
References KIS_ASSERT.
|
overridevirtual |
Implements KisUndoStore.
Definition at line 62 of file kis_macro_based_undo_store.cpp.
References KIS_ASSERT.
|
overridevirtual |
Implements KisUndoStore.
Definition at line 34 of file kis_macro_based_undo_store.cpp.
References KIS_ASSERT.
|
private |
Definition at line 42 of file kis_macro_based_undo_store.h.