13 #ifndef mitkUndoController_h
14 #define mitkUndoController_h
30 LIMITEDLINEARUNDO = 10,
31 VERBOSE_LIMITEDLINEARUNDO = 11,
abstract class, that can be used by Undo to undo an operation.
Represents a pair of operations: undo and the according redo.
bool Undo()
calls the UndoMechanism to undo the last change
bool Redo(bool fine)
calls the RedoMechanism to redo the operations undone
void Clear()
Clears the Undo and the RedoList.
bool RedoListEmpty()
returns true, if the RedoList is empty
int GetLastObjectEventIdInList()
returns the ObjectEventId of the top Element in the OperationHistory of the selected UndoModel
int GetLastGroupEventIdInList()
returns the GroupEventId of the top Element in the OperationHistory of the selected UndoModel
std::map< UndoType, UndoModel::Pointer > UndoModelMap
bool Undo(bool fine)
calls the UndoMechanism to undo the last change
bool Redo()
calls the RedoMechanism to redo the operations undone
void ClearRedoList()
Clears the RedoList.
static UndoModel * GetCurrentUndoModel()
gives access to the currently used UndoModel Introduced to access special functions of more specific ...
std::map< UndoType, UndoModel::Pointer >::iterator UndoModelMapIter
bool SwitchUndoModel(UndoType undoType)
virtual ~UndoController()
UndoController(UndoType undoType=DEFAULTUNDOMODEL)
bool SetOperationEvent(UndoStackItem *operationEvent)
static const UndoType DEFAULTUNDOMODEL
Default UndoModel to use.
bool RemoveUndoModel(UndoType undoType)
OperationEvent * GetLastOfType(OperationActor *destination, OperationType opType)
returns the last specified OperationEvent in Undo-list corresponding to the given value; if nothing f...
bool AddUndoModel(UndoType undoType)
superclass for all UndoModels
Represents an entry of the undo or redo stack.
Find image slices visible on a given plane.