- wxString groupNameAux( ( *it ).first.c_str( ), wxConvUTF8 );
- wxStaticText* wxGroupName = new wxStaticText( parent, -1, groupNameAux,
- wxDefaultPosition, wxDefaultSize, 0, _T("GroupText") );
- ButtonGroup* group = new ButtonGroup( wxGroupName,
- this->GetButtons( parent, ( *it ).second ) );
- groupView.push_back( group );
- }
+ ButtonGroupMap map = settings->GetButtonGroupContainer( );
+ for( ButtonGroupMap::iterator it = map.begin( ); it != map.end( ); ++it )
+ {
+ wxString groupNameAux( ( *it ).first.c_str( ), wxConvUTF8 );
+ wxStaticText* wxGroupName = new wxStaticText( parent, -1,
+ groupNameAux, wxDefaultPosition, wxDefaultSize, 0,
+ _T("GroupText") );
+ ButtonGroup* group = new ButtonGroup( wxGroupName,
+ this->GetButtons( parent, ( *it ).second ) );
+ groupView.push_back( group );
+ }//rof
+ }//yrt
+ catch ( const std::exception& e )
+ {
+ std::cerr
+ << "ButtonGroupFactory::CreateButtonGroupContainer( wxWindow* parent, ButtonGroupModel* settings )"
+ << " exception: " << e.what( ) << std::endl;
+ }//chtac