& ButtonContainerController::ButtonEvent );
}//rof
}//rof
- }
+ }//yrt
catch ( std::exception& e )
{
std::cerr
<< "ButtonContainerController::ButtonExpEvent( wxCommandEvent& event ) exception: "
<< e.what( ) << std::endl;
- }
+ }//hctac
}
// ----------------------------------------------------------------------------------
void
this->m_BCPanel->m_GroupManagerList[ id ]->GetButton( )->SetLabel(
_( "-" ) );
this->m_BCPanel->m_GroupManagerList[ id ]->HideSubPanel( false );
- }
+ }//fi
else if ( this->m_BCPanel->m_GroupManagerList[ id ]->GetButton( )->GetLabel( ).Cmp(
_( "-" ) ) == 0 )
{
this->m_BCPanel->m_GroupManagerList[ id ]->GetButton( )->SetLabel(
_( "+" ) );
this->m_BCPanel->m_GroupManagerList[ id ]->HideSubPanel( true );
- }
+ }//fi esle
this->m_BCPanel->FitSizer( );
- }
+ }//yrt
catch ( std::exception& e )
{
std::cerr << "ButtonContainerController::AddEvents( ) exception: "
<< e.what( ) << std::endl;
- }
+ }//hctac
}
// ----------------------------------------------------------------------------------
void
ButtonContainerController::ButtonEvent( wxCommandEvent& event )
{
- for( ButtonGroupList::iterator it =
- this->m_BCPanel->m_ButtonGroupList.begin( ); it
- != this->m_BCPanel->m_ButtonGroupList.end( ); ++it )
+ try
{
- try
+ for( ButtonGroupList::iterator it =
+ this->m_BCPanel->m_ButtonGroupList.begin( ); it
+ != this->m_BCPanel->m_ButtonGroupList.end( ); ++it )
{
+
( *it )->GetButton( event.GetId( ) )->Execute( );
- }
- catch ( std::exception& e )
- {
- std::cerr
- << "ButtonContainerController::ButtonExpEvent( wxCommandEvent& event ) exception: "
- << e.what( ) << std::endl;
- }
- }
+
+ }//rof
+ }//yrt
+ catch ( std::exception& e )
+ {
+ std::cerr
+ << "ButtonContainerController::ButtonExpEvent( wxCommandEvent& event ) exception: "
+ << e.what( ) << std::endl;
+ }//hctac
}
// ----------------------------------------------------------------------------------
}//ecapsename