Medical Imaging Interaction Toolkit  2024.06.00
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 (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 #ifndef QmitkDicomLocalStorageWidget_h
13 #define QmitkDicomLocalStorageWidget_h
14 
15 #include "ui_QmitkDicomLocalStorageWidgetControls.h"
16 #include <MitkDICOMUIExports.h>
17 
18 // include QT
19 #include <QHash>
20 #include <QString>
21 #include <QStringList>
22 #include <QVariant>
23 #include <QWidget>
24 
25 class QProgressDialog;
26 class QLabel;
27 
28 class ctkDICOMDatabase;
29 class ctkDICOMIndexer;
30 
37 {
38  // this is needed for all Qt objects that should have a Qt meta-object
39  // (everything that derives from QObject and wants to have signal/slots)
40  Q_OBJECT
41 
42 public:
43  static const std::string Widget_ID;
44 
50  QmitkDicomLocalStorageWidget(QWidget *parent);
51 
55  ~QmitkDicomLocalStorageWidget() override;
56 
62  virtual void CreateQtPartControl(QWidget *parent);
63 
69  void SetDatabaseDirectory(QString newDatabaseDirectory);
70 
71 signals:
72 
74  void SignalFinishedImport();
75 
80  void SignalDicomToDataManager(QHash<QString, QVariant> _t1);
81 
83  void SignalCancelImport();
84 
85 public slots:
87  void OnViewButtonClicked();
88 
90  void OnDeleteButtonClicked();
91 
93  void OnStartDicomImport(const QString &dicomData);
94 
96  void OnStartDicomImport(const QStringList &dicomData);
97 
99  void OnSeriesSelectionChanged(const QStringList &);
100 
101 protected:
102  void SetDatabase(QString databaseFile);
103 
104  bool DeletePatients();
105  bool DeleteStudies();
106  bool DeleteSeries();
107 
108  ctkDICOMDatabase *m_LocalDatabase;
109  ctkDICOMIndexer *m_LocalIndexer;
110  Ui::QmitkDicomLocalStorageWidgetControls *m_Controls;
111 };
112 
113 #endif
QmitkDicomLocalStorageWidget::Widget_ID
static const std::string Widget_ID
Definition: QmitkDicomLocalStorageWidget.h:43
MitkDICOMUIExports.h
QmitkDicomLocalStorageWidget
QmitkDicomLocalStorageWidget is a QWidget providing functionality for dicom storage and import.
Definition: QmitkDicomLocalStorageWidget.h:36
MITKDICOMUI_EXPORT
#define MITKDICOMUI_EXPORT
Definition: MitkDICOMUIExports.h:15
QmitkDicomLocalStorageWidget::m_LocalDatabase
ctkDICOMDatabase * m_LocalDatabase
Definition: QmitkDicomLocalStorageWidget.h:108
QmitkDicomLocalStorageWidget::m_Controls
Ui::QmitkDicomLocalStorageWidgetControls * m_Controls
Definition: QmitkDicomLocalStorageWidget.h:110
QmitkDicomLocalStorageWidget::m_LocalIndexer
ctkDICOMIndexer * m_LocalIndexer
Definition: QmitkDicomLocalStorageWidget.h:109