]> Creatis software - creaMaracasVisu.git/commitdiff
New cleaner neater option of ShowNPoints added :P JGRR
authorJuan Riveros <Juan.Riveros@creatis.insa-lyon.fr>
Wed, 30 May 2012 14:57:53 +0000 (14:57 +0000)
committerJuan Riveros <Juan.Riveros@creatis.insa-lyon.fr>
Wed, 30 May 2012 14:57:53 +0000 (14:57 +0000)
bbtk/src/bbmaracasvisuShowNPoints.cxx

index 2ec8ea03501cc3e7f736d1b29fe1130383d0033a..63b5236cb28ed3f5ffb173941a4c2f4f05b1437c 100644 (file)
@@ -98,7 +98,33 @@ namespace bbcreaMaracasVisu
                  sizer1->Add(sdrRadio,1,wxGROW );
                  sizer = sizer1;
          }
-
+    
+        if (mbbShowNPoints->bbGetInputType() == 2) {
+            askPointLabel = new wxStaticText(panel, -1, _T("\nPOINT CONTROLS:")); // JPR
+            
+            wxButton *btnAddPoint = new wxButton(panel, -1,        _T("      Add  Point      "));
+            wxButton *btnDeleteAllPoints = new wxButton(panel, -1, _T("      Delete All      "));
+            wxStaticText* spacer = new wxStaticText(panel, -1, _T("\n")); // JPR
+            textCtrl = new wxTextCtrl(panel, -1);
+            
+            wxFlexGridSizer *sizer1 = new wxFlexGridSizer(1);
+
+            Connect(btnAddPoint->GetId(), wxEVT_COMMAND_BUTTON_CLICKED, (wxObjectEventFunction) & WidgetShowNPoints::OnAddPoint);
+            Connect(btnDeleteAllPoints->GetId(), wxEVT_COMMAND_BUTTON_CLICKED, (wxObjectEventFunction) & WidgetShowNPoints::OnDeleteAllPoints);
+            
+            sizer1->Add(askPointLabel); 
+            sizer1->Add(btnAddPoint);
+            sizer1->Add(btnDeleteAllPoints);
+            sizer1->Add(spacer);
+            sizer1->Add(textCtrl);
+            
+            sdrOpacity = new wxSlider();
+            sdrRadio = new wxSlider();
+            
+            txtNrPoints = new wxStaticText(panel, -1, _T("\n\n\n"));  
+            
+            sizer = sizer1;
+        } 
          if (sizer!=NULL)
          {
                  panel->SetSizer(sizer);