| version 1.8, 2001/10/09 01:36:25 |
version 1.12, 2004/02/29 08:30:31 |
|
|
| * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
| * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
| * |
* |
| * $OpenXM: OpenXM_contrib2/asir2000/parse/xdeb.c,v 1.7 2001/10/05 03:21:27 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/parse/xdeb.c,v 1.11 2003/03/07 06:39:59 noro Exp $ |
| */ |
*/ |
| #if defined(VISUAL) |
#if defined(VISUAL) |
| #if defined(VISUAL_LIB) |
#if defined(VISUAL_LIB) |
| Line 90 void show_debug_window(int on) |
|
| Line 90 void show_debug_window(int on) |
|
| {} |
{} |
| #endif |
#endif |
| #else /* VISUAL */ |
#else /* VISUAL */ |
| #if DO_PLOT |
#if defined(DO_PLOT) |
| /* |
/* |
| * xdeb.c --- Asir Debug interface. |
* xdeb.c --- Asir Debug interface. |
| * |
* |
| Line 159 static void SetDismiss(Widget w,XtPointer cld,XtPointe |
|
| Line 159 static void SetDismiss(Widget w,XtPointer cld,XtPointe |
|
| XtSetValues(cmdwin, arg, 1); |
XtSetValues(cmdwin, arg, 1); |
| } |
} |
| |
|
| |
static Atom wm_delete_window; |
| |
static void quit(Widget w, XEvent *ev, String *params,Cardinal *nparams) |
| |
{ |
| |
XBell(XtDisplay(w),0); |
| |
} |
| |
|
| void init_cmdwin() |
void init_cmdwin() |
| { |
{ |
| Arg arg[5]; |
Arg arg[5]; |
| Line 193 void init_cmdwin() |
|
| Line 199 void init_cmdwin() |
|
| toplevel = XtAppCreateShell(0,title,applicationShellWidgetClass, |
toplevel = XtAppCreateShell(0,title,applicationShellWidgetClass, |
| display,0,0); |
display,0,0); |
| n = 0; |
n = 0; |
| |
wm_delete_window = XInternAtom(XtDisplay(toplevel), "WM_DELETE_WINDOW", |
| |
False); |
| |
XtOverrideTranslations(toplevel, |
| |
XtParseTranslationTable("<Message>WM_PROTOCOLS: quit()")); |
| XtSetArg(arg[n],XtNiconName,title); n++; |
XtSetArg(arg[n],XtNiconName,title); n++; |
| XtSetArg(arg[n], XtNwidth, 360); n++; |
XtSetArg(arg[n], XtNwidth, 360); n++; |
| mainwin = XtCreatePopupShell("shell",topLevelShellWidgetClass, |
mainwin = XtCreatePopupShell("shell",topLevelShellWidgetClass, |
| Line 209 void init_cmdwin() |
|
| Line 219 void init_cmdwin() |
|
| XtSetArg(arg[n], XtNvalue, ""); n++; |
XtSetArg(arg[n], XtNvalue, ""); n++; |
| XtSetValues(cmdwin, arg, n); |
XtSetValues(cmdwin, arg, n); |
| XtRealizeWidget(mainwin); |
XtRealizeWidget(mainwin); |
| |
XSetWMProtocols(XtDisplay(mainwin),XtWindow(mainwin), |
| |
&wm_delete_window,1); |
| } |
} |
| is_init = 1; |
is_init = 1; |
| } |
} |