Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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 (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_H_*/
Implements transparent reference counting.
void Run(berry::IWorkbenchPartSite::Pointer workbenchPartSite, mitk::DataStorage::Pointer dataStorage)