#include <mainframe.h>
Public Member Functions | |
UndoSaveStateTracker () | |
void | clear () |
called whenever tracker system should be reseted | |
void | clearRedo () |
called whenever redo states should be reseted | |
void | begin () |
called right before a new action is called, should be used to save current state (e.g. in an UndoMememto) | |
void | undo () |
called whenever an older state should be retrieved | |
void | redo () |
called whenever a previously recorded action is about to be replayed to regenerate a state after undo | |
void | storeState (void) |
Private Member Functions | |
void | UpdateSensitiveStates (void) |
void | increaseUndo () |
void | increaseRedo () |
void | checkUndoLevel () |
Private Attributes | |
unsigned int | m_undoSteps |
unsigned int | m_redoSteps |
int | m_savedStep |
Definition at line 50 of file mainframe.h.
UndoSaveStateTracker::UndoSaveStateTracker | ( | ) | [inline] |
Definition at line 61 of file mainframe.h.
void UndoSaveStateTracker::begin | ( | ) | [virtual] |
called right before a new action is called, should be used to save current state (e.g. in an UndoMememto)
Implements UndoTracker.
void UndoSaveStateTracker::checkUndoLevel | ( | ) | [private] |
void UndoSaveStateTracker::clear | ( | ) | [virtual] |
called whenever tracker system should be reseted
Implements UndoTracker.
void UndoSaveStateTracker::clearRedo | ( | ) | [virtual] |
called whenever redo states should be reseted
Implements UndoTracker.
void UndoSaveStateTracker::increaseRedo | ( | ) | [private] |
void UndoSaveStateTracker::increaseUndo | ( | ) | [private] |
void UndoSaveStateTracker::redo | ( | ) | [virtual] |
called whenever a previously recorded action is about to be replayed to regenerate a state after undo
Implements UndoTracker.
void UndoSaveStateTracker::storeState | ( | void | ) |
void UndoSaveStateTracker::undo | ( | ) | [virtual] |
called whenever an older state should be retrieved
Implements UndoTracker.
void UndoSaveStateTracker::UpdateSensitiveStates | ( | void | ) | [private] |
unsigned int UndoSaveStateTracker::m_redoSteps [private] |
Definition at line 53 of file mainframe.h.
int UndoSaveStateTracker::m_savedStep [private] |
Definition at line 54 of file mainframe.h.
unsigned int UndoSaveStateTracker::m_undoSteps [private] |
Definition at line 52 of file mainframe.h.