Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

TUndo Class Reference

This class stores TVector objects for the undo function. More...

#include <TUndo.h>

List of all members.

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.
TUndooperator= (TUndo &u)

Private Attributes

wxArrayTVector mem
 The old TVector objects.
wxArrayString msg
 The action names.
int cnt
 Internam counter.
TVectorbase
 Pointer to the base TVector object.


Detailed Description

This class stores TVector objects for the undo function.


Constructor & Destructor Documentation

TUndo::TUndo  ) 
 

Constructor.

TUndo::~TUndo  )  [inline]
 


Member Function Documentation

void TUndo::abort  ) 
 

Abort the undo record.

bool TUndo::canUndo  ) 
 

Is there undo information available?

void TUndo::clear  ) 
 

Remove all undo information.

wxString TUndo::getLastMessage  ) 
 

Returns the name of the last action with undo information.

TUndo & TUndo::operator= TUndo u  ) 
 

void TUndo::pop  ) 
 

Remove the last undo record.

void TUndo::remember wxString  _msg  ) 
 

Remember the current state and action name.

void TUndo::setbase TVector _base  ) 
 

Set the base TVector.

void TUndo::start wxString  _msg = _T("")  ) 
 

Start the undo record, with action name.

void TUndo::stop  ) 
 

End the undo record.


Member Data Documentation

TVector* TUndo::base [private]
 

Pointer to the base TVector object.

int TUndo::cnt [private]
 

Internam counter.

wxArrayTVector TUndo::mem [private]
 

The old TVector objects.

wxArrayString TUndo::msg [private]
 

The action names.


The documentation for this class was generated from the following files:
Generated on Fri Aug 11 16:19:49 2006 for GENtle by  doxygen 1.4.1