-/************************************************************************************//*!
- * 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
- * Copyright:
- * License:
- ***************************************************************************************/
+/*!
+ * @file buttonGroupFactory.cxx
+ * @brief Implements the ButtonGroupFactory class.
+ * @author Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
+ * @date 2011-06-02
+ */
-//! @include "buttonGroupFactory.h"
#include "buttonGroupFactory.h"
-//! @namespace<creaButtonContainer>
namespace creaButtonContainer
{
- //! @namespace<model>
namespace model
{
// ----------------------------------------------------------------------------------
wxString groupNameAux( ( *it ).first.c_str( ), wxConvUTF8 );
wxStaticText* wxGroupName = new wxStaticText( parent, -1,
groupNameAux, wxDefaultPosition, wxDefaultSize, 0,
- _T( "GroupText" ) );
+ _T("GroupText") );
ButtonGroup* group = new ButtonGroup( wxGroupName,
this->GetButtons( parent, ( *it ).second ) );
groupView.push_back( group );
- }
- }
- catch ( std::exception& e )
+ }//rof
+ }//yrt
+ catch ( const std::exception& e )
{
std::cerr
- << "ButtonContainerController::ButtonExpEvent( wxCommandEvent& event ) exception: "
- << e.what( ) << std::endl;
- }
+ << "ButtonGroupFactory::CreateButtonGroupContainer( wxWindow* parent, ButtonGroupModel* settings )"
+ << " exception: " << e.what( ) << std::endl;
+ }//chtac
return ( groupView );
}
// ----------------------------------------------------------------------------------
ButtonContainer buttonList;
try
{
+ ButtonContainer buttonList;
for( ButtonList::iterator it = buttonModel.begin( ); it
!= buttonModel.end( ); ++it )
{
long id = wxNewId( );
buttonList[ id ] = new Button( parent, id, *it );
- }
- return ( buttonList );
- }
- catch ( std::exception& e )
+ }//rof
+ //return ( buttonList ); // JPR
+ }//yrt
+ catch ( const std::exception& e )
{
std::cerr
- << "ButtonContainerController::ButtonExpEvent( wxCommandEvent& event ) exception: "
- << e.what( ) << std::endl;
- }
+ << "ButtonGroupFactory::GetButtons( wxWindow* parent, ButtonList buttonModel )"
+ << "exception: " << e.what( ) << std::endl;
+ }//chtac
+ return ( buttonList ); // JPR
}
// ----------------------------------------------------------------------------------
}//ecapseman