Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
QmitkUndoAction.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 QmitkUndoAction_H_
18 #define QmitkUndoAction_H_
19 
20 #ifdef __MINGW32__
21 // We need to inlclude winbase.h here in order to declare
22 // atomic intrinsics like InterlockedIncrement correctly.
23 // Otherwhise, they would be declared wrong within qatomic_windows.h .
24 #include <windows.h>
25 #endif
26 
27 #include <QAction>
28 #include <QIcon>
29 
30 #include <berryIWorkbenchWindow.h>
31 
33 
35 
36 class QmitkUndoActionPrivate;
37 
41 class MITK_QT_APP QmitkUndoAction : public QAction
42 {
43  Q_OBJECT
44 
45 public:
47  QmitkUndoAction(const QIcon & icon, berry::IWorkbenchWindow::Pointer window);
48  QmitkUndoAction(const QIcon & icon, berry::IWorkbenchWindow* window);
49 
50  ~QmitkUndoAction();
51 
52  protected slots:
53 
54  virtual void Run();
55 
56 private:
57 
58  const QScopedPointer<QmitkUndoActionPrivate> d;
59 };
60 
61 #endif /*QmitkUndoAction_H_*/