Debian Codegraph @

gui/XLong/prj/XLong.prj

raw
1 ! UIMX ascii 2.0 key: 382
2
3 *XLong.class: Project
4 *XLong.PjName: XLong
5 *XLong.PjDoMain: 0
6 *XLong.PjDoMake: 0
7 *XLong.PjWriteAll: 0
8 *XLong.PjRunMake: 1
9 *XLong.PjWriteCDir: /diskb/midas/test/gui/XLong/src
10 *XLong.PjMode: 0
11
12 *ApplicWindow_PJinterface.class: PJinterface
13 *ApplicWindow_PJinterface.PjName: ApplicWindow_PJinterface
14 *ApplicWindow_PJinterface.PjSwName: ApplicWindow
15 *ApplicWindow_PJinterface.PjParent: XLong
16 *ApplicWindow_PJinterface.PjFileName: ApplicWindow.i
17 *ApplicWindow_PJinterface.PjShowFlag: 2
18 *ApplicWindow_PJinterface.PjDate: 805643279
19 *ApplicWindow_PJinterface.PjMode: 0
20 *ApplicWindow_PJinterface.PjCFileName: MainShell.c
21
22 *SearchShell_PJinterface.class: PJinterface
23 *SearchShell_PJinterface.PjName: SearchShell_PJinterface
24 *SearchShell_PJinterface.PjSwName: SearchShell
25 *SearchShell_PJinterface.PjParent: XLong
26 *SearchShell_PJinterface.PjFileName: SearchShell.i
27 *SearchShell_PJinterface.PjShowFlag: 2
28 *SearchShell_PJinterface.PjDate: 805639687
29 *SearchShell_PJinterface.PjMode: 0
30 *SearchShell_PJinterface.PjCFileName: SearchShell.c
31
32 *CalibShell_PJinterface.class: PJinterface
33 *CalibShell_PJinterface.PjName: CalibShell_PJinterface
34 *CalibShell_PJinterface.PjSwName: CalibShell
35 *CalibShell_PJinterface.PjParent: XLong
36 *CalibShell_PJinterface.PjFileName: CalibShell.i
37 *CalibShell_PJinterface.PjShowFlag: 0
38 *CalibShell_PJinterface.PjDate: 805643070
39 *CalibShell_PJinterface.PjMode: 0
40 *CalibShell_PJinterface.PjCFileName: CalibShell.c
41
42 *file_list_PJinterface.class: PJinterface
43 *file_list_PJinterface.PjName: file_list_PJinterface
44 *file_list_PJinterface.PjSwName: file_list
45 *file_list_PJinterface.PjParent: XLong
46 *file_list_PJinterface.PjFileName: file_list.i
47 *file_list_PJinterface.PjShowFlag: 2
48 *file_list_PJinterface.PjDate: 744643928
49 *file_list_PJinterface.PjMode: 0
50 *file_list_PJinterface.PjCFileName: file_list.c
51
52 *file_selection_PJinterface.class: PJinterface
53 *file_selection_PJinterface.PjName: file_selection_PJinterface
54 *file_selection_PJinterface.PjSwName: file_selection
55 *file_selection_PJinterface.PjParent: XLong
56 *file_selection_PJinterface.PjFileName: file_selection.i
57 *file_selection_PJinterface.PjShowFlag: 0
58 *file_selection_PJinterface.PjDate: 744643930
59 *file_selection_PJinterface.PjMode: 0
60 *file_selection_PJinterface.PjCFileName: file_selection.c
61
62 *RebinShell_PJinterface.class: PJinterface
63 *RebinShell_PJinterface.PjName: RebinShell_PJinterface
64 *RebinShell_PJinterface.PjSwName: RebinShell
65 *RebinShell_PJinterface.PjParent: XLong
66 *RebinShell_PJinterface.PjFileName: RebinShell.i
67 *RebinShell_PJinterface.PjShowFlag: 0
68 *RebinShell_PJinterface.PjDate: 805639690
69 *RebinShell_PJinterface.PjMode: 0
70 *RebinShell_PJinterface.PjCFileName: RebinShell.c
71
72 *lincat_list_PJinterface.class: PJinterface
73 *lincat_list_PJinterface.PjName: lincat_list_PJinterface
74 *lincat_list_PJinterface.PjSwName: lincat_list
75 *lincat_list_PJinterface.PjParent: XLong
76 *lincat_list_PJinterface.PjFileName: lincat_list.i
77 *lincat_list_PJinterface.PjShowFlag: 2
78 *lincat_list_PJinterface.PjDate: 744643934
79 *lincat_list_PJinterface.PjMode: 0
80 *lincat_list_PJinterface.PjCFileName: lincat_list.c
81
82 *FluxShell_PJinterface.class: PJinterface
83 *FluxShell_PJinterface.PjName: FluxShell_PJinterface
84 *FluxShell_PJinterface.PjSwName: FluxShell
85 *FluxShell_PJinterface.PjParent: XLong
86 *FluxShell_PJinterface.PjFileName: FluxShell.i
87 *FluxShell_PJinterface.PjShowFlag: 2
88 *FluxShell_PJinterface.PjDate: 805643071
89 *FluxShell_PJinterface.PjMode: 0
90 *FluxShell_PJinterface.PjCFileName: FluxShell.c
91
92 *file_dialog_PJinterface.class: PJinterface
93 *file_dialog_PJinterface.PjName: file_dialog_PJinterface
94 *file_dialog_PJinterface.PjSwName: file_dialog
95 *file_dialog_PJinterface.PjParent: XLong
96 *file_dialog_PJinterface.PjFileName: file_dialog.i
97 *file_dialog_PJinterface.PjShowFlag: 0
98 *file_dialog_PJinterface.PjDate: 744643937
99 *file_dialog_PJinterface.PjMode: 0
100 *file_dialog_PJinterface.PjCFileName: SessionShell.c
101
102 *ExtractShell_PJinterface.class: PJinterface
103 *ExtractShell_PJinterface.PjName: ExtractShell_PJinterface
104 *ExtractShell_PJinterface.PjSwName: ExtractShell
105 *ExtractShell_PJinterface.PjParent: XLong
106 *ExtractShell_PJinterface.PjFileName: ExtractShell.i
107 *ExtractShell_PJinterface.PjShowFlag: 2
108 *ExtractShell_PJinterface.PjDate: 805643569
109 *ExtractShell_PJinterface.PjMode: 0
110 *ExtractShell_PJinterface.PjCFileName: ExtractShell.c
111
112 *extin_dialog_PJinterface.class: PJinterface
113 *extin_dialog_PJinterface.PjName: extin_dialog_PJinterface
114 *extin_dialog_PJinterface.PjSwName: extin_dialog
115 *extin_dialog_PJinterface.PjParent: XLong
116 *extin_dialog_PJinterface.PjFileName: extin_dialog.i
117 *extin_dialog_PJinterface.PjShowFlag: 2
118 *extin_dialog_PJinterface.PjDate: 744643940
119 *extin_dialog_PJinterface.PjMode: 0
120 *extin_dialog_PJinterface.PjCFileName: extin_dialog.c
121
122 *resid_dialog_PJinterface.class: PJinterface
123 *resid_dialog_PJinterface.PjName: resid_dialog_PJinterface
124 *resid_dialog_PJinterface.PjSwName: resid_dialog
125 *resid_dialog_PJinterface.PjParent: XLong
126 *resid_dialog_PJinterface.PjFileName: resid_dialog.i
127 *resid_dialog_PJinterface.PjShowFlag: 2
128 *resid_dialog_PJinterface.PjDate: 744643941
129 *resid_dialog_PJinterface.PjMode: 0
130 *resid_dialog_PJinterface.PjCFileName: resid_dialog.c
131
132 *HelpShell_PJinterface.class: PJinterface
133 *HelpShell_PJinterface.PjName: HelpShell_PJinterface
134 *HelpShell_PJinterface.PjSwName: HelpShell
135 *HelpShell_PJinterface.PjParent: XLong
136 *HelpShell_PJinterface.PjFileName: HelpShell.i
137 *HelpShell_PJinterface.PjShowFlag: 2
138 *HelpShell_PJinterface.PjDate: 744643943
139 *HelpShell_PJinterface.PjMode: 0
140 *HelpShell_PJinterface.PjCFileName: HelpShell.c
141
142 *uxmain.class: PJuxmain
143 *uxmain.PjName: uxmain
144 *uxmain.PjParent: XLong
145 *uxmain.PjFileName: XLong.c
146 *uxmain.PjDate: 744643943
147 *uxmain.PjMode: 0
148 *uxmain.PjBody: /*------------------------------------------------------------\
149 * This is the project main program file for Ux generated \
150 * code. You may add application dependent source code\
151 * at the appropriate places. \
152 * \
153 * Do not modify the statements preceded by the dollar\
154 * sign ($), these statements will be replaced with\
155 * the appropriate source code when the main program is\
156 * automatically generated. \
157 * \
158 * $Date: 2003-06-04 14:49:24 $ $Revision: 1.1.1.1 $ \
159 *-----------------------------------------------------------*/\
160 \
161 #ifdef XOPEN_CATALOG\
162 #include <locale.h>\
163 #endif\
164 \
165 #include <UxLib.h>\
166 \
167 \
168 /*----------------------------------------------\
169 * Insert application global declarations here\
170 *---------------------------------------------*/\
171 #include <gl_defs.h>\
172 #include <spec_defs.h>\
173 #include <main_defs.h>\
174 #include <main_decl.h>\
175 \
176 #include <signal.h>\
177 #include <StdResources.h>\
178 \
179 /* variables for file list management */\
180 swidget FileListInterface, TextFieldSwidget;\
181 Widget FileListWidget;\
182 int FillTextField;\
183 char DirSpecs[MAXLINE];\
184 \
185 extern swidget create_file_selection();\
186 extern swidget create_file_list();\
187 extern swidget create_lincat_list();\
188 \
189 \
190 main(argc,argv)\
191 int argc;\
192 char *argv[];\
193 {\
194 /*-----------------------------------------------------------\
195 * Declarations.\
196 * The default identifier - mainIface will only be declared \
197 * if the interface function is global and of type swidget. \
198 * To change the identifier to a different name, modify the\
199 * string mainIface in the file "main.dat". If "mainIface"\
200 * is declared, it will be used below where the return value \
201 * of PJ_INTERFACE_FUNCTION_CALL will be assigned to it.\
202 *-----------------------------------------------------------*/ \
203 \
204 int narg, fsmode = 0;\
205 int cntflag = 1, logflag = 2, dispflag = 1;\
206 \
207 $PJ_INTERFACE_RETVAL_TYPE\
208 \
209 /*--------------------------------\
210 * Interface function declaration\
211 *-------------------------------*/ \
212 \
213 $PJ_INTERFACE_FUNCTION_DECL\
214 $PJ_INTERFACE_FUNCTION_ARG_DECL\
215 \
216 /*---------------------\
217 * Initialize Program\
218 *--------------------*/\
219 \
220 #ifdef XOPEN_CATALOG\
221 setlocale(LC_ALL, "");\
222 #endif\
223 \
224 UxTopLevel = UxInitialize("$PJ_APP_CLASS_NAME", &argc, argv);\
225 \
226 /*------------------------------------------------------\
227 * Insert initialization code for your application here\
228 *-----------------------------------------------------*/\
229 \
230 SetResources(argc, argv);\
231 SCSPRO("XLONG");\
232 SCECNT("PUT", &cntflag, &logflag, &dispflag); \
233 MonitorPid = atoi(argv[1]);\
234 \
235 for (narg = 1; narg < argc; narg++)\
236 if ( (argv[narg][0] == '-') && strcmp(argv[narg], "-fs") == 0 ) \
237 fsmode = 1; /* MOTIF File Sel. */\
238 \
239 if (fsmode == 0)\
240 FileListInterface = create_file_list();\
241 else\
242 FileListInterface = create_file_selection();\
243 \
244 create_lincat_list();\
245 \
246 /*----------------------------------------------------------------\
247 * Create and popup the first window of the interface. The \
248 * return value can be used in the popdown or destroy functions.\
249 * The swidget return value of PJ_INTERFACE_FUNCTION_CALL will\
250 * be assigned to "mainIface" from PJ_INTERFACE_RETVAL_TYPE. \
251 *---------------------------------------------------------------*/\
252 \
253 $PJ_INTERFACE_FUNCTION_CALL\
254 $PJ_POPUP_CALL\
255 \
256 /*-------------------------\
257 * Enter the event loop \
258 *------------------------*/\
259 \
260 signal(SIGINT, SIG_IGN);\
261 signal(SIGQUIT, SIG_IGN);\
262 InitLong();\
263 \
264 $PJ_EVENT_LOOP\
265 \
266 }\
267
268 *uxmain.PjExplicitEventLoop: {\
269 \
270 XEvent event;\
271 \
272 for (;;)\
273 {\
274 UxNextEvent(&event);\
275 \
276 switch (event.type)\
277 {\
278 \
279 /*----------------------------------------------------\
280 * Insert code here to handle any events that you do\
281 * not wish to be handled by the interface.\
282 *----------------------------------------------------*/\
283 \
284 default:\
285 UxDispatchEvent(&event);\
286 break;\
287 }\
288 }\
289 }
290 *uxmain.PjEdited: 1
291 *uxmain.PjHasImplicitLoop: 1
292 *uxmain.PjHasExplicitLoop: 0
293
294 *xtmain.class: PJxtmain
295 *xtmain.PjName: xtmain
296 *xtmain.PjParent: XLong
297 *xtmain.PjFileName: XLong.c
298 *xtmain.PjDate: 0
299 *xtmain.PjMode: -1
300
301 *uxmake.class: PJuxmake
302 *uxmake.PjName: uxmake
303 *uxmake.PjParent: XLong
304 *uxmake.PjFileName: makefile
305 *uxmake.PjDate: 0
306 *uxmake.PjMode: 0
307 *uxmake.PjBody: ########################################################################\
308 # \
309 # MAKEFILE FOR STAND-ALONE UX CODE APPLICATION.\
310 #\
311 # EXECUTABLE is the name of the executable to be created \
312 # MAIN is the .c file containing your main() function\
313 # INTERFACES is a list of the generated C code files \
314 # APP_OBJS is a (possibly empty) list of the object code\
315 # files that form the non-interface portion of\
316 # your application \
317 #\
318 # In the first three statements, the variables on the right \
319 # of the equal sign will be replaced with their corresponding \
320 # values when the makefile is automatically generated. \
321 #\
322 # $Date: 2003-06-04 14:49:24 $ $Revision: 1.1.1.1 $\
323 #########################################################################\
324 \
325 \
326 include ../../../local/default.mk\
327 \
328 \
329 CMAIN = $PJ_MAIN_SRC\
330 CINTERFACES = $PJ_INTERFACES_SRC\
331 EXEC = $PJ_EXECUTABLE\
332 EXECUTABLE = ../../exec/$(EXEC).exe\
333 \
334 MAIN = $(CMAIN:.c=.o)\
335 INTERFACES = $(CINTERFACES:.c=.o) \
336 \
337 APPL_OBJS = midasutil.o alloc.o cb_list.o misc.o splib.o\
338 UX_DIR = ../../GraphLib/libsrc/uimx\
339 \
340 LINC = ../../incl\
341 \
342 UX_LIBPATH = -L../../lib\
343 \
344 X_CFLAGS =\
345 MOTIF_CFLAGS =\
346 \
347 CFLAGS = $(C_OPT) $(DEBUG) $(GUI_OPT) \\
348 -I$(LINC) -I$(INC) -I$(UX_DIR)/include \\
349 $(X_CFLAGS) $(MOTIF_CFLAGS) -DXOPEN_CATALOG \\
350 $(XMINC) $(X11INC)\
351 \
352 XOPEN_LIBS = \
353 \
354 # The following object files are provided to work around a motif bug.\
355 # They are not necessarily needed to compile your application.\
356 LIBPATH = $(X11_LIBPATH) $(MOTIF_LIBPATH)\
357 XLIB = $(LIBPATH) $(X_LIBS) $(XOPEN_LIBS)\
358 \
359 LLIB = $(UX_LIBPATH) -luimx -lcom -L$(LIBDIR) -ltw -lmidas \
360 LIBS = $(LIBDIR)/libmidas.a\
361 \
362 OBJS = $(MAIN) $(INTERFACES) $(APPL_OBJS) \
363 \
364 all: tmp_makefile $(EXECUTABLE) \
365 \
366 $(EXECUTABLE): $(OBJS) $(LIBS)\
367 $(LDCC) $(OBJS) $(LLIB) $(XLIB) $(MLIB) -o $(EXECUTABLE)\
368 $(STRIP) $(EXECUTABLE)\
369 @echo "done"\
370 \
371 clean:\
372 $(RM) $(OBJS)\
373 \
374 clean_exec:\
375 $(RM) $(EXECUTABLE)\
376 \
377 \
378 tmp_makefile: makefile\
379 sed -e 's/^MAIN.*//' \\
380 -e 's/^INTERFACES.*//' \\
381 -e 's/^CMAIN/MAIN/' \\
382 -e 's/^CINTERFACES/INTERFACES/' \\
383 -e 's/\([^^]\)\.c/\1\.o/g' \\
384 -e 's/^all: tmp_makefile/all:/' makefile > tmp_makefile\
385 rm -f makefile\
386 mv tmp_makefile makefile\
387 \
388 \
389 \
390 \
391 \
392 \
393
394 *uxmake.PjEdited: 1
395
396 *xtmake.class: PJxtmake
397 *xtmake.PjName: xtmake
398 *xtmake.PjParent: XLong
399 *xtmake.PjFileName: XLong.mk
400 *xtmake.PjDate: 0
401 *xtmake.PjMode: -1