UndoAction Class Reference

#include <undo.h>

Inheritance diagram for UndoAction:

Inheritance graph
[legend]
List of all members.

Public Types

typedef SimObject Parent

Public Member Functions

 DECLARE_CONOBJECT (UndoAction)
 UndoAction (UTF8 *actionName=" ")
 Create a new action, asigning it a name for display in menus et cetera.
virtual ~UndoAction ()
virtual void undo ()
 Implement these methods to perform your specific undo & redo tasks.
virtual void redo ()
void addToManager (UndoManager *theMan=NULL)
 Adds the action to the undo stack of the default UndoManager, or the provided manager.

Static Public Member Functions

static void initPersistFields ()
 Register dynamic fields in a subclass of ConsoleObject.

Public Attributes

StringTableEntry mActionName
 A brief description of the action, for display in menus and the like.

Protected Attributes

UndoManagermUndoManager

Member Typedef Documentation

Reimplemented from SimObject.

Reimplemented in UndoScriptAction.


Constructor & Destructor Documentation

UndoAction::UndoAction ( UTF8 actionName = " "  ) 

Create a new action, asigning it a name for display in menus et cetera.

virtual UndoAction::~UndoAction (  )  [virtual]


Member Function Documentation

UndoAction::DECLARE_CONOBJECT ( UndoAction   ) 

static void UndoAction::initPersistFields (  )  [static]

Register dynamic fields in a subclass of ConsoleObject.

See also:
addField(), addFieldV(), addDeprecatedField(), addGroup(), endGroup()

Reimplemented from SimObject.

virtual void UndoAction::undo (  )  [inline, virtual]

Implement these methods to perform your specific undo & redo tasks.

Reimplemented in UndoScriptAction.

virtual void UndoAction::redo (  )  [inline, virtual]

Reimplemented in UndoScriptAction.

void UndoAction::addToManager ( UndoManager theMan = NULL  ) 

Adds the action to the undo stack of the default UndoManager, or the provided manager.


Member Data Documentation

A brief description of the action, for display in menus and the like.