Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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 (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 QMITKFILEEXITACTION_H_
14 #define QMITKFILEEXITACTION_H_
15 
16 #include <berrySmartPointer.h>
17 
18 #include <QAction>
19 
21 
22 namespace berry {
23  struct IWorkbenchWindow;
24 }
25 
29 class MITK_QT_APP QmitkFileExitAction : public QAction
30 {
31  Q_OBJECT
32 
33 public:
34 
38  QmitkFileExitAction(const QIcon & icon, berry::IWorkbenchWindow* window);
39 
40 protected slots:
41 
42  void Run();
43 
44 private:
45  void init(berry::IWorkbenchWindow* window);
46  berry::IWorkbenchWindow* m_Window;
47 };
48 
49 
50 #endif /*QMITKFILEOPENACTION_H_*/
Implements transparent reference counting.
void Run(berry::IWorkbenchPartSite::Pointer workbenchPartSite, mitk::DataStorage::Pointer dataStorage)