#include <TUndo.h>
Public Member Functions | |
| TUndo () | |
| Constructor. | |
| ~TUndo () | |
| void | setbase (TVector *_base) |
| Set the base TVector. | |
| void | start (wxString _msg=_T("")) |
| Start the undo record, with action name. | |
| void | stop () |
| End the undo record. | |
| void | abort () |
| Abort the undo record. | |
| void | pop () |
| Remove the last undo record. | |
| bool | canUndo () |
| Is there undo information available? | |
| wxString | getLastMessage () |
| Returns the name of the last action with undo information. | |
| void | remember (wxString _msg) |
| Remember the current state and action name. | |
| void | clear () |
| Remove all undo information. | |
| TUndo & | operator= (TUndo &u) |
Private Attributes | |
| wxArrayTVector | mem |
| The old TVector objects. | |
| wxArrayString | msg |
| The action names. | |
| int | cnt |
| Internam counter. | |
| TVector * | base |
| Pointer to the base TVector object. | |
|
|
Constructor.
|
|
|
|
|
|
Abort the undo record.
|
|
|
Is there undo information available?
|
|
|
Remove all undo information.
|
|
|
Returns the name of the last action with undo information.
|
|
|
|
|
|
Remove the last undo record.
|
|
|
Remember the current state and action name.
|
|
|
Set the base TVector.
|
|
|
Start the undo record, with action name.
|
|
|
End the undo record.
|
|
|
Pointer to the base TVector object.
|
|
|
Internam counter.
|
|
|
The old TVector objects.
|
|
|
The action names.
|
1.4.1