X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FwxCDMNewBlackBoxDialog.cpp;h=7e0c69f4516ef76a6dea84ecad82e6900bbe5522;hb=72575e97cabe50ea9f2d593bba1b0dcd69d35514;hp=166ba83eaa52a7fd83537e5df432c05cf6409a15;hpb=6bb41c012fbc5a0ded6a2ed4e294f3ea0e1ab0c5;p=crea.git diff --git a/lib/creaDevManagerLib/wxCDMNewBlackBoxDialog.cpp b/lib/creaDevManagerLib/wxCDMNewBlackBoxDialog.cpp index 166ba83..7e0c69f 100644 --- a/lib/creaDevManagerLib/wxCDMNewBlackBoxDialog.cpp +++ b/lib/creaDevManagerLib/wxCDMNewBlackBoxDialog.cpp @@ -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);