Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkDicomExternalDataWidget.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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef QmitkDicomExternalDataWidget_h
18 #define QmitkDicomExternalDataWidget_h
19 
20 #include "ui_QmitkDicomExternalDataWidgetControls.h"
21 #include <MitkDicomUIExports.h>
22 
23 // include ctk
24 #include <ctkDICOMDatabase.h>
25 #include <ctkDICOMIndexer.h>
26 
27 // include QT
28 #include <QHash>
29 #include <QLabel>
30 #include <QProgressDialog>
31 #include <QString>
32 #include <QStringList>
33 #include <QVariant>
34 #include <QWidget>
35 
36 class ctkFileDialog;
37 
45 {
46  // this is needed for all Qt objects that should have a Qt meta-object
47  // (everything that derives from QObject and wants to have signal/slots)
48  Q_OBJECT
49 
50 public:
51  static const std::string Widget_ID;
52 
58  QmitkDicomExternalDataWidget(QWidget *parent);
59 
64 
70  virtual void CreateQtPartControl(QWidget *parent);
71 
75  void Initialize();
76 
77 signals:
78 
80  void SignalStartDicomImport(const QStringList &);
81 
83  void SignalDicomToDataManager(QHash<QString, QVariant>);
84 
85 public slots:
86 
88  void OnDownloadButtonClicked();
89 
91  void OnViewButtonClicked();
92 
94  void OnStartDicomImport(const QString &);
95 
96  void OnSeriesSelectionChanged(const QStringList &s);
97 
98 protected:
101  QStringList GetFileNamesFromIndex();
102 
104  void SetupImportDialog();
105 
106  void SetupProgressDialog();
107 
108  ctkDICOMDatabase *m_ExternalDatabase;
109  ctkDICOMIndexer *m_ExternalIndexer;
110  ctkFileDialog *m_ImportDialog;
111 
112  QProgressDialog *m_ProgressDialog;
114 
115  Ui::QmitkDicomExternalDataWidgetControls *m_Controls;
116 };
117 
118 #endif // _QmitkDicomExternalDataWidget_H_INCLUDED
Ui::QmitkDicomExternalDataWidgetControls * m_Controls
QmitkDicomExternalDataWidget is a QWidget providing functionality for dicom import.
#define MITKDICOMUI_EXPORT