1 #ifndef __vvQPacsConnection_h_INCLUDED__
2 #define __vvQPacsConnection_h_INCLUDED__
5 #include "ui_vvPacsConnection.h"
6 #include "gdcmCompositeNetworkFunctions.h"
7 #include <QStandardItemModel>
8 #include <QStringListModel>
10 #include "vvDicomServerQueryFactory.h"
15 //=====================================================================
16 //======================================================================
20 class vvQPacsConnection : public QDialog
24 //vvQPacsConnection(){}
25 vvQPacsConnection(QWidget *parent=0);
27 ~vvQPacsConnection(){}
28 void refreshNetworks();
29 std::vector <std::string> getFileNames();
33 void selectStudies(const QModelIndex &index);
34 void selectSeries(const QModelIndex &index);
35 void selectImages(const QModelIndex &index);
36 void selectImage(const QModelIndex &index);
38 void on_scanButton_clicked();
39 void on_clearButton_clicked();
40 void on_optionsButton_clicked();
41 void on_check_ModAll_clicked(bool state);
42 void on_importButton_clicked();
43 void chooseServer(int index);
50 Ui::vvPacsConnection ui;
51 std::vector< std::pair<gdcm::Tag, std::string> > getKeys();
52 std::vector< std::pair<gdcm::Tag, std::string> > getStudyKeys(const std::string);
53 std::vector<gdcm::DataSet> findQuery(vvQuery i_query);
55 void manageStudiesFilter(bool i_enable);
56 void createTreeView();
59 QStandardItemModel *Patientmodel;
60 QStandardItemModel *Studymodel;
61 QStandardItemModel *Seriesmodel;
62 QStandardItemModel *Imagesmodel;
63 void convertDataSet(std::vector<gdcm::DataSet> i_ds, QStandardItemModel *i_model, std::vector< std::pair<gdcm::Tag, std::string> > keys);
64 void manageSeriesFilter(bool i_enable);
65 std::vector< std::pair<gdcm::Tag, std::string> > fillMoveKeys();
66 std::string m_patient;
69 gdcm::EQueryLevel m_level;
71 std::string m_aetitle;
73 std::string m_nickname;
74 vvDicomServerQueryFactory mQFactory;
77 gdcm::Directory::FilenamesType m_files;
81 }; // class vvQPacsConnection
82 //=====================================================================
86 #endif // __vvQPacsConnection_h_INCLUDED__