Medical Imaging Interaction Toolkit  2024.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 
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 
48  virtual StackDescription GetUndoDescriptions();
49  virtual StackDescription GetRedoDescriptions();
50 
51  protected:
53  ~VerboseLimitedLinearUndo() override;
54  };
55 
56 } // namespace mitk
57 
58 #endif
mitk::VerboseLimitedLinearUndo::StackDescription
std::vector< StackDescriptionItem > StackDescription
Definition: mitkVerboseLimitedLinearUndo.h:44
mitk::UndoStackItem
Represents an entry of the undo or redo stack.
Definition: mitkOperationEvent.h:35
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
MitkCoreExports.h
mitk::VerboseLimitedLinearUndo
A limited linear undo model providing GUI elements with stack status information.
Definition: mitkVerboseLimitedLinearUndo.h:35
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::LimitedLinearUndo
A linear undo model with one undo and one redo stack.
Definition: mitkLimitedLinearUndo.h:36
mitkLimitedLinearUndo.h
mitk::VerboseLimitedLinearUndo::StackDescriptionItem
std::pair< int, std::string > StackDescriptionItem
Definition: mitkVerboseLimitedLinearUndo.h:40
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15