+
+ // ----------------------------------------------------------------------------------
+ void
+ ButtonContainerSettings::AddButtons( BCStructVectorType infoList, int type )
+ {
+ std::cout<< "MLER | ButtonContainerSettings:: AddButtons( BCStructVectorType infoList, int type )" << std::endl;
+ try
+ {
+ for( BCStructVectorType::iterator it = infoList.begin( ); it
+ != infoList.end( ); ++it )
+ {
+ if( type == 0 )
+ this->AddButton( *it );
+ else if( type == 1 )
+ this->AddItems(*it);
+ }//rof
+ }//yrt
+ catch ( std::exception& e )
+ {
+ std::cerr
+ << "ButtonContainerSettings::AddButtons( BCStructVectorType infoList )"
+ << "exception: " << e.what( ) << std::endl;
+ }//hctac
+ }
+
+ void
+ ButtonContainerSettings::AddItems(BCPSettingsStruct* info)
+ {
+ try
+ {
+ std::cout<< "MLER | ButtonContainerSettings:: AddItems(BCPSettingsStruct* info)" << std::endl;
+ //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 );
+
+ std::string mapKey = info->groupName + ":" + info->buttonName;
+ m_itemsMap[mapKey] = info->panel;
+
+ }//yrt
+ catch ( const std::exception& e )
+ {
+ std::cerr
+ << "ButtonContainerSettings::AddButton( BCPSettingsStruct* info )"
+ << "exception: " << e.what( ) << std::endl;
+ exit( 1 );
+ }//hctac
+ }
+
+ ButtonContainerSettings::ItemsMap
+ ButtonContainerSettings::GetItemsMap()
+ {
+ std::cout<< "MLER | ButtonContainerSettings:: GetItemsMap()" << std::endl;
+ return m_itemsMap;
+ }
+
+
+// ----------------------------------------------------------------------------------