Debian Codegraph @

gui/XEchelle/prj/SearchShell.i

raw
1 ! UIMX ascii 2.0 key: 2250
2 *action.FileSelectACT: {\
3 #include <xm_defs.h>\
4 #include <spec_comm.h>\
5 \
6 extern swidget FileListInterface, TextFieldSwidget;\
7 extern Widget FileListWidget;\
8 extern char DirSpecs[];\
9 extern int ListType;\
10 \
11 int strip = 1; /* strip off */\
12 \
13 TextFieldSwidget = UxThisWidget;\
14 \
15 if ( UxWidget == UxGetWidget(UxFindSwidget("tf_lincat")) ) {\
16 SET_LIST_TITLE("Enter line catalog");\
17 ListType = LIST_LINCAT;\
18 }\
19 else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_guess")) ) {\
20 SET_LIST_TITLE("Enter guess table");\
21 ListType = LIST_GUESS;\
22 }\
23 else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_flux_tbl")) ) {\
24 SET_LIST_TITLE("Enter flux table");\
25 ListType = LIST_FLUX_TBL;\
26 }\
27 else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_extin_tbl")) ) {\
28 SET_LIST_TITLE("Enter extinction table");\
29 ListType = LIST_EXTIN_TBL;\
30 }\
31 \
32 strcpy(DirSpecs, "*.tbl"); \
33 SetFileList(FileListWidget, strip, DirSpecs);\
34 UxPopupInterface(FileListInterface, exclusive_grab);\
35 \
36 }
37 *action.ExtendedHelp: {\
38 DisplayExtendedHelp(UxWidget);\
39 }
40 *action.HelpShort: {WidgetEnter(UxWidget);}
41 *action.ClearShort: {WidgetLeave(UxWidget);}
42
43 *translation.table: transTable12
44 *translation.parent: SearchShell
45 *translation.policy: override
46 *translation.<Btn3Down>: FileSelectACT()
47
48 *translation.table: transTable13
49 *translation.parent: SearchShell
50 *translation.policy: override
51 *translation.<Btn3Down>: ExtendedHelp()
52 *translation.<EnterWindow>: HelpShort()
53 *translation.<LeaveWindow>: ClearShort()
54
55 *SearchShell.class: applicationShell
56 *SearchShell.parent: NO_PARENT
57 *SearchShell.static: true
58 *SearchShell.gbldecl: #include <stdio.h> \
59 #include <ExternResources.h>
60 *SearchShell.ispecdecl:
61 *SearchShell.funcdecl: swidget create_SearchShell()\
62
63 *SearchShell.funcname: create_SearchShell
64 *SearchShell.funcdef: "swidget", "<create_SearchShell>(%)"
65 *SearchShell.icode:
66 *SearchShell.fcode: return(rtrn);\
67
68 *SearchShell.auxdecl:
69 *SearchShell.name: SearchShell
70 *SearchShell.x: 370
71 *SearchShell.y: 53
72 *SearchShell.width: 620
73 *SearchShell.height: 350
74 *SearchShell.title: "XEchelle: Search Arc Lines"
75 *SearchShell.keyboardFocusPolicy: "pointer"
76 *SearchShell.geometry: "+10+60"
77 *SearchShell.background: WindowBackground
78
79 *form2.class: form
80 *form2.parent: SearchShell
81 *form2.static: true
82 *form2.name: form2
83 *form2.resizePolicy: "resize_none"
84 *form2.unitType: "pixels"
85 *form2.x: -16
86 *form2.y: 0
87 *form2.width: 666
88 *form2.height: 350
89 *form2.background: WindowBackground
90 *form2.labelFontList: TextFont
91 *form2.textFontList: TextFont
92
93 *label9.class: label
94 *label9.parent: form2
95 *label9.static: true
96 *label9.name: label9
97 *label9.x: 354
98 *label9.y: 172
99 *label9.width: 124
100 *label9.height: 30
101 *label9.background: LabelBackground
102 *label9.fontList: TextFont
103 *label9.labelString: "Width:"
104 *label9.alignment: "alignment_beginning"
105 *label9.foreground: TextForeground
106 *label9.topAttachment: "attach_form"
107 *label9.topOffset: 160
108 *label9.leftAttachment: "attach_form"
109 *label9.leftOffset: 350
110
111 *tf_ywidth1.class: textField
112 *tf_ywidth1.parent: form2
113 *tf_ywidth1.static: true
114 *tf_ywidth1.name: tf_ywidth1
115 *tf_ywidth1.x: 480
116 *tf_ywidth1.y: 162
117 *tf_ywidth1.width: 120
118 *tf_ywidth1.height: 35
119 *tf_ywidth1.background: TextBackground
120 *tf_ywidth1.fontList: TextFont
121 *tf_ywidth1.highlightOnEnter: "true"
122 *tf_ywidth1.foreground: TextForeground
123 *tf_ywidth1.losingFocusCallback: {\
124 \
125 }
126 *tf_ywidth1.topAttachment: "attach_form"
127 *tf_ywidth1.topOffset: 160
128 *tf_ywidth1.leftAttachment: "attach_form"
129 *tf_ywidth1.leftOffset: 480
130
131 *label10.class: label
132 *label10.parent: form2
133 *label10.static: true
134 *label10.name: label10
135 *label10.x: 354
136 *label10.y: 120
137 *label10.width: 120
138 *label10.height: 30
139 *label10.background: LabelBackground
140 *label10.fontList: TextFont
141 *label10.labelString: "Threshold:"
142 *label10.alignment: "alignment_beginning"
143 *label10.foreground: TextForeground
144 *label10.topAttachment: "attach_form"
145 *label10.topOffset: 120
146 *label10.leftAttachment: "attach_form"
147 *label10.leftOffset: 350
148
149 *label11.class: label
150 *label11.parent: form2
151 *label11.static: true
152 *label11.name: label11
153 *label11.x: 28
154 *label11.y: 124
155 *label11.width: 120
156 *label11.height: 30
157 *label11.background: LabelBackground
158 *label11.fontList: TextFont
159 *label11.labelString: "Slit:"
160 *label11.alignment: "alignment_beginning"
161 *label11.foreground: TextForeground
162 *label11.topAttachment: "attach_form"
163 *label11.topOffset: 120
164 *label11.leftAttachment: "attach_form"
165 *label11.leftOffset: 20
166
167 *tf_ystep1.class: textField
168 *tf_ystep1.parent: form2
169 *tf_ystep1.static: true
170 *tf_ystep1.name: tf_ystep1
171 *tf_ystep1.x: 480
172 *tf_ystep1.y: 116
173 *tf_ystep1.width: 120
174 *tf_ystep1.height: 35
175 *tf_ystep1.background: TextBackground
176 *tf_ystep1.fontList: TextFont
177 *tf_ystep1.highlightOnEnter: "true"
178 *tf_ystep1.foreground: TextForeground
179 *tf_ystep1.losingFocusCallback: {\
180 \
181 }
182 *tf_ystep1.topAttachment: "attach_form"
183 *tf_ystep1.topOffset: 120
184 *tf_ystep1.leftAttachment: "attach_form"
185 *tf_ystep1.leftOffset: 480
186
187 *tf_width1.class: textField
188 *tf_width1.parent: form2
189 *tf_width1.static: true
190 *tf_width1.name: tf_width1
191 *tf_width1.x: 170
192 *tf_width1.y: 170
193 *tf_width1.width: 120
194 *tf_width1.height: 35
195 *tf_width1.background: TextBackground
196 *tf_width1.fontList: TextFont
197 *tf_width1.highlightOnEnter: "true"
198 *tf_width1.foreground: TextForeground
199 *tf_width1.losingFocusCallback: {\
200 \
201 }
202 *tf_width1.topAttachment: "attach_form"
203 *tf_width1.topOffset: 160
204 *tf_width1.leftAttachment: "attach_form"
205 *tf_width1.leftOffset: 170
206
207 *label12.class: label
208 *label12.parent: form2
209 *label12.static: true
210 *label12.name: label12
211 *label12.x: 28
212 *label12.y: 80
213 *label12.width: 120
214 *label12.height: 30
215 *label12.background: LabelBackground
216 *label12.fontList: TextFont
217 *label12.labelString: "Extraction method:"
218 *label12.alignment: "alignment_beginning"
219 *label12.foreground: TextForeground
220 *label12.topAttachment: "attach_form"
221 *label12.topOffset: 80
222 *label12.leftAttachment: "attach_form"
223 *label12.leftOffset: 20
224
225 *tf_thres1.class: textField
226 *tf_thres1.parent: form2
227 *tf_thres1.static: true
228 *tf_thres1.name: tf_thres1
229 *tf_thres1.x: 238
230 *tf_thres1.y: 182
231 *tf_thres1.width: 120
232 *tf_thres1.height: 35
233 *tf_thres1.background: TextBackground
234 *tf_thres1.fontList: TextFont
235 *tf_thres1.highlightOnEnter: "true"
236 *tf_thres1.foreground: TextForeground
237 *tf_thres1.losingFocusCallback: {\
238 \
239 }
240 *tf_thres1.topAttachment: "attach_form"
241 *tf_thres1.topOffset: 120
242 *tf_thres1.leftAttachment: "attach_form"
243 *tf_thres1.leftOffset: 170
244
245 *form4.class: form
246 *form4.parent: form2
247 *form4.static: true
248 *form4.name: form4
249 *form4.resizePolicy: "resize_none"
250 *form4.x: 0
251 *form4.y: 304
252 *form4.width: 666
253 *form4.height: 40
254 *form4.background: ButtonBackground
255
256 *pb_search_search1.class: pushButton
257 *pb_search_search1.parent: form4
258 *pb_search_search1.static: true
259 *pb_search_search1.name: pb_search_search1
260 *pb_search_search1.x: 8
261 *pb_search_search1.y: 4
262 *pb_search_search1.width: 184
263 *pb_search_search1.height: 30
264 *pb_search_search1.background: ButtonBackground
265 *pb_search_search1.fontList: BoldTextFont
266 *pb_search_search1.foreground: ApplyForeground
267 *pb_search_search1.labelString: "Extract and Search"
268 *pb_search_search1.activateCallback: {\
269 MidasCommand(UxThisWidget);\
270 \
271 }
272
273 *pushButton1.class: pushButton
274 *pushButton1.parent: form4
275 *pushButton1.static: true
276 *pushButton1.name: pushButton1
277 *pushButton1.x: 528
278 *pushButton1.y: 4
279 *pushButton1.width: 86
280 *pushButton1.height: 30
281 *pushButton1.background: ButtonBackground
282 *pushButton1.fontList: BoldTextFont
283 *pushButton1.foreground: CancelForeground
284 *pushButton1.labelString: "Cancel"
285 *pushButton1.activateCallback: {\
286 UxPopdownInterface(UxFindSwidget("SearchShell"));\
287 }
288
289 *pb_search_plot6.class: pushButton
290 *pb_search_plot6.parent: form4
291 *pb_search_plot6.static: true
292 *pb_search_plot6.name: pb_search_plot6
293 *pb_search_plot6.x: 432
294 *pb_search_plot6.y: 4
295 *pb_search_plot6.width: 86
296 *pb_search_plot6.height: 30
297 *pb_search_plot6.background: ButtonBackground
298 *pb_search_plot6.fontList: BoldTextFont
299 *pb_search_plot6.foreground: ButtonForeground
300 *pb_search_plot6.labelString: "Help..."
301 *pb_search_plot6.activateCallback: {\
302 GetExtendedHelp(UxWidget);\
303 }
304
305 *pb_search_plot7.class: pushButton
306 *pb_search_plot7.parent: form4
307 *pb_search_plot7.static: true
308 *pb_search_plot7.name: pb_search_plot7
309 *pb_search_plot7.x: 198
310 *pb_search_plot7.y: 4
311 *pb_search_plot7.width: 118
312 *pb_search_plot7.height: 30
313 *pb_search_plot7.background: ButtonBackground
314 *pb_search_plot7.fontList: BoldTextFont
315 *pb_search_plot7.foreground: ButtonForeground
316 *pb_search_plot7.labelString: "Load Search"
317 *pb_search_plot7.activateCallback: {\
318 MidasCommand(UxThisWidget);\
319 \
320 }
321
322 *pb_search_plot8.class: pushButton
323 *pb_search_plot8.parent: form4
324 *pb_search_plot8.static: true
325 *pb_search_plot8.name: pb_search_plot8
326 *pb_search_plot8.x: 332
327 *pb_search_plot8.y: 4
328 *pb_search_plot8.width: 86
329 *pb_search_plot8.height: 30
330 *pb_search_plot8.background: ButtonBackground
331 *pb_search_plot8.fontList: BoldTextFont
332 *pb_search_plot8.foreground: ButtonForeground
333 *pb_search_plot8.labelString: "Save..."
334 *pb_search_plot8.activateCallback: {\
335 MidasCommand(UxThisWidget);\
336 \
337 }
338
339 *shelp_search1.class: text
340 *shelp_search1.parent: form2
341 *shelp_search1.static: true
342 *shelp_search1.name: shelp_search1
343 *shelp_search1.x: 2
344 *shelp_search1.y: 244
345 *shelp_search1.width: 664
346 *shelp_search1.height: 50
347 *shelp_search1.background: SHelpBackground
348 *shelp_search1.cursorPositionVisible: "false"
349 *shelp_search1.editable: "false"
350 *shelp_search1.fontList: TextFont
351 *shelp_search1.leftAttachment: "attach_form"
352 *shelp_search1.leftOffset: 5
353 *shelp_search1.rightAttachment: "attach_form"
354 *shelp_search1.rightOffset: 5
355
356 *separator2.class: separator
357 *separator2.parent: form2
358 *separator2.static: true
359 *separator2.name: separator2
360 *separator2.x: 0
361 *separator2.y: 234
362 *separator2.width: 664
363 *separator2.height: 10
364 *separator2.background: WindowBackground
365 *separator2.leftAttachment: "attach_form"
366 *separator2.leftOffset: 5
367 *separator2.rightAttachment: "attach_form"
368 *separator2.rightOffset: 5
369
370 *separator3.class: separator
371 *separator3.parent: form2
372 *separator3.static: true
373 *separator3.name: separator3
374 *separator3.x: -2
375 *separator3.y: 292
376 *separator3.width: 672
377 *separator3.height: 10
378 *separator3.background: WindowBackground
379 *separator3.leftAttachment: "attach_form"
380 *separator3.leftOffset: 5
381 *separator3.rightAttachment: "attach_form"
382 *separator3.rightOffset: 5
383
384 *label13.class: label
385 *label13.parent: form2
386 *label13.static: true
387 *label13.name: label13
388 *label13.x: 28
389 *label13.y: 174
390 *label13.width: 120
391 *label13.height: 30
392 *label13.background: LabelBackground
393 *label13.fontList: TextFont
394 *label13.labelString: "Offset:"
395 *label13.alignment: "alignment_beginning"
396 *label13.foreground: TextForeground
397 *label13.topAttachment: "attach_form"
398 *label13.topOffset: 160
399 *label13.leftAttachment: "attach_form"
400 *label13.leftOffset: 20
401
402 *label67.class: label
403 *label67.parent: form2
404 *label67.static: true
405 *label67.name: label67
406 *label67.x: 20
407 *label67.y: 14
408 *label67.width: 216
409 *label67.height: 30
410 *label67.background: LabelBackground
411 *label67.fontList: TextFont
412 *label67.labelString: "Wavelength Calibration Frame:"
413 *label67.alignment: "alignment_beginning"
414 *label67.foreground: TextForeground
415 *label67.bottomAttachment: "attach_none"
416 *label67.bottomOffset: 10
417 *label67.topAttachment: "attach_form"
418 *label67.topOffset: 20
419 *label67.leftAttachment: "attach_form"
420 *label67.leftOffset: 20
421
422 *tf_thres4.class: textField
423 *tf_thres4.parent: form2
424 *tf_thres4.static: true
425 *tf_thres4.name: tf_thres4
426 *tf_thres4.x: 242
427 *tf_thres4.y: 12
428 *tf_thres4.width: 272
429 *tf_thres4.height: 35
430 *tf_thres4.background: TextBackground
431 *tf_thres4.fontList: TextFont
432 *tf_thres4.highlightOnEnter: "true"
433 *tf_thres4.foreground: TextForeground
434 *tf_thres4.losingFocusCallback: {\
435 \
436 }
437 *tf_thres4.bottomAttachment: "attach_none"
438 *tf_thres4.bottomOffset: 10
439 *tf_thres4.topAttachment: "attach_form"
440 *tf_thres4.topOffset: 20
441
442 *pb_main_search16.class: pushButton
443 *pb_main_search16.parent: form2
444 *pb_main_search16.static: true
445 *pb_main_search16.name: pb_main_search16
446 *pb_main_search16.x: 548
447 *pb_main_search16.y: 14
448 *pb_main_search16.height: 28
449 *pb_main_search16.background: ButtonBackground
450 *pb_main_search16.fontList: BoldTextFont
451 *pb_main_search16.foreground: ButtonForeground
452 *pb_main_search16.labelString: "..."
453 *pb_main_search16.activateCallback: {\
454 SelectList(UxWidget);\
455 \
456 }
457 *pb_main_search16.recomputeSize: "true"
458 *pb_main_search16.width: 46
459 *pb_main_search16.bottomAttachment: "attach_none"
460 *pb_main_search16.bottomOffset: 10
461 *pb_main_search16.topAttachment: "attach_form"
462 *pb_main_search16.topOffset: 20
463
464 *label68.class: label
465 *label68.parent: form2
466 *label68.static: true
467 *label68.name: label68
468 *label68.x: 354
469 *label68.y: 82
470 *label68.width: 120
471 *label68.height: 30
472 *label68.background: LabelBackground
473 *label68.fontList: TextFont
474 *label68.labelString: "Search method"
475 *label68.alignment: "alignment_beginning"
476 *label68.foreground: TextForeground
477 *label68.topAttachment: "attach_form"
478 *label68.topOffset: 80
479 *label68.leftAttachment: "attach_form"
480 *label68.leftOffset: 350
481
482 *mn_tol6.class: rowColumn
483 *mn_tol6.parent: form2
484 *mn_tol6.static: true
485 *mn_tol6.name: mn_tol6
486 *mn_tol6.rowColumnType: "menu_option"
487 *mn_tol6.subMenuId: "menu2_p6"
488 *mn_tol6.x: 474
489 *mn_tol6.y: 76
490 *mn_tol6.background: WindowBackground
491 *mn_tol6.foreground: TextForeground
492 *mn_tol6.marginWidth: 0
493 *mn_tol6.spacing: 0
494 *mn_tol6.labelString: " "
495 *mn_tol6.width: 120
496 *mn_tol6.topOffset: 80
497 *mn_tol6.leftAttachment: "attach_form"
498 *mn_tol6.leftOffset: 480
499 *mn_tol6.translations: transTable13
500
501 *menu2_p6.class: rowColumn
502 *menu2_p6.parent: mn_tol6
503 *menu2_p6.static: true
504 *menu2_p6.name: menu2_p6
505 *menu2_p6.rowColumnType: "menu_pulldown"
506 *menu2_p6.background: WindowBackground
507 *menu2_p6.foreground: TextForeground
508 *menu2_p6.width: 120
509 *menu2_p6.x: 520
510
511 *mn_tol_angstroms6.class: pushButtonGadget
512 *mn_tol_angstroms6.parent: menu2_p6
513 *mn_tol_angstroms6.static: true
514 *mn_tol_angstroms6.name: mn_tol_angstroms6
515 *mn_tol_angstroms6.labelString: " Gaussian "
516 *mn_tol_angstroms6.activateCallback: {RadioSet ( UxWidget ) ; }
517 *mn_tol_angstroms6.fontList: TextFont
518 *mn_tol_angstroms6.width: 120
519 *mn_tol_angstroms6.x: 520
520
521 *mn_tol_pixels6.class: pushButtonGadget
522 *mn_tol_pixels6.parent: menu2_p6
523 *mn_tol_pixels6.static: true
524 *mn_tol_pixels6.name: mn_tol_pixels6
525 *mn_tol_pixels6.labelString: " Gravity "
526 *mn_tol_pixels6.activateCallback: {RadioSet ( UxWidget ) ; }
527 *mn_tol_pixels6.fontList: TextFont
528 *mn_tol_pixels6.width: 120
529 *mn_tol_pixels6.x: 520
530
531 *tf_thres12.class: textField
532 *tf_thres12.parent: form2
533 *tf_thres12.static: true
534 *tf_thres12.name: tf_thres12
535 *tf_thres12.x: 170
536 *tf_thres12.y: 80
537 *tf_thres12.width: 120
538 *tf_thres12.height: 35
539 *tf_thres12.background: WindowBackground
540 *tf_thres12.fontList: TextFont
541 *tf_thres12.highlightOnEnter: "true"
542 *tf_thres12.foreground: TextForeground
543 *tf_thres12.losingFocusCallback: {\
544 \
545 }
546 *tf_thres12.editable: "false"
547 *tf_thres12.highlightColor: WindowBackground
548