Represents an entry of the undo or redo stack.
More...
#include <mitkOperationEvent.h>
|
static int | GetCurrGroupEventId () |
| For combining operations in groups. More...
|
|
static int | GetCurrObjectEventId () |
| For combining operations in Objects. More...
|
|
static void | IncCurrObjectEventId () |
| Increases the current ObjectEventId For example if a button click generates operations the ObjectEventId has to be incremented to be able to undo. More...
|
|
static void | IncCurrGroupEventId () |
| Increases the current GroupEventId For example if a button click generates operations the GroupEventId has to be incremented to be able to undo. More...
|
|
|
bool | m_Reversed |
| true, if operation and undooperation have been swapped/changed More...
|
|
Represents an entry of the undo or redo stack.
This basic entry includes a textual description of the item and a pair of IDs. Static member functions handle creation and incrementing of these IDs.
The GroupEventID is intended for logical grouping of several related Operations. Currently this is used only by PointSetDataInteractor. How this is done and when to use GroupEventIDs is still undocumented.
Definition at line 35 of file mitkOperationEvent.h.
◆ UndoStackItem()
mitk::UndoStackItem::UndoStackItem |
( |
std::string |
description = "" | ) |
|
◆ ~UndoStackItem()
virtual mitk::UndoStackItem::~UndoStackItem |
( |
| ) |
|
|
virtual |
◆ GetCurrGroupEventId()
static int mitk::UndoStackItem::GetCurrGroupEventId |
( |
| ) |
|
|
static |
For combining operations in groups.
This ID is used in the undo mechanism. For separation of the separate operations If the GroupEventId of two OperationEvents is equal, then they share one group and will be undone in case of Undo(fine==false)
◆ GetCurrObjectEventId()
static int mitk::UndoStackItem::GetCurrObjectEventId |
( |
| ) |
|
|
static |
For combining operations in Objects.
This ID is used in the Undo-Mechanism. For separation of the separate operations If the ObjectEventId of two OperationEvents is equal, then they share one Object and will be undone in all cases of Undo(true and false). they shal not be separated, because they were produced to realize one object-change. for example: OE_statechange and OE_addlastpoint
◆ GetDescription()
std::string mitk::UndoStackItem::GetDescription |
( |
| ) |
|
Returns the textual description of this object.
◆ GetGroupEventId()
int mitk::UndoStackItem::GetGroupEventId |
( |
| ) |
|
Returns the GroupEventId for this object.
◆ GetObjectEventId()
int mitk::UndoStackItem::GetObjectEventId |
( |
| ) |
|
Returns the ObjectEventId for this object.
◆ IncCurrGroupEventId()
static void mitk::UndoStackItem::IncCurrGroupEventId |
( |
| ) |
|
|
static |
Increases the current GroupEventId For example if a button click generates operations the GroupEventId has to be incremented to be able to undo.
◆ IncCurrObjectEventId()
static void mitk::UndoStackItem::IncCurrObjectEventId |
( |
| ) |
|
|
static |
Increases the current ObjectEventId For example if a button click generates operations the ObjectEventId has to be incremented to be able to undo.
◆ ReverseAndExecute()
virtual void mitk::UndoStackItem::ReverseAndExecute |
( |
| ) |
|
|
virtual |
◆ ReverseOperations()
virtual void mitk::UndoStackItem::ReverseOperations |
( |
| ) |
|
|
virtual |
◆ m_Reversed
bool mitk::UndoStackItem::m_Reversed |
|
protected |
true, if operation and undooperation have been swapped/changed
Definition at line 102 of file mitkOperationEvent.h.
The documentation for this class was generated from the following file: