Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkCloseProjectAction.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 QmitkCloseProjectAction_H_
18 #define QmitkCloseProjectAction_H_
19 
20 #ifdef __MINGW32__
21 // We need to include 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 <berrySmartPointer.h>
28 
29 #include <QAction>
30 
32 
33 namespace berry {
34 struct IWorkbenchWindow;
35 }
36 
40 class MITK_QT_APP QmitkCloseProjectAction : public QAction
41 {
42  Q_OBJECT
43 
44 public:
48  QmitkCloseProjectAction(const QIcon & icon, berry::IWorkbenchWindow* window);
49 protected slots:
50  void Run();
51 
52 private:
53  void init(berry::IWorkbenchWindow* window);
54  berry::IWorkbenchWindow* m_Window;
55 };
56 #endif /*QmitkCloseProjectAction_H_*/
Implements transparent reference counting.