model_server/ui_browser/src/projectBrowser1.h.cxx
//  attach_groupManager() : routine to switch the browsers
attach_groupManager() : routine to switch the browsers
attach_groupManager () : routine to switch the browsers
void projectBrowser::attach_groupManager(projectBrowser *pb)
{
    Initialize(projectBrowser::attach_groupManager);
#ifndef NEW_UI
    if (pb && dlg && origin_browser != pb) {
	origin_browser = pb;
	int manager_num = 0;
	const char *layout = (char *)pb->bsh.get_layout_name();
	if (layout) {
	    manager_num = OSapi_atoi(layout);
	}
#if ALLOW_MULTIPLE_SUBSYSTEM_MANAGERS
	groupHandle handle;
	handle.a_project_browser = pb;
	handle.group_list_index = -1;
	bsh.toAllBrowsers(&projectBrowser::getGroupTitleNumber, &handle);
	handle.group_list_index = 0;
	int manager_num = getGroupTitleNumber(&handle);
	genString name;
	name.printf(TXT("DISCOVER Subsystems: %d"), manager_num);
	dlg->title((char *)name);
#endif    
	groups_rtl->delete_all_items();
	projNodePtr pr = projNode::get_home_proj();
	Xref* xr = (pr) ? pr->get_xref() : NULL;
	if (xr) {
	   symbolArr groups;
	   ddSelector sel;
	   sel.add(DD_SUBSYSTEM);
	   xr->add_symbols(groups, sel);
	   symbolPtr sym;
	   ForEachS(sym, groups) {
	      if (sym.xrisnotnull() && sym.get_has_def_file()) {
		 add_group_name(sym.get_name(), sym->get_attribute(IS_SUBSYS_ATT, 1));
	      }
	   }
	}
	if (global_groups_button) {
	   global_groups_button->set(0, 0);
	}
	set_temporary_group_name(group_counter);
    }
#endif
}
void projectBrowser :: attach_groupManager ( projectBrowser * pb ) { Initialize ( projectBrowser :: attach_groupManager ) ; #ifndef NEW_UI if ( pb && dlg && origin_browser != pb ) { origin_browser = pb ; int manager_num = 0 ; const char * layout = ( char * ) pb -> bsh . get_layout_name ( ) ; if ( layout ) { manager_num = OSapi_atoi ( layout ) ; } #if ALLOW_MULTIPLE_SUBSYSTEM_MANAGERS groupHandle handle ; handle . a_project_browser = pb ; handle . group_list_index = -1 ; bsh . toAllBrowsers ( & projectBrowser :: getGroupTitleNumber , & handle ) ; handle . group_list_index = 0 ; int manager_num = getGroupTitleNumber ( & handle ) ; genString name ; name . printf ( TXT ( " " ) , manager_num ) ; dlg -> title ( ( char * ) name ) ; #endif groups_rtl -> delete_all_items ( ) ; projNodePtr pr = projNode :: get_home_proj ( ) ; Xref * xr = ( pr ) ? pr -> get_xref ( ) : NULL ; if ( xr ) { symbolArr groups ; ddSelector sel ; sel . add ( DD_SUBSYSTEM ) ; xr -> add_symbols ( groups , sel ) ; symbolPtr sym ; ForEachS ( sym , groups ) { if ( sym . xrisnotnull ( ) && sym . get_has_def_file ( ) ) { add_group_name ( sym . get_name ( ) , sym -> get_attribute ( IS_SUBSYS_ATT , 1 ) ) ; } } } if ( global_groups_button ) { global_groups_button -> set ( 0 , 0 ) ; } set_temporary_group_name ( group_counter ) ; } #endif }
attach_groupManager() : routine to switch the browsers
attach_groupManager () : routine to switch the browsers
// ALLOW_MULTIPLE_SUBSYSTEM_MANAGERS