]> Creatis software - clitk.git/blobdiff - vv/vvMainWindow.cxx
corrections for recent version of gdcm
[clitk.git] / vv / vvMainWindow.cxx
index 42107987512a3c78686455c9e0f266ebb253b4e3..d25228c346d79652212c3a7f0db871eb2958cf84 100644 (file)
@@ -47,6 +47,7 @@ It is distributed under dual licence
 #include "vvMeshReader.h"
 #include "vvSaveState.h"
 #include "vvReadState.h"
+#include "vvQPacsConnection.h"
 #include "clitkConfiguration.h"
 
 // ITK include
@@ -235,6 +236,7 @@ vvMainWindow::vvMainWindow():vvMainWindowBase()
   documentation = new vvDocumentation();
   help_dialog = new vvHelpDialog();
   dicomSeriesSelector = new vvDicomSeriesSelector();
+  pacsconnect = new vvQPacsConnection(this);
 
   inverseButton->setEnabled(0);
   actionAdd_overlay_image_to_current_image->setEnabled(0);
@@ -277,6 +279,8 @@ vvMainWindow::vvMainWindow():vvMainWindowBase()
   connect(actionWarp_image_with_vector_field,SIGNAL(triggered()),this,SLOT(WarpImage()));
   connect(actionLoad_images,SIGNAL(triggered()),this,SLOT(OpenImages()));
   connect(actionOpen_Dicom,SIGNAL(triggered()),this,SLOT(OpenDicom()));
+connect(actionConnect_Pacs,SIGNAL(triggered()),this,SLOT(ConnectPacs()));
+
   //  connect(actionOpen_Dicom_Struct,SIGNAL(triggered()),this,SLOT(OpenDCStructContour()));
   connect(actionOpen_VTK_contour,SIGNAL(triggered()),this,SLOT(OpenVTKContour()));
   connect(actionOpen_Multiple_Images_As_One,SIGNAL(triggered()),this,SLOT(MergeImages()));
@@ -745,6 +749,18 @@ void vvMainWindow::OpenDicom()
     LoadImages(files, vvImageReader::DICOM);
   }
 }
+  void vvMainWindow::ConnectPacs()
+{
+  std::vector<std::string> files;
+
+  //std::cout << "dicomSeriesSelector " << std::endl;
+  /*if (pacsconnect->exec() == QDialog::Accepted) {
+    files = *(pacsconnect->GetFilenames());
+    LoadImages(files, vvImageReader::DICOM);
+  }*/
+  }
+
+
 //------------------------------------------------------------------------------
 
 //------------------------------------------------------------------------------