![]() ![]() | ![]() |
version 1.11, 2000/11/09 02:30:44 | version 1.12, 2001/08/22 09:19:21 | ||
---|---|---|---|
|
|
||
* 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/plot/ox_plot_xevent.c,v 1.10 2000/11/09 01:51:12 noro Exp $ | * $OpenXM: OpenXM_contrib2/asir2000/plot/ox_plot_xevent.c,v 1.11 2000/11/09 02:30:44 noro Exp $ | ||
*/ | */ | ||
#include "ca.h" | #include "ca.h" | ||
#include "parse.h" | #include "parse.h" | ||
|
|
||
offset(DashPixel),XtRPixel,(XtPointer)&dashPixel}, | offset(DashPixel),XtRPixel,(XtPointer)&dashPixel}, | ||
}; | }; | ||
init_plot_display(argc,argv) | int init_plot_display(argc,argv) | ||
int argc; | int argc; | ||
char **argv; | char **argv; | ||
{ | { | ||
|
|
||
unsigned int tmp; | unsigned int tmp; | ||
for ( ac = argc, av = argv; ac; ac--, av++ ) | for ( ac = argc, av = argv; ac; ac--, av++ ) | ||
if ( index(*av,':') ) | if ( !strcmp(*av,"nox") ) | ||
return 0; | |||
else if ( index(*av,':') ) | |||
dname = *av; | dname = *av; | ||
XtToolkitInitialize(); | XtToolkitInitialize(); | ||
app_con = XtCreateApplicationContext(); | app_con = XtCreateApplicationContext(); | ||
|
|
||
options,XtNumber(options),&argc,argv); | options,XtNumber(options),&argc,argv); | ||
if ( !display ) { | if ( !display ) { | ||
fprintf(stderr,"Can't open display\n"); | fprintf(stderr,"Can't open display\n"); | ||
exit(1); | return 0; | ||
} | } | ||
toplevel = XtAppCreateShell(0,"Plot",applicationShellWidgetClass, | toplevel = XtAppCreateShell(0,"Plot",applicationShellWidgetClass, | ||
display,0,0); | display,0,0); | ||
|
|
||
create_gc(); | create_gc(); | ||
create_font(); | create_font(); | ||
create_cursors(); | create_cursors(); | ||
return 1; | |||
} | } | ||
static char *scalefont = "*-8-80-*"; | static char *scalefont = "*-8-80-*"; |