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

MultipleUndoable. More...

#include <CUndoable.h>

Inherits Undoable.

Public Member Functions

 MultipleUndoable ()
 
 ~MultipleUndoable (void)
 
void addUndoable (Undoable *undoable)
 
virtual void Do (void)
 Do all the list's actions.
 
virtual void Undo (void)
 pure virtual.
 
virtual void Redo (void)
 Redo all the list's actions.
 
- Public Member Functions inherited from Undoable
 Undoable (void)
 Create a new undoable.
 
 ~Undoable (void)
 Undoable - destructor.
 
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

Undoablem_undoableList
 
- Protected Attributes inherited from Undoable
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

MultipleUndoable.

An undoable that doesn't do anything; it just consolidates a number of other Undoables in a single logical undo step.

Definition at line 397 of file CUndoable.h.

Constructor & Destructor Documentation

◆ MultipleUndoable()

MultipleUndoable::MultipleUndoable ( void )

Definition at line 1366 of file CUndoable.cpp.

◆ ~MultipleUndoable()

MultipleUndoable::~MultipleUndoable ( void )

Definition at line 1374 of file CUndoable.cpp.

Member Function Documentation

◆ addUndoable()

void MultipleUndoable::addUndoable ( Undoable * undoable)

Add other undoables in the order you would want them UNdone; e.g. in the reverse order you want them done The MultipleUndoable object will then own the pointers.

Definition at line 1385 of file CUndoable.cpp.

◆ Do()

void MultipleUndoable::Do ( void )
virtual

Do all the list's actions.

Implements Undoable.

Definition at line 1396 of file CUndoable.cpp.

◆ Redo()

void MultipleUndoable::Redo ( void )
virtual

Redo all the list's actions.

Reimplemented from Undoable.

Definition at line 1435 of file CUndoable.cpp.

◆ Undo()

void MultipleUndoable::Undo ( void )
virtual

pure virtual.

Implements Undoable.

Definition at line 1426 of file CUndoable.cpp.

Member Data Documentation

◆ m_undoableList

Undoable* MultipleUndoable::m_undoableList
protected

Definition at line 400 of file CUndoable.h.


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