1 #ifndef __vvQPacsConnection_h_INCLUDED__
2 #define __vvQPacsConnection_h_INCLUDED__
4 #include <QTGUI/QWidget>
5 #include "ui_vvPacsConnection.h"
6 #include "gdcmCompositeNetworkFunctions.h"
7 #include <QtGui/QStandardItemModel.h>
8 #include <QtGui/QStringListModel.h>
14 //=====================================================================
15 //======================================================================
16 class vvQPacsConnection : public QDialog
20 //vvQPacsConnection(){}
21 vvQPacsConnection(QWidget *parent=0);
23 ~vvQPacsConnection(){}
25 //void OnQueryPACS(wxCommandEvent& event);
27 void selectStudies(const QModelIndex &index);
28 void selectSeries(const QModelIndex &index);
29 void selectImages(const QModelIndex &index);
31 void on_scanButton_clicked();
32 void on_clearButton_clicked();
33 void on_importButton_clicked();
34 void on_check_ModAll_clicked(bool state);
38 Ui::vvPacsConnection ui;
39 std::vector< std::pair<gdcm::Tag, std::string> > getKeys();
40 std::vector< std::pair<gdcm::Tag, std::string> > getPatientKeys(const std::string );
41 std::vector< std::pair<gdcm::Tag, std::string> > getStudyKeys(const std::string);
42 std::vector< std::pair<gdcm::Tag, std::string> > getSeriesKeys(const std::string i_val);
43 std::vector< std::pair<gdcm::Tag, std::string> > getImageKeys(const std::string i_val);
44 void manageStudiesFilter(bool i_enable);
45 void createTreeView();
46 QStandardItemModel *Patientmodel;
47 QStandardItemModel *Studymodel;
48 QStandardItemModel *Seriesmodel;
49 QStandardItemModel *Imagesmodel;
50 void convertDataSet(std::vector<gdcm::DataSet> i_ds, QStandardItemModel *i_model, std::vector< std::pair<gdcm::Tag, std::string> > keys);
51 void manageSeriesFilter(bool i_enable);
52 std::string m_patient;
57 std::string m_aetitle;
62 }; // class vvQPacsConnection
63 //=====================================================================
67 #endif // __vvQPacsConnection_h_INCLUDED__