]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/wxCDMNewBlackBoxDialog.cpp
vtk9itk5wx3-macos
[crea.git] / lib / creaDevManagerLib / wxCDMNewBlackBoxDialog.cpp
index 7e0c69f4516ef76a6dea84ecad82e6900bbe5522..94dbaa6df754c396a88364eaa74bce5a29aa9e9d 100644 (file)
@@ -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[] =
       {