ButtonPair* pair = new ButtonPair(
new ButtonInfo( buttonName, iconpath ),
new ActionButton( buttonDescription, event ) );
- 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 );
}
}
ButtonPair* pair = new ButtonPair( new ButtonInfo( buttonName, iconpath ),
new ActionButton( buttonDescription, panel ) );
panel->Show( false );
- 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
- //if the group doesn't exist it creates a new groupName
- this->m_GroupNameList.push_back( groupName );
this->m_ButtonGroupContainer[ groupName ].push_back( pair );
}
}//ecapseman