1
! UIMX ascii 2.0 key: 4933
9
*alice.PjStartupIface: AliceShell
10
*alice.PjWriteCDir: /midas/93N04/gui/XAlice/src
13
*sh_list1_PJinterface.class: PJinterface
14
*sh_list1_PJinterface.PjName: sh_list1_PJinterface
15
*sh_list1_PJinterface.PjSwName: sh_list1
16
*sh_list1_PJinterface.PjParent: alice
17
*sh_list1_PJinterface.PjFileName: sh_list1.i
18
*sh_list1_PJinterface.PjShowFlag: 0
19
*sh_list1_PJinterface.PjDate: 746892841
20
*sh_list1_PJinterface.PjMode: 0
21
*sh_list1_PJinterface.PjCFileName: /astro/midas/93N04/gui/XAlice/src/sh_list1.c
23
*StatShell_PJinterface.class: PJinterface
24
*StatShell_PJinterface.PjName: StatShell_PJinterface
25
*StatShell_PJinterface.PjSwName: StatShell
26
*StatShell_PJinterface.PjParent: alice
27
*StatShell_PJinterface.PjFileName: StatShell.i
28
*StatShell_PJinterface.PjShowFlag: 0
29
*StatShell_PJinterface.PjDate: 746892893
30
*StatShell_PJinterface.PjMode: 0
31
*StatShell_PJinterface.PjCFileName: /astro/midas/93N04/gui/XAlice/src/StatShell.c
33
*MessageShell_PJinterface.class: PJinterface
34
*MessageShell_PJinterface.PjName: MessageShell_PJinterface
35
*MessageShell_PJinterface.PjSwName: MessageShell
36
*MessageShell_PJinterface.PjParent: alice
37
*MessageShell_PJinterface.PjFileName: MessageShell.i
38
*MessageShell_PJinterface.PjShowFlag: 0
39
*MessageShell_PJinterface.PjDate: 746892913
40
*MessageShell_PJinterface.PjMode: 0
41
*MessageShell_PJinterface.PjCFileName: /astro/midas/93N04/gui/XAlice/src/MessageShell.c
43
*LabelOptions_PJinterface.class: PJinterface
44
*LabelOptions_PJinterface.PjName: LabelOptions_PJinterface
45
*LabelOptions_PJinterface.PjSwName: LabelOptions
46
*LabelOptions_PJinterface.PjParent: alice
47
*LabelOptions_PJinterface.PjFileName: LabelOptions.i
48
*LabelOptions_PJinterface.PjShowFlag: 0
49
*LabelOptions_PJinterface.PjDate: 746892933
50
*LabelOptions_PJinterface.PjMode: 0
51
*LabelOptions_PJinterface.PjCFileName: /astro/midas/93N04/gui/XAlice/src/LabelOptions.c
53
*LabelCursor_PJinterface.class: PJinterface
54
*LabelCursor_PJinterface.PjName: LabelCursor_PJinterface
55
*LabelCursor_PJinterface.PjSwName: LabelCursor
56
*LabelCursor_PJinterface.PjParent: alice
57
*LabelCursor_PJinterface.PjFileName: LabelCursor.i
58
*LabelCursor_PJinterface.PjShowFlag: 0
59
*LabelCursor_PJinterface.PjDate: 746892949
60
*LabelCursor_PJinterface.PjMode: 0
61
*LabelCursor_PJinterface.PjCFileName: /astro/midas/93N04/gui/XAlice/src/LabelCursor.c
63
*Savefiles_PJinterface.class: PJinterface
64
*Savefiles_PJinterface.PjName: Savefiles_PJinterface
65
*Savefiles_PJinterface.PjSwName: Savefiles
66
*Savefiles_PJinterface.PjParent: alice
67
*Savefiles_PJinterface.PjFileName: Savefiles.i
68
*Savefiles_PJinterface.PjShowFlag: 0
69
*Savefiles_PJinterface.PjDate: 746892965
70
*Savefiles_PJinterface.PjMode: 0
71
*Savefiles_PJinterface.PjCFileName: /astro/midas/93N04/gui/XAlice/src/Savefiles.c
73
*AliceShell_PJinterface.class: PJinterface
74
*AliceShell_PJinterface.PjName: AliceShell_PJinterface
75
*AliceShell_PJinterface.PjSwName: AliceShell
76
*AliceShell_PJinterface.PjParent: alice
77
*AliceShell_PJinterface.PjFileName: AliceShell.i
78
*AliceShell_PJinterface.PjShowFlag: 2
79
*AliceShell_PJinterface.PjDate: 746896624
80
*AliceShell_PJinterface.PjMode: 0
81
*AliceShell_PJinterface.PjCFileName: /astro/midas/93N04/gui/XAlice/src/AliceShell.c
83
*RebinShell_PJinterface.class: PJinterface
84
*RebinShell_PJinterface.PjName: RebinShell_PJinterface
85
*RebinShell_PJinterface.PjSwName: RebinShell
86
*RebinShell_PJinterface.PjParent: alice
87
*RebinShell_PJinterface.PjFileName: RebinShell.i
88
*RebinShell_PJinterface.PjShowFlag: 0
89
*RebinShell_PJinterface.PjDate: 746892988
90
*RebinShell_PJinterface.PjMode: 0
91
*RebinShell_PJinterface.PjCFileName: /astro/midas/93N04/gui/XAlice/src/RebinShell.c
93
*SaveAsShell_PJinterface.class: PJinterface
94
*SaveAsShell_PJinterface.PjName: SaveAsShell_PJinterface
95
*SaveAsShell_PJinterface.PjSwName: SaveAsShell
96
*SaveAsShell_PJinterface.PjParent: alice
97
*SaveAsShell_PJinterface.PjFileName: SaveAsShell.i
98
*SaveAsShell_PJinterface.PjShowFlag: 0
99
*SaveAsShell_PJinterface.PjDate: 746893003
100
*SaveAsShell_PJinterface.PjMode: 0
101
*SaveAsShell_PJinterface.PjCFileName: /astro/midas/93N04/gui/XAlice/src/SaveAsShell.c
103
*PlotModeShell_PJinterface.class: PJinterface
104
*PlotModeShell_PJinterface.PjName: PlotModeShell_PJinterface
105
*PlotModeShell_PJinterface.PjSwName: PlotModeShell
106
*PlotModeShell_PJinterface.PjParent: alice
107
*PlotModeShell_PJinterface.PjFileName: PlotModeShell.i
108
*PlotModeShell_PJinterface.PjShowFlag: 0
109
*PlotModeShell_PJinterface.PjDate: 746893018
110
*PlotModeShell_PJinterface.PjMode: 0
111
*PlotModeShell_PJinterface.PjCFileName: /astro/midas/93N04/gui/XAlice/src/PlotModeShell.c
113
*HelpTopLevel_PJinterface.class: PJinterface
114
*HelpTopLevel_PJinterface.PjName: HelpTopLevel_PJinterface
115
*HelpTopLevel_PJinterface.PjSwName: HelpTopLevel
116
*HelpTopLevel_PJinterface.PjParent: alice
117
*HelpTopLevel_PJinterface.PjFileName: HelpTopLevel.i
118
*HelpTopLevel_PJinterface.PjShowFlag: 0
119
*HelpTopLevel_PJinterface.PjDate: 746893033
120
*HelpTopLevel_PJinterface.PjMode: 0
121
*HelpTopLevel_PJinterface.PjCFileName: /astro/midas/93N04/gui/XAlice/src/HelpTopLevel.c
123
*GaussShell_PJinterface.class: PJinterface
124
*GaussShell_PJinterface.PjName: GaussShell_PJinterface
125
*GaussShell_PJinterface.PjSwName: GaussShell
126
*GaussShell_PJinterface.PjParent: alice
127
*GaussShell_PJinterface.PjFileName: GaussShell.i
128
*GaussShell_PJinterface.PjShowFlag: 0
129
*GaussShell_PJinterface.PjDate: 746891921
130
*GaussShell_PJinterface.PjMode: 0
131
*GaussShell_PJinterface.PjCFileName: /astro/midas/93N04/gui/XAlice/src/GaussShell.c
133
*uxmain.class: PJuxmain
134
*uxmain.PjName: uxmain
135
*uxmain.PjParent: alice
136
*uxmain.PjFileName: alice.c
137
*uxmain.PjDate: 746896627
139
*uxmain.PjBody: /*------------------------------------------------------------\
140
* This is the project main program file for Ux generated \
141
* code. You may add application dependent source code\
142
* at the appropriate places. \
144
* Do not modify the statements preceded by the dollar\
145
* sign ($), these statements will be replaced with\
146
* the appropriate source code when the main program is\
147
* automatically generated. \
149
* $Date: 2003-06-04 14:49:19 $ $Revision: 1.1.1.1 $ \
150
*-----------------------------------------------------------*/\
151
#ifdef XOPEN_CATALOG\
158
/*----------------------------------------------\
159
* Insert application global declarations here\
160
*---------------------------------------------*/\
164
#include <StdResources.h>\
165
#include "procedures.c"\
170
/*-----------------------------------------------------------\
172
* The default identifier - mainIface will only be declared \
173
* if the interface function is global and of type swidget. \
174
* To change the identifier to a different name, modify the\
175
* string mainIface in the file "main.dat". If "mainIface"\
176
* is declared, it will be used below where the return value \
177
* of PJ_INTERFACE_FUNCTION_CALL will be assigned to it.\
178
*-----------------------------------------------------------*/ \
180
$PJ_INTERFACE_RETVAL_TYPE\
182
/*--------------------------------\
183
* Interface function declaration\
184
*-------------------------------*/ \
185
extern swidget create_GaussShell();\
186
extern swidget create_topLevelShell2();\
187
extern swidget create_sh_list1();\
188
$PJ_INTERFACE_FUNCTION_DECL\
189
$PJ_INTERFACE_FUNCTION_ARG_DECL\
191
/*---------------------\
192
* Initialize Program\
193
*--------------------*/\
195
#ifdef XOPEN_CATALOG\
196
setlocale(LC_ALL, "");\
200
UxTopLevel = UxInitialize("$PJ_APP_CLASS_NAME", &argc, argv);\
202
/*------------------------------------------------------\
203
* Insert initialization code for your application here\
204
*-------------------------------------------------------*/\
207
MonitorPid = atoi(argv[1]); \
209
/*----------------------------------------------------------------\
210
* Create and popup the first window of the interface. The \
211
* return value can be used in the popdown or destroy functions.\
212
* The swidget return value of PJ_INTERFACE_FUNCTION_CALL will\
213
* be assigned to "mainIface" from PJ_INTERFACE_RETVAL_TYPE. \
214
*---------------------------------------------------------------*/\
216
$PJ_INTERFACE_FUNCTION_CALL\
219
/*-------------------------\
220
* Enter the event loop \
221
*------------------------*/\
222
signal(SIGINT,SIG_IGN);\
223
signal(SIGQUIT,SIG_IGN); \
228
*uxmain.PjExplicitEventLoop: {\
234
UxNextEvent(&event);\
239
/*----------------------------------------------------\
240
* Insert code here to handle any events that you do\
241
* not wish to be handled by the interface.\
242
*----------------------------------------------------*/\
245
UxDispatchEvent(&event);\
251
*uxmain.PjHasImplicitLoop: 1
252
*uxmain.PjHasExplicitLoop: 0
254
*xtmain.class: PJxtmain
255
*xtmain.PjName: xtmain
256
*xtmain.PjParent: alice
257
*xtmain.PjFileName: alice.c
258
*xtmain.PjDate: 716824487
260
*xtmain.PjBody: /*-----------------------------------------------------------\
261
* This is the project main program file for Xt generated \
262
* code. You may add application dependent source code \
263
* at the appropriate places. \
265
* Do not modify the statements preceded by the dollar\
266
* sign ($), these statements will be replaced with\
267
* the appropriate source code when the main program is \
270
* $Date: 2003-06-04 14:49:19 $ $Revision: 1.1.1.1 $ \
271
*-----------------------------------------------------------*/ \
273
#ifdef XOPEN_CATALOG\
277
#include <X11/Intrinsic.h>\
278
#include <X11/StringDefs.h>\
280
/*---------------------------------------------------- \
281
* UxXt.h needs to be included only when compiling a \
282
* stand-alone application. \
283
*---------------------------------------------------*/\
286
#endif /* DESIGN_TIME */\
288
XtAppContext UxAppContext;\
293
/*----------------------------------------------\
294
* Insert application global declarations here\
295
*---------------------------------------------*/\
302
/*-----------------------------------------------------------\
304
* The default identifier - mainIface will only be declared \
305
* if the interface function is global and of type swidget.\
306
* To change the identifier to a different name, modify the\
307
* string mainIface in the file "xtmain.dat". If "mainIface"\
308
* is declared, it will be used below where the return value\
309
* of PJ_INTERFACE_FUNCTION_CALL will be assigned to it.\
310
*----------------------------------------------------------*/ \
312
$PJ_INTERFACE_RETVAL_TYPE\
314
/*---------------------------------\
315
* Interface function declaration\
316
*--------------------------------*/ \
317
extern swidget create_bullet1();\
318
extern swidget create_topLevelShell2();\
320
$PJ_INTERFACE_FUNCTION_DECL\
321
$PJ_INTERFACE_FUNCTION_ARG_DECL\
324
/*---------------------\
325
* Initialize program\
326
*--------------------*/\
328
#ifdef XOPEN_CATALOG\
329
setlocale(LC_ALL, "");\
332
UxTopLevel = XtAppInitialize(&UxAppContext, "$PJ_APP_CLASS_NAME",\
333
NULL, 0, &argc, argv, NULL, NULL, 0);\
335
UxDisplay = XtDisplay(UxTopLevel);\
336
UxScreen = XDefaultScreen(UxDisplay);\
338
/* We set the geometry of UxTopLevel so that dialogShells\
339
that are parented on it will get centered on the screen\
340
(if defaultPosition is true). */\
342
XtVaSetValues(UxTopLevel,\
345
XtNwidth, DisplayWidth(UxDisplay, UxScreen),\
346
XtNheight, DisplayHeight(UxDisplay, UxScreen),\
349
/*-------------------------------------------------------\
350
* Insert initialization code for your application here \
351
*------------------------------------------------------*/\
355
/*----------------------------------------------------------------\
356
* Create and popup the first window of the interface. The \
357
* return value can be used in the popdown or destroy functions.\
358
* The Widget return value of PJ_INTERFACE_FUNCTION_CALL will \
359
* be assigned to "mainIface" from PJ_INTERFACE_RETVAL_TYPE. \
360
*---------------------------------------------------------------*/\
362
$PJ_INTERFACE_FUNCTION_CALL\
365
/*-----------------------\
366
* Enter the event loop \
367
*----------------------*/\
373
*xtmain.PjExplicitEventLoop: {\
379
XtAppNextEvent(UxAppContext, &event);\
384
/*---------------------------------------------------\
385
* Insert code here to handle any events that you do\
386
* not wish to be handled by the interface.\
387
*---------------------------------------------------*/\
390
XtDispatchEvent(&event);\
396
*xtmain.PjHasImplicitLoop: 1
397
*xtmain.PjHasExplicitLoop: 0
399
*uxmake.class: PJuxmake
400
*uxmake.PjName: uxmake
401
*uxmake.PjParent: alice
402
*uxmake.PjFileName: makefile
403
*uxmake.PjDate: 746896630
405
*uxmake.PjBody: ########################################################################\
407
# MAKEFILE FOR STAND-ALONE UX CODE APPLICATION.\
409
# EXECUTABLE is the name of the executable to be created \
410
# MAIN is the .c file containing your main() function\
411
# INTERFACES is a list of the generated C code files \
412
# APP_OBJS is a (possibly empty) list of the object code\
413
# files that form the non-interface portion of\
416
# In the first three statements, the variables on the right \
417
# of the equal sign will be replaced with their corresponding \
418
# values when the makefile is automatically generated. \
420
# $Date: 2003-06-04 14:49:19 $ $Revision: 1.1.1.1 $\
421
#########################################################################\
424
include ../../../local/default.mk\
426
CMAIN = $PJ_MAIN_SRC\
427
CINTERFACES = $PJ_INTERFACES_SRC\
429
EXECUTABLE = ../../exec/$(EXEC).exe\
431
MAIN = $(CMAIN:.c=.o)\
432
INTERFACES = $(CINTERFACES:.c=.o)\
434
APPL_OBJS = aliceagl.o misc.o \
435
UX_DIR = ../../GraphLib/libsrc/uimx\
440
UX_LIBPATH = -L../../lib\
445
CFLAGS = $(C_OPT) $(DEBUG) $(GUI_OPT) \\
446
-I$(LINC) -I$(INC) -I$(GINC) -I$(UX_DIR)/include \\
447
$(X_CFLAGS) $(MOTIF_CFLAGS) -DXOPEN_CATALOG \\
452
# The following object files are provided to work around a motif bug.\
453
# They are not necessarily needed to compile your application.\
454
LIBPATH = $(X11_LIBPATH) $(MOTIF_LIBPATH)\
455
XLIB = $(LIBPATH) $(X_LIBS) $(XOPEN_LIBS)\
457
LLIB = $(UX_LIBPATH) -lmgauss -luimx -lcom -L$(LIBDIR) \\
458
-lagl3 -lidicl -lmidas -ltw\
460
LIBS = $(LIBDIR)/libmidas.a\
462
OBJS = $(MAIN) $(INTERFACES) $(APPL_OBJS) \
464
all: tmp_makefile $(EXECUTABLE) \
466
$(EXECUTABLE): $(OBJS) $(LIBS)\
467
$(LDCC) $(OBJS) $(LLIB) $(XLIB) $(MLIB) -o $(EXECUTABLE)\
468
$(STRIP) $(EXECUTABLE)\
478
tmp_makefile: makefile\
479
sed -e 's/^MAIN.*//' \\
480
-e 's/^INTERFACES.*//' \\
481
-e 's/^CMAIN/MAIN/' \\
482
-e 's/^CINTERFACES/INTERFACES/' \\
483
-e 's/\([^^]\)\.c/\1\.o/g' \\
484
-e 's/^all: tmp_makefile/all:/' makefile > tmp_makefile\
486
mv tmp_makefile makefile\
497
*xtmake.class: PJxtmake
498
*xtmake.PjName: xtmake
499
*xtmake.PjParent: alice
500
*xtmake.PjFileName: alice.mk
501
*xtmake.PjDate: 716824487
503
*xtmake.PjBody: #########################################################################\
505
# MAKEFILE FOR STAND-ALONE XT CODE APPLICATION. \
507
# EXECUTABLE is the name of the executable to be created \
508
# MAIN is the .c file containing your main() function \
509
# INTERFACES is a list of the generated C code files\
510
# APP_OBJS is a (possibly empty) list of the object code\
511
# files that form the non-interface portion of\
514
# In the first three statements, the variables on the right \
515
# of the equal sign will be replaced with their corresponding\
516
# values when the makefile is automatically generated.\
518
# This template is used for makefiles which do not reference \
519
# the Ux runtime library.\
521
# $Date: 2003-06-04 14:49:19 $ $Revision: 1.1.1.1 $\
522
#########################################################################\
524
EXECUTABLE = $PJ_EXECUTABLE\
526
INTERFACES = $PJ_INTERFACES_SRC\
527
APPL_OBJS = UxXt.o aliceagl.o\
528
UX_DIR = /usr/architect2.0\
529
UX_LIBPATH = $(UX_DIR)/lib\
530
X_LIBS = -lXm -lXt -lX11\
532
X_LIBPATH = -L/usr/lib/X11R4\
533
MOTIF_LIBPATH = -L/usr/lib/Motif1.1\
534
X_CFLAGS = -I/usr/include/X11R4\
535
MOTIF_CFLAGS = -I/usr/include/Motif1.1\
537
# flags for HP-MC680*00 machines (series 300, 400)\
538
S300_FLAGS = -Wc,-Ns10000,-Np300,-Nw500 -Wp,-H400000\
540
# flags for HP-PA machines (series 600, 700, 800)\
541
S800_FLAGS = -Wp,-H400000 -z\
545
# uncomment the following line for ANSI-C code generation\
546
#PROTOTYPES = -Aa -D_HPUX_SOURCE\
547
# uncomment the following line for K&R C code generation\
548
PROTOTYPES = -D_NO_PROTO\
549
CFLAGS = -DSYSV $(PROTOTYPES) -DXOPEN_CATALOG \\
550
$(X_CFLAGS) $(MOTIF_CFLAGS) \\
552
LIBPATH = $(X_LIBPATH) $(MOTIF_LIBPATH)\
553
LIBS = $(X_LIBS) -lPW -lm\
556
OBJS = $(MAIN:.c=.o) $(INTERFACES:.c=.o) $(APPL_OBJS)\
562
$(EXECUTABLE): $(OBJS)\
563
$(CC) $(OBJS) $(LIBPATH) $(LIBS) -o $(EXECUTABLE)\