void EvMotif::unmap_blk() { if ( blk_displayed) { flow_UnmapWidget( parent_wid_blk); blk_displayed = 0; } }
void EvMotif::unmap_eve() { if ( eve_displayed) { flow_UnmapWidget( parent_wid_eve); eve_displayed = 0; } }
void EvMotif::unmap_ala() { if ( ala_displayed) { flow_UnmapWidget( parent_wid_ala); ala_displayed = 0; } }
void CoXHelpMotif::activate_exit( Widget w, CoXHelpMotif *xhelp, XmAnyCallbackStruct *data) { if ( xhelp->close_cb) (xhelp->close_cb)( xhelp->parent_ctx, (void *)xhelp); else { flow_UnmapWidget( xhelp->parent_wid); xhelp->displayed = 0; } // delete xhelp; }
void EvMotif::map_blk( unsigned int options) { if ( !blk_displayed) { flow_MapWidget( parent_wid_blk); blk_displayed = 1; } else { flow_UnmapWidget( parent_wid_blk); flow_MapWidget( parent_wid_blk); } }
void EvMotif::map_ala( unsigned int options) { if ( !ala_displayed) { flow_MapWidget( parent_wid_ala); ala_displayed = 1; } else { flow_UnmapWidget( parent_wid_ala); flow_MapWidget( parent_wid_ala); } }
void EvMotif::map_eve( unsigned int options) { if ( !eve_displayed) { flow_MapWidget( parent_wid_eve); eve_displayed = 1; } else { flow_UnmapWidget( parent_wid_eve); flow_MapWidget( parent_wid_eve); } }
void WNavMotif::pop() { Widget parent, top; parent = XtParent( parent_wid); while( parent) { top = parent; parent = XtParent( parent); } flow_UnmapWidget( top); flow_MapWidget( top); }
void XttMotif::close( void *ctx, int terminate) { Xtt *xtt = (Xtt *) ctx; if ( terminate) { xtt->wow->DisplayQuestion( xtt, "Confirm", "Do you want to close", close_ok, 0, 0); // delete xtt->xnav; // exit(0); } else { xtt->xnav->displayed = 0; flow_UnmapWidget( ((XttMotif *)xtt)->toplevel); } }
void XNavMotif::pop() { Widget parent, top; parent = XtParent(parent_wid); while (parent) { top = parent; if (flow_IsShell(top)) break; parent = XtParent(parent); } displayed = 0; flow_UnmapWidget(top); flow_MapWidget(top); // A fix to avoid a krash in setinputfocus XtAppAddWorkProc(XtWidgetToApplicationContext(top), (XtWorkProc)set_displayed, (XtPointer)this); }
void WGeMotif::pop() { flow_UnmapWidget( toplevel); flow_MapWidget( toplevel); }
void WdaMotif::pop() { flow_UnmapWidget( parent_wid); flow_MapWidget( parent_wid); }
void XAttOneMotif::pop() { flow_UnmapWidget( parent_wid); flow_MapWidget( parent_wid); }
void GeCurveMotif::pop() { flow_UnmapWidget( toplevel); flow_MapWidget( toplevel); }
void CLogMotif::pop() { flow_UnmapWidget( parent_wid_clog); flow_MapWidget( parent_wid_clog); }
void EvMotif::blk_activate_exit( Widget w, Ev *ev, XmAnyCallbackStruct *data) { flow_UnmapWidget( ((EvMotif *)ev)->parent_wid_blk); ev->blk_displayed = 0; }