Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
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 
13 #ifndef QmitkDicomLocalStorageWidget_h
14 #define QmitkDicomLocalStorageWidget_h
15 
16 #include <MitkDICOMUIExports.h>
17 #include <QWidget>
18 
19 class ctkDICOMDatabase;
20 class ctkDICOMIndexer;
21 
22 namespace Ui
23 {
25 }
26 
32 {
33  Q_OBJECT
34 
35 public:
36  explicit QmitkDicomLocalStorageWidget(QWidget* parent = nullptr);
37  ~QmitkDicomLocalStorageWidget() override;
38 
54  QSharedPointer<ctkDICOMDatabase> SetDatabaseDirectory(const QString& databaseDirectory);
55 
56 signals:
60  void IndexingComplete();
61 
68  void ViewSeries(const std::vector<std::pair<std::string, std::optional<std::string>>>& series);
69 
70 public slots:
74  void OnImport(const QStringList &files);
75 
76 private slots:
77  void OnViewButtonClicked();
78  void OnDeleteButtonClicked();
79  void OnAnySelectionChanged();
80 
81 private:
82  void showEvent(QShowEvent* event) override;
83 
84  bool DeletePatients();
85  bool DeleteStudies();
86  bool DeleteSeries();
87 
88  QSharedPointer<ctkDICOMDatabase> m_LocalDatabase;
89  std::unique_ptr<ctkDICOMIndexer> m_LocalIndexer;
90  Ui::QmitkDicomLocalStorageWidget *m_Ui;
91 };
92 
93 #endif
Ui
Definition: BlueBerryExampleLauncherDialog.h:21
MitkDICOMUIExports.h
QSharedPointer< ctkDICOMDatabase >
QmitkDicomLocalStorageWidget
Wrapper widget for a ctkDICOMTableManager and a few extra buttons for managing the local storage DICO...
Definition: QmitkDicomLocalStorageWidget.h:31
MITKDICOMUI_EXPORT
#define MITKDICOMUI_EXPORT
Definition: MitkDICOMUIExports.h:15