Public Member Functions | Protected Member Functions

mitk::UndoModel Class Reference
[Undo Classes]

superclass for all UndoModels More...

#include <mitkUndoModel.h>

Inheritance diagram for mitk::UndoModel:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 mitkClassMacro (UndoModel, itk::Object)
virtual bool SetOperationEvent (UndoStackItem *stackItem)=0
virtual bool Undo ()=0
virtual bool Undo (bool fine)=0
virtual bool Redo ()=0
virtual bool Redo (bool fine)=0
virtual void Clear ()=0
 clears undo and Redolist
virtual void ClearRedoList ()=0
 clears the RedoList
virtual bool RedoListEmpty ()=0
 true if RedoList is empty
virtual int GetLastObjectEventIdInList ()=0
 returns the ObjectEventId of the top Element in the OperationHistory of the selected UndoModel
virtual int GetLastGroupEventIdInList ()=0
 returns the GroupEventId of the top Element in the OperationHistory of the selected UndoModel
virtual OperationEventGetLastOfType (OperationActor *destination, OperationType opType)=0
 returns the last specified OperationEvent in Undo-list corresponding to the given values; if nothing found, then returns NULL

Protected Member Functions

 UndoModel ()
virtual ~UndoModel ()

Detailed Description

superclass for all UndoModels

all necessary operations, that all UndoModels share.

Definition at line 37 of file mitkUndoModel.h.


Constructor & Destructor Documentation

mitk::UndoModel::UndoModel (  ) [inline, protected]

Definition at line 84 of file mitkUndoModel.h.

{};
virtual mitk::UndoModel::~UndoModel (  ) [inline, protected, virtual]

Definition at line 85 of file mitkUndoModel.h.

{};

Member Function Documentation

virtual void mitk::UndoModel::Clear (  ) [pure virtual]

clears undo and Redolist

Implemented in mitk::LimitedLinearUndo.

virtual void mitk::UndoModel::ClearRedoList (  ) [pure virtual]

clears the RedoList

Implemented in mitk::LimitedLinearUndo.

virtual int mitk::UndoModel::GetLastGroupEventIdInList (  ) [pure virtual]

returns the GroupEventId of the top Element in the OperationHistory of the selected UndoModel

Implemented in mitk::LimitedLinearUndo.

virtual int mitk::UndoModel::GetLastObjectEventIdInList (  ) [pure virtual]

returns the ObjectEventId of the top Element in the OperationHistory of the selected UndoModel

Implemented in mitk::LimitedLinearUndo.

virtual OperationEvent* mitk::UndoModel::GetLastOfType ( OperationActor destination,
OperationType  opType 
) [pure virtual]

returns the last specified OperationEvent in Undo-list corresponding to the given values; if nothing found, then returns NULL

needed to get the old Position of an Element for declaring an UndoOperation

Implemented in mitk::LimitedLinearUndo.

mitk::UndoModel::mitkClassMacro ( UndoModel  ,
itk::Object   
)
virtual bool mitk::UndoModel::Redo (  ) [pure virtual]
virtual bool mitk::UndoModel::Redo ( bool  fine ) [pure virtual]

Implemented in mitk::LimitedLinearUndo.

virtual bool mitk::UndoModel::RedoListEmpty (  ) [pure virtual]

true if RedoList is empty

Implemented in mitk::LimitedLinearUndo.

virtual bool mitk::UndoModel::SetOperationEvent ( UndoStackItem stackItem ) [pure virtual]
virtual bool mitk::UndoModel::Undo (  ) [pure virtual]
virtual bool mitk::UndoModel::Undo ( bool  fine ) [pure virtual]

Implemented in mitk::LimitedLinearUndo.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines