Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
QmitkFileOpenAction.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 QmitkFileOpenAction_h
14 #define QmitkFileOpenAction_h
15 
17 
18 #include <berryIWorkbenchWindow.h>
19 
20 // qt
21 #include <QAction>
22 #include <QIcon>
23 
24 class QmitkFileOpenActionPrivate;
25 
26 class MITK_QT_APP QmitkFileOpenAction : public QAction
27 {
28  Q_OBJECT
29 
30 public:
31 
33  QmitkFileOpenAction(const QIcon& icon, berry::IWorkbenchWindow::Pointer window);
34  QmitkFileOpenAction(const QIcon& icon, berry::IWorkbenchWindow* window);
35 
36  ~QmitkFileOpenAction() override;
37 
38 protected slots:
39 
40  virtual void Run();
41 
42 private:
43 
44  const QScopedPointer<QmitkFileOpenActionPrivate> d;
45 
46 };
47 
48 
49 #endif
QmitkFileOpenAction
Definition: QmitkFileOpenAction.h:26
berry::IWorkbenchWindow
Definition: berryIWorkbenchWindow.h:64
berry::SmartPointer
Implements transparent reference counting.
Definition: berryICommandCategoryListener.h:21
berryIWorkbenchWindow.h
MITK_QT_APP
#define MITK_QT_APP
Definition: org_mitk_gui_qt_application_Export.h:26
org_mitk_gui_qt_application_Export.h
GlobalReinitAction::Run
MITK_QT_APP void Run(berry::IWorkbenchPartSite::Pointer workbenchPartSite, mitk::DataStorage::Pointer dataStorage)