model_server/ui_viewer/src/enable_reparse_buttons.cxx
// Find viewers that depend on the specified smt header and make
// their "Update" button reflect the enabled flag.
Find viewers that depend on the specified smt header and make
their "Update" button reflect the enabled flag.
Find viewers that depend on the specified smt header and make their " Update " button reflect the enabled flag .
static void
update_Update_buttons(smtHeaderPtr smt_header, boolean enabled)
{
	Initialize(update_Update_buttons);
	viewerShell *vs;
	int i, j;
	for(i=0; vs = viewerShell::get_vs_by_idx(i); i++) {
		for(j=0; j < viewerShell::MAX_VIEWERS; j++) {
			viewPtr v;
			viewer *vr;
			if(v = vs->find_view(j)) {
				vr = vs->viewer_of_view(v);
				ldrPtr ldr_head = checked_cast(ldr, get_relation(ldr_of_view, v));
				if(ldr_head && view_contains(ldr_head, smt_header)) {
					vr->enable_reparse(enabled);
				}
			}
		}
	}
}
static void update_Update_buttons ( smtHeaderPtr smt_header , boolean enabled ) { Initialize ( update_Update_buttons ) ; viewerShell * vs ; int i , j ; for ( i = 0 ; vs = viewerShell :: get_vs_by_idx ( i ) ; i ++ ) { for ( j = 0 ; j < viewerShell :: MAX_VIEWERS ; j ++ ) { viewPtr v ; viewer * vr ; if ( v = vs -> find_view ( j ) ) { vr = vs -> viewer_of_view ( v ) ; ldrPtr ldr_head = checked_cast ( ldr , get_relation ( ldr_of_view , v ) ) ; if ( ldr_head && view_contains ( ldr_head , smt_header ) ) { vr -> enable_reparse ( enabled ) ; } } } } }
Find viewers that depend on the specified smt header and make
their "Update" button reflect the enabled flag.
Find viewers that depend on the specified smt header and make their " Update " button reflect the enabled flag .
// should use index but the method does not exist