]> Creatis software - clitk.git/blobdiff - vv/vvMainWindow.cxx
Compile PACS stuff only if GDCM system is used
[clitk.git] / vv / vvMainWindow.cxx
index 12d8d27f621bde8102a642c14d635e11b98cb55d..8047b7d2e42c5d006f9d7d08442c26c2a3f654fe 100644 (file)
@@ -235,7 +235,9 @@ vvMainWindow::vvMainWindow():vvMainWindowBase()
   documentation = new vvDocumentation();
   help_dialog = new vvHelpDialog();
   dicomSeriesSelector = new vvDicomSeriesSelector();
+#ifdef vvPacsConnection
   PacsConnection = new vvPacsConnection();
+#endif
 
   inverseButton->setEnabled(0);
   actionAdd_overlay_image_to_current_image->setEnabled(0);
@@ -745,8 +747,10 @@ void vvMainWindow::OpenDicom()
     files = *(dicomSeriesSelector->GetFilenames());
     LoadImages(files, vvImageReader::DICOM);
   }
+}
 
-  void vvMainWindow::ConnectPacs()
+#ifdef vvPacsConnection
+void vvMainWindow::ConnectPacs()
 {
   std::vector<std::string> files;
 
@@ -757,6 +761,7 @@ void vvMainWindow::OpenDicom()
   }
 
 }
+#endif
 //------------------------------------------------------------------------------
 
 //------------------------------------------------------------------------------