]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/wxCDMNewBlackBoxDialog.cpp
Feature #1711
[crea.git] / lib / creaDevManagerLib / wxCDMNewBlackBoxDialog.cpp
index 166ba83eaa52a7fd83537e5df432c05cf6409a15..7e0c69f4516ef76a6dea84ecad82e6900bbe5522 100644 (file)
@@ -101,12 +101,50 @@ const wxString wxCDMNewBlackBoxDialog::GetBlackBoxCategories() const
 
 const wxString wxCDMNewBlackBoxDialog::GetBlackBoxType() const
 {
-  return this->blackBoxType->GetString(this->blackBoxType->GetCurrentSelection());
+  wxString res;
+  switch(this->blackBoxType->GetCurrentSelection())
+  {
+  case 0:
+    res = wxT("std");
+    break;
+  case 1:
+    res = wxT("widget");
+    break;
+  case 2:
+#ifdef _WIN32
+       res = wxT("VTK_ImageAlgorithm");
+#else
+    res = wxT("VTK-ImageAlgorithm");
+#endif
+    break;
+  case 3:
+#ifdef _WIN32
+       res = wxT("VTK_PolyDataAlgorithm");
+#else
+    res = wxT("VTK-PolyAlgorithm");
+#endif
+    break;
+  default:
+         res = wxT("std");
+  }
+  return res;
 }
 
 const wxString wxCDMNewBlackBoxDialog::GetBlackBoxFormat() const
 {
-  return this->blackBoxFormat->GetString(this->blackBoxFormat->GetCurrentSelection());
+  wxString res;
+  switch(this->blackBoxFormat->GetCurrentSelection())
+  {
+  case 0:
+    res = wxT("C++");
+    break;
+  case 1:
+    res = wxT("XML");
+    break;
+  default:
+         res = wxT("C++");
+  }
+  return res;
 }
 
 void wxCDMNewBlackBoxDialog::CreateControls()
@@ -137,10 +175,10 @@ void wxCDMNewBlackBoxDialog::CreateControls()
   this->blackBoxCategories = new wxTextCtrl(this, -1);
   wxString BBTypes[] =
       {
-          wxT("std"),
-          wxT("VTK-ImageAlgorithm"),
-          wxT("VTK-PolyAlgorithm"),
-          wxT("widget")
+          wxT("Basic - AtomicBlackBox"),
+                 wxT("Widget - WxBlackBox"),
+          wxT("VTK ImageAlgorithm - Basic and vtkImageAlgorithm (standard vtk I/O)"),
+          wxT("VTK PolyDataAlgorithm - Basic and vtkPolyDataAlgorithm (standard vtk I/O)")
       };
   this->blackBoxType = new wxChoice(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 4, BBTypes);