* Name: @file buttonGroupFactory.cxx
* Purpose: @brief This contains the ButtonGroupFactory class implementation
* Author: @author Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
- * Modified: 2011-05-17
+ * Modified: 2011-05-18
* Copyright:
* License:
***************************************************************************************/
ButtonGroupMap map = settings->GetButtonGroupContainer( );
for( ButtonGroupMap::iterator it = map.begin( ); it != map.end( ); ++it )
{
+ //using wxWidgets.
wxString groupNameAux( ( *it ).first.c_str( ), wxConvUTF8 );
wxStaticText* wxGroupName = new wxStaticText( parent, -1,
groupNameAux, wxDefaultPosition, wxDefaultSize, 0,
_T( "GroupText" ) );
+ //creating a wxButtonGroup.
ButtonGroup* group = new ButtonGroup( wxGroupName,
this->GetButtons( parent, ( *it ).second ) );
+ //adding the group to the container.
groupView.push_back( group );
- }
- }
+ }//rof
+ }//yrt
catch ( std::exception& e )
{
std::cerr
<< "ButtonContainerController::ButtonExpEvent( wxCommandEvent& event ) exception: "
<< e.what( ) << std::endl;
- }
+ }//chtac
return ( groupView );
}
// ----------------------------------------------------------------------------------
buttonList[ id ] = new Button( parent, id, *it );
}
return ( buttonList );
- }
+ }//yrt
catch ( std::exception& e )
{
std::cerr
<< "ButtonContainerController::ButtonExpEvent( wxCommandEvent& event ) exception: "
<< e.what( ) << std::endl;
- }
+ }//chtac
}
// ----------------------------------------------------------------------------------
}//ecapseman