Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::VerboseLimitedLinearUndo Class Reference

A limited linear undo model providing GUI elements with stack status information. More...

#include <mitkVerboseLimitedLinearUndo.h>

Inheritance diagram for mitk::VerboseLimitedLinearUndo:
Collaboration diagram for mitk::VerboseLimitedLinearUndo:

Public Types

typedef VerboseLimitedLinearUndo Self
 
typedef LimitedLinearUndo Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef std::pair< int, std::string > StackDescriptionItem
 
typedef std::vector< StackDescriptionItemStackDescription
 
- Public Types inherited from mitk::LimitedLinearUndo
typedef std::vector< UndoStackItem * > UndoContainer
 
typedef std::vector< UndoStackItem * >::reverse_iterator UndoContainerRevIter
 
typedef LimitedLinearUndo Self
 
typedef UndoModel Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
- Public Types inherited from mitk::UndoModel
typedef UndoModel Self
 
typedef itk::Object Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 

Public Member Functions

virtual std::vector< std::string > GetClassHierarchy () const override
 
virtual const char * GetClassName () const
 
Pointer Clone () const
 
virtual bool SetOperationEvent (UndoStackItem *undoStackItem) override
 a list of pairs (int,string), representing a stack with ObjectEventIDs and descriptions More...
 
virtual StackDescription GetUndoDescriptions ()
 
virtual StackDescription GetRedoDescriptions ()
 
- Public Member Functions inherited from mitk::LimitedLinearUndo
Pointer Clone () const
 
virtual bool Undo () override
 Undoes the last changes. More...
 
virtual bool Undo (bool) override
 
virtual bool Undo (int oeid)
 Undoes all changes until ObjectEventID oeid. More...
 
virtual bool Redo () override
 Undoes the last changes. More...
 
virtual bool Redo (bool) override
 
virtual bool Redo (int oeid)
 Redoes all changes until ObjectEventID oeid. More...
 
virtual void Clear () override
 Clears UndoList and RedoList. More...
 
virtual void ClearRedoList () override
 Clears the RedoList. More...
 
virtual bool RedoListEmpty () override
 True, if RedoList is empty. More...
 
virtual int GetLastObjectEventIdInList () override
 Returns the ObjectEventId of the top element in the OperationHistory. More...
 
virtual int GetLastGroupEventIdInList () override
 Returns the GroupEventId of the top element in the OperationHistory. More...
 
virtual OperationEventGetLastOfType (OperationActor *destination, OperationType opType) override
 Returns the last specified OperationEvent in Undo-list corresponding to the given values; if nothing found, then returns NULL. More...
 

Static Public Member Functions

static const char * GetStaticNameOfClass ()
 
static Pointer New ()
 
- Static Public Member Functions inherited from mitk::LimitedLinearUndo
static const char * GetStaticNameOfClass ()
 
static Pointer New ()
 
- Static Public Member Functions inherited from mitk::UndoModel
static const char * GetStaticNameOfClass ()
 

Protected Member Functions

 VerboseLimitedLinearUndo ()
 
virtual ~VerboseLimitedLinearUndo ()
 
- Protected Member Functions inherited from mitk::LimitedLinearUndo
 LimitedLinearUndo ()
 
virtual ~LimitedLinearUndo ()
 
void ClearList (UndoContainer *list)
 
- Protected Member Functions inherited from mitk::UndoModel
 UndoModel ()
 
virtual ~UndoModel ()
 

Additional Inherited Members

- Protected Attributes inherited from mitk::LimitedLinearUndo
UndoContainer m_UndoList
 
UndoContainer m_RedoList
 

Detailed Description

A limited linear undo model providing GUI elements with stack status information.

Basically does the same, as LimitedLinearUndo class, but it allows you to retrieve a string list, which describes the undo stack or the redo stack. This can be used for display by GUI elements.

Definition at line 39 of file mitkVerboseLimitedLinearUndo.h.

Member Typedef Documentation

typedef std::pair<int, std::string> mitk::VerboseLimitedLinearUndo::StackDescriptionItem

Definition at line 45 of file mitkVerboseLimitedLinearUndo.h.

Constructor & Destructor Documentation

mitk::VerboseLimitedLinearUndo::VerboseLimitedLinearUndo ( )
protected

Definition at line 20 of file mitkVerboseLimitedLinearUndo.cpp.

mitk::VerboseLimitedLinearUndo::~VerboseLimitedLinearUndo ( )
protectedvirtual

Definition at line 24 of file mitkVerboseLimitedLinearUndo.cpp.

Member Function Documentation

Pointer mitk::VerboseLimitedLinearUndo::Clone ( ) const
virtual std::vector<std::string> mitk::VerboseLimitedLinearUndo::GetClassHierarchy ( ) const
inlineoverridevirtual

Reimplemented from mitk::LimitedLinearUndo.

Definition at line 42 of file mitkVerboseLimitedLinearUndo.h.

virtual const char* mitk::VerboseLimitedLinearUndo::GetClassName ( ) const
virtual

Reimplemented from mitk::LimitedLinearUndo.

mitk::VerboseLimitedLinearUndo::StackDescription mitk::VerboseLimitedLinearUndo::GetRedoDescriptions ( )
virtual

Definition at line 115 of file mitkVerboseLimitedLinearUndo.cpp.

static const char* mitk::VerboseLimitedLinearUndo::GetStaticNameOfClass ( )
inlinestatic

Definition at line 42 of file mitkVerboseLimitedLinearUndo.h.

mitk::VerboseLimitedLinearUndo::StackDescription mitk::VerboseLimitedLinearUndo::GetUndoDescriptions ( )
virtual

Definition at line 47 of file mitkVerboseLimitedLinearUndo.cpp.

static Pointer mitk::VerboseLimitedLinearUndo::New ( )
static
bool mitk::VerboseLimitedLinearUndo::SetOperationEvent ( UndoStackItem undoStackItem)
overridevirtual

a list of pairs (int,string), representing a stack with ObjectEventIDs and descriptions

Reimplemented from mitk::LimitedLinearUndo.

Definition at line 28 of file mitkVerboseLimitedLinearUndo.cpp.


The documentation for this class was generated from the following files: