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(int i_series);
30 int getSeriesCount() { return m_fileseries.size();}
34 void selectStudies(const QModelIndex &index);
35 void selectSeries(const QModelIndex &index);
36 void selectImages(const QModelIndex &index);
37 void selectImage(const QModelIndex &index);
39 void on_scanButton_clicked();
40 void on_clearButton_clicked();
41 void on_optionsButton_clicked();
42 void on_check_ModAll_clicked(bool state);
43 void on_importButton_clicked();
44 void chooseServer(int index);
51 Ui::vvPacsConnection ui;
52 std::vector< std::pair<gdcm::Tag, std::string> > getKeys();
53 std::vector< std::pair<gdcm::Tag, std::string> > getStudyKeys(const std::string);
54 std::vector<gdcm::DataSet> findQuery(vvQuery i_query);
56 void manageStudiesFilter(bool i_enable);
57 void createTreeView();
60 QStandardItemModel *Patientmodel;
61 QStandardItemModel *Studymodel;
62 QStandardItemModel *Seriesmodel;
63 QStandardItemModel *Imagesmodel;
64 void convertDataSet(std::vector<gdcm::DataSet> i_ds, QStandardItemModel *i_model, std::vector< std::pair<gdcm::Tag, std::string> > keys);
65 void manageSeriesFilter(bool i_enable);
66 std::vector< std::pair<gdcm::Tag, std::string> > fillMoveKeys();
67 std::string m_patient;
70 gdcm::EQueryLevel m_level;
72 std::string m_aetitle;
74 std::string m_nickname;
75 vvDicomServerQueryFactory mQFactory;
78 gdcm::Directory::FilenamesType m_files;
79 std::vector < gdcm::Directory::FilenamesType> m_fileseries;
83 }; // class vvQPacsConnection
84 //=====================================================================
88 #endif // __vvQPacsConnection_h_INCLUDED__