21 #ifndef __cxDICOMAppWidget_h
22 #define __cxDICOMAppWidget_h
24 #include "org_custusx_dicom_Export.h"
29 class ctkThumbnailLabel;
31 class ctkDICOMDatabase;
36 class DICOMAppWidgetPrivate;
57 QString databaseDirectory()
const;
63 void setTagsToPrecache(
const QStringList tags);
64 const QStringList tagsToPrecache();
69 void updateDatabaseSchemaIfNeeded();
71 QStringList getSelectedPatients();
72 QStringList getSelectedStudies();
73 QStringList getSelectedSeries();
75 ctkDICOMDatabase* database();
80 void setDisplayImportSummary(
bool);
81 bool displayImportSummary();
83 int patientsAddedDuringImport();
84 int studiesAddedDuringImport();
85 int seriesAddedDuringImport();
86 int instancesAddedDuringImport();
87 void addActionToToolbar(QAction* action);
90 void setDatabaseDirectory(
const QString& directory);
91 void onSelectionChanged(
const QItemSelection&,
const QItemSelection&);
93 void openQueryDialog();
94 void onRemoveAction();
103 void onImportDirectory(QString directory);
105 void onCurrentChanged(
const QModelIndex&,
const QModelIndex&);
108 void databaseDirectoryChanged(
const QString&);
109 void queryRetrieveFinished();
110 void directoryImported();
113 QScopedPointer<DICOMAppWidgetPrivate>
d_ptr;
115 void onModelSelected(
const QModelIndex& index);
116 void onQueryRetrieveFinished();
117 void onTreeCollapsed(
const QModelIndex& index);
118 void onTreeExpanded(
const QModelIndex& index);
119 void onThumbnailWidthSliderValueChanged(
int val);
126 void schemaUpdateStarted(
int);
127 void schemaUpdateProgress(QString);
128 void schemaUpdateProgress(
int);
129 void schemaUpdated();