Medical Imaging Interaction Toolkit  2022.04.99-01b95b17
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_H_*/
MITK_QT_APP void Run(berry::IWorkbenchPartSite::Pointer workbenchPartSite, mitk::DataStorage::Pointer dataStorage)