X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FwxCDMNewBlackBoxDialog.cpp;h=94dbaa6df754c396a88364eaa74bce5a29aa9e9d;hb=1c3bc8de4d0e9b492f95c5d8c468881a80f420da;hp=7e0c69f4516ef76a6dea84ecad82e6900bbe5522;hpb=e6d99bba438e086b10239a42492532ff194edb88;p=crea.git diff --git a/lib/creaDevManagerLib/wxCDMNewBlackBoxDialog.cpp b/lib/creaDevManagerLib/wxCDMNewBlackBoxDialog.cpp index 7e0c69f..94dbaa6 100644 --- a/lib/creaDevManagerLib/wxCDMNewBlackBoxDialog.cpp +++ b/lib/creaDevManagerLib/wxCDMNewBlackBoxDialog.cpp @@ -125,7 +125,8 @@ const wxString wxCDMNewBlackBoxDialog::GetBlackBoxType() const #endif break; default: - res = wxT("std"); + res = wxT("std"); + break; } return res; } @@ -142,7 +143,8 @@ const wxString wxCDMNewBlackBoxDialog::GetBlackBoxFormat() const res = wxT("XML"); break; default: - res = wxT("C++"); + res = wxT("C++"); + break; } return res; } @@ -158,7 +160,7 @@ void wxCDMNewBlackBoxDialog::CreateControls() wxStaticText* instruction = new wxStaticText(this, wxID_ANY, wxT("Please fill the following details."), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT); v_sizer1->Add(instruction, 0, wxALIGN_LEFT | wxALL | wxALIGN_CENTER_VERTICAL, 5); - wxFlexGridSizer* formItems = new wxFlexGridSizer(4,2,9,15); + wxFlexGridSizer* formItems = new wxFlexGridSizer(10,2,9,15); wxStaticText *stxtPrjName = new wxStaticText(this, -1, wxT("Black Box Name")); wxStaticText *stxtPrjAuth = new wxStaticText(this, -1, wxT("Black Box Authors (separated by ',')")); @@ -178,9 +180,12 @@ void wxCDMNewBlackBoxDialog::CreateControls() 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)") + wxT("VTK PolyDataAlgorithm - Basic and vtkPolyDataAlgorithm (standard vtk I/O)"), +//JFGA new type added + wxT("Web Widget - WtBlackBox") + }; - this->blackBoxType = new wxChoice(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 4, BBTypes); + this->blackBoxType = new wxChoice(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 5, BBTypes); wxString BBFormats[] = {