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. | |
| Undoable * | GetNext (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 | |
| Undoable * | mNext |
Additional Inherited Members | |
Static Public Member Functions inherited from RefCountClass | |
| static int | Total_Refs (void) |
| static RefCountClass * | Add_Active_Ref (RefCountClass *obj) |
| static RefCountClass * | Set_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) |
Base command class for all undoable commands. Just the virtual shell.
Definition at line 41 of file CUndoable.h.
| Undoable::Undoable | ( | void | ) |
Create a new undoable.
Definition at line 59 of file CUndoable.cpp.
| Undoable::~Undoable | ( | void | ) |
Undoable - destructor.
Definition at line 50 of file CUndoable.cpp.
|
pure virtual |
pure virtual.
Implemented in AddObjectUndoable, AddPolygonPointUndoable, AddPolygonUndoable, DeleteObjectUndoable, DeletePolygonPointUndoable, DeletePolygonUndoable, DictItemUndoable, InsertPolygonPointUndoable, ModifyFlagsUndoable, ModifyObjectUndoable, ModifyPolygonPointUndoable, MovePolygonUndoable, MultipleUndoable, SidesListUndoable, and WBDocUndoable.
|
inline |
Definition at line 57 of file CUndoable.h.
| void Undoable::LinkNext | ( | Undoable * | pNext | ) |
Link another undoable to this.
Definition at line 67 of file CUndoable.cpp.
|
virtual |
Redo defaults to Do().
Reimplemented in ModifyFlagsUndoable, ModifyObjectUndoable, MultipleUndoable, and WBDocUndoable.
Definition at line 75 of file CUndoable.cpp.
|
pure virtual |
pure virtual.
Implemented in AddObjectUndoable, AddPolygonPointUndoable, AddPolygonUndoable, DeleteObjectUndoable, DeletePolygonPointUndoable, DeletePolygonUndoable, DictItemUndoable, InsertPolygonPointUndoable, ModifyFlagsUndoable, ModifyObjectUndoable, ModifyPolygonPointUndoable, MovePolygonUndoable, MultipleUndoable, SidesListUndoable, and WBDocUndoable.
|
protected |
Definition at line 44 of file CUndoable.h.