Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkVerboseLimitedLinearUndo.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkVerboseLimitedLinearUndo_h
14 #define mitkVerboseLimitedLinearUndo_h
15 
16 // MITK header
17 #include <mitkLimitedLinearUndo.h>
18 #include <MitkCoreExports.h>
19 // STL header
20 #include <list>
21 #include <string>
22 #include <utility>
23 #include <vector>
24 
25 namespace mitk
26 {
27  class UndoStackItem;
28 
39  {
40  public:
42  itkFactorylessNewMacro(Self);
43  itkCloneMacro(Self);
44 
46  typedef std::pair<int, std::string> StackDescriptionItem;
47 
49  typedef std::vector<StackDescriptionItem> StackDescription;
50 
60  bool SetOperationEvent(UndoStackItem *undoStackItem) override;
61 
70 
79 
80  protected:
83  };
84 
85 } // namespace mitk
86 
87 #endif
#define MITKCORE_EXPORT
A linear undo model with one undo and one redo stack.
Represents an entry on the undo or redo stack.
A limited linear undo model providing GUI elements with stack status information.
virtual StackDescription GetRedoDescriptions()
Return human-readable descriptions of the redo stack.
mitkClassMacro(VerboseLimitedLinearUndo, LimitedLinearUndo)
bool SetOperationEvent(UndoStackItem *undoStackItem) override
Store an operation event on the undo stack.
std::pair< int, std::string > StackDescriptionItem
A pair of ObjectEventId and its human-readable description.
std::vector< StackDescriptionItem > StackDescription
A list of (ObjectEventId, description) pairs representing a stack.
virtual StackDescription GetUndoDescriptions()
Return human-readable descriptions of the undo stack.
Find image slices visible on a given plane.