VCF::UndoRedoEvent Class Reference
the event for the UndoRedoStack operations. More...
#include <vcf/ApplicationKit/UndoRedoEvent.h>
Inheritance diagram for VCF::UndoRedoEvent:

Public Member Functions | |
| UndoRedoEvent (Object *source, const uint32 &eventType, Command *command=NULL) | |
| constructors | |
| UndoRedoEvent (const UndoRedoEvent &rhs) | |
| virtual | ~UndoRedoEvent () |
| UndoRedoEvent & | operator= (const UndoRedoEvent &rhs) |
| copy operator | |
| Command * | getCommand () |
| the command associated to the event. | |
| void | setCommand (Command *command) |
| sets the command to be associated to the event. | |
| bool | getAllowsUndo () |
| void | setAllowsUndo (const bool &allowsUndo) |
| if the user wants to bypass the undo action of the UndoRedoStack instance, he needs to assign this value as false. | |
| bool | getAllowsRedo () |
| void | setAllowsRedo (const bool &allowsRedo) |
| if the user wants to bypass the redo action of the UndoRedoStack instance, he needs to assign this value as false. | |
| virtual Object * | clone (bool deep=false) |
| creates a new copy of this instance. | |
Protected Attributes | |
| Command * | command_ |
| the command, potentially undoable, associated to this event. | |
| bool | allowUndo_ |
| flag to know if the user lets the default undo action of the UndoRedoStack instance to be performed. | |
| bool | allowRedo_ |
| flag to know if the user lets the default redo action of the UndoRedoStack instance to be performed. | |
| bool | allowExecute_ |
| allow for execution currently unused | |
Detailed Description
the event for the UndoRedoStack operations.this event is mainly used to bypass the default behaviour performed by the UndoUndoStack instance involved. In this case the user needs to add an handler for this event to the UndoCommand or RedoCommand delegate of the UndoUndoStack instance, and setAllowsUndo(false) or setAllowsRedo(false) inside this handler.
Constructor & Destructor Documentation
|
||||||||||||||||
|
constructors
|
|
|
|
|
|
|
Member Function Documentation
|
|
creates a new copy of this instance.
|
|
|
|
|
|
|
|
|
the command associated to the event.
|
|
|
copy operator
|
|
|
if the user wants to bypass the redo action of the UndoRedoStack instance, he needs to assign this value as false.
|
|
|
if the user wants to bypass the undo action of the UndoRedoStack instance, he needs to assign this value as false.
|
|
|
sets the command to be associated to the event.
|
Member Data Documentation
|
|
allow for execution currently unused
|
|
|
flag to know if the user lets the default redo action of the UndoRedoStack instance to be performed.
|
|
|
flag to know if the user lets the default undo action of the UndoRedoStack instance to be performed.
|
|
|
the command, potentially undoable, associated to this event.
|
The documentation for this class was generated from the following file:
- vcf/ApplicationKit/UndoRedoEvent.h
