]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/creaPanelButtonContainer/buttonContainerSettings.cxx
Diego Caceres: creaPanelButtonContainer changes: new structButtonContainerSettings...
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / creaPanelButtonContainer / buttonContainerSettings.cxx
index 056158ad6a16658a0f92e228698a708b40f4205f..c3a24614db15955c3d3e5a545671f48307985e65 100644 (file)
@@ -79,14 +79,25 @@ namespace creaPanelButtonContainer
 
        void
        ButtonContainerSettings::AddButton( const std::string & groupName,
-           const std::string buttonName, const std::string iconpath,
-           const std::string buttonDescription, PanelButton panel )
+           const std::string &buttonName, const std::string &iconpath,
+           const std::string &buttonDescription, PanelButton panel )
        {
                //builds the button information
+               panel->Show( false );
                ButtonPair* pair = new ButtonPair( new ButtonInfo( buttonName, iconpath ),
                    new ActionButton( buttonDescription, panel ) );
-               panel->Show( false );
                this->m_ButtonGroupContainer[ groupName ].push_back( pair );
        }
+
+       void
+       ButtonContainerSettings::AddButton( const BCSettingsStruct &info )
+       {
+               //builds the button information
+               info.panel->Show( false );
+               ButtonPair* pair = new ButtonPair(
+                   new ButtonInfo( info.buttonName, info.iconpath ),
+                   new ActionButton( info.buttonDescription, info.panel ) );
+               this->m_ButtonGroupContainer[ info.groupName ].push_back( pair );
+       }
 }//ecapseman