Debian Codegraph @

gui/XBatch/prj/XBatchred.prj

raw
1 ! UIMX ascii 2.0 key: 4216
2
3 *XBatchred.class: Project
4 *XBatchred.PjName: XBatchred
5 *XBatchred.PjDoMain: 0
6 *XBatchred.PjDoMake: 0
7 *XBatchred.PjWriteAll: 0
8 *XBatchred.PjRunMake: 1
9 *XBatchred.PjStartupIface: ApplicWindow
10 *XBatchred.PjWriteCDir: /midas/test/gui/XBatch/src
11 *XBatchred.PjMode: 0
12
13 *ApplicWindow_PJinterface.class: PJinterface
14 *ApplicWindow_PJinterface.PjName: ApplicWindow_PJinterface
15 *ApplicWindow_PJinterface.PjSwName: ApplicWindow
16 *ApplicWindow_PJinterface.PjParent: XBatchred
17 *ApplicWindow_PJinterface.PjFileName: ApplicWindow.i
18 *ApplicWindow_PJinterface.PjShowFlag: 2
19 *ApplicWindow_PJinterface.PjDate: 807537331
20 *ApplicWindow_PJinterface.PjMode: 0
21 *ApplicWindow_PJinterface.PjCFileName: ApplicWindow.c
22
23 *AirmassShell_PJinterface.class: PJinterface
24 *AirmassShell_PJinterface.PjName: AirmassShell_PJinterface
25 *AirmassShell_PJinterface.PjSwName: AirmassShell
26 *AirmassShell_PJinterface.PjParent: XBatchred
27 *AirmassShell_PJinterface.PjFileName: topLevelShell3.i
28 *AirmassShell_PJinterface.PjShowFlag: 2
29 *AirmassShell_PJinterface.PjDate: 744621840
30 *AirmassShell_PJinterface.PjMode: 0
31 *AirmassShell_PJinterface.PjCFileName: /diskb/midas/test/gui/XBatchred/src/sh_airmass.c
32
33 *file_list_PJinterface.class: PJinterface
34 *file_list_PJinterface.PjName: file_list_PJinterface
35 *file_list_PJinterface.PjSwName: file_list
36 *file_list_PJinterface.PjParent: XBatchred
37 *file_list_PJinterface.PjFileName: file_list.i
38 *file_list_PJinterface.PjShowFlag: 2
39 *file_list_PJinterface.PjDate: 744621844
40 *file_list_PJinterface.PjMode: 0
41 *file_list_PJinterface.PjCFileName: /diskb/midas/test/gui/XBatchred/src/file_list.c
42
43 *file_dialog_PJinterface.class: PJinterface
44 *file_dialog_PJinterface.PjName: file_dialog_PJinterface
45 *file_dialog_PJinterface.PjSwName: file_dialog
46 *file_dialog_PJinterface.PjParent: XBatchred
47 *file_dialog_PJinterface.PjFileName: file_dialog.i
48 *file_dialog_PJinterface.PjShowFlag: 2
49 *file_dialog_PJinterface.PjDate: 744621845
50 *file_dialog_PJinterface.PjMode: 0
51 *file_dialog_PJinterface.PjCFileName: /diskb/midas/test/gui/XBatchred/src/file_dialog.c
52
53 *HelpShell_PJinterface.class: PJinterface
54 *HelpShell_PJinterface.PjName: HelpShell_PJinterface
55 *HelpShell_PJinterface.PjSwName: HelpShell
56 *HelpShell_PJinterface.PjParent: XBatchred
57 *HelpShell_PJinterface.PjFileName: HelpShell.i
58 *HelpShell_PJinterface.PjShowFlag: 2
59 *HelpShell_PJinterface.PjDate: 744621847
60 *HelpShell_PJinterface.PjMode: 0
61 *HelpShell_PJinterface.PjCFileName: /diskb/midas/test/gui/XBatchred/src/HelpShell.c
62
63 *uxmain.class: PJuxmain
64 *uxmain.PjName: uxmain
65 *uxmain.PjParent: XBatchred
66 *uxmain.PjFileName: XBatchred.c
67 *uxmain.PjDate: 744621849
68 *uxmain.PjMode: 0
69 *uxmain.PjBody: /*------------------------------------------------------------\
70 * This is the project main program file for Ux generated \
71 * code. You may add application dependent source code\
72 * at the appropriate places. \
73 * \
74 * Do not modify the statements preceded by the dollar\
75 * sign ($), these statements will be replaced with\
76 * the appropriate source code when the main program is\
77 * automatically generated. \
78 * \
79 * $Date: 2003-06-04 14:49:20 $ $Revision: 1.1.1.1 $ \
80 *-----------------------------------------------------------*/\
81 \
82 #ifdef XOPEN_CATALOG\
83 #include <locale.h>\
84 #endif\
85 \
86 #include <UxLib.h>\
87 \
88 \
89 /*----------------------------------------------\
90 * Insert application global declarations here\
91 *---------------------------------------------*/\
92 #include <gl_defs.h>\
93 #include <spec_defs.h>\
94 #include <main_defs.h>\
95 #include <main_decl.h>\
96 \
97 #include <signal.h>\
98 #include <StdResources.h>\
99 \
100 /* variables for file list management */\
101 swidget FileListInterface, TextFieldSwidget;\
102 Widget FileListWidget;\
103 int FillTextField;\
104 char DirSpecs[MAXLINE];\
105 \
106 extern swidget create_file_list();\
107 \
108 int ExecuteCaller; /* TRUE if "execute" was pressed */\
109 \
110 main(argc,argv)\
111 int argc;\
112 char *argv[];\
113 {\
114 /*-----------------------------------------------------------\
115 * Declarations.\
116 * The default identifier - mainIface will only be declared \
117 * if the interface function is global and of type swidget. \
118 * To change the identifier to a different name, modify the\
119 * string mainIface in the file "main.dat". If "mainIface"\
120 * is declared, it will be used below where the return value \
121 * of PJ_INTERFACE_FUNCTION_CALL will be assigned to it.\
122 *-----------------------------------------------------------*/ \
123 int narg, fsmode = 0;\
124 int cntflag = 1, logflag = 2, dispflag = 1;\
125 \
126 $PJ_INTERFACE_RETVAL_TYPE\
127 \
128 /*--------------------------------\
129 * Interface function declaration\
130 *-------------------------------*/ \
131 \
132 $PJ_INTERFACE_FUNCTION_DECL\
133 $PJ_INTERFACE_FUNCTION_ARG_DECL\
134 \
135 /*---------------------\
136 * Initialize Program\
137 *--------------------*/\
138 \
139 #ifdef XOPEN_CATALOG\
140 setlocale(LC_ALL, "");\
141 #endif\
142 \
143 UxTopLevel = UxInitialize("$PJ_APP_CLASS_NAME", &argc, argv);\
144 \
145 /*------------------------------------------------------\
146 * Insert initialization code for your application here\
147 *-----------------------------------------------------*/\
148 \
149 SetResources(argc, argv);\
150 SCSPRO("XREDUC");\
151 SCECNT("PUT", &cntflag, &logflag, &dispflag);\
152 MonitorPid = atoi(argv[1]);\
153 \
154 FileListInterface = create_file_list();\
155 \
156 /*----------------------------------------------------------------\
157 * Create and popup the first window of the interface. The \
158 * return value can be used in the popdown or destroy functions.\
159 * The swidget return value of PJ_INTERFACE_FUNCTION_CALL will\
160 * be assigned to "mainIface" from PJ_INTERFACE_RETVAL_TYPE. \
161 *---------------------------------------------------------------*/\
162 \
163 $PJ_INTERFACE_FUNCTION_CALL\
164 $PJ_POPUP_CALL\
165 \
166 /*-------------------------\
167 * Enter the event loop \
168 *------------------------*/\
169 \
170 signal(SIGINT, SIG_IGN);\
171 signal(SIGQUIT, SIG_IGN);\
172 InitReduce();\
173 \
174 $PJ_EVENT_LOOP\
175 \
176 }\
177 \
178
179 *uxmain.PjExplicitEventLoop: {\
180 \
181 XEvent event;\
182 \
183 for (;;)\
184 {\
185 UxNextEvent(&event);\
186 \
187 switch (event.type)\
188 {\
189 \
190 /*----------------------------------------------------\
191 * Insert code here to handle any events that you do\
192 * not wish to be handled by the interface.\
193 *----------------------------------------------------*/\
194 \
195 default:\
196 UxDispatchEvent(&event);\
197 break;\
198 }\
199 }\
200 }
201 *uxmain.PjEdited: 1
202 *uxmain.PjHasImplicitLoop: 1
203 *uxmain.PjHasExplicitLoop: 0
204
205 *xtmain.class: PJxtmain
206 *xtmain.PjName: xtmain
207 *xtmain.PjParent: XBatchred
208 *xtmain.PjFileName: XBatchred.c
209 *xtmain.PjDate: 716919776
210 *xtmain.PjMode: 1
211 *xtmain.PjBody: /*-----------------------------------------------------------\
212 * This is the project main program file for Xt generated \
213 * code. You may add application dependent source code \
214 * at the appropriate places. \
215 * \
216 * Do not modify the statements preceded by the dollar\
217 * sign ($), these statements will be replaced with\
218 * the appropriate source code when the main program is \
219 * generated. \
220 *\
221 * $Date: 2003-06-04 14:49:20 $ $Revision: 1.1.1.1 $ \
222 *-----------------------------------------------------------*/ \
223 \
224 #ifdef XOPEN_CATALOG\
225 #include <locale.h>\
226 #endif\
227 \
228 #include <X11/Intrinsic.h>\
229 #include <X11/StringDefs.h>\
230 \
231 /*---------------------------------------------------- \
232 * UxXt.h needs to be included only when compiling a \
233 * stand-alone application. \
234 *---------------------------------------------------*/\
235 #ifndef DESIGN_TIME\
236 #include "UxXt.h"\
237 #endif /* DESIGN_TIME */\
238 \
239 XtAppContext UxAppContext;\
240 Widget UxTopLevel;\
241 Display *UxDisplay;\
242 int UxScreen;\
243 \
244 /*----------------------------------------------\
245 * Insert application global declarations here\
246 *---------------------------------------------*/\
247 #include <signal.h>\
248 \
249 int MonitorPid; /* PID of the Midas monitor */ \
250 swidget ListPopup; /* widget for pop-up of string lists */\
251 swidget FormListPopup; /* widget for pop-up of form names */\
252 swidget FormAirmass; /* widget for pop-up of input form of airmass values */ \
253 swidget TextSwidget;\
254 int ExecuteCaller; /* TRUE if "execute" was pressed */\
255 \
256 Widget FileListWidget;\
257 Widget FormListWidget;\
258 \
259 extern swidget create_sh_list(), create_sh_form_list(), create_sh_airmass();\
260 void handler();\
261 main(argc,argv)\
262 int argc;\
263 char *argv[];\
264 {\
265 /*-----------------------------------------------------------\
266 * Declarations.\
267 * The default identifier - mainIface will only be declared \
268 * if the interface function is global and of type swidget.\
269 * To change the identifier to a different name, modify the\
270 * string mainIface in the file "xtmain.dat". If "mainIface"\
271 * is declared, it will be used below where the return value\
272 * of PJ_INTERFACE_FUNCTION_CALL will be assigned to it.\
273 *----------------------------------------------------------*/ \
274 \
275 $PJ_INTERFACE_RETVAL_TYPE\
276 \
277 /*---------------------------------\
278 * Interface function declaration\
279 *--------------------------------*/ \
280 \
281 $PJ_INTERFACE_FUNCTION_DECL\
282 $PJ_INTERFACE_FUNCTION_ARG_DECL\
283 \
284 /*---------------------\
285 * Initialize program\
286 *--------------------*/\
287 \
288 #ifdef XOPEN_CATALOG\
289 setlocale(LC_ALL, "");\
290 #endif\
291 \
292 UxTopLevel = XtAppInitialize(&UxAppContext, "$PJ_APP_CLASS_NAME",\
293 NULL, 0, &argc, argv, NULL, NULL, 0);\
294 \
295 UxDisplay = XtDisplay(UxTopLevel);\
296 UxScreen = XDefaultScreen(UxDisplay);\
297 \
298 /* We set the geometry of UxTopLevel so that dialogShells\
299 that are parented on it will get centered on the screen\
300 (if defaultPosition is true). */\
301 \
302 XtVaSetValues(UxTopLevel,\
303 XtNx, 0,\
304 XtNy, 0,\
305 XtNwidth, DisplayWidth(UxDisplay, UxScreen),\
306 XtNheight, DisplayHeight(UxDisplay, UxScreen),\
307 NULL);\
308 \
309 /*-------------------------------------------------------\
310 * Insert initialization code for your application here \
311 *------------------------------------------------------*/\
312 \
313 if ( argv[1] != NULL ) \
314 MonitorPid = atoi(argv[1]);\
315 SCSPRO("BATRED");\
316 \
317 signal( SIGINT, handler );\
318 signal( SIGQUIT, handler );\
319 \
320 ListPopup = create_sh_list();\
321 FormListPopup = create_sh_form_list();\
322 FormAirmass = create_sh_airmass();\
323 /*----------------------------------------------------------------\
324 * Create and popup the first window of the interface. The \
325 * return value can be used in the popdown or destroy functions.\
326 * The Widget return value of PJ_INTERFACE_FUNCTION_CALL will \
327 * be assigned to "mainIface" from PJ_INTERFACE_RETVAL_TYPE. \
328 *---------------------------------------------------------------*/\
329 \
330 $PJ_INTERFACE_FUNCTION_CALL\
331 $PJ_POPUP_CALL\
332 \
333 /*-----------------------\
334 * Enter the event loop \
335 *----------------------*/\
336 \
337 $PJ_EVENT_LOOP\
338 \
339 }\
340 \
341 void handler( intr )\
342 int intr;\
343 {\
344 /* Dummy routine for ignoring ^C and ^\. For some strange reason,\
345 the parameter SIG_IGN to signal() doesn't work. */\
346 }\
347
348 *xtmain.PjExplicitEventLoop: {\
349 \
350 XEvent event;\
351 \
352 for (;;)\
353 {\
354 XtAppNextEvent(UxAppContext, &event);\
355 \
356 switch (event.type)\
357 {\
358 \
359 /*---------------------------------------------------\
360 * Insert code here to handle any events that you do\
361 * not wish to be handled by the interface.\
362 *---------------------------------------------------*/\
363 \
364 default:\
365 XtDispatchEvent(&event);\
366 break;\
367 }\
368 }\
369 }
370 *xtmain.PjEdited: 1
371 *xtmain.PjHasImplicitLoop: 1
372 *xtmain.PjHasExplicitLoop: 0
373
374 *uxmake.class: PJuxmake
375 *uxmake.PjName: uxmake
376 *uxmake.PjParent: XBatchred
377 *uxmake.PjFileName: makefile
378 *uxmake.PjDate: 0
379 *uxmake.PjMode: 0
380 *uxmake.PjBody: ########################################################################\
381 # \
382 # MAKEFILE FOR STAND-ALONE UX CODE APPLICATION.\
383 #\
384 # EXECUTABLE is the name of the executable to be created \
385 # MAIN is the .c file containing your main() function\
386 # INTERFACES is a list of the generated C code files \
387 # APP_OBJS is a (possibly empty) list of the object code\
388 # files that form the non-interface portion of\
389 # your application \
390 #\
391 # In the first three statements, the variables on the right \
392 # of the equal sign will be replaced with their corresponding \
393 # values when the makefile is automatically generated. \
394 #\
395 # $Date: 2003-06-04 14:49:20 $ $Revision: 1.1.1.1 $\
396 #########################################################################\
397 \
398 \
399 include ../../../local/default.mk\
400 \
401 \
402 CMAIN = $PJ_MAIN_SRC\
403 CINTERFACES = $PJ_INTERFACES_SRC\
404 EXEC = $PJ_EXECUTABLE\
405 EXECUTABLE = ../../exec/$(EXEC).exe\
406 \
407 MAIN = $(CMAIN:.c=.o)\
408 INTERFACES = $(CINTERFACES:.c=.o) \
409 \
410 APPL_OBJS = execute.o airmass.o batchform.o cb_list.o misc.o\
411 \
412 UX_DIR = ../../GraphLib/libsrc/uimx\
413 \
414 LINC = ../../incl\
415 \
416 UX_LIBPATH = -L../../lib\
417 \
418 X_CFLAGS =\
419 MOTIF_CFLAGS =\
420 \
421 CFLAGS = $(C_OPT) $(DEBUG) $(GUI_OPT) \\
422 -I$(LINC) -I$(INC) -I$(UX_DIR)/include \\
423 $(X_CFLAGS) $(MOTIF_CFLAGS) -DXOPEN_CATALOG \\
424 $(XMINC) $(X11INC)\
425 \
426 XOPEN_LIBS = \
427 \
428 # The following object files are provided to work around a motif bug.\
429 # They are not necessarily needed to compile your application.\
430 LIBPATH = $(X11_LIBPATH) $(MOTIF_LIBPATH)\
431 XLIB = $(LIBPATH) $(X_LIBS) $(XOPEN_LIBS)\
432 \
433 LLIB = $(UX_LIBPATH) -luimx -lcom -L$(LIBDIR) -ltw -lmidas \
434 LIBS = $(LIBDIR)/libmidas.a\
435 \
436 OBJS = $(MAIN) $(INTERFACES) $(APPL_OBJS) \
437 \
438 all: tmp_makefile $(EXECUTABLE) \
439 \
440 $(EXECUTABLE): $(OBJS) $(LIBS)\
441 $(LDCC) $(OBJS) $(LLIB) $(XLIB) $(MLIB) -o $(EXECUTABLE)\
442 $(STRIP) $(EXECUTABLE)\
443 @echo "done"\
444 \
445 clean:\
446 $(RM) $(OBJS)\
447 \
448 clean_exec:\
449 $(RM) $(EXECUTABLE)\
450 \
451 \
452 tmp_makefile: makefile\
453 sed -e 's/^MAIN.*//' \\
454 -e 's/^INTERFACES.*//' \\
455 -e 's/^CMAIN/MAIN/' \\
456 -e 's/^CINTERFACES/INTERFACES/' \\
457 -e 's/\([^^]\)\.c/\1\.o/g' \\
458 -e 's/^all: tmp_makefile/all:/' makefile > tmp_makefile\
459 rm -f makefile\
460 mv tmp_makefile makefile\
461 \
462 \
463 \
464 \
465 \
466 \
467
468 *uxmake.PjEdited: 1
469
470 *xtmake.class: PJxtmake
471 *xtmake.PjName: xtmake
472 *xtmake.PjParent: XBatchred
473 *xtmake.PjFileName: XBatchred.mk
474 *xtmake.PjDate: 716919776
475 *xtmake.PjMode: 1