* @file buttonGroupFactory.cxx
* @brief Implements the ButtonGroupFactory class.
* @author Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
- * @date 2011-05-24
+ * @date 2011-06-02
*/
#include "buttonGroupFactory.h"
ButtonGroupFactory::CreateButtonGroupContainer( wxWindow* parent,
ButtonGroupModel* settings )
{
+ ButtonGroupContainer groupView;
try
{
- ButtonGroupContainer groupView;
ButtonGroupMap map = settings->GetButtonGroupContainer( );
for( ButtonGroupMap::iterator it = map.begin( ); it != map.end( ); ++it )
{
ButtonGroup* group = new ButtonGroup( wxGroupName,
this->GetButtons( parent, ( *it ).second ) );
groupView.push_back( group );
- }
- return ( groupView );
+ }//rof
}//yrt
catch ( const std::exception& e )
{
<< "ButtonGroupFactory::CreateButtonGroupContainer( wxWindow* parent, ButtonGroupModel* settings )"
<< " exception: " << e.what( ) << std::endl;
}//chtac
+ return ( groupView );
}
// ----------------------------------------------------------------------------------
ButtonGroupFactory::ButtonContainer
{
long id = wxNewId( );
buttonList[ id ] = new Button( parent, id, *it );
- }
- return ( buttonList );
+ }//rof
+ //return ( buttonList ); // JPR
}//yrt
catch ( const std::exception& e )
{
<< "ButtonGroupFactory::GetButtons( wxWindow* parent, ButtonList buttonModel )"
<< "exception: " << e.what( ) << std::endl;
}//chtac
+ return ( buttonList ); // JPR
}
// ----------------------------------------------------------------------------------
}//ecapseman