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

FX::FXCommandGroup Class Reference

Group of undoable commands. More...

#include <FXUndoList.h>

Inheritance diagram for FX::FXCommandGroup:

FX::FXCommand FX::FXObject FX::FXUndoList List of all members.

Public Member Functions

 FXCommandGroup ()
FXbool empty ()
virtual void undo ()
virtual void redo ()
virtual FXuint size () const
virtual ~FXCommandGroup ()

Detailed Description

Group of undoable commands.

A group may comprise multiple individual actions which together undo (or redo) a larger operation. Even larger operations may be built by nesting multiple undo groups.


Constructor & Destructor Documentation

FX::FXCommandGroup::FXCommandGroup  )  [inline]
 

Construct initially empty undo command group.

virtual FX::FXCommandGroup::~FXCommandGroup  )  [virtual]
 

Delete undo command and sub-commands.


Member Function Documentation

FXbool FX::FXCommandGroup::empty  )  [inline]
 

Return TRUE if empty.

virtual void FX::FXCommandGroup::undo  )  [virtual]
 

Undo whole command group.

Implements FX::FXCommand.

Reimplemented in FX::FXUndoList.

virtual void FX::FXCommandGroup::redo  )  [virtual]
 

Redo whole command group.

Implements FX::FXCommand.

Reimplemented in FX::FXUndoList.

virtual FXuint FX::FXCommandGroup::size  )  const [virtual]
 

Return the size of the command group.

Reimplemented from FX::FXCommand.

Reimplemented in FX::FXUndoList.

Copyright © 1997-2005 Jeroen van der Zijp