X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk%2Fsrc%2FbbcreaMaracasVisuPanelButtonContainer.cxx;h=004b8dab40d2e312bf33d32e6fa57fcc225f5861;hb=d92a7b41bf7a8a91f68ea25a66618fd94742c9c7;hp=fc31b69bf7703e43bae1f0fd524e81668ce669a9;hpb=352ae750b47650f57bc952705f184995a2486468;p=creaMaracasVisu.git diff --git a/bbtk/src/bbcreaMaracasVisuPanelButtonContainer.cxx b/bbtk/src/bbcreaMaracasVisuPanelButtonContainer.cxx index fc31b69..004b8da 100644 --- a/bbtk/src/bbcreaMaracasVisuPanelButtonContainer.cxx +++ b/bbtk/src/bbcreaMaracasVisuPanelButtonContainer.cxx @@ -42,8 +42,8 @@ PanelButtonContainer::Process( ) { ButtonContainerSettings* settings = new ButtonContainerSettings( ); printf("EED PanelButtonContainer::Process %d\n", bbGetInputIn( ).size() ); - settings->AddButtons( bbGetInputIn( ) ); - PBContainer* panel = new PBContainer( myPanel, settings ); + settings->InitModel(bbGetInputIn( ), bbGetInputType()); + PBContainer* panel = new PBContainer( myPanel, settings, bbGetInputType() ); wxBoxSizer* sizer = new wxBoxSizer( wxHORIZONTAL ); sizer->Add( panel, 1, wxEXPAND, 0 ); this->myPanel->SetSizer(sizer); @@ -61,8 +61,8 @@ void PanelButtonContainer::CreateWidget( wxWindow* parent ) this->myPanel = new wxPanel( parent, -1 ); /// \TODO fix warning: unused variable ww wxWindow* ww = bbCreateWidgetOfInput( "In", this->myPanel ); - bbSetOutputWidget( myPanel); - + ww=NULL; + bbSetOutputWidget( myPanel ); } //===== // 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) @@ -70,7 +70,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)