CmdManager.kl¶
Types¶
CmdManager (object)¶
The command manager contains and manages the command undo-redo stack.
The command manager follows this pattern : http://kapo-cpp.blogspot.ca/2007/10/multilevel-undo-with-command-pattern.html
参考
Methods¶
| CmdManager ( in CmdManager other ) | |
| CmdManager () | |
| clearRedoStack ! () | |
| CmdManager | clone ? () |
| Boolean | exec ! ( io Cmd cmd ) |
| Ref<Cmd> | getCmdInUndoStack ? ( in Index index ) |
| Size | getNumCmdInUndoStack ? () |
| Ref<CmdManager> | getOrCreateCmdManager ? () |
| Boolean | redo ! () |
| Boolean | undo ! () |
Functions¶
GetOrCreateCmdManager¶
CmdManager GetOrCreateCmdManager ()
Gets the CmdManager singleton, or constructs it if it didn’t exist.