#include <mitkUndoController.h>
|
static UndoModel * | GetCurrentUndoModel () |
| gives access to the currently used UndoModel Introduced to access special functions of more specific UndoModels, especially to retrieve text descriptions of the undo/redo stack More...
|
|
Definition at line 24 of file mitkUndoController.h.
◆ UndoModelMap
◆ UndoModelMapIter
◆ UndoType
Enumerator |
---|
LIMITEDLINEARUNDO | |
VERBOSE_LIMITEDLINEARUNDO | |
TREEUNDO | |
Definition at line 28 of file mitkUndoController.h.
◆ UndoController()
Constructor; Adds the new UndoType or if undoType exists , switches it to undoType; for UndoTypes see definitionmitkInteractionConst.h
◆ ~UndoController()
virtual mitk::UndoController::~UndoController |
( |
| ) |
|
|
virtual |
◆ AddUndoModel()
bool mitk::UndoController::AddUndoModel |
( |
UndoType |
undoType | ) |
|
◆ Clear()
void mitk::UndoController::Clear |
( |
| ) |
|
Clears the Undo and the RedoList.
◆ ClearRedoList()
void mitk::UndoController::ClearRedoList |
( |
| ) |
|
◆ GetCurrentUndoModel()
static UndoModel* mitk::UndoController::GetCurrentUndoModel |
( |
| ) |
|
|
static |
gives access to the currently used UndoModel Introduced to access special functions of more specific UndoModels, especially to retrieve text descriptions of the undo/redo stack
◆ GetLastGroupEventIdInList()
int mitk::UndoController::GetLastGroupEventIdInList |
( |
| ) |
|
returns the GroupEventId of the top Element in the OperationHistory of the selected UndoModel
◆ GetLastObjectEventIdInList()
int mitk::UndoController::GetLastObjectEventIdInList |
( |
| ) |
|
returns the ObjectEventId of the top Element in the OperationHistory of the selected UndoModel
◆ GetLastOfType()
returns the last specified OperationEvent in Undo-list corresponding to the given value; if nothing found, then returns nullptr
◆ Redo() [1/2]
bool mitk::UndoController::Redo |
( |
| ) |
|
calls the RedoMechanism to redo the operations undone
read the Documentation of Undo!
◆ Redo() [2/2]
bool mitk::UndoController::Redo |
( |
bool |
fine | ) |
|
calls the RedoMechanism to redo the operations undone
read the Documentation of Undo! only with the possibility to fine redo, like fine undo
◆ RedoListEmpty()
bool mitk::UndoController::RedoListEmpty |
( |
| ) |
|
returns true, if the RedoList is empty
◆ RemoveUndoModel()
bool mitk::UndoController::RemoveUndoModel |
( |
UndoType |
undoType | ) |
|
◆ SetOperationEvent()
bool mitk::UndoController::SetOperationEvent |
( |
UndoStackItem * |
operationEvent | ) |
|
◆ SwitchUndoModel()
bool mitk::UndoController::SwitchUndoModel |
( |
UndoType |
undoType | ) |
|
◆ Undo() [1/2]
bool mitk::UndoController::Undo |
( |
| ) |
|
calls the UndoMechanism to undo the last change
◆ Undo() [2/2]
bool mitk::UndoController::Undo |
( |
bool |
fine | ) |
|
calls the UndoMechanism to undo the last change
the UndoMechanism has the possibility to undo the last changes in two different ways: first it can Undo a group of operations done at last (e.g. build up a new object; Undo leads to deleting that
◆ DEFAULTUNDOMODEL
const UndoType mitk::UndoController::DEFAULTUNDOMODEL |
|
static |
The documentation for this class was generated from the following file: