Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
Undoable Class Referenceabstract

Base command class for all undoable commands. Just the virtual shell. More...

#include <CUndoable.h>

Inherits RefCountClass.

Inherited by AddObjectUndoable, AddPolygonPointUndoable, AddPolygonUndoable, DeleteObjectUndoable, DeletePolygonPointUndoable, DeletePolygonUndoable, DictItemUndoable, InsertPolygonPointUndoable, ModifyFlagsUndoable, ModifyObjectUndoable, ModifyPolygonPointUndoable, MovePolygonUndoable, MultipleUndoable, SidesListUndoable, and WBDocUndoable.

Public Member Functions

 Undoable (void)
 Create a new undoable.
 
 ~Undoable (void)
 Undoable - destructor.
 
virtual void Do (void)=0
 pure virtual.
 
virtual void Undo (void)=0
 pure virtual.
 
virtual void Redo (void)
 Redo defaults to Do().
 
void LinkNext (Undoable *pNext)
 Link another undoable to this.
 
UndoableGetNext (void)
 
- Public Member Functions inherited from RefCountClass
 RefCountClass (void)
 
 RefCountClass (const RefCountClass &)
 
void Add_Ref (void) const
 
WWINLINE void Release_Ref (void) const
 
int Num_Refs (void) const
 
virtual void Delete_This (void)
 

Protected Attributes

UndoablemNext
 

Additional Inherited Members

- Static Public Member Functions inherited from RefCountClass
static int Total_Refs (void)
 
static RefCountClassAdd_Active_Ref (RefCountClass *obj)
 
static RefCountClassSet_Ref_Owner (RefCountClass *obj, char *file, int line)
 
static void Remove_Active_Ref (RefCountClass *obj)
 
static bool Validate_Active_Ref (RefCountClass *obj)
 
- Public Attributes inherited from RefCountClass
RefCountNodeClass ActiveRefNode
 
ActiveRefStruct ActiveRefInfo
 
- Static Public Attributes inherited from RefCountClass
static RefCountListClass ActiveRefList
 
- Protected Member Functions inherited from RefCountClass
virtual ~RefCountClass (void)
 

Detailed Description

Base command class for all undoable commands. Just the virtual shell.

Definition at line 41 of file CUndoable.h.

Constructor & Destructor Documentation

◆ Undoable()

Undoable::Undoable ( void )

Create a new undoable.

Definition at line 59 of file CUndoable.cpp.

◆ ~Undoable()

Undoable::~Undoable ( void )

Undoable - destructor.

Definition at line 50 of file CUndoable.cpp.

Member Function Documentation

◆ Do()

◆ GetNext()

Undoable * Undoable::GetNext ( void )
inline

Definition at line 57 of file CUndoable.h.

◆ LinkNext()

void Undoable::LinkNext ( Undoable * pNext)

Link another undoable to this.

Definition at line 67 of file CUndoable.cpp.

◆ Redo()

void Undoable::Redo ( void )
virtual

Redo defaults to Do().

Reimplemented in ModifyFlagsUndoable, ModifyObjectUndoable, MultipleUndoable, and WBDocUndoable.

Definition at line 75 of file CUndoable.cpp.

◆ Undo()

Member Data Documentation

◆ mNext

Undoable* Undoable::mNext
protected

Definition at line 44 of file CUndoable.h.


The documentation for this class was generated from the following files: