version 1.8, 2001/10/09 01:36:25 |
version 1.14, 2015/08/06 10:01:53 |
|
|
* 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.13 2004/03/01 05:48:24 noro Exp $ |
*/ |
*/ |
#if defined(VISUAL) |
#if defined(VISUAL) || defined(__MINGW32__) || defined(__MINGW64__) |
#if defined(VISUAL_LIB) |
#if defined(VISUAL_LIB) |
#include <stdio.h> |
#include <stdio.h> |
#include <stdlib.h> |
#include <stdlib.h> |
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 114 static String fallback[] = { |
|
Line 114 static String fallback[] = { |
|
}; |
}; |
|
|
static void Done(); |
static void Done(); |
|
static void Quit(); |
static void SetSelected(); |
static void SetSelected(); |
static void SetDismiss(); |
static void SetDismiss(); |
|
|
static XtActionsRec actions_table[] = { |
static XtActionsRec actions_table[] = { |
{"done",Done}, |
{"done",Done}, |
|
{"quit",Quit}, |
}; |
}; |
|
|
char debug_cmd[BUFSIZ]; |
char debug_cmd[BUFSIZ]; |
Line 159 static void SetDismiss(Widget w,XtPointer cld,XtPointe |
|
Line 161 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 201 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); |
|
|
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, |
toplevel,arg,n); |
toplevel,arg,n); |
|
XtOverrideTranslations(mainwin, |
|
XtParseTranslationTable("<Message>WM_PROTOCOLS: quit()")); |
/* |
/* |
* Command line |
* Command line |
*/ |
*/ |
Line 209 void init_cmdwin() |
|
Line 222 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; |
} |
} |