- new ActionButton( buttonDescription, event ) );
- this->m_ButtonGroupContainer[ groupName ].push_back( pair );
+ new ButtonAction( buttonDescription, event ) );
+ try
+ {
+ for( KeyMapList::iterator it = this->m_GroupNameList.begin( ); it
+ != this->m_GroupNameList.end( ); ++it )
+ {
+ if ( ( *it ).compare( groupName ) == 0 )
+ {
+ this->m_ButtonGroupContainer[ groupName ].push_back( pair );
+ return;
+ }//fi
+ }//rof
+ this->m_GroupNameList.push_back( groupName );
+ this->m_ButtonGroupContainer[ groupName ].push_back( pair );
+ }//yrt
+ catch ( std::exception& e )
+ {
+ std::cerr
+ << "ContainerSettings::AddButton( const std::string & groupName,"
+ << "const std::string buttonName, const std::string iconpath,"
+ << "const std::string buttonDescription, FunctionEventType event ) exception: "
+ << e.what( ) << std::endl;
+ }//hctac