Stores the undo / redo stacks of transactions done on a document.
More...
#include <CommandHistory.h>
Stores the undo / redo stacks of transactions done on a document.
◆ BeginTemporaryCommands()
| void xiiCommandHistory::BeginTemporaryCommands |
( |
xiiStringView | sDisplayString, |
|
|
bool | bFireEventsWhenUndoingTempCommands = false ) |
Call this to start a series of transactions that typically change the same value over and over (e.g. dragging an object to a position). Every time a new transaction is started, the previous one is undone first. At the end of a series of temporary transactions, only the last transaction will be stored as a single undo step. Call this first and then start a transaction inside it.
◆ MergeLastTwoTransactions()
| void xiiCommandHistory::MergeLastTwoTransactions |
( |
| ) |
|
- Todo
- This would not be necessary, if hierarchical transactions would not crash
◆ StartTransaction()
| void xiiCommandHistory::StartTransaction |
( |
const xiiFormatString & | displayString | ) |
|
- Todo
- Allow to have a limited transaction history and clean up transactions after a while
The documentation for this class was generated from the following files:
- /home/runner/work/XII/XII/Source/Tools/Libs/ToolsFoundation/CommandHistory/CommandHistory.h
- /home/runner/work/XII/XII/Source/Tools/Libs/ToolsFoundation/CommandHistory/Implementation/CommandHistory.cpp