UndoAction
Public Types
Parent
Public Friends
class
Protected Attributes
Public Attributes
A brief description of the action, for display in menus and the like.
Public Functions
UndoAction(const UTF8 * actionName)
Create a new action, assigning it a name for display in menus et cetera.
addToManager(UndoManager * theMan)
Adds the action to the undo stack of the default UndoManager, or the provided manager.
Public Static Functions
Detailed Description
Public Types
typedef SimObject Parent
Public Friends
Protected Attributes
UndoManager * mUndoManager
Public Attributes
String mActionName
A brief description of the action, for display in menus and the like.
Public Functions
UndoAction(const UTF8 * actionName)
Create a new action, assigning it a name for display in menus et cetera.
~UndoAction()
addToManager(UndoManager * theMan)
Adds the action to the undo stack of the default UndoManager, or the provided manager.
DECLARE_CONOBJECT(UndoAction )
redo()
Reimplemented by: GuiMeshRoadEditorUndoAction, GuiRiverEditorUndoAction, GuiRoadEditorUndoAction, ForestUndoAction, ForestCreateUndoAction, ForestDeleteUndoAction, ForestUpdateAction, GuiConvexEditorUndoAction, DICreateUndoAction, DIDeleteUndoAction, DBDeleteUndoAction, DBRetargetUndoAction, GuiMissionAreaUndoAction, TerrainSmoothAction, MECreateUndoAction, MEDeleteUndoAction, InspectorFieldUndoAction, WorldEditor::WorldEditorUndoAction, GuiNavEditorUndoAction, ExplodePrefabUndoAction, CompoundUndoAction, UndoScriptAction
undo()
Implement these methods to perform your specific undo & redo tasks.
Reimplemented by: GuiMeshRoadEditorUndoAction, GuiRiverEditorUndoAction, GuiRoadEditorUndoAction, ForestUndoAction, ForestCreateUndoAction, ForestDeleteUndoAction, ForestUpdateAction, GuiConvexEditorUndoAction, DICreateUndoAction, DIDeleteUndoAction, DBDeleteUndoAction, DBRetargetUndoAction, GuiMissionAreaUndoAction, TerrainSmoothAction, MECreateUndoAction, MEDeleteUndoAction, InspectorFieldUndoAction, WorldEditor::WorldEditorUndoAction, GuiNavEditorUndoAction, ExplodePrefabUndoAction, CompoundUndoAction, UndoScriptAction