X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvMainWindow.cxx;h=d25228c346d79652212c3a7f0db871eb2958cf84;hb=99053cb10db94edb40026024221af91ac6864df0;hp=42107987512a3c78686455c9e0f266ebb253b4e3;hpb=ae6ab552bec1c4f23aec29e774204d942f4df342;p=clitk.git diff --git a/vv/vvMainWindow.cxx b/vv/vvMainWindow.cxx index 4210798..d25228c 100644 --- a/vv/vvMainWindow.cxx +++ b/vv/vvMainWindow.cxx @@ -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 files; + + //std::cout << "dicomSeriesSelector " << std::endl; + /*if (pacsconnect->exec() == QDialog::Accepted) { + files = *(pacsconnect->GetFilenames()); + LoadImages(files, vvImageReader::DICOM); + }*/ + } + + //------------------------------------------------------------------------------ //------------------------------------------------------------------------------