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

Public Member Functions

 FXCommandGroup ()
 Construct initially empty undo command group.
FXbool empty ()
 Return true if empty.
virtual void undo ()
 Undo whole command group.
virtual void redo ()
 Redo whole command group.
virtual FXuint size () const
 Return the size of the command group.
virtual ~FXCommandGroup ()
 Delete undo command and sub-commands.
- Public Member Functions inherited from FX::FXCommand
virtual FXString undoName () const
 Name of the undo command to be shown on a button; for example, "Undo Delete".
virtual FXString redoName () const
 Name of the redo command to be shown on a button; for example, "Redo Delete".
virtual FXbool canMerge () const
 Return true if this command can be merged with previous undo commands. More...
virtual FXbool mergeWith (FXCommand *command)
 Called by the undo system to try and merge the new incoming command with this command; should return true if merging was possible. More...
virtual ~FXCommand ()
 Delete undo command.
- Public Member Functions inherited from FX::FXObject
const FXchar * getClassName () const
 Get class name of some object.
FXbool isMemberOf (const FXMetaClass *metaclass) const
 Check if object is member of metaclass.
virtual long tryHandle (FXObject *sender, FXSelector sel, void *ptr)
 Try handle message safely, catching certain exceptions.
virtual long onDefault (FXObject *, FXSelector, void *)
 Called for unhandled messages.
virtual void save (FXStream &store) const
 Save object to stream.
virtual void load (FXStream &store)
 Load object from stream.
virtual ~FXObject ()
 Virtual destructor.


class FXUndoList

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.

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

Copyright © 1997-2022 Jeroen van der Zijp