UndoSaveStateTracker Class Reference

#include <mainframe.h>

Inheritance diagram for UndoSaveStateTracker:
Inheritance graph
[legend]
Collaboration diagram for UndoSaveStateTracker:
Collaboration graph
[legend]

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

Detailed Description

Definition at line 50 of file mainframe.h.


Constructor & Destructor Documentation

UndoSaveStateTracker::UndoSaveStateTracker (  )  [inline]

Definition at line 61 of file mainframe.h.


Member Function Documentation

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]

Field Documentation

unsigned int UndoSaveStateTracker::m_redoSteps [private]

Definition at line 53 of file mainframe.h.

Definition at line 54 of file mainframe.h.

unsigned int UndoSaveStateTracker::m_undoSteps [private]

Definition at line 52 of file mainframe.h.


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

Generated by  doxygen 1.6.2