model_server/driver_aset/src/driver.cxx
//------------------------------------------
// find_dialog_for_view
//
// Find the dialog which contains the specified view
//------------------------------------------
find_dialog_for_view
Find the dialog which contains the specified view
find_dialog_for_view Find the dialog which contains the specified view
dialogPtr driver::find_dialog_for_view(viewPtr vw)
{
    Initialize(driver::find_dialog_for_view);
    if (vw == NULL)
	return NULL;
    dialogPtr found_dialog = NULL;
    Obj*      dlg;
    ForEach(dlg, dialogs) {
	 if ( (checked_cast(dialog,dlg))->contains_view (vw) ) {
	    found_dialog = checked_cast(dialog,dlg);
	    break;
	}
    }
    return found_dialog;
}
dialogPtr driver :: find_dialog_for_view ( viewPtr vw ) { Initialize ( driver :: find_dialog_for_view ) ; if ( vw == NULL ) return NULL ; dialogPtr found_dialog = NULL ; Obj * dlg ; ForEach ( dlg , dialogs ) { if ( ( checked_cast ( dialog , dlg ) ) -> contains_view ( vw ) ) { found_dialog = checked_cast ( dialog , dlg ) ; break ; } } return found_dialog ; }
find_dialog_for_view
Find the dialog which contains the specified view
find_dialog_for_view Find the dialog which contains the specified view