|
Krita Source Code Documentation
|
#include <kis_post_execution_undo_adapter.h>
Public Member Functions | |
| void | addCommand (KUndo2CommandSP command) |
| void | addMacro (KisSavedMacroCommand *macro) |
| KisSavedMacroCommand * | createMacro (const KUndo2MagicString ¯oName) |
| KisPostExecutionUndoAdapter (KisUndoStore *undoStore, KisStrokesFacade *strokesFacade) | |
| void | setUndoStore (KisUndoStore *undoStore) |
| KisStrokesFacade * | strokesFacade () const |
Private Attributes | |
| KisStrokesFacade * | m_strokesFacade |
| KisUndoStore * | m_undoStore |
KisPostExecutionUndoAdapter – used by the strokes. It doesn't call redo() when you add a command. It is assumed, that you have already executed the command yourself and now just notify the system about it. Warning: it doesn't inherit KisUndoAdapter because it doesn't fit the contract of this class. And, more important, KisTransaction should work differently with this class.
Definition at line 27 of file kis_post_execution_undo_adapter.h.
| KisPostExecutionUndoAdapter::KisPostExecutionUndoAdapter | ( | KisUndoStore * | undoStore, |
| KisStrokesFacade * | strokesFacade ) |
Definition at line 14 of file kis_post_execution_undo_adapter.cpp.
| void KisPostExecutionUndoAdapter::addCommand | ( | KUndo2CommandSP | command | ) |
Definition at line 21 of file kis_post_execution_undo_adapter.cpp.
References KisUndoStore::addCommand(), m_strokesFacade, and m_undoStore.
| void KisPostExecutionUndoAdapter::addMacro | ( | KisSavedMacroCommand * | macro | ) |
Definition at line 34 of file kis_post_execution_undo_adapter.cpp.
References KisUndoStore::addCommand(), and m_undoStore.
| KisSavedMacroCommand * KisPostExecutionUndoAdapter::createMacro | ( | const KUndo2MagicString & | macroName | ) |
Definition at line 29 of file kis_post_execution_undo_adapter.cpp.
References m_strokesFacade.
| void KisPostExecutionUndoAdapter::setUndoStore | ( | KisUndoStore * | undoStore | ) |
Definition at line 39 of file kis_post_execution_undo_adapter.cpp.
References m_undoStore.
| KisStrokesFacade * KisPostExecutionUndoAdapter::strokesFacade | ( | ) | const |
Definition at line 44 of file kis_post_execution_undo_adapter.cpp.
References m_strokesFacade.
|
private |
Definition at line 42 of file kis_post_execution_undo_adapter.h.
|
private |
Definition at line 41 of file kis_post_execution_undo_adapter.h.