void WdaMotif::action_inputfocus( Widget w, XmAnyCallbackStruct *data) { Arg args[1]; WdaMotif *wda; XtSetArg (args[0], XmNuserData, &wda); XtGetValues (w, args, 1); if ( !wda) return; if ( mrm_IsIconicState(w)) return; if ( wda->set_focus_disabled) return; if ( flow_IsManaged( wda->cmd_scrolledinput)) flow_SetInputFocus( wda->cmd_scrolledinput); else if ( flow_IsManaged( wda->cmd_input)) flow_SetInputFocus( wda->cmd_input); else if ( wda->wdanav) ((WdaNav *)wda->wdanav)->set_inputfocus(); disable_set_focus( wda, 400); }
void XAttOneMotif::action_inputfocus( Widget w, XmAnyCallbackStruct *data) { Arg args[1]; XAttOneMotif *xattone; XtSetArg (args[0], XmNuserData, &xattone); XtGetValues (w, args, 1); if ( !xattone) return; if ( mrm_IsIconicState(w)) return; if ( xattone->set_focus_disabled) return; if ( flow_IsManaged( xattone->cmd_scrolledinput)) flow_SetInputFocus( xattone->cmd_scrolledinput); else if ( flow_IsManaged( xattone->cmd_input)) flow_SetInputFocus( xattone->cmd_input); disable_set_focus( xattone, 400); }
void XttMotif::action_inputfocus( Widget w, XmAnyCallbackStruct *data) { Arg args[1]; Xtt *xtt; XtSetArg (args[0], XmNuserData, &xtt); XtGetValues (w, args, 1); if ( mrm_IsIconicState(w)) return; if ( xtt->xnav) { if ( ((XttMotif *)xtt)->focustimer.disabled()) { // printf( "Inputfocus disabled\n"); return; } else { // printf( "Set Inputfocus\n"); } xtt->xnav->set_inputfocus(); ((XttMotif *)xtt)->focustimer.disable( ((XttMotif *)xtt)->toplevel, 400); } }
void EvMotif::blk_action_inputfocus( Widget w, XmAnyCallbackStruct *data) { Arg args[1]; Ev *ev; XtSetArg (args[0], XmNuserData, &ev); XtGetValues (w, args, 1); if ( mrm_IsIconicState(w)) return; if ( ev && ev->blk_displayed) { if ( ((EvMotif *)ev)->blk_focustimer.disabled()) return; ev->blk->set_input_focus(); ((EvMotif *)ev)->blk_focustimer.disable( ((EvMotif *)ev)->toplevel_blk, 400); } }
void WFoeMotif::action_inputfocus( Widget w, XmAnyCallbackStruct *data) { Arg args[1]; WFoeMotif *foe; XtSetArg (args[0], XmNuserData, &foe); XtGetValues (w, args, 1); if ( mrm_IsIconicState(w)) return; if ( foe->set_focus_disabled) return; if ( foe->nav_palette_managed) foe->navctx->set_inputfocus( 1); else if ( foe->node_palette_managed) foe->node_palctx->set_inputfocus( 1); else if ( foe->con_palette_managed) foe->con_palctx->set_inputfocus( 1); foe->disable_set_focus( foe, 400); }
void WGeMotif::action_inputfocus( Widget w, XmAnyCallbackStruct *data) { Arg args[1]; WGeMotif *ge; XtSetArg (args[0], XmNuserData, &ge); XtGetValues (w, args, 1); if ( !ge) return; if ( mrm_IsIconicState(w)) return; if ( ge->set_focus_disabled) return; if ( ge->graph) ((Graph *)ge->graph)->set_inputfocus(1); disable_set_focus( ge, 400); }
void XCrrMotif::action_inputfocus( Widget w, XmAnyCallbackStruct *data) { Arg args[1]; XCrrMotif *xcrr; XtSetArg (args[0], XmNuserData, &xcrr); XtGetValues (w, args, 1); if ( !xcrr) return; if ( mrm_IsIconicState(w)) return; if ( xcrr->set_focus_disabled) return; if ( xcrr->xcrrnav) xcrr->xcrrnav->set_inputfocus(); disable_set_focus( xcrr, 400); }
void CoXHelpMotif::action_inputfocus( Widget w, XmAnyCallbackStruct *data) { Arg args[1]; CoXHelpMotif *xhelp; XtSetArg (args[0], XmNuserData, &xhelp); XtGetValues (w, args, 1); if ( !xhelp) return; if ( mrm_IsIconicState(w)) return; if ( xhelp->set_focus_disabled) return; if ( xhelp->xhelpnav && xhelp->displayed) { xhelp->xhelpnav->set_inputfocus(); } CoXHelpMotif::disable_set_focus( xhelp, 400); }