X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=vv%2FvvMainWindow.cxx;h=e3e5c993f88b2123643b9ddafa123b55bb54aa73;hb=f2a8299c90172b676e337ed5ade8ea3e2baa7e5f;hp=3dc0829bc6a2bd0134ef83138c049a82c51afe43;hpb=0a5abf9398aa0c578f014b52ca992943ca653f72;p=clitk.git diff --git a/vv/vvMainWindow.cxx b/vv/vvMainWindow.cxx index 3dc0829..e3e5c99 100644 --- a/vv/vvMainWindow.cxx +++ b/vv/vvMainWindow.cxx @@ -47,7 +47,7 @@ It is distributed under dual licence #include "vvMeshReader.h" #include "vvSaveState.h" #include "vvReadState.h" -#ifdef CLITK_USE_SYSTEM_GDCM +#ifdef CLITK_USE_PACS_CONNECTION #include "vvQPacsConnection.h" #endif #include "clitkConfiguration.h" @@ -125,7 +125,7 @@ It is distributed under dual licence vvMainWindow::vvMainWindow():vvMainWindowBase() { setupUi(this); // this sets up the GUI - + setDicomClient(); mInputPathName = ""; mMenuTools = menuTools; // mMenuSegmentation = menuSegmentation; @@ -238,7 +238,7 @@ vvMainWindow::vvMainWindow():vvMainWindowBase() documentation = new vvDocumentation(); help_dialog = new vvHelpDialog(); dicomSeriesSelector = new vvDicomSeriesSelector(); -#ifdef CLITK_USE_SYSTEM_GDCM +#ifdef CLITK_USE_PACS_CONNECTION PacsConnection = new vvQPacsConnection(); #endif @@ -283,7 +283,7 @@ 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())); - #ifdef CLITK_USE_SYSTEM_GDCM + #ifdef CLITK_USE_PACS_CONNECTION connect(actionConnect_Pacs,SIGNAL(triggered()),this,SLOT(ConnectPacs())); #endif // connect(actionOpen_Dicom_Struct,SIGNAL(triggered()),this,SLOT(OpenDCStructContour())); @@ -754,15 +754,16 @@ void vvMainWindow::OpenDicom() LoadImages(files, vvImageReader::DICOM); } } -#ifdef CLITK_USE_SYSTEM_GDCM +#ifdef CLITK_USE_PACS_CONNECTION void vvMainWindow::ConnectPacs() { std::vector files; //std::cout << "dicomSeriesSelector " << std::endl; if (PacsConnection->exec() == QDialog::Accepted) { -// files = *(pacsconnect->GetFilenames()); - // LoadImages(files, vvImageReader::DICOM); + files = PacsConnection->getFileNames(); + LoadImages(files, vvImageReader::DICOM); + PacsConnection->clearMove(); } }