Inheritance diagram for CP_UndoAction:

Public Member Functions | |
Constructor / Destructor | |
| CP_UndoAction (const CP_String &inMenuText) | |
| Constructor. | |
| ~CP_UndoAction () throw () | |
| Destructor. | |
Undo / Redo | |
| virtual bool | DoUndo () |
| virtual bool | DoRedo () |
Edit Menu | |
| CP_String | GetMenuText () |
| void | SetMenuText (const CP_String &inString) |
Perform | |
| virtual void | Finish (CP_UndoAction *inCommand) |
Testers | |
| virtual bool | IsDone () |
| virtual bool | IsUndoable () |
| virtual bool | IsRedoable () |
Protected Member Functions | |
Undo / Redo | |
| virtual bool | UndoSelf () |
| virtual bool | RedoSelf () |
Perform | |
| virtual void | FinishSelf (CP_UndoAction *) |
Setters | |
| void | SetIsUndoable (bool isUndoable=true) |
| void | SetIsRedoable (bool isRedoable=true) |
Protected Attributes | |
| CP_String | fMenuText |
| bool | fDone |
| bool | fIsUndoable |
| bool | fIsRedoable |
|
|
Constructor.
|
|
|
Destructor. |
|
|
Undo ourselves. Return true if we were able to handle the undo. This calls UndoSelf() which is the method to override to provide undo in a command. |
|
|
Redo ourselves. Return true if we were able to handle the redo. This calls RedoSelf() which is the method to override to provide redo in a command. Reimplemented from CP_Action. |
|
|
Return the menu text to be displayed for this command.
|
|
|
Sets the menu text to be displayed for this command.
|
|
|
Called just before this command is deleted, allow the command to finish any needed housekeeping before being deleted.
|
|
|
Return true if this command has been done.
|
|
|
Return true if this action is undoable.
|
|
|
Return true if this action is redoable.
|
|
|
Undo the command. Subclasses must override.
|
|
|
Redo the command. Subclasses must override.
|
|
|
Finish the action. This is called just before the action is deleted.
|
|
|
Set the flag indicating if our operation is undoable. |
|
|
Set the flag indicating if our operation is redoable. |
|
|
|
|
|
Text displayed in the undo menu item. |
|
|
Flag to indicate if the command is finished. |
|
|
Flag to indicate if the command is undoable. |
1.4.0