Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef VERBOSELIMITEDLINEARUNDO_H_HEADER_INCLUDED_C16E96
18 #define VERBOSELIMITEDLINEARUNDO_H_HEADER_INCLUDED_C16E96
19 
20 // MITK header
21 #include "mitkLimitedLinearUndo.h"
22 #include <MitkCoreExports.h>
23 // STL header
24 #include <list>
25 #include <string>
26 #include <utility>
27 #include <vector>
28 
29 namespace mitk
30 {
31  class UndoStackItem;
32 
40  {
41  public:
43  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
44 
45  typedef std::pair<int, std::string> StackDescriptionItem;
46  typedef std::vector<StackDescriptionItem>
48 
49  virtual bool SetOperationEvent(UndoStackItem *undoStackItem) override;
50 
51  virtual StackDescription GetUndoDescriptions();
52  virtual StackDescription GetRedoDescriptions();
53 
54  protected:
56  virtual ~VerboseLimitedLinearUndo();
57  };
58 
59 } // namespace mitk
60 
61 #endif /* VERBOSELIMITEDLINEARUNDO_H_HEADER_INCLUDED_C16E96 */
#define MITKCORE_EXPORT
STL namespace.
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:44
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