UndoManager Class Reference#include <undo.h>
Inheritance diagram for UndoManager: ![]()
Member Typedef Documentation
Reimplemented from SimObject.
Constructor & Destructor Documentation
Constructor. If levels = 0, we use the default number of undo levels.
Destructor. deletes and clears the undo & redo stacks.
Member Function Documentation
Deletes all the UndoActions in a stack, then clears it.
Clamps a Vector to mNumLevels entries.
Register dynamic fields in a subclass of ConsoleObject.
Reimplemented from SimObject.
Accessor to the default undo manager singleton. Creates one if needed.
Undo last action, and put it on the redo stack.
Redo the last action, and put it on the undo stack.
Clears the undo and redo stacks.
Returns the printable name of the top actions on the undo & redo stacks.
Add an action to the top of the undo stack, and clear the redo stack.
Member Data Documentation
Default number of undo & redo levels.
The stacks of undo & redo actions. They will be capped at size mNumLevels.
Number of undo & redo levels.
|