CS::EditorApp::iActionManager Struct Reference
Manages all undoable actions. More...
#include <ieditor/actionmanager.h>
Inheritance diagram for CS::EditorApp::iActionManager:

Public Member Functions | |
| virtual bool | Do (iAction *action)=0 |
| Perform an action and record it in the undo history, erasing the redo history in the process. | |
| virtual const iAction * | PeekRedo () const =0 |
| Get the last redone action or 0 if none. | |
| virtual const iAction * | PeekUndo () const =0 |
| Get the last undone action or 0 if none. | |
| virtual bool | Redo ()=0 |
| Redo the last undone action. | |
| virtual bool | Undo ()=0 |
| Undo the last action. | |
Detailed Description
Manages all undoable actions.
Definition at line 45 of file actionmanager.h.
Member Function Documentation
| virtual bool CS::EditorApp::iActionManager::Do | ( | iAction * | action | ) | [pure virtual] |
Perform an action and record it in the undo history, erasing the redo history in the process.
- Returns:
- true if the action can be undone, false otherwise
| virtual const iAction* CS::EditorApp::iActionManager::PeekRedo | ( | ) | const [pure virtual] |
Get the last redone action or 0 if none.
| virtual const iAction* CS::EditorApp::iActionManager::PeekUndo | ( | ) | const [pure virtual] |
Get the last undone action or 0 if none.
| virtual bool CS::EditorApp::iActionManager::Redo | ( | ) | [pure virtual] |
Redo the last undone action.
- Returns:
- true if an action was redone, false if there were no actions to redo.
| virtual bool CS::EditorApp::iActionManager::Undo | ( | ) | [pure virtual] |
Undo the last action.
- Returns:
- true if an action was undone, false if there were no actions to undo.
The documentation for this struct was generated from the following file:
- ieditor/actionmanager.h
Generated for Crystal Space 2.1 by doxygen 1.6.1
