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 QWidget , public Ui_vvPacsConnection
21 vvQPacsConnection(QWidget *parent);
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 std::vector< std::pair<gdcm::Tag, std::string> > getKeys();
39 std::vector< std::pair<gdcm::Tag, std::string> > getPatientKeys(const std::string );
40 std::vector< std::pair<gdcm::Tag, std::string> > getStudyKeys(const std::string);
41 std::vector< std::pair<gdcm::Tag, std::string> > getSeriesKeys(const std::string i_val);
42 std::vector< std::pair<gdcm::Tag, std::string> > getImageKeys(const std::string i_val);
43 void manageStudiesFilter(bool i_enable);
44 void createTreeView();
45 QStandardItemModel *Patientmodel;
46 QStandardItemModel *Studymodel;
47 QStandardItemModel *Seriesmodel;
48 QStandardItemModel *Imagesmodel;
49 void convertDataSet(std::vector<gdcm::DataSet> i_ds, QStandardItemModel *i_model, std::vector< std::pair<gdcm::Tag, std::string> > keys);
50 void manageSeriesFilter(bool i_enable);
51 std::string m_patient;
56 std::string m_aetitle;
61 }; // class vvQPacsConnection
62 //=====================================================================
66 #endif // __vvQPacsConnection_h_INCLUDED__