]> Creatis software - clitk.git/blobdiff - vv/vvQPacsConnection.h
first developments for PacsConnection
[clitk.git] / vv / vvQPacsConnection.h
diff --git a/vv/vvQPacsConnection.h b/vv/vvQPacsConnection.h
new file mode 100644 (file)
index 0000000..fbbdbeb
--- /dev/null
@@ -0,0 +1,68 @@
+#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__
+
+