Medical Imaging Interaction Toolkit  2025.12.02
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 
36  {
37  public:
39  itkFactorylessNewMacro(Self);
40  itkCloneMacro(Self);
41 
42  typedef std::pair<int, std::string> StackDescriptionItem;
43  typedef std::vector<StackDescriptionItem>
45 
46  bool SetOperationEvent(UndoStackItem *undoStackItem) override;
47 
50 
51  protected:
54  };
55 
56 } // namespace mitk
57 
58 #endif
#define MITKCORE_EXPORT
A linear undo model with one undo and one redo stack.
Represents an entry of the undo or redo stack.
A limited linear undo model providing GUI elements with stack status information.
virtual StackDescription GetRedoDescriptions()
bool SetOperationEvent(UndoStackItem *undoStackItem) override
a list of pairs (int,string), representing a stack with ObjectEventIDs and descriptions
std::pair< int, std::string > StackDescriptionItem
std::vector< StackDescriptionItem > StackDescription
virtual StackDescription GetUndoDescriptions()
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
Find image slices visible on a given plane.