Debian Codegraph @

gui/XDo/prj/Associate.i

raw
1 ! UIMX ascii 2.0 key: 577
2 *action.HelpACT: {\
3 /* char *s;\
4 s = XmTextGetSelection(UxWidget); \
5 \
6 XmTextClearSelection(UxWidget,XtLastTimestampProcessed(UxDisplay));\
7 */}
8 *action.WriteHelp: {\
9 char s[100],comm[160] ;\
10 extern char print_com[];\
11 Widget sw = UxWidget;\
12 \
13 strcpy(s,"");\
14 /*sprintf(comm,"WRITE/OUT here");\
15 AppendDialogText(comm);*/\
16 \
17 if (sw == UxGetWidget(UxFindSwidget("ColButton"))) {\
18 strcpy(s,"Select the OST columns to be displayed into the scrolled window");\
19 UxPutText(UxFindSwidget("SHelp") ,s); \
20 } \
21 else if (sw == UxGetWidget(UxFindSwidget("ClassiButton"))) {\
22 strcpy(s,"Activate interface for defining classification rules ");\
23 UxPutText(UxFindSwidget("SHelp") ,s); \
24 } \
25 else if (sw == UxGetWidget(UxFindSwidget("AssoButton"))) {\
26 strcpy(s,"Activate interface for classifying images");\
27 UxPutText(UxFindSwidget("SHelp") ,s); \
28 }\
29 else if (sw == UxGetWidget(UxFindSwidget("AssoButton1"))) {\
30 strcpy(s,"Activate interface for associating calibration exposures to scientific frames");\
31 UxPutText(UxFindSwidget("SHelp") ,s); \
32 }\
33 else if (sw == UxGetWidget(UxFindSwidget("NewsButton3"))) {\
34 strcpy(s,"Create the OST table");\
35 UxPutText(UxFindSwidget("SHelp3") ,s); \
36 }\
37 else if (sw == UxGetWidget(UxFindSwidget("PrintButton3"))) {\
38 strcpy(s,"Popdown this interface");\
39 UxPutText(UxFindSwidget("SHelp3") ,s); \
40 }\
41 else if (sw == UxGetWidget(UxFindSwidget("ost_t1"))){ \
42 strcpy(s,"Name of the Observation Summary Table to be created ");\
43 UxPutText(UxFindSwidget("SHelp3") ,s); \
44 }\
45 else if (sw == UxGetWidget(UxFindSwidget("ost_t2"))){ \
46 strcpy(s,"List of frames to be processed ");\
47 UxPutText(UxFindSwidget("SHelp3") ,s); \
48 } \
49 else if (sw == UxGetWidget(UxFindSwidget("ost_t3"))){ \
50 strcpy(s,"Name of the table containing the list of relevant Midas descriptors"); \
51 UxPutText(UxFindSwidget("SHelp3") ,s); \
52 }\
53 else if (sw == UxGetWidget(UxFindSwidget("pushButton4"))){ \
54 strcpy(s,"Push button to popup the File Selection Box"); \
55 UxPutText(UxFindSwidget("SHelp3") ,s); \
56 }\
57 else if (sw == UxGetWidget(UxFindSwidget("pushButton5"))){ \
58 strcpy(s,"Push button to popup the File Selection Box"); \
59 UxPutText(UxFindSwidget("SHelp3") ,s); \
60 } \
61 }
62 *action.ClearHelp: {\
63 UxPutText(UxFindSwidget("SHelp"),"");\
64 }
65 *action.SelectCommand: {\
66 \
67 \
68 \
69 }
70 *action.nothing: {\
71 printf("toto:\n");\
72 }
73
74 *translation.table: transTable9
75 *translation.parent: Associate
76 *translation.policy: replace
77 *translation.<Btn1Up>: HelpACT()
78 *translation.<Btn1Down>: grab-focus()
79 *translation.<EnterWindow>: WriteHelp()
80 *translation.<LeaveWindow>: ClearHelp()
81
82 *translation.table: transTable10
83 *translation.parent: Associate
84 *translation.policy: override
85 *translation.<Btn1Up> : SelectCommand()
86
87 *translation.table: transTable11
88 *translation.parent: Associate
89 *translation.policy: override
90 *translation.<PtrMoved>: nothing()
91
92 *Associate.class: applicationShell
93 *Associate.parent: NO_PARENT
94 *Associate.static: true
95 *Associate.gbldecl: #include <stdio.h>\
96 #include <ExternResources.h>
97 *Associate.ispecdecl:
98 *Associate.funcdecl: swidget create_Associate()\
99
100 *Associate.funcname: create_Associate
101 *Associate.funcdef: "swidget", "<create_Associate>(%)"
102 *Associate.icode:
103 *Associate.fcode: return(rtrn);\
104
105 *Associate.auxdecl:
106 *Associate.name: Associate
107 *Associate.x: 666
108 *Associate.y: 397
109 *Associate.width: 920
110 *Associate.height: 363
111 *Associate.iconName: "Association Rules"
112
113 *mainWindow3.class: mainWindow
114 *mainWindow3.parent: Associate
115 *mainWindow3.static: true
116 *mainWindow3.name: mainWindow3
117 *mainWindow3.x: 200
118 *mainWindow3.y: 180
119 *mainWindow3.width: 700
120 *mainWindow3.height: 470
121 *mainWindow3.background: WindowBackground
122 *mainWindow3.unitType: "pixels"
123
124 *pullDownMenu3.class: rowColumn
125 *pullDownMenu3.parent: mainWindow3
126 *pullDownMenu3.static: true
127 *pullDownMenu3.name: pullDownMenu3
128 *pullDownMenu3.borderWidth: 0
129 *pullDownMenu3.menuHelpWidget: "pullDownMenu_top_b4"
130 *pullDownMenu3.rowColumnType: "menu_bar"
131 *pullDownMenu3.menuAccelerator: "<KeyUp>F10"
132 *pullDownMenu3.background: MenuBackground
133 *pullDownMenu3.foreground: MenuForeground
134
135 *quitPane3.class: rowColumn
136 *quitPane3.parent: pullDownMenu3
137 *quitPane3.static: true
138 *quitPane3.name: quitPane3
139 *quitPane3.rowColumnType: "menu_pulldown"
140 *quitPane3.background: MenuBackground
141 *quitPane3.foreground: MenuForeground
142
143 *quitPane_b4.class: pushButtonGadget
144 *quitPane_b4.parent: quitPane3
145 *quitPane_b4.static: true
146 *quitPane_b4.name: quitPane_b4
147 *quitPane_b4.labelString: "Bye"
148 *quitPane_b4.activateCallback: {\
149 extern swidget asso;\
150 extern Widget arow1[20],arow2[20],arow3[20],arow4[20];\
151 extern int rowno;\
152 int rows,i;\
153 for (i=0; i<5; i++) {\
154 XmTextSetString(arow1[i],"");\
155 XmTextSetString(arow2[i],"");\
156 XmTextSetString(arow3[i],"");\
157 XmTextSetString(arow4[i],"");\
158 }\
159 for (i=5; i<rowno; i++) {\
160 XtDestroyWidget(arow1[i]);\
161 arow1[i] = (Widget )0;\
162 XtDestroyWidget(arow2[i]); \
163 arow2[i] = (Widget )0;\
164 XtDestroyWidget(arow3[i]);\
165 arow3[i] = (Widget )0;\
166 XtDestroyWidget(arow4[i]);\
167 arow4[i] = (Widget )0;\
168 } \
169 rowno =5;\
170 UxPopdownInterface(asso);\
171 }
172 *quitPane_b4.fontList: BoldTextFont
173
174 *UtilsPane3.class: rowColumn
175 *UtilsPane3.parent: pullDownMenu3
176 *UtilsPane3.static: true
177 *UtilsPane3.name: UtilsPane3
178 *UtilsPane3.rowColumnType: "menu_pulldown"
179 *UtilsPane3.background: MenuBackground
180 *UtilsPane3.foreground: MenuForeground
181
182 *UtilsPane_b11.class: pushButtonGadget
183 *UtilsPane_b11.parent: UtilsPane3
184 *UtilsPane_b11.static: true
185 *UtilsPane_b11.name: UtilsPane_b11
186 *UtilsPane_b11.labelString: "Open ..."
187 *UtilsPane_b11.fontList: BoldTextFont
188 *UtilsPane_b11.activateCallback: {\
189 char s[1000];\
190 extern swidget klist,tablelist;\
191 \
192 extern int do8;\
193 int strip =1;\
194 strcpy(s,"*.tbl");\
195 SetFileList(UxGetWidget(tablelist),strip,s);\
196 UxPutTitle(UxFindSwidget("transientShell8"),"Select Classification Table");\
197 do8 = 2;\
198 UxPopupInterface(klist,no_grab);\
199 }
200
201 *UtilsPane_b12.class: pushButtonGadget
202 *UtilsPane_b12.parent: UtilsPane3
203 *UtilsPane_b12.static: true
204 *UtilsPane_b12.name: UtilsPane_b12
205 *UtilsPane_b12.labelString: "Save"
206 *UtilsPane_b12.fontList: BoldTextFont
207 *UtilsPane_b12.activateCallback: {\
208 extern int tidasso;\
209 char mytext[60];\
210 int tid;\
211 strcpy(mytext,UxGetText(UxFindSwidget("arule_name")));\
212 \
213 tid = TCTID(mytext); \
214 if (tid != -1) TCTCLO(tid);\
215 save_asso_table(mytext);\
216 \
217 }
218
219 *pullDownMenu1_p2.class: rowColumn
220 *pullDownMenu1_p2.parent: pullDownMenu3
221 *pullDownMenu1_p2.static: true
222 *pullDownMenu1_p2.name: pullDownMenu1_p2
223 *pullDownMenu1_p2.rowColumnType: "menu_pulldown"
224 *pullDownMenu1_p2.background: MenuBackground
225 *pullDownMenu1_p2.foreground: MenuForeground
226
227 *pullDownMenu1_p3_b4.class: pushButtonGadget
228 *pullDownMenu1_p3_b4.parent: pullDownMenu1_p2
229 *pullDownMenu1_p3_b4.static: true
230 *pullDownMenu1_p3_b4.name: pullDownMenu1_p3_b4
231 *pullDownMenu1_p3_b4.labelString: "Add"
232 *pullDownMenu1_p3_b4.fontList: BoldTextFont
233 *pullDownMenu1_p3_b4.activateCallback: {\
234 extern int arowno;\
235 extern Widget arow1[20],arow2[20],arow3[20],arow4[20];\
236 char mytext[8];\
237 arowno++;\
238 XtVaSetValues(UxGetWidget(UxFindSwidget("rowasso")),XmNnumColumns,arowno,NULL);\
239 sprintf(mytext,"a1_%d",arowno-1);\
240 arow1[arowno-1] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget( UxFindSwidget("rowasso")),NULL);\
241 sprintf(mytext,"a2_%d",arowno-1);\
242 arow2[arowno-1] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget( UxFindSwidget("rowasso")),NULL);\
243 sprintf(mytext,"a3_%d",arowno-1);\
244 arow3[arowno-1] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget( UxFindSwidget("rowasso")),NULL);\
245 sprintf(mytext,"a4_%d",arowno-1);\
246 arow4[arowno-1] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget( UxFindSwidget("rowasso")),NULL);\
247 }
248
249 *pullDownMenu1_p1_b1.class: pushButtonGadget
250 *pullDownMenu1_p1_b1.parent: pullDownMenu1_p2
251 *pullDownMenu1_p1_b1.static: true
252 *pullDownMenu1_p1_b1.name: pullDownMenu1_p1_b1
253 *pullDownMenu1_p1_b1.labelString: "Reset"
254 *pullDownMenu1_p1_b1.fontList: BoldTextFont
255 *pullDownMenu1_p1_b1.activateCallback: {\
256 extern int arowno;\
257 extern Widget arow1[20],arow2[20],arow3[20],arow4[20];\
258 int i;\
259 for (i=0; i<arowno; i++) {\
260 XmTextSetString(arow1[i],"");\
261 XmTextSetString(arow2[i],"");\
262 XmTextSetString(arow3[i],"");\
263 XmTextSetString(arow4[i],"");\
264 }\
265 }
266
267 *pullDownMenu3_p4.class: rowColumn
268 *pullDownMenu3_p4.parent: pullDownMenu3
269 *pullDownMenu3_p4.static: true
270 *pullDownMenu3_p4.name: pullDownMenu3_p4
271 *pullDownMenu3_p4.rowColumnType: "menu_pulldown"
272 *pullDownMenu3_p4.background: MenuBackground
273 *pullDownMenu3_p4.foreground: MenuForeground
274
275 *pullDownMenu3_p4_b1.class: pushButtonGadget
276 *pullDownMenu3_p4_b1.parent: pullDownMenu3_p4
277 *pullDownMenu3_p4_b1.static: true
278 *pullDownMenu3_p4_b1.name: pullDownMenu3_p4_b1
279 *pullDownMenu3_p4_b1.labelString: "On this interface..."
280 *pullDownMenu3_p4_b1.activateCallback: {\
281 extern int arowno;\
282 extern Widget arow1[20],arow2[20],arow3[20],arow4[20];\
283 char mytext[8];\
284 arowno++;\
285 XtVaSetValues(UxGetWidget(UxFindSwidget("rowasso")),XmNnumColumns,arowno,NULL);\
286 sprintf(mytext,"a1_%d",arowno-1);\
287 arow1[arowno-1] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget( UxFindSwidget("rowasso")),NULL);\
288 sprintf(mytext,"a2_%d",arowno-1);\
289 arow2[arowno-1] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget( UxFindSwidget("rowasso")),NULL);\
290 sprintf(mytext,"a3_%d",arowno-1);\
291 arow3[arowno-1] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget( UxFindSwidget("rowasso")),NULL);\
292 sprintf(mytext,"a4_%d",arowno-1);\
293 arow4[arowno-1] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget( UxFindSwidget("rowasso")),NULL);\
294 }
295 *pullDownMenu3_p4_b1.fontList: BoldTextFont
296
297 *pullDownMenu3_p4_b2.class: pushButtonGadget
298 *pullDownMenu3_p4_b2.parent: pullDownMenu3_p4
299 *pullDownMenu3_p4_b2.static: true
300 *pullDownMenu3_p4_b2.name: pullDownMenu3_p4_b2
301 *pullDownMenu3_p4_b2.labelString: "On importing data..."
302 *pullDownMenu3_p4_b2.activateCallback: {\
303 extern int arowno;\
304 extern Widget arow1[20],arow2[20],arow3[20],arow4[20];\
305 int i;\
306 for (i=0; i<arowno; i++) {\
307 XmTextSetString(arow1[i],"");\
308 XmTextSetString(arow2[i],"");\
309 XmTextSetString(arow3[i],"");\
310 XmTextSetString(arow4[i],"");\
311 }\
312 }
313 *pullDownMenu3_p4_b2.fontList: BoldTextFont
314
315 *pullDownMenu_top_b4.class: cascadeButton
316 *pullDownMenu_top_b4.parent: pullDownMenu3
317 *pullDownMenu_top_b4.static: true
318 *pullDownMenu_top_b4.name: pullDownMenu_top_b4
319 *pullDownMenu_top_b4.labelString: "Quit"
320 *pullDownMenu_top_b4.mnemonic: "Q"
321 *pullDownMenu_top_b4.subMenuId: "quitPane3"
322 *pullDownMenu_top_b4.background: MenuBackground
323 *pullDownMenu_top_b4.fontList: BoldTextFont
324 *pullDownMenu_top_b4.foreground: MenuForeground
325
326 *commandsCascade3.class: cascadeButton
327 *commandsCascade3.parent: pullDownMenu3
328 *commandsCascade3.static: true
329 *commandsCascade3.name: commandsCascade3
330 *commandsCascade3.labelString: "File"
331 *commandsCascade3.subMenuId: "UtilsPane3"
332 *commandsCascade3.background: MenuBackground
333 *commandsCascade3.fontList: BoldTextFont
334 *commandsCascade3.foreground: MenuForeground
335 *commandsCascade3.mnemonic: "F"
336 *commandsCascade3.x: 101
337
338 *pullDownMenu1_top_b3.class: cascadeButton
339 *pullDownMenu1_top_b3.parent: pullDownMenu3
340 *pullDownMenu1_top_b3.static: true
341 *pullDownMenu1_top_b3.name: pullDownMenu1_top_b3
342 *pullDownMenu1_top_b3.labelString: "Edit"
343 *pullDownMenu1_top_b3.mnemonic: "E"
344 *pullDownMenu1_top_b3.subMenuId: "pullDownMenu1_p2"
345 *pullDownMenu1_top_b3.background: MenuBackground
346 *pullDownMenu1_top_b3.fontList: BoldTextFont
347 *pullDownMenu1_top_b3.foreground: MenuForeground
348
349 *pullDownMenu3_top_b1.class: cascadeButton
350 *pullDownMenu3_top_b1.parent: pullDownMenu3
351 *pullDownMenu3_top_b1.static: true
352 *pullDownMenu3_top_b1.name: pullDownMenu3_top_b1
353 *pullDownMenu3_top_b1.labelString: "Help"
354 *pullDownMenu3_top_b1.mnemonic: "H"
355 *pullDownMenu3_top_b1.subMenuId: "pullDownMenu3_p4"
356 *pullDownMenu3_top_b1.background: MenuBackground
357 *pullDownMenu3_top_b1.fontList: BoldTextFont
358 *pullDownMenu3_top_b1.foreground: MenuForeground
359
360 *workAreaForm3.class: form
361 *workAreaForm3.parent: mainWindow3
362 *workAreaForm3.static: true
363 *workAreaForm3.name: workAreaForm3
364 *workAreaForm3.width: 800
365 *workAreaForm3.height: 400
366 *workAreaForm3.borderWidth: 0
367 *workAreaForm3.background: WindowBackground
368
369 *form4.class: form
370 *form4.parent: workAreaForm3
371 *form4.static: true
372 *form4.name: form4
373 *form4.resizePolicy: "resize_none"
374 *form4.unitType: "pixels"
375 *form4.x: 10
376 *form4.y: 10
377 *form4.width: 900
378 *form4.height: 300
379 *form4.background: WindowBackground
380
381 *scrolledWindow4.class: scrolledWindow
382 *scrolledWindow4.parent: form4
383 *scrolledWindow4.static: true
384 *scrolledWindow4.name: scrolledWindow4
385 *scrolledWindow4.scrollingPolicy: "automatic"
386 *scrolledWindow4.x: 10
387 *scrolledWindow4.y: 30
388 *scrolledWindow4.width: 900
389 *scrolledWindow4.height: 300
390 *scrolledWindow4.background: WindowBackground
391 *scrolledWindow4.scrollBarPlacement: "bottom_left"
392 *scrolledWindow4.scrollBarDisplayPolicy: "static"
393 *scrolledWindow4.leftAttachment: "attach_form"
394 *scrolledWindow4.rightAttachment: "attach_form"
395 *scrolledWindow4.rightOffset: 10
396 *scrolledWindow4.leftOffset: 10
397 *scrolledWindow4.bottomAttachment: "attach_form"
398 *scrolledWindow4.bottomOffset: 10
399 *scrolledWindow4.topOffset: 120
400 *scrolledWindow4.topAttachment: "attach_form"
401 *scrolledWindow4.visualPolicy: "variable"
402
403 *rowasso.class: rowColumn
404 *rowasso.parent: scrolledWindow4
405 *rowasso.static: true
406 *rowasso.name: rowasso
407 *rowasso.x: 8
408 *rowasso.y: 8
409 *rowasso.width: 860
410 *rowasso.height: 370
411 *rowasso.background: WindowBackground
412 *rowasso.entryAlignment: "alignment_center"
413 *rowasso.orientation: "horizontal"
414 *rowasso.packing: "pack_column"
415 *rowasso.createCallback: {\
416 \
417 }
418 *rowasso.numColumns: 5
419 *rowasso.entryCallback: {\
420 /*XmRowColumnCallbackStruct *cbs;\
421 Widget pb = cbs->widget;\
422 cbs = (XmRowColumnCallbackStruct *)UxCallbackArg;\
423 printf("%s: %s\n",XtName(pb),cbs->data);*/\
424 }
425 *rowasso.resizeWidth: "true"
426 *rowasso.isAligned: "true"
427
428 *label14.class: label
429 *label14.parent: form4
430 *label14.static: true
431 *label14.name: label14
432 *label14.x: 10
433 *label14.y: 420
434 *label14.width: 100
435 *label14.height: 40
436 *label14.background: WindowBackground
437 *label14.fontList: BoldTextFont
438 *label14.labelString: "FUNCTION"
439 *label14.alignment: "alignment_beginning"
440 *label14.topOffset: 70
441 *label14.topAttachment: "attach_form"
442 *label14.leftAttachment: "attach_form"
443 *label14.leftOffset: 80
444
445 *label15.class: label
446 *label15.parent: form4
447 *label15.static: true
448 *label15.name: label15
449 *label15.x: 90
450 *label15.y: 10
451 *label15.width: 100
452 *label15.height: 40
453 *label15.background: WindowBackground
454 *label15.fontList: BoldTextFont
455 *label15.labelString: "RANGE_1"
456 *label15.alignment: "alignment_beginning"
457 *label15.topAttachment: "attach_form"
458 *label15.leftAttachment: "attach_form"
459 *label15.leftOffset: 310
460 *label15.topOffset: 70
461
462 *label16.class: label
463 *label16.parent: form4
464 *label16.static: true
465 *label16.name: label16
466 *label16.x: 310
467 *label16.y: 10
468 *label16.width: 100
469 *label16.height: 40
470 *label16.background: WindowBackground
471 *label16.fontList: BoldTextFont
472 *label16.labelString: "RANGE_2"
473 *label16.alignment: "alignment_beginning"
474 *label16.leftAttachment: "attach_form"
475 *label16.leftOffset: 510
476 *label16.topAttachment: "attach_form"
477 *label16.topOffset: 70
478
479 *label17.class: label
480 *label17.parent: form4
481 *label17.static: true
482 *label17.name: label17
483 *label17.x: 510
484 *label17.y: 10
485 *label17.width: 100
486 *label17.height: 40
487 *label17.background: WindowBackground
488 *label17.fontList: BoldTextFont
489 *label17.labelString: "WEIGHT"
490 *label17.alignment: "alignment_beginning"
491 *label17.leftAttachment: "attach_form"
492 *label17.leftOffset: 720
493 *label17.topAttachment: "attach_form"
494 *label17.topOffset: 70
495
496 *label19.class: label
497 *label19.parent: form4
498 *label19.static: true
499 *label19.name: label19
500 *label19.x: 210
501 *label19.y: 10
502 *label19.width: 260
503 *label19.height: 50
504 *label19.background: WindowBackground
505 *label19.fontList: BoldTextFont
506 *label19.labelString: "Table Name"
507 *label19.leftAttachment: "attach_form"
508 *label19.leftOffset: 100
509 *label19.topAttachment: "attach_form"
510
511 *arule_name.class: text
512 *arule_name.parent: form4
513 *arule_name.static: true
514 *arule_name.name: arule_name
515 *arule_name.x: 480
516 *arule_name.y: 10
517 *arule_name.width: 360
518 *arule_name.height: 50
519 *arule_name.background: TextBackground
520 *arule_name.fontList: TextFont
521 *arule_name.topAttachment: "attach_form"
522 *arule_name.leftAttachment: "attach_form"
523 *arule_name.leftOffset: 400
524