--- /dev/null
+#ifndef __vvQPacsConnection_h_INCLUDED__
+#define __vvQPacsConnection_h_INCLUDED__
+
+#include <QTGUI/QWidget>
+#include "ui_vvPacsConnection.h"
+#include "gdcmCompositeNetworkFunctions.h"
+#include <QtGui/QStandardItemModel.h>
+#include <QtGui/QStringListModel.h>
+
+
+ /**
+ * \ingroup GUI
+ */
+ //=====================================================================
+ //=====================================================================
+ class vvQPacsConnection : public QWidget , public Ui_vvPacsConnection
+ {
+ Q_OBJECT
+ public:
+ vvQPacsConnection(){}
+ vvQPacsConnection(QWidget *parent);
+
+ ~vvQPacsConnection(){}
+ ///Queries the PACS
+ //void OnQueryPACS(wxCommandEvent& event);
+public slots:
+ void selectStudies(const QModelIndex &index);
+ void selectSeries(const QModelIndex &index);
+ void selectImages(const QModelIndex &index);
+ private slots:
+ void on_scanButton_clicked();
+ void on_clearButton_clicked();
+ void on_importButton_clicked();
+ void on_check_ModAll_clicked(bool state);
+
+
+ private :
+ std::vector< std::pair<gdcm::Tag, std::string> > getKeys();
+ std::vector< std::pair<gdcm::Tag, std::string> > getPatientKeys(const std::string );
+ std::vector< std::pair<gdcm::Tag, std::string> > getStudyKeys(const std::string);
+ std::vector< std::pair<gdcm::Tag, std::string> > getSeriesKeys(const std::string i_val);
+ std::vector< std::pair<gdcm::Tag, std::string> > getImageKeys(const std::string i_val);
+ void manageStudiesFilter(bool i_enable);
+ void createTreeView();
+ QStandardItemModel *Patientmodel;
+ QStandardItemModel *Studymodel;
+ QStandardItemModel *Seriesmodel;
+ QStandardItemModel *Imagesmodel;
+ void convertDataSet(std::vector<gdcm::DataSet> i_ds, QStandardItemModel *i_model, std::vector< std::pair<gdcm::Tag, std::string> > keys);
+ void manageSeriesFilter(bool i_enable);
+ std::string m_patient;
+ std::string m_study;
+ std::string m_series;
+
+ std::string m_ip;
+ std::string m_aetitle;
+ std::string m_adress;
+ std::string m_name;
+ //wxDialog* dialog;
+
+ }; // class vvQPacsConnection
+ //=====================================================================
+
+
+
+#endif // __vvQPacsConnection_h_INCLUDED__
+
+