Medical Imaging Interaction Toolkit  2024.12.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 (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 QmitkCloseProjectAction_h
14 #define QmitkCloseProjectAction_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 QmitkCloseProjectAction : public QAction
30 {
31  Q_OBJECT
32 
33 public:
37  QmitkCloseProjectAction(const QIcon & icon, berry::IWorkbenchWindow* window);
38 protected slots:
39  void Run();
40 
41 private:
42  void init(berry::IWorkbenchWindow* window);
43  berry::IWorkbenchWindow* m_Window;
44 };
45 #endif
QmitkCloseProjectAction
Definition: QmitkCloseProjectAction.h:29
berry::IWorkbenchWindow
Definition: berryIWorkbenchWindow.h:64
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
berry
Definition: QmitkPropertyItemModel.h:24
GlobalReinitAction::Run
MITK_QT_APP void Run(berry::IWorkbenchPartSite::Pointer workbenchPartSite, mitk::DataStorage::Pointer dataStorage)