Stack pointer for the UndoManager. More...
#include <UndoManager.hh>

Public Member Functions | |
| void | restore () |
| Undo all modifications added after this state was saved. | |
Protected Member Functions | |
| UndoState (UndoManager &um, unsigned pos) | |
| Constructor. | |
Private Attributes | |
| UndoManager & | um |
| The associated undo manager. | |
| const unsigned | pos |
| Stack pointer for the associated undo manager. | |
Friends | |
| class | UndoManager |
| The UndoManager may create objects of this class. | |
Stack pointer for the UndoManager.
This encapsulates the current state of the UndoManager. It represents a snapshot of its action stack and allows undoing all actions that were added later in order to restore the state corresponding to this snapshot.
Definition at line 65 of file UndoManager.hh.
| bande::UndoState::UndoState | ( | UndoManager & | um, | |
| unsigned | pos | |||
| ) | [inline, protected] |
Constructor.
Access to this constructor is only allowed from within the UndoManager. Other code must ask UndoManager::save() to get an UndoState object.
| um | the undo manager associated with this state. | |
| pos | the current stack pointer of this undo manager. |
Definition at line 83 of file UndoManager.hh.
1.6.0