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