Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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 VERBOSELIMITEDLINEARUNDO_H_HEADER_INCLUDED_C16E96
14 #define VERBOSELIMITEDLINEARUNDO_H_HEADER_INCLUDED_C16E96
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 /* VERBOSELIMITEDLINEARUNDO_H_HEADER_INCLUDED_C16E96 */
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
A linear undo model with one undo and one redo stack.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
std::pair< int, std::string > StackDescriptionItem
Represents an entry of the undo or redo stack.
A limited linear undo model providing GUI elements with stack status information. ...
std::vector< StackDescriptionItem > StackDescription