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);
52 Ui::vvPacsConnection ui;
53 std::vector< std::pair<gdcm::Tag, std::string> > getKeys();
54 std::vector< std::pair<gdcm::Tag, std::string> > getStudyKeys(const std::string);
55 std::vector<gdcm::DataSet> findQuery(vvQuery i_query);
57 void manageStudiesFilter(bool i_enable);
58 void createTreeView();
61 QStandardItemModel *Patientmodel;
62 QStandardItemModel *Studymodel;
63 QStandardItemModel *Seriesmodel;
64 QStandardItemModel *Imagesmodel;
65 void convertDataSet(std::vector<gdcm::DataSet> i_ds, QStandardItemModel *i_model, std::vector< std::pair<gdcm::Tag, std::string> > keys);
66 void manageSeriesFilter(bool i_enable);
67 std::vector< std::pair<gdcm::Tag, std::string> > fillMoveKeys();
68 std::string m_patient;
71 gdcm::EQueryLevel m_level;
73 std::string m_aetitle;
75 std::string m_nickname;
76 vvDicomServerQueryFactory mQFactory;
79 gdcm::Directory::FilenamesType m_files;
80 std::vector < gdcm::Directory::FilenamesType> m_fileseries;
84 }; // class vvQPacsConnection
85 //=====================================================================
89 #endif // __vvQPacsConnection_h_INCLUDED__