// ----------------------------------------------------------------------------------
void
- ButtonContainerSettings::AddButtons( BCStructVectorType infoList )
+ ButtonContainerSettings::AddButtons( BCStructVectorType infoList, int type )
{
try
{
for( BCStructVectorType::iterator it = infoList.begin( ); it
!= infoList.end( ); ++it )
{
- this->AddButton( *it );
+ if( type == 0 )
+ this->AddButton( *it );
+ else if( type == 1 )
+ this->AddItems(*it);
}//rof
}//yrt
catch ( std::exception& e )
}//hctac
}
+ void
+ ButtonContainerSettings::AddItems(BCPSettingsStruct* info)
+ {
+ 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 );
+ 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()
+ {
+ return m_itemsMap;
+ }
+
// ----------------------------------------------------------------------------------
}//ecapseman