The Undo List class manages a list of undoable commands
Inheritance:
Public Methods
-
FXUndoList()
- Make new empty undo list, initially unmarked
-
void cut()
- Cut the redo list
-
FXbool add(FXCommand* command, FXbool doit=FALSE)
- Add new command, executing if desired
-
FXbool undo()
- Undo last command
-
FXbool redo()
- Redo next command
-
FXbool undoAll()
- Undo all commands
-
FXbool redoAll()
- Redo all commands
-
FXbool revert()
- Revert to marked
-
FXbool canUndo() const
- Can we undo more commands
-
FXbool canRedo() const
- Can we redo more commands
-
FXbool canRevert() const
- Can revert to marked
-
FXCommand* current() const
- Current undo command
-
FXint undoCount() const
- Number of undo records
-
FXuint undoSize() const
- Size of undo information
-
void clear()
- Clear list, and unmark all states
-
void trimCount(FXint nc)
- Trim undo list down to at most nc commands
-
void trimSize(FXuint sz)
- Trim undo list down to at most size sz
-
void mark()
- Mark the current state of the undo list, which is initially unmarked.
-
void unmark()
- Unmark all states in the undo list
-
FXbool marked() const
- Check if the current state was marked, if the application has returned to the previously marked state
-
~FXUndoList()
- Clean up
Public Methods
-
const FXchar* getClassName() const
-
FXbool isMemberOf(const FXMetaClass* metaclass) const
-
virtual void save(FXStream& store) const
-
virtual void load(FXStream& store)
Documentation
The Undo List class manages a list of undoable commands
- FXUndoList()
- Make new empty undo list, initially unmarked
- void cut()
- Cut the redo list
- FXbool add(FXCommand* command, FXbool doit=FALSE)
- Add new command, executing if desired
- FXbool undo()
- Undo last command
- FXbool redo()
- Redo next command
- FXbool undoAll()
- Undo all commands
- FXbool redoAll()
- Redo all commands
- FXbool revert()
- Revert to marked
- FXbool canUndo() const
- Can we undo more commands
- FXbool canRedo() const
- Can we redo more commands
- FXbool canRevert() const
- Can revert to marked
- FXCommand* current() const
- Current undo command
- FXint undoCount() const
- Number of undo records
- FXuint undoSize() const
- Size of undo information
- void clear()
- Clear list, and unmark all states
- void trimCount(FXint nc)
- Trim undo list down to at most nc commands
- void trimSize(FXuint sz)
- Trim undo list down to at most size sz
- void mark()
-
Mark the current state of the undo list, which is initially unmarked.
There can be only one active mark at any time.
- void unmark()
-
Unmark all states in the undo list
- FXbool marked() const
-
Check if the current state was marked, if the application has returned
to the previously marked state
- ~FXUndoList()
- Clean up
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.