|
Krita Source Code Documentation
|
#include <kis_transaction_based_command.h>
Inheritance diagram for KisTransactionBasedCommand:Protected Member Functions | |
| virtual KUndo2Command * | paint ()=0 |
Private Attributes | |
| KUndo2Command * | m_transactionData |
Definition at line 13 of file kis_transaction_based_command.h.
| KisTransactionBasedCommand::KisTransactionBasedCommand | ( | const KUndo2MagicString & | text = KUndo2MagicString(), |
| KUndo2Command * | parent = 0 ) |
Definition at line 9 of file kis_transaction_based_command.cpp.
|
override |
Definition at line 14 of file kis_transaction_based_command.cpp.
References m_transactionData.
|
protectedpure virtual |
Implemented in LazyInitGlobalSelection, and KisToolSmartPatch::InpaintCommand.
|
overridevirtual |
Applies a change to the document. This function must be implemented in the derived class. Calling KUndo2QStack::push(), KUndo2QStack::undo() or KUndo2QStack::redo() from this function leads to undefined behavior.
The default implementation calls redo() on all child commands.
Reimplemented from KUndo2Command.
Definition at line 19 of file kis_transaction_based_command.cpp.
References m_transactionData, paint(), and KUndo2Command::redo().
|
overridevirtual |
Reverts a change to the document. After undo() is called, the state of the document should be the same as before redo() was called. This function must be implemented in the derived class. Calling KUndo2QStack::push(), KUndo2QStack::undo() or KUndo2QStack::redo() from this function leads to undefined behavior.
The default implementation calls undo() on all child commands in reverse order.
Reimplemented from KUndo2Command.
Definition at line 30 of file kis_transaction_based_command.cpp.
References m_transactionData, and KUndo2Command::undo().
|
private |
Definition at line 26 of file kis_transaction_based_command.h.