Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkDicomLocalStorageWidget.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 #ifndef QmitkDicomLocalStorageWidget_h
17 #define QmitkDicomLocalStorageWidget_h
18 
19 // #include <QmitkFunctionality.h>
20 #include "ui_QmitkDicomLocalStorageWidgetControls.h"
21 #include <MitkDicomUIExports.h>
22 
23 // include ctk
24 #include <ctkDICOMDatabase.h>
25 #include <ctkDICOMIndexer.h>
26 #include <ctkFileDialog.h>
27 
28 // include QT
29 #include <QHash>
30 #include <QString>
31 #include <QStringList>
32 #include <QVariant>
33 #include <QWidget>
34 
35 class QProgressDialog;
36 class QLabel;
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  QmitkDicomLocalStorageWidget(QWidget *parent);
59 
64 
70  virtual void CreateQtPartControl(QWidget *parent);
71 
77  void SetDatabaseDirectory(QString newDatabaseDirectory);
78 
79 signals:
80 
82  void SignalFinishedImport();
83 
88  void SignalDicomToDataManager(QHash<QString, QVariant>);
89 
91  void SignalCancelImport();
92 
93 public slots:
95  void OnViewButtonClicked();
96 
98  void OnDeleteButtonClicked();
99 
101  void OnStartDicomImport(const QString &dicomData);
102 
104  void OnStartDicomImport(const QStringList &dicomData);
105 
107  void OnSeriesSelectionChanged(const QStringList &);
108 
109 protected:
110  void SetDatabase(QString databaseFile);
111 
112  bool DeletePatients();
113  bool DeleteStudies();
114  bool DeleteSeries();
115 
116  ctkDICOMDatabase *m_LocalDatabase;
117  ctkDICOMIndexer *m_LocalIndexer;
118  Ui::QmitkDicomLocalStorageWidgetControls *m_Controls;
119 };
120 
121 #endif // _QmitkDicomLocalStorageWidget_H_INCLUDED
QmitkDicomLocalStorageWidget is a QWidget providing functionality for dicom storage and import...
#define MITKDICOMUI_EXPORT
Ui::QmitkDicomLocalStorageWidgetControls * m_Controls