Medical Imaging Interaction Toolkit  2023.04.00
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
berry::IWorkbenchWindow
Definition: berryIWorkbenchWindow.h:62
berry::SmartPointer
Implements transparent reference counting.
Definition: berryICommandCategoryListener.h:21
berrySmartPointer.h
MITK_QT_APP
#define MITK_QT_APP
Definition: org_mitk_gui_qt_application_Export.h:26
org_mitk_gui_qt_application_Export.h
QmitkFileExitAction
Definition: QmitkFileExitAction.h:29
berry
Definition: QmitkPropertyItemModel.h:24
GlobalReinitAction::Run
MITK_QT_APP void Run(berry::IWorkbenchPartSite::Pointer workbenchPartSite, mitk::DataStorage::Pointer dataStorage)