bande::UndoState Class Reference

Stack pointer for the UndoManager. More...

#include <UndoManager.hh>

Collaboration diagram for bande::UndoState:
Collaboration graph
[legend]

List of all members.

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

UndoManagerum
 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.

Detailed Description

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.


Constructor & Destructor Documentation

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.

Parameters:
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.


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

Generated on Fri Aug 21 08:17:19 2009 for bande by  doxygen 1.6.0