Debian Codegraph @

gui/XDo/prj/applicationShell2.i

raw
1 ! UIMX ascii 2.0 key: 7005
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: transTable6
75 *translation.parent: Classify
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: transTable7
83 *translation.parent: Classify
84 *translation.policy: override
85 *translation.<Btn1Up> : SelectCommand()
86
87 *translation.table: transTable8
88 *translation.parent: Classify
89 *translation.policy: override
90 *translation.<PtrMoved>: nothing()
91
92 *Classify.class: applicationShell
93 *Classify.parent: NO_PARENT
94 *Classify.static: true
95 *Classify.gbldecl: #include <stdio.h>\
96 #include <ExternResources.h>\
97 #include <midas_def.h>\
98
99 *Classify.ispecdecl:
100 *Classify.funcdecl: swidget create_Classify()\
101
102 *Classify.funcname: create_Classify
103 *Classify.funcdef: "swidget", "<create_Classify>(%)"
104 *Classify.icode:
105 *Classify.fcode: return(rtrn);\
106
107 *Classify.auxdecl:
108 *Classify.name: Classify
109 *Classify.x: 29
110 *Classify.y: 387
111 *Classify.width: 500
112 *Classify.height: 450
113
114 *mainWindow2.class: mainWindow
115 *mainWindow2.parent: Classify
116 *mainWindow2.static: true
117 *mainWindow2.name: mainWindow2
118 *mainWindow2.x: 200
119 *mainWindow2.y: 180
120 *mainWindow2.width: 700
121 *mainWindow2.height: 470
122 *mainWindow2.background: WindowBackground
123 *mainWindow2.unitType: "pixels"
124
125 *pullDownMenu2.class: rowColumn
126 *pullDownMenu2.parent: mainWindow2
127 *pullDownMenu2.static: true
128 *pullDownMenu2.name: pullDownMenu2
129 *pullDownMenu2.borderWidth: 0
130 *pullDownMenu2.menuHelpWidget: "pullDownMenu_top_b3"
131 *pullDownMenu2.rowColumnType: "menu_bar"
132 *pullDownMenu2.menuAccelerator: "<KeyUp>F10"
133 *pullDownMenu2.background: MenuBackground
134 *pullDownMenu2.foreground: MenuForeground
135
136 *quitPane2.class: rowColumn
137 *quitPane2.parent: pullDownMenu2
138 *quitPane2.static: true
139 *quitPane2.name: quitPane2
140 *quitPane2.rowColumnType: "menu_pulldown"
141 *quitPane2.background: MenuBackground
142 *quitPane2.foreground: MenuForeground
143
144 *quitPane_b3.class: pushButtonGadget
145 *quitPane_b3.parent: quitPane2
146 *quitPane_b3.static: true
147 *quitPane_b3.name: quitPane_b3
148 *quitPane_b3.labelString: "Bye"
149 *quitPane_b3.activateCallback: {\
150 extern swidget clashaupt;\
151 extern Widget row1[40],row2[40],row3[40];\
152 extern int rowno;\
153 int rows,i;\
154 for (i=0; i<5; i++) {\
155 XmTextSetString(row1[i],"");\
156 XmTextSetString(row2[i],"");\
157 XmTextSetString(row3[i],"");\
158 }\
159 for (i=5; i<rowno; i++) {\
160 XtDestroyWidget(row1[i]);\
161 row1[i] = (Widget )0;\
162 XtDestroyWidget(row2[i]); \
163 row2[i] = (Widget )0;\
164 XtDestroyWidget(row3[i]);\
165 row2[i] = (Widget )0;\
166 } \
167 rowno = 5;\
168 UxPopdownInterface(clashaupt);\
169 }
170 *quitPane_b3.fontList: BoldTextFont
171
172 *UtilsPane2.class: rowColumn
173 *UtilsPane2.parent: pullDownMenu2
174 *UtilsPane2.static: true
175 *UtilsPane2.name: UtilsPane2
176 *UtilsPane2.rowColumnType: "menu_pulldown"
177 *UtilsPane2.background: MenuBackground
178 *UtilsPane2.foreground: MenuForeground
179
180 *UtilsPane_b3.class: pushButtonGadget
181 *UtilsPane_b3.parent: UtilsPane2
182 *UtilsPane_b3.static: true
183 *UtilsPane_b3.name: UtilsPane_b3
184 *UtilsPane_b3.labelString: "Open ..."
185 *UtilsPane_b3.fontList: BoldTextFont
186 *UtilsPane_b3.activateCallback: {\
187 char s[1000];\
188 extern swidget klist,tablelist;\
189 \
190 extern int do8;\
191 int strip =1;\
192 strcpy(s,"*.tbl");\
193 SetFileList(UxGetWidget(tablelist),strip,s);\
194 UxPutTitle(UxFindSwidget("transientShell8"),"Select Classification Table");\
195 do8 = 1;\
196 UxPopupInterface(klist,no_grab);\
197 }
198
199 *UtilsPane_b8.class: pushButtonGadget
200 *UtilsPane_b8.parent: UtilsPane2
201 *UtilsPane_b8.static: true
202 *UtilsPane_b8.name: UtilsPane_b8
203 *UtilsPane_b8.labelString: "Save"
204 *UtilsPane_b8.fontList: BoldTextFont
205 *UtilsPane_b8.activateCallback: {\
206 extern int tidclas;\
207 char mytext[60];\
208 int tid;\
209 strcpy(mytext,UxGetText(UxFindSwidget("sclas_t1")));\
210 \
211 tid = TCTID(mytext); \
212 if (tid != -1) TCTCLO(tid);\
213 save_clas_table(mytext);\
214 \
215 }
216
217 *pullDownMenu1_p1.class: rowColumn
218 *pullDownMenu1_p1.parent: pullDownMenu2
219 *pullDownMenu1_p1.static: true
220 *pullDownMenu1_p1.name: pullDownMenu1_p1
221 *pullDownMenu1_p1.rowColumnType: "menu_pulldown"
222 *pullDownMenu1_p1.background: MenuBackground
223 *pullDownMenu1_p1.foreground: MenuForeground
224
225 *pullDownMenu1_p3_b3.class: pushButtonGadget
226 *pullDownMenu1_p3_b3.parent: pullDownMenu1_p1
227 *pullDownMenu1_p3_b3.static: true
228 *pullDownMenu1_p3_b3.name: pullDownMenu1_p3_b3
229 *pullDownMenu1_p3_b3.labelString: "Add"
230 *pullDownMenu1_p3_b3.fontList: BoldTextFont
231 *pullDownMenu1_p3_b3.activateCallback: {\
232 extern int rowno;\
233 extern Widget row1[40],row2[40],row3[40];\
234 char mytext[8];\
235 rowno++; \
236 XtVaSetValues(UxGetWidget(UxFindSwidget("rowproc")),XmNnumColumns,rowno,NULL);\
237 sprintf(mytext,"text1_%d",rowno-1);\
238 row1[rowno-1] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget( UxFindSwidget("rowproc")),NULL);\
239 sprintf(mytext,"text2_%d",rowno-1);\
240 row2[rowno-1] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget( UxFindSwidget("rowproc")),NULL);\
241 sprintf(mytext,"text3_%d",rowno-1);\
242 row3[rowno-1] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget( UxFindSwidget("rowproc")),NULL);\
243 }
244
245 *pullDownMenu1_p1_b3.class: pushButtonGadget
246 *pullDownMenu1_p1_b3.parent: pullDownMenu1_p1
247 *pullDownMenu1_p1_b3.static: true
248 *pullDownMenu1_p1_b3.name: pullDownMenu1_p1_b3
249 *pullDownMenu1_p1_b3.labelString: "Clear"
250 *pullDownMenu1_p1_b3.fontList: BoldTextFont
251 *pullDownMenu1_p1_b3.activateCallback: {\
252 extern int rowno;\
253 extern Widget row1[40],row2[40],row3[40];\
254 int i;\
255 for (i=0; i<rowno; i++) {\
256 XmTextSetString(row1[i],"");\
257 XmTextSetString(row2[i],"");\
258 XmTextSetString(row3[i],""); \
259 }\
260 }
261
262 *pullDownMenu2_p4.class: rowColumn
263 *pullDownMenu2_p4.parent: pullDownMenu2
264 *pullDownMenu2_p4.static: true
265 *pullDownMenu2_p4.name: pullDownMenu2_p4
266 *pullDownMenu2_p4.rowColumnType: "menu_pulldown"
267 *pullDownMenu2_p4.background: MenuBackground
268 *pullDownMenu2_p4.foreground: MenuForeground
269
270 *pullDownMenu2_p4_b1.class: pushButtonGadget
271 *pullDownMenu2_p4_b1.parent: pullDownMenu2_p4
272 *pullDownMenu2_p4_b1.static: true
273 *pullDownMenu2_p4_b1.name: pullDownMenu2_p4_b1
274 *pullDownMenu2_p4_b1.labelString: "On this interface..."
275 *pullDownMenu2_p4_b1.activateCallback: {\
276 extern swidget help;\
277 display_help(help,"Classi.help"); \
278 }
279 *pullDownMenu2_p4_b1.fontList: BoldTextFont
280
281 *pullDownMenu2_p4_b2.class: pushButtonGadget
282 *pullDownMenu2_p4_b2.parent: pullDownMenu2_p4
283 *pullDownMenu2_p4_b2.static: true
284 *pullDownMenu2_p4_b2.name: pullDownMenu2_p4_b2
285 *pullDownMenu2_p4_b2.labelString: "On importing data..."
286 *pullDownMenu2_p4_b2.activateCallback: {\
287 \
288 }
289 *pullDownMenu2_p4_b2.fontList: BoldTextFont
290
291 *pullDownMenu_top_b3.class: cascadeButton
292 *pullDownMenu_top_b3.parent: pullDownMenu2
293 *pullDownMenu_top_b3.static: true
294 *pullDownMenu_top_b3.name: pullDownMenu_top_b3
295 *pullDownMenu_top_b3.labelString: "Quit"
296 *pullDownMenu_top_b3.mnemonic: "Q"
297 *pullDownMenu_top_b3.subMenuId: "quitPane2"
298 *pullDownMenu_top_b3.background: MenuBackground
299 *pullDownMenu_top_b3.fontList: BoldTextFont
300 *pullDownMenu_top_b3.foreground: MenuForeground
301
302 *commandsCascade2.class: cascadeButton
303 *commandsCascade2.parent: pullDownMenu2
304 *commandsCascade2.static: true
305 *commandsCascade2.name: commandsCascade2
306 *commandsCascade2.labelString: "File"
307 *commandsCascade2.subMenuId: "UtilsPane2"
308 *commandsCascade2.background: MenuBackground
309 *commandsCascade2.fontList: BoldTextFont
310 *commandsCascade2.foreground: MenuForeground
311 *commandsCascade2.mnemonic: "F"
312 *commandsCascade2.x: 101
313
314 *pullDownMenu1_top_b2.class: cascadeButton
315 *pullDownMenu1_top_b2.parent: pullDownMenu2
316 *pullDownMenu1_top_b2.static: true
317 *pullDownMenu1_top_b2.name: pullDownMenu1_top_b2
318 *pullDownMenu1_top_b2.labelString: "Edit"
319 *pullDownMenu1_top_b2.mnemonic: "E"
320 *pullDownMenu1_top_b2.subMenuId: "pullDownMenu1_p1"
321 *pullDownMenu1_top_b2.background: MenuBackground
322 *pullDownMenu1_top_b2.fontList: BoldTextFont
323 *pullDownMenu1_top_b2.foreground: MenuForeground
324
325 *pullDownMenu2_top_b1.class: cascadeButton
326 *pullDownMenu2_top_b1.parent: pullDownMenu2
327 *pullDownMenu2_top_b1.static: true
328 *pullDownMenu2_top_b1.name: pullDownMenu2_top_b1
329 *pullDownMenu2_top_b1.labelString: "Help"
330 *pullDownMenu2_top_b1.mnemonic: "H"
331 *pullDownMenu2_top_b1.subMenuId: "pullDownMenu2_p4"
332 *pullDownMenu2_top_b1.background: MenuBackground
333 *pullDownMenu2_top_b1.fontList: BoldTextFont
334 *pullDownMenu2_top_b1.foreground: MenuForeground
335
336 *workAreaForm2.class: form
337 *workAreaForm2.parent: mainWindow2
338 *workAreaForm2.static: true
339 *workAreaForm2.name: workAreaForm2
340 *workAreaForm2.width: 700
341 *workAreaForm2.height: 400
342 *workAreaForm2.borderWidth: 0
343 *workAreaForm2.background: WindowBackground
344
345 *form3.class: form
346 *form3.parent: workAreaForm2
347 *form3.static: true
348 *form3.name: form3
349 *form3.resizePolicy: "resize_none"
350 *form3.unitType: "pixels"
351 *form3.x: 10
352 *form3.y: 10
353 *form3.width: 480
354 *form3.height: 400
355 *form3.background: WindowBackground
356
357 *scrolledWindow1.class: scrolledWindow
358 *scrolledWindow1.parent: form3
359 *scrolledWindow1.static: true
360 *scrolledWindow1.name: scrolledWindow1
361 *scrolledWindow1.scrollingPolicy: "automatic"
362 *scrolledWindow1.x: 10
363 *scrolledWindow1.y: 30
364 *scrolledWindow1.width: 350
365 *scrolledWindow1.height: 300
366 *scrolledWindow1.background: WindowBackground
367 *scrolledWindow1.scrollBarPlacement: "bottom_left"
368 *scrolledWindow1.scrollBarDisplayPolicy: "static"
369 *scrolledWindow1.leftAttachment: "attach_form"
370 *scrolledWindow1.rightAttachment: "attach_form"
371 *scrolledWindow1.rightOffset: 10
372 *scrolledWindow1.leftOffset: 10
373 *scrolledWindow1.bottomAttachment: "attach_form"
374 *scrolledWindow1.bottomOffset: 60
375 *scrolledWindow1.topOffset: 150
376 *scrolledWindow1.topAttachment: "attach_form"
377 *scrolledWindow1.visualPolicy: "variable"
378
379 *rowproc.class: rowColumn
380 *rowproc.parent: scrolledWindow1
381 *rowproc.static: true
382 *rowproc.name: rowproc
383 *rowproc.x: 8
384 *rowproc.y: 8
385 *rowproc.width: 500
386 *rowproc.height: 370
387 *rowproc.background: WindowBackground
388 *rowproc.entryAlignment: "alignment_center"
389 *rowproc.orientation: "horizontal"
390 *rowproc.packing: "pack_column"
391 *rowproc.createCallback: {\
392 \
393 }
394 *rowproc.numColumns: 3
395 *rowproc.entryCallback: {\
396 /*XmRowColumnCallbackStruct *cbs;\
397 Widget pb = cbs->widget;\
398 cbs = (XmRowColumnCallbackStruct *)UxCallbackArg;\
399 printf("%s: %s\n",XtName(pb),cbs->data);*/\
400 }
401 *rowproc.resizeWidth: "true"
402
403 *label5.class: label
404 *label5.parent: form3
405 *label5.static: true
406 *label5.name: label5
407 *label5.x: 10
408 *label5.y: 420
409 *label5.width: 240
410 *label5.height: 40
411 *label5.background: WindowBackground
412 *label5.fontList: BoldTextFont
413 *label5.labelString: "Selection Criteria"
414 *label5.alignment: "alignment_beginning"
415 *label5.topOffset: 440
416 *label5.topAttachment: "attach_form"
417
418 *pushButton6.class: pushButton
419 *pushButton6.parent: form3
420 *pushButton6.static: true
421 *pushButton6.name: pushButton6
422 *pushButton6.x: 140
423 *pushButton6.y: 530
424 *pushButton6.width: 80
425 *pushButton6.height: 40
426 *pushButton6.background: ButtonBackground
427 *pushButton6.fontList: BoldTextFont
428 *pushButton6.foreground: ButtonForeground
429 *pushButton6.labelString: "Apply"
430 *pushButton6.bottomAttachment: "attach_form"
431 *pushButton6.bottomOffset: 10
432 *pushButton6.activateCallback: {\
433 extern char ostchoice[60];\
434 extern int tidost;\
435 extern swidget myerror;\
436 char command[160],mycval[81],column[18];\
437 if (tidost == -1) {\
438 UxPutMessageString(UxFindSwidget("errorDialog1"),"No OST opened");\
439 UxPopupInterface(myerror,no_grab);\
440 return;\
441 }\
442 save_clas_table("TEMP_CLAS");\
443 sprintf(command,"CLASSIFY/IMAGE %s TEMP_CLAS.tbl",ostchoice);\
444 /*AppendDialogText(command);*/\
445 mycval[0] = '\0';\
446 column[0] = '\0';\
447 classify(ostchoice,"TEMP_CLAS.tbl",column,mycval);\
448 TCTCLO(tidost);\
449 TCTOPN(ostchoice,F_I_MODE,&tidost);\
450 /*display_col_table(UxGetWidget(UxFindSwidget("readtable")));*/\
451 \
452 }
453 *pushButton6.leftAttachment: "attach_form"
454 *pushButton6.leftOffset: 200
455
456 *label11.class: label
457 *label11.parent: form3
458 *label11.static: true
459 *label11.name: label11
460 *label11.x: 40
461 *label11.y: 10
462 *label11.width: 130
463 *label11.height: 30
464 *label11.background: WindowBackground
465 *label11.fontList: BoldTextFont
466 *label11.labelString: "DESCR"
467 *label11.topAttachment: "attach_form"
468 *label11.topOffset: 100
469 *label11.leftAttachment: "attach_form"
470 *label11.leftOffset: 40
471
472 *label12.class: label
473 *label12.parent: form3
474 *label12.static: true
475 *label12.name: label12
476 *label12.x: 50
477 *label12.y: 20
478 *label12.width: 130
479 *label12.height: 30
480 *label12.background: WindowBackground
481 *label12.fontList: BoldTextFont
482 *label12.labelString: "OUTCOL"
483 *label12.leftAttachment: "attach_form"
484 *label12.leftOffset: 180
485 *label12.topAttachment: "attach_form"
486 *label12.topOffset: 100
487
488 *label13.class: label
489 *label13.parent: form3
490 *label13.static: true
491 *label13.name: label13
492 *label13.x: 190
493 *label13.y: 20
494 *label13.width: 130
495 *label13.height: 30
496 *label13.background: WindowBackground
497 *label13.fontList: BoldTextFont
498 *label13.labelString: "OUTCHAR"
499 *label13.leftAttachment: "attach_form"
500 *label13.leftOffset: 320
501 *label13.topAttachment: "attach_form"
502 *label13.topOffset: 100
503
504 *label21.class: label
505 *label21.parent: form3
506 *label21.static: true
507 *label21.name: label21
508 *label21.x: 50
509 *label21.y: 110
510 *label21.width: 200
511 *label21.height: 30
512 *label21.background: WindowBackground
513 *label21.fontList: BoldTextFont
514 *label21.labelString: "Classification Table Name"
515 *label21.topAttachment: "attach_form"
516 *label21.topOffset: 30
517 *label21.leftAttachment: "attach_form"
518 *label21.leftOffset: 20
519
520 *sclas_t1.class: text
521 *sclas_t1.parent: form3
522 *sclas_t1.static: true
523 *sclas_t1.name: sclas_t1
524 *sclas_t1.x: 230
525 *sclas_t1.y: 20
526 *sclas_t1.width: 240
527 *sclas_t1.height: 40
528 *sclas_t1.background: TextBackground
529 *sclas_t1.topAttachment: "attach_form"
530 *sclas_t1.topOffset: 25
531 *sclas_t1.fontList: BoldTextFont
532 *sclas_t1.foreground: TextForeground
533