Debian Codegraph @

gui/XAlice/prj/alice.prj

raw
1 ! UIMX ascii 2.0 key: 4933
2
3 *alice.class: Project
4 *alice.PjName: alice
5 *alice.PjDoMain: 1
6 *alice.PjDoMake: 1
7 *alice.PjWriteAll: 0
8 *alice.PjRunMake: 0
9 *alice.PjStartupIface: AliceShell
10 *alice.PjWriteCDir: /midas/93N04/gui/XAlice/src
11 *alice.PjMode: 0
12
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
22
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
32
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
42
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
52
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
62
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
72
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
82
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
92
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
102
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
112
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
122
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
132
133 *uxmain.class: PJuxmain
134 *uxmain.PjName: uxmain
135 *uxmain.PjParent: alice
136 *uxmain.PjFileName: alice.c
137 *uxmain.PjDate: 746896627
138 *uxmain.PjMode: 0
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. \
143 * \
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. \
148 * \
149 * $Date: 2003-06-04 14:49:19 $ $Revision: 1.1.1.1 $ \
150 *-----------------------------------------------------------*/\
151 #ifdef XOPEN_CATALOG\
152 #include <locale.h>\
153 #endif\
154 \
155 #include <UxLib.h>\
156 \
157 \
158 /*----------------------------------------------\
159 * Insert application global declarations here\
160 *---------------------------------------------*/\
161 swidget GaussShell;\
162 swidget ListPopup;\
163 #include <signal.h>\
164 #include <StdResources.h>\
165 #include "procedures.c"\
166 main(argc,argv)\
167 int argc;\
168 char *argv[];\
169 {\
170 /*-----------------------------------------------------------\
171 * Declarations.\
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 *-----------------------------------------------------------*/ \
179 \
180 $PJ_INTERFACE_RETVAL_TYPE\
181 \
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\
190 \
191 /*---------------------\
192 * Initialize Program\
193 *--------------------*/\
194 \
195 #ifdef XOPEN_CATALOG\
196 setlocale(LC_ALL, "");\
197 #endif\
198 \
199 \
200 UxTopLevel = UxInitialize("$PJ_APP_CLASS_NAME", &argc, argv);\
201 \
202 /*------------------------------------------------------\
203 * Insert initialization code for your application here\
204 *-------------------------------------------------------*/\
205 \
206 init_alice(); \
207 MonitorPid = atoi(argv[1]); \
208 \
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 *---------------------------------------------------------------*/\
215 \
216 $PJ_INTERFACE_FUNCTION_CALL\
217 $PJ_POPUP_CALL\
218 \
219 /*-------------------------\
220 * Enter the event loop \
221 *------------------------*/\
222 signal(SIGINT,SIG_IGN);\
223 signal(SIGQUIT,SIG_IGN); \
224 $PJ_EVENT_LOOP\
225 \
226 }\
227
228 *uxmain.PjExplicitEventLoop: {\
229 \
230 XEvent event;\
231 \
232 for (;;)\
233 {\
234 UxNextEvent(&event);\
235 \
236 switch (event.type)\
237 {\
238 \
239 /*----------------------------------------------------\
240 * Insert code here to handle any events that you do\
241 * not wish to be handled by the interface.\
242 *----------------------------------------------------*/\
243 \
244 default:\
245 UxDispatchEvent(&event);\
246 break;\
247 }\
248 }\
249 }
250 *uxmain.PjEdited: 1
251 *uxmain.PjHasImplicitLoop: 1
252 *uxmain.PjHasExplicitLoop: 0
253
254 *xtmain.class: PJxtmain
255 *xtmain.PjName: xtmain
256 *xtmain.PjParent: alice
257 *xtmain.PjFileName: alice.c
258 *xtmain.PjDate: 716824487
259 *xtmain.PjMode: 1
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. \
264 * \
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 \
268 * generated. \
269 *\
270 * $Date: 2003-06-04 14:49:19 $ $Revision: 1.1.1.1 $ \
271 *-----------------------------------------------------------*/ \
272 \
273 #ifdef XOPEN_CATALOG\
274 #include <locale.h>\
275 #endif\
276 \
277 #include <X11/Intrinsic.h>\
278 #include <X11/StringDefs.h>\
279 \
280 /*---------------------------------------------------- \
281 * UxXt.h needs to be included only when compiling a \
282 * stand-alone application. \
283 *---------------------------------------------------*/\
284 #ifndef DESIGN_TIME\
285 #include "UxXt.h"\
286 #endif /* DESIGN_TIME */\
287 \
288 XtAppContext UxAppContext;\
289 Widget UxTopLevel;\
290 Display *UxDisplay;\
291 int UxScreen;\
292 \
293 /*----------------------------------------------\
294 * Insert application global declarations here\
295 *---------------------------------------------*/\
296 swidget bullet;\
297 int STEP_TEXT_MOD;\
298 main(argc,argv)\
299 int argc;\
300 char *argv[];\
301 {\
302 /*-----------------------------------------------------------\
303 * Declarations.\
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 *----------------------------------------------------------*/ \
311 \
312 $PJ_INTERFACE_RETVAL_TYPE\
313 \
314 /*---------------------------------\
315 * Interface function declaration\
316 *--------------------------------*/ \
317 extern swidget create_bullet1();\
318 extern swidget create_topLevelShell2();\
319 \
320 $PJ_INTERFACE_FUNCTION_DECL\
321 $PJ_INTERFACE_FUNCTION_ARG_DECL\
322 \
323 \
324 /*---------------------\
325 * Initialize program\
326 *--------------------*/\
327 \
328 #ifdef XOPEN_CATALOG\
329 setlocale(LC_ALL, "");\
330 #endif\
331 \
332 UxTopLevel = XtAppInitialize(&UxAppContext, "$PJ_APP_CLASS_NAME",\
333 NULL, 0, &argc, argv, NULL, NULL, 0);\
334 \
335 UxDisplay = XtDisplay(UxTopLevel);\
336 UxScreen = XDefaultScreen(UxDisplay);\
337 \
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). */\
341 \
342 XtVaSetValues(UxTopLevel,\
343 XtNx, 0,\
344 XtNy, 0,\
345 XtNwidth, DisplayWidth(UxDisplay, UxScreen),\
346 XtNheight, DisplayHeight(UxDisplay, UxScreen),\
347 NULL);\
348 \
349 /*-------------------------------------------------------\
350 * Insert initialization code for your application here \
351 *------------------------------------------------------*/\
352 \
353 init_alice();\
354 \
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 *---------------------------------------------------------------*/\
361 \
362 $PJ_INTERFACE_FUNCTION_CALL\
363 $PJ_POPUP_CALL\
364 \
365 /*-----------------------\
366 * Enter the event loop \
367 *----------------------*/\
368 \
369 $PJ_EVENT_LOOP\
370 \
371 }\
372
373 *xtmain.PjExplicitEventLoop: {\
374 \
375 XEvent event;\
376 \
377 for (;;)\
378 {\
379 XtAppNextEvent(UxAppContext, &event);\
380 \
381 switch (event.type)\
382 {\
383 \
384 /*---------------------------------------------------\
385 * Insert code here to handle any events that you do\
386 * not wish to be handled by the interface.\
387 *---------------------------------------------------*/\
388 \
389 default:\
390 XtDispatchEvent(&event);\
391 break;\
392 }\
393 }\
394 }
395 *xtmain.PjEdited: 1
396 *xtmain.PjHasImplicitLoop: 1
397 *xtmain.PjHasExplicitLoop: 0
398
399 *uxmake.class: PJuxmake
400 *uxmake.PjName: uxmake
401 *uxmake.PjParent: alice
402 *uxmake.PjFileName: makefile
403 *uxmake.PjDate: 746896630
404 *uxmake.PjMode: 0
405 *uxmake.PjBody: ########################################################################\
406 # \
407 # MAKEFILE FOR STAND-ALONE UX CODE APPLICATION.\
408 #\
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\
414 # your application \
415 #\
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. \
419 #\
420 # $Date: 2003-06-04 14:49:19 $ $Revision: 1.1.1.1 $\
421 #########################################################################\
422 \
423 \
424 include ../../../local/default.mk\
425 \
426 CMAIN = $PJ_MAIN_SRC\
427 CINTERFACES = $PJ_INTERFACES_SRC\
428 EXEC = XAlice\
429 EXECUTABLE = ../../exec/$(EXEC).exe\
430 \
431 MAIN = $(CMAIN:.c=.o)\
432 INTERFACES = $(CINTERFACES:.c=.o)\
433 \
434 APPL_OBJS = aliceagl.o misc.o \
435 UX_DIR = ../../GraphLib/libsrc/uimx\
436 \
437 LINC = ../../incl\
438 GINC = ../incl\
439 \
440 UX_LIBPATH = -L../../lib\
441 \
442 X_CFLAGS =\
443 MOTIF_CFLAGS =\
444 \
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 \\
448 $(XMINC) $(X11INC)\
449 \
450 XOPEN_LIBS = \
451 \
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)\
456 \
457 LLIB = $(UX_LIBPATH) -lmgauss -luimx -lcom -L$(LIBDIR) \\
458 -lagl3 -lidicl -lmidas -ltw\
459 \
460 LIBS = $(LIBDIR)/libmidas.a\
461 \
462 OBJS = $(MAIN) $(INTERFACES) $(APPL_OBJS) \
463 \
464 all: tmp_makefile $(EXECUTABLE) \
465 \
466 $(EXECUTABLE): $(OBJS) $(LIBS)\
467 $(LDCC) $(OBJS) $(LLIB) $(XLIB) $(MLIB) -o $(EXECUTABLE)\
468 $(STRIP) $(EXECUTABLE)\
469 @echo "done"\
470 \
471 clean:\
472 $(RM) $(OBJS)\
473 \
474 clean_exec:\
475 $(RM) $(EXECUTABLE)\
476 \
477 \
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\
485 rm -f makefile\
486 mv tmp_makefile makefile\
487 \
488 \
489 \
490 \
491 \
492 \
493 \
494
495 *uxmake.PjEdited: 1
496
497 *xtmake.class: PJxtmake
498 *xtmake.PjName: xtmake
499 *xtmake.PjParent: alice
500 *xtmake.PjFileName: alice.mk
501 *xtmake.PjDate: 716824487
502 *xtmake.PjMode: 1
503 *xtmake.PjBody: #########################################################################\
504 #\
505 # MAKEFILE FOR STAND-ALONE XT CODE APPLICATION. \
506 #\
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\
512 # your application\
513 #\
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.\
517 #\
518 # This template is used for makefiles which do not reference \
519 # the Ux runtime library.\
520 #\
521 # $Date: 2003-06-04 14:49:19 $ $Revision: 1.1.1.1 $\
522 #########################################################################\
523 \
524 EXECUTABLE = $PJ_EXECUTABLE\
525 MAIN = $PJ_MAIN_SRC\
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\
531 \
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\
536 \
537 # flags for HP-MC680*00 machines (series 300, 400)\
538 S300_FLAGS = -Wc,-Ns10000,-Np300,-Nw500 -Wp,-H400000\
539 \
540 # flags for HP-PA machines (series 600, 700, 800)\
541 S800_FLAGS = -Wp,-H400000 -z\
542 \
543 \
544 \
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) \\
551 $(S800_FLAGS)\
552 LIBPATH = $(X_LIBPATH) $(MOTIF_LIBPATH)\
553 LIBS = $(X_LIBS) -lPW -lm\
554 \
555 \
556 OBJS = $(MAIN:.c=.o) $(INTERFACES:.c=.o) $(APPL_OBJS)\
557 \
558 \
559 \
560 \
561 \
562 $(EXECUTABLE): $(OBJS)\
563 $(CC) $(OBJS) $(LIBPATH) $(LIBS) -o $(EXECUTABLE)\
564 @echo "done"\
565
566 *xtmake.PjEdited: 1