*/
#include "buttonContainerSettings.h"
-#include <iostream>
namespace creaPanelButtonContainer
{
std::cerr
<< "ButtonContainerSettings::GetPanelButton( const std::string &buttonName ) "
<< "exception: " << e.what( ) << std::endl;
- return ( NULL );
}//hctac
+ return ( NULL );
}
// ----------------------------------------------------------------------------------
ButtonContainerSettings::ButtonGroupSettings*
ButtonContainerSettings::GetButtonGroupSettings( TFunctor* functor )
{
- ButtonGroupSettings* settings = new ButtonGroupSettings( );
try
{
+ ButtonGroupSettings* settings = new ButtonGroupSettings( );
for( KeyMapList::iterator it = this->m_GroupNameList.begin( ); it
!= this->m_GroupNameList.end( ); ++it )
{
std::cerr
<< "ButtonContainerSettings::GetPanelButton( const std::string &buttonName ) "
<< "exception: " << e.what( ) << std::endl;
- return ( NULL );
}//hctac
}
// ----------------------------------------------------------------------------------
try
{
//builds the button information
+ //I don't know the try catch doesn't work!!
+ if ( panel == NULL )
+ {
+ std::cerr << "ButtonContainerSettings::AddButton"
+ << "exception: NULL Pointer in panel " << std::endl;
+ exit( 1 );
+ }
panel->Show( false );
ButtonPair* pair = new ButtonPair(
new ButtonInfo( buttonName, iconpath ),
this->m_GroupNameList.push_back( groupName );
this->m_ButtonGroupContainer[ groupName ].push_back( pair );
}//yrt
- catch ( std::exception& e )
+ catch ( const std::exception& e )
{
std::cerr
<< "ButtonContainerSettings::AddButton( const std::string & groupName,"
try
{
//builds the button information
+ //I don't know the try catch doesn't work!!
+ if ( info->panel == NULL )
+ {
+ std::cerr << "ButtonContainerSettings::AddButton"
+ << "exception: NULL Pointer in panel " << std::endl;
+ exit( 1 );
+ }
info->panel->Show( false );
ButtonPair* pair = new ButtonPair(
new ButtonInfo( info->buttonName, info->iconpath ),
}//rof
this->m_GroupNameList.push_back( info->groupName );
this->m_ButtonGroupContainer[ info->groupName ].push_back( pair );
- }
- catch ( std::exception& e )
+ }//yrt
+ catch ( const std::exception& e )
{
std::cerr
<< "ButtonContainerSettings::AddButton( BCPSettingsStruct* info )"
<< "exception: " << e.what( ) << std::endl;
+ exit( 1 );
}//hctac
}
// ----------------------------------------------------------------------------------
{
this->AddButton( *it );
}//rof
- }
+ }//yrt
catch ( std::exception& e )
{
std::cerr