* @file buttonContainerController.cxx
* @brief This contains the ButtonContainerController class implementation
* @author Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
- * @date 2011-05-19
+ * @date 2011-05-24
*/
#include "buttonContainerController.h"
}//yrt
catch ( std::exception& e )
{
- std::cerr
- << "ButtonContainerController::ButtonExpEvent( wxCommandEvent& event ) exception: "
+ std::cerr << "ButtonContainerController::AddEvents( ) exception: "
<< e.what( ) << std::endl;
}//hctac
}
long id = event.GetId( );
try
{
+ //changing the button label when its clicked and then hide the buttons of the group.
if ( this->m_BCPanel->m_GroupManagerList[ id ]->GetButton( )->GetLabel( ).Cmp(
_( "+" ) ) == 0 )
{
}//yrt
catch ( std::exception& e )
{
- std::cerr << "ButtonContainerController::AddEvents( ) exception: "
+ std::cerr
+ << "ButtonContainerController::ButtonExpEvent( wxCommandEvent& event ) exception: "
<< e.what( ) << std::endl;
}//hctac
}
this->m_BCPanel->m_ButtonGroupList.begin( ); it
!= this->m_BCPanel->m_ButtonGroupList.end( ); ++it )
{
-
( *it )->GetButton( event.GetId( ) )->Execute( );
-
}//rof
}//yrt
catch ( std::exception& e )
{
std::cerr
- << "ButtonContainerController::ButtonExpEvent( wxCommandEvent& event ) exception: "
+ << "ButtonContainerController::ButtonEvent( wxCommandEvent& event ) exception: "
<< e.what( ) << std::endl;
}//hctac
}