Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkFileExitAction.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 QMITKFILEEXITACTION_H_
18 #define QMITKFILEEXITACTION_H_
19 
20 #include <berrySmartPointer.h>
21 
22 #include <QAction>
23 
25 
26 namespace berry {
27  struct IWorkbenchWindow;
28 }
29 
33 class MITK_QT_APP QmitkFileExitAction : public QAction
34 {
35  Q_OBJECT
36 
37 public:
38 
42  QmitkFileExitAction(const QIcon & icon, berry::IWorkbenchWindow* window);
43 
44 protected slots:
45 
46  void Run();
47 
48 private:
49  void init(berry::IWorkbenchWindow* window);
50  berry::IWorkbenchWindow* m_Window;
51 };
52 
53 
54 #endif /*QMITKFILEOPENACTION_H_*/
Implements transparent reference counting.