dicom.cpp
Go to the documentation of this file.
1 
8 #include "dicom.h"
9 
10 #include "QtDcm.h"
11 #include "QtDcmManager.h"
12 #include "QtDcmPreferences.h"
13 
14 Dicom::Dicom ( QWidget *parent ) : QMainWindow ( parent )
15 {
16  ui.setupUi ( this );
17  QtDcmPreferences::instance()->setIniFile("qtdcm.ini");
19  QtDcmManager::instance()->setSerieInfoWidget ( ui.serieInfoWidget );
20  QtDcmManager::instance()->setPreviewWidget ( ui.previewWidget );
21  QtDcmManager::instance()->setImportWidget ( ui.importWidget );
23 
24  QObject::connect ( ui.actionOpenDicomdir, &QAction::triggered,
25  this, &Dicom::openDicomdir);
26  QObject::connect ( ui.actionExport, &QAction::triggered,
27  this, &Dicom::exportSerie);
28  QObject::connect ( ui.actionPreferences, &QAction::triggered,
29  this, &Dicom::preferences);
30 }
31 
33 {
34 }
35 
37 {
38  ui.qtdcm->openDicomdir();
39 }
40 
42 {
44 }
45 
47 {
48  ui.qtdcm->editPreferences();
49 }
static QtDcmPreferences * instance()
void setIniFile(const QString ini)
static QtDcmManager * instance()
void setOutputdirMode(QtDcmManager::eOutputdirMode mode)
void preferences()
Definition: dicom.cpp:46
~Dicom()
Definition: dicom.cpp:32
void exportSerie()
Definition: dicom.cpp:41
void setSerieInfoWidget(QtDcmSerieInfoWidget *widget)
void importSelectedSeries()
Dicom(QWidget *parent=0)
Definition: dicom.cpp:14
void setImportWidget(QtDcmImportWidget *widget)
Main class for the example application.
void setPreviewWidget(QtDcmPreviewWidget *widget)
Ui::Dicom ui
Definition: dicom.h:21
void openDicomdir()
Definition: dicom.cpp:36
void setQtDcmWidget(QtDcm *widget)