Debian Codegraph @

gui/XAlice/prj/XAlice.prj

raw
1 ! UIMX ascii 2.0 key: 1786
2
3 *XAlice.class: Project
4 *XAlice.PjName: XAlice
5 *XAlice.PjDoMain: 1
6 *XAlice.PjDoMake: 0
7 *XAlice.PjWriteAll: 0
8 *XAlice.PjRunMake: 0
9 *XAlice.PjStartupIface: AliceShell
10 *XAlice.PjWriteCDir: /midas/93N08/gui/XAlice/src
11 *XAlice.PjMode: 0
12 *XAlice.PjAppClassName: XAlice
13
14 *sh_list1_PJinterface.class: PJinterface
15 *sh_list1_PJinterface.PjName: sh_list1_PJinterface
16 *sh_list1_PJinterface.PjSwName: sh_list1
17 *sh_list1_PJinterface.PjParent: XAlice
18 *sh_list1_PJinterface.PjFileName: sh_list1.i
19 *sh_list1_PJinterface.PjShowFlag: 0
20 *sh_list1_PJinterface.PjDate: 755556621
21 *sh_list1_PJinterface.PjMode: 0
22 *sh_list1_PJinterface.PjCFileName: sh_list1.c
23
24 *StatShell_PJinterface.class: PJinterface
25 *StatShell_PJinterface.PjName: StatShell_PJinterface
26 *StatShell_PJinterface.PjSwName: StatShell
27 *StatShell_PJinterface.PjParent: XAlice
28 *StatShell_PJinterface.PjFileName: StatShell.i
29 *StatShell_PJinterface.PjShowFlag: 0
30 *StatShell_PJinterface.PjDate: 755382390
31 *StatShell_PJinterface.PjMode: 0
32 *StatShell_PJinterface.PjCFileName: StatShell.c
33
34 *MessageShell_PJinterface.class: PJinterface
35 *MessageShell_PJinterface.PjName: MessageShell_PJinterface
36 *MessageShell_PJinterface.PjSwName: MessageShell
37 *MessageShell_PJinterface.PjParent: XAlice
38 *MessageShell_PJinterface.PjFileName: MessageShell.i
39 *MessageShell_PJinterface.PjShowFlag: 0
40 *MessageShell_PJinterface.PjDate: 755382391
41 *MessageShell_PJinterface.PjMode: 0
42 *MessageShell_PJinterface.PjCFileName: MessageShell.c
43
44 *LabelOptions_PJinterface.class: PJinterface
45 *LabelOptions_PJinterface.PjName: LabelOptions_PJinterface
46 *LabelOptions_PJinterface.PjSwName: LabelOptions
47 *LabelOptions_PJinterface.PjParent: XAlice
48 *LabelOptions_PJinterface.PjFileName: LabelOptions.i
49 *LabelOptions_PJinterface.PjShowFlag: 0
50 *LabelOptions_PJinterface.PjDate: 755382391
51 *LabelOptions_PJinterface.PjMode: 0
52 *LabelOptions_PJinterface.PjCFileName: LabelOptions.c
53
54 *LabelCursor_PJinterface.class: PJinterface
55 *LabelCursor_PJinterface.PjName: LabelCursor_PJinterface
56 *LabelCursor_PJinterface.PjSwName: LabelCursor
57 *LabelCursor_PJinterface.PjParent: XAlice
58 *LabelCursor_PJinterface.PjFileName: LabelCursor.i
59 *LabelCursor_PJinterface.PjShowFlag: 2
60 *LabelCursor_PJinterface.PjDate: 755878601
61 *LabelCursor_PJinterface.PjMode: 0
62 *LabelCursor_PJinterface.PjCFileName: LabelCursor.c
63
64 *Savefiles_PJinterface.class: PJinterface
65 *Savefiles_PJinterface.PjName: Savefiles_PJinterface
66 *Savefiles_PJinterface.PjSwName: Savefiles
67 *Savefiles_PJinterface.PjParent: XAlice
68 *Savefiles_PJinterface.PjFileName: Savefiles.i
69 *Savefiles_PJinterface.PjShowFlag: 0
70 *Savefiles_PJinterface.PjDate: 755382392
71 *Savefiles_PJinterface.PjMode: 0
72 *Savefiles_PJinterface.PjCFileName: Savefiles.c
73
74 *AliceShell_PJinterface.class: PJinterface
75 *AliceShell_PJinterface.PjName: AliceShell_PJinterface
76 *AliceShell_PJinterface.PjSwName: AliceShell
77 *AliceShell_PJinterface.PjParent: XAlice
78 *AliceShell_PJinterface.PjFileName: AliceShell.i
79 *AliceShell_PJinterface.PjShowFlag: 2
80 *AliceShell_PJinterface.PjDate: 755881145
81 *AliceShell_PJinterface.PjMode: 0
82 *AliceShell_PJinterface.PjCFileName: AliceShell.c
83
84 *RebinShell_PJinterface.class: PJinterface
85 *RebinShell_PJinterface.PjName: RebinShell_PJinterface
86 *RebinShell_PJinterface.PjSwName: RebinShell
87 *RebinShell_PJinterface.PjParent: XAlice
88 *RebinShell_PJinterface.PjFileName: RebinShell.i
89 *RebinShell_PJinterface.PjShowFlag: 0
90 *RebinShell_PJinterface.PjDate: 755382395
91 *RebinShell_PJinterface.PjMode: 0
92 *RebinShell_PJinterface.PjCFileName: RebinShell.c
93
94 *SaveAsShell_PJinterface.class: PJinterface
95 *SaveAsShell_PJinterface.PjName: SaveAsShell_PJinterface
96 *SaveAsShell_PJinterface.PjSwName: SaveAsShell
97 *SaveAsShell_PJinterface.PjParent: XAlice
98 *SaveAsShell_PJinterface.PjFileName: SaveAsShell.i
99 *SaveAsShell_PJinterface.PjShowFlag: 0
100 *SaveAsShell_PJinterface.PjDate: 755875495
101 *SaveAsShell_PJinterface.PjMode: 0
102 *SaveAsShell_PJinterface.PjCFileName: SaveAsShell.c
103
104 *HelpTopLevel_PJinterface.class: PJinterface
105 *HelpTopLevel_PJinterface.PjName: HelpTopLevel_PJinterface
106 *HelpTopLevel_PJinterface.PjSwName: HelpTopLevel
107 *HelpTopLevel_PJinterface.PjParent: XAlice
108 *HelpTopLevel_PJinterface.PjFileName: HelpTopLevel.i
109 *HelpTopLevel_PJinterface.PjShowFlag: 0
110 *HelpTopLevel_PJinterface.PjDate: 755382395
111 *HelpTopLevel_PJinterface.PjMode: 0
112 *HelpTopLevel_PJinterface.PjCFileName: HelpTopLevel.c
113
114 *GaussShell_PJinterface.class: PJinterface
115 *GaussShell_PJinterface.PjName: GaussShell_PJinterface
116 *GaussShell_PJinterface.PjSwName: GaussShell
117 *GaussShell_PJinterface.PjParent: XAlice
118 *GaussShell_PJinterface.PjFileName: GaussShell.i
119 *GaussShell_PJinterface.PjShowFlag: 0
120 *GaussShell_PJinterface.PjDate: 755878063
121 *GaussShell_PJinterface.PjMode: 0
122 *GaussShell_PJinterface.PjCFileName: GaussShell.c
123
124 *OverPlotShell_PJinterface.class: PJinterface
125 *OverPlotShell_PJinterface.PjName: OverPlotShell_PJinterface
126 *OverPlotShell_PJinterface.PjSwName: OverPlotShell
127 *OverPlotShell_PJinterface.PjParent: XAlice
128 *OverPlotShell_PJinterface.PjFileName: OverPlotShell.i
129 *OverPlotShell_PJinterface.PjShowFlag: 0
130 *OverPlotShell_PJinterface.PjDate: 755556181
131 *OverPlotShell_PJinterface.PjMode: 0
132 *OverPlotShell_PJinterface.PjCFileName: OverPlotShell.c
133
134 *Printer_PJinterface.class: PJinterface
135 *Printer_PJinterface.PjName: Printer_PJinterface
136 *Printer_PJinterface.PjSwName: Printer
137 *Printer_PJinterface.PjParent: XAlice
138 *Printer_PJinterface.PjFileName: Printer.i
139 *Printer_PJinterface.PjShowFlag: 0
140 *Printer_PJinterface.PjDate: 755876050
141 *Printer_PJinterface.PjMode: 0
142 *Printer_PJinterface.PjCFileName: Printer.c
143
144 *uxmain.class: PJuxmain
145 *uxmain.PjName: uxmain
146 *uxmain.PjParent: XAlice
147 *uxmain.PjFileName: XAlice.c
148 *uxmain.PjDate: 755881145
149 *uxmain.PjMode: 0
150 *uxmain.PjBody: /*------------------------------------------------------------\
151 * This is the project main program file for Ux generated \
152 * code. You may add application dependent source code\
153 * at the appropriate places. \
154 * \
155 * Do not modify the statements preceded by the dollar\
156 * sign ($), these statements will be replaced with\
157 * the appropriate source code when the main program is\
158 * automatically generated. \
159 * \
160 * $Date: 2003-06-04 14:49:19 $ $Revision: 1.1.1.1 $ \
161 *-----------------------------------------------------------*/\
162 #ifdef XOPEN_CATALOG\
163 #include <locale.h>\
164 #endif\
165 \
166 #include <UxLib.h>\
167 \
168 \
169 /*----------------------------------------------\
170 * Insert application global declarations here\
171 *---------------------------------------------*/\
172 swidget GaussShell;\
173 swidget ListPopup;\
174 #include <signal.h>\
175 #include <StdResources.h>\
176 #include "procedures.c"\
177 main(argc,argv)\
178 int argc;\
179 char *argv[];\
180 {\
181 /*-----------------------------------------------------------\
182 * Declarations.\
183 * The default identifier - mainIface will only be declared \
184 * if the interface function is global and of type swidget. \
185 * To change the identifier to a different name, modify the\
186 * string mainIface in the file "main.dat". If "mainIface"\
187 * is declared, it will be used below where the return value \
188 * of PJ_INTERFACE_FUNCTION_CALL will be assigned to it.\
189 *-----------------------------------------------------------*/ \
190 \
191 $PJ_INTERFACE_RETVAL_TYPE\
192 \
193 /*--------------------------------\
194 * Interface function declaration\
195 *-------------------------------*/ \
196 extern swidget create_GaussShell();\
197 extern swidget create_topLevelShell2();\
198 extern swidget create_sh_list1();\
199 $PJ_INTERFACE_FUNCTION_DECL\
200 $PJ_INTERFACE_FUNCTION_ARG_DECL\
201 \
202 /*---------------------\
203 * Initialize Program\
204 *--------------------*/\
205 \
206 #ifdef XOPEN_CATALOG\
207 setlocale(LC_ALL, "");\
208 #endif\
209 \
210 \
211 UxTopLevel = UxInitialize("$PJ_APP_CLASS_NAME", &argc, argv);\
212 \
213 /*------------------------------------------------------\
214 * Insert initialization code for your application here\
215 *-------------------------------------------------------*/\
216 \
217 init_alice(); \
218 MonitorPid = atoi(argv[1]); \
219 \
220 /*----------------------------------------------------------------\
221 * Create and popup the first window of the interface. The \
222 * return value can be used in the popdown or destroy functions.\
223 * The swidget return value of PJ_INTERFACE_FUNCTION_CALL will\
224 * be assigned to "mainIface" from PJ_INTERFACE_RETVAL_TYPE. \
225 *---------------------------------------------------------------*/\
226 \
227 $PJ_INTERFACE_FUNCTION_CALL\
228 $PJ_POPUP_CALL\
229 \
230 /*-------------------------\
231 * Enter the event loop \
232 *------------------------*/\
233 signal(SIGINT,SIG_IGN);\
234 signal(SIGQUIT,SIG_IGN); \
235 $PJ_EVENT_LOOP\
236 \
237 }\
238
239 *uxmain.PjExplicitEventLoop: {\
240 \
241 XEvent event;\
242 \
243 for (;;)\
244 {\
245 UxNextEvent(&event);\
246 \
247 switch (event.type)\
248 {\
249 \
250 /*----------------------------------------------------\
251 * Insert code here to handle any events that you do\
252 * not wish to be handled by the interface.\
253 *----------------------------------------------------*/\
254 \
255 default:\
256 UxDispatchEvent(&event);\
257 break;\
258 }\
259 }\
260 }
261 *uxmain.PjEdited: 1
262 *uxmain.PjHasImplicitLoop: 1
263 *uxmain.PjHasExplicitLoop: 0
264
265 *xtmain.class: PJxtmain
266 *xtmain.PjName: xtmain
267 *xtmain.PjParent: XAlice
268 *xtmain.PjFileName: XAlice.c
269 *xtmain.PjDate: 716824487
270 *xtmain.PjMode: 1
271 *xtmain.PjBody: /*-----------------------------------------------------------\
272 * This is the project main program file for Xt generated \
273 * code. You may add application dependent source code \
274 * at the appropriate places. \
275 * \
276 * Do not modify the statements preceded by the dollar\
277 * sign ($), these statements will be replaced with\
278 * the appropriate source code when the main program is \
279 * generated. \
280 *\
281 * $Date: 2003-06-04 14:49:19 $ $Revision: 1.1.1.1 $ \
282 *-----------------------------------------------------------*/ \
283 \
284 #ifdef XOPEN_CATALOG\
285 #include <locale.h>\
286 #endif\
287 \
288 #include <X11/Intrinsic.h>\
289 #include <X11/StringDefs.h>\
290 \
291 /*---------------------------------------------------- \
292 * UxXt.h needs to be included only when compiling a \
293 * stand-alone application. \
294 *---------------------------------------------------*/\
295 #ifndef DESIGN_TIME\
296 #include "UxXt.h"\
297 #endif /* DESIGN_TIME */\
298 \
299 XtAppContext UxAppContext;\
300 Widget UxTopLevel;\
301 Display *UxDisplay;\
302 int UxScreen;\
303 \
304 /*----------------------------------------------\
305 * Insert application global declarations here\
306 *---------------------------------------------*/\
307 swidget bullet;\
308 int STEP_TEXT_MOD;\
309 main(argc,argv)\
310 int argc;\
311 char *argv[];\
312 {\
313 /*-----------------------------------------------------------\
314 * Declarations.\
315 * The default identifier - mainIface will only be declared \
316 * if the interface function is global and of type swidget.\
317 * To change the identifier to a different name, modify the\
318 * string mainIface in the file "xtmain.dat". If "mainIface"\
319 * is declared, it will be used below where the return value\
320 * of PJ_INTERFACE_FUNCTION_CALL will be assigned to it.\
321 *----------------------------------------------------------*/ \
322 \
323 $PJ_INTERFACE_RETVAL_TYPE\
324 \
325 /*---------------------------------\
326 * Interface function declaration\
327 *--------------------------------*/ \
328 extern swidget create_bullet1();\
329 extern swidget create_topLevelShell2();\
330 \
331 $PJ_INTERFACE_FUNCTION_DECL\
332 $PJ_INTERFACE_FUNCTION_ARG_DECL\
333 \
334 \
335 /*---------------------\
336 * Initialize program\
337 *--------------------*/\
338 \
339 #ifdef XOPEN_CATALOG\
340 setlocale(LC_ALL, "");\
341 #endif\
342 \
343 UxTopLevel = XtAppInitialize(&UxAppContext, "$PJ_APP_CLASS_NAME",\
344 NULL, 0, &argc, argv, NULL, NULL, 0);\
345 \
346 UxDisplay = XtDisplay(UxTopLevel);\
347 UxScreen = XDefaultScreen(UxDisplay);\
348 \
349 /* We set the geometry of UxTopLevel so that dialogShells\
350 that are parented on it will get centered on the screen\
351 (if defaultPosition is true). */\
352 \
353 XtVaSetValues(UxTopLevel,\
354 XtNx, 0,\
355 XtNy, 0,\
356 XtNwidth, DisplayWidth(UxDisplay, UxScreen),\
357 XtNheight, DisplayHeight(UxDisplay, UxScreen),\
358 NULL);\
359 \
360 /*-------------------------------------------------------\
361 * Insert initialization code for your application here \
362 *------------------------------------------------------*/\
363 \
364 init_alice();\
365 \
366 /*----------------------------------------------------------------\
367 * Create and popup the first window of the interface. The \
368 * return value can be used in the popdown or destroy functions.\
369 * The Widget return value of PJ_INTERFACE_FUNCTION_CALL will \
370 * be assigned to "mainIface" from PJ_INTERFACE_RETVAL_TYPE. \
371 *---------------------------------------------------------------*/\
372 \
373 $PJ_INTERFACE_FUNCTION_CALL\
374 $PJ_POPUP_CALL\
375 \
376 /*-----------------------\
377 * Enter the event loop \
378 *----------------------*/\
379 \
380 $PJ_EVENT_LOOP\
381 \
382 }\
383
384 *xtmain.PjExplicitEventLoop: {\
385 \
386 XEvent event;\
387 \
388 for (;;)\
389 {\
390 XtAppNextEvent(UxAppContext, &event);\
391 \
392 switch (event.type)\
393 {\
394 \
395 /*---------------------------------------------------\
396 * Insert code here to handle any events that you do\
397 * not wish to be handled by the interface.\
398 *---------------------------------------------------*/\
399 \
400 default:\
401 XtDispatchEvent(&event);\
402 break;\
403 }\
404 }\
405 }
406 *xtmain.PjEdited: 1
407 *xtmain.PjHasImplicitLoop: 1
408 *xtmain.PjHasExplicitLoop: 0
409
410 *uxmake.class: PJuxmake
411 *uxmake.PjName: uxmake
412 *uxmake.PjParent: XAlice
413 *uxmake.PjFileName: makefile
414 *uxmake.PjDate: 0
415 *uxmake.PjMode: 0
416 *uxmake.PjBody: ########################################################################\
417 # \
418 # MAKEFILE FOR STAND-ALONE UX CODE APPLICATION.\
419 #\
420 # EXECUTABLE is the name of the executable to be created \
421 # MAIN is the .c file containing your main() function\
422 # INTERFACES is a list of the generated C code files \
423 # APP_OBJS is a (possibly empty) list of the object code\
424 # files that form the non-interface portion of\
425 # your application \
426 #\
427 # In the first three statements, the variables on the right \
428 # of the equal sign will be replaced with their corresponding \
429 # values when the makefile is automatically generated. \
430 #\
431 # $Date: 2003-06-04 14:49:19 $ $Revision: 1.1.1.1 $\
432 #########################################################################\
433 \
434 \
435 include ../../../local/default.mk\
436 \
437 CMAIN = $PJ_MAIN_SRC\
438 CINTERFACES = $PJ_INTERFACES_SRC\
439 EXEC = $PJ_EXECUTABLE\
440 EXECUTABLE = ../../exec/$(EXEC).exe\
441 \
442 MAIN = $(CMAIN:.c=.o)\
443 INTERFACES = $(CINTERFACES:.c=.o)\
444 \
445 APPL_OBJS = aliceagl.o misc.o \
446 UX_DIR = ../../GraphLib/libsrc/$(UIMX)\
447 \
448 LINC = ../../incl\
449 GINC = ../incl\
450 \
451 UX_LIBPATH = -L../../lib\
452 \
453 X_CFLAGS =\
454 MOTIF_CFLAGS =\
455 \
456 CFLAGS = $(C_OPT) $(DEBUG) $(GUI_OPT) \\
457 -I$(LINC) -I$(INC) -I$(GINC) -I$(UX_DIR)/include \\
458 $(X_CFLAGS) $(MOTIF_CFLAGS) -DXOPEN_CATALOG \\
459 $(XMINC) $(X11INC)\
460 \
461 # The following object files are provided to work around a motif bug.\
462 # They are not necessarily needed to compile your application.\
463 LIBPATH = $(X11_LIBPATH) $(MOTIF_LIBPATH)\
464 XLIB = $(LIBPATH) $(X_LIBS) $(XOPEN_LIBS)\
465 \
466 LLIB = $(UX_LIBPATH) -lmgauss -luimx -lcom -L$(LIBDIR) \\
467 -lagl3 -lidicl -ltw -lmidas\
468 \
469 LIBS = $(LIBDIR)/libmidas.a\
470 \
471 OBJS = $(MAIN) $(INTERFACES) $(APPL_OBJS) \
472 \
473 all: tmp_makefile $(EXECUTABLE) \
474 \
475 $(EXECUTABLE): $(OBJS) $(LIBS)\
476 $(LDCC) $(OBJS) $(LLIB) $(XLIB) $(MLIB) -o $(EXECUTABLE)\
477 $(STRIP) $(EXECUTABLE)\
478 @echo "done"\
479 \
480 clean:\
481 $(RM) $(OBJS)\
482 \
483 clean_exec:\
484 $(RM) $(EXECUTABLE)\
485 \
486 \
487 tmp_makefile: makefile\
488 sed -e 's/^MAIN.*//' \\
489 -e 's/^INTERFACES.*//' \\
490 -e 's/^CMAIN/MAIN/' \\
491 -e 's/^CINTERFACES/INTERFACES/' \\
492 -e 's/\([^^]\)\.c/\1\.o/g' \\
493 -e 's/^all: tmp_makefile/all:/' makefile > tmp_makefile\
494 rm -f makefile\
495 mv tmp_makefile makefile\
496 \
497 \
498 \
499 \
500 \
501 \
502 \
503
504 *uxmake.PjEdited: 1
505
506 *xtmake.class: PJxtmake
507 *xtmake.PjName: xtmake
508 *xtmake.PjParent: XAlice
509 *xtmake.PjFileName: XAlice.mk
510 *xtmake.PjDate: 716824487
511 *xtmake.PjMode: 1
512 *xtmake.PjBody: #########################################################################\
513 #\
514 # MAKEFILE FOR STAND-ALONE XT CODE APPLICATION. \
515 #\
516 # EXECUTABLE is the name of the executable to be created \
517 # MAIN is the .c file containing your main() function \
518 # INTERFACES is a list of the generated C code files\
519 # APP_OBJS is a (possibly empty) list of the object code\
520 # files that form the non-interface portion of\
521 # your application\
522 #\
523 # In the first three statements, the variables on the right \
524 # of the equal sign will be replaced with their corresponding\
525 # values when the makefile is automatically generated.\
526 #\
527 # This template is used for makefiles which do not reference \
528 # the Ux runtime library.\
529 #\
530 # $Date: 2003-06-04 14:49:19 $ $Revision: 1.1.1.1 $\
531 #########################################################################\
532 \
533 EXECUTABLE = $PJ_EXECUTABLE\
534 MAIN = $PJ_MAIN_SRC\
535 INTERFACES = $PJ_INTERFACES_SRC\
536 APPL_OBJS = UxXt.o aliceagl.o\
537 UX_DIR = /usr/architect2.0\
538 UX_LIBPATH = $(UX_DIR)/lib\
539 X_LIBS = -lXm -lXt -lX11\
540 \
541 X_LIBPATH = -L/usr/lib/X11R4\
542 MOTIF_LIBPATH = -L/usr/lib/Motif1.1\
543 X_CFLAGS = -I/usr/include/X11R4\
544 MOTIF_CFLAGS = -I/usr/include/Motif1.1\
545 \
546 # flags for HP-MC680*00 machines (series 300, 400)\
547 S300_FLAGS = -Wc,-Ns10000,-Np300,-Nw500 -Wp,-H400000\
548 \
549 # flags for HP-PA machines (series 600, 700, 800)\
550 S800_FLAGS = -Wp,-H400000 -z\
551 \
552 \
553 \
554 # uncomment the following line for ANSI-C code generation\
555 #PROTOTYPES = -Aa -D_HPUX_SOURCE\
556 # uncomment the following line for K&R C code generation\
557 PROTOTYPES = -D_NO_PROTO\
558 CFLAGS = -DSYSV $(PROTOTYPES) -DXOPEN_CATALOG \\
559 $(X_CFLAGS) $(MOTIF_CFLAGS) \\
560 $(S800_FLAGS)\
561 LIBPATH = $(X_LIBPATH) $(MOTIF_LIBPATH)\
562 LIBS = $(X_LIBS) -lPW -lm\
563 \
564 \
565 OBJS = $(MAIN:.c=.o) $(INTERFACES:.c=.o) $(APPL_OBJS)\
566 \
567 \
568 \
569 \
570 \
571 $(EXECUTABLE): $(OBJS)\
572 $(CC) $(OBJS) $(LIBPATH) $(LIBS) -o $(EXECUTABLE)\
573 @echo "done"\
574
575 *xtmake.PjEdited: 1