]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbcreaMaracasVisuPanelButtonContainer.cxx
Code cleaning done
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuPanelButtonContainer.cxx
index 76119b7be6306ea4847016d207645f292fa44e9a..b98efdd3cf714fecfad05e23edf5ae2fe85ffc7e 100644 (file)
@@ -43,14 +43,8 @@ PanelButtonContainer::Process( )
        ButtonContainerSettings* settings = new ButtonContainerSettings( );
        printf("EED PanelButtonContainer::Process %d\n", bbGetInputIn( ).size() );
 
-       if(bbGetInputType()== "1")
-       {
-          settings->AddItems(bbGetInputIn());
-          
-       }
-       else {
-         settings->AddButtons(bbGetInputIn( ));
-       }       
+
+         settings->InitModel(bbGetInputIn( ), bbGetInputType());
 
        
        PBContainer* panel = new PBContainer( myPanel, settings, bbGetInputType() );
@@ -80,7 +74,7 @@ void PanelButtonContainer::CreateWidget( wxWindow* parent )
 void
 PanelButtonContainer::bbUserSetDefaultValues( )
 {
-
+   bbSetInputType(0);
 }
 //===== 
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)