Base class for undoable commands
Public Methods
-
virtual void undo() = 0
- Undo this command; this should save the information for a subsequent redo
-
virtual void redo() = 0
- Redo this command; this should save the information for a subsequent undo
-
virtual FXuint size() const = 0
- Return the size of the information in the undo record.
-
virtual FXString undoName() const = 0
- Name of the undo command to be shown on a button; for example, "Undo Delete"
-
virtual FXString redoName() const = 0
- Name of the redo command to be shown on a button; for example, "Redo Delete"
-
virtual ~FXCommand()
- Delete undo command
Documentation
Base class for undoable commands
- virtual void undo() = 0
-
Undo this command; this should save the
information for a subsequent redo
- virtual void redo() = 0
-
Redo this command; this should save the
information for a subsequent undo
- virtual FXuint size() const = 0
-
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 undoName() const = 0
-
Name of the undo command to be shown on a button;
for example, "Undo Delete"
- virtual FXString redoName() const = 0
-
Name of the redo command to be shown on a button;
for example, "Redo Delete"
- virtual ~FXCommand()
- Delete undo command
- This class has no child classes.
- Friends:
- class FXUndoList
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.