Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXCommand Class Reference

Base class for undoable commands.

#include <FXUndoList.h>

List of all members.

Public Methods

virtual void undo ()=0
virtual void redo ()=0
virtual FXuint size () const=0
virtual FXString undoName () const=0
virtual FXString redoName () const=0
virtual ~FXCommand ()
 Delete undo command.


Friends

class FXUndoList


Member Function Documentation

virtual void FX::FXCommand::undo   [pure virtual]
 

Undo this command; this should save the information for a subsequent redo.

virtual void FX::FXCommand::redo   [pure virtual]
 

Redo this command; this should save the information for a subsequent undo.

virtual FXuint FX::FXCommand::size   const [pure virtual]
 

Return the size of the information in the undo record. The undo list may be trimmed to limit memory usage to a certain limit.

virtual FXString FX::FXCommand::undoName   const [pure virtual]
 

Name of the undo command to be shown on a button; for example, "Undo Delete".

virtual FXString FX::FXCommand::redoName   const [pure virtual]
 

Name of the redo command to be shown on a button; for example, "Redo Delete".