try {
- if(m_itemsMap.empty())
- std::cout<< "no tengo nada "<< std::endl;
for( ItemsMap::iterator it= this->m_itemsMap.begin(); it!=this->m_itemsMap.end(); ++it )
{
if( (*it).first.compare(buttonName) == 0 )
+ {
+ std::cout<<"debe retornar" << std::endl;
return ( (*it).second );
+ }
}
{
if( type == 0 )
this->AddButton( *it );
- else if( type == 1 )
+ else if( type == 1 || type == 2)
this->AddItems(*it);
+
}//rof
}//yrt
catch ( std::exception& e )
//I don't know the try catch doesn't work!!
if ( info->panel == NULL )
{
- std::cerr << "ButtonContainerSettings::AddButton"
+ std::cerr << "ButtonContainerSettings::AddItems"
<< "exception: NULL Pointer in panel " << std::endl;
exit( 1 );
}
ButtonContainerSettings::GetItemsMap()
{
std::cout<< "MLER | ButtonContainerSettings:: GetItemsMap()" << std::endl;
+
return m_itemsMap;
}