Debian Codegraph @

gui/XLong/prj/ExtractShell.i

raw
1 ! UIMX ascii 2.0 key: 6489
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
38 *translation.table: SelectFileExtract
39 *translation.parent: ExtractShell
40 *translation.policy: override
41 *translation.<Btn3Down>: FileSelectACT()
42
43 *ExtractShell.class: applicationShell
44 *ExtractShell.parent: NO_PARENT
45 *ExtractShell.static: true
46 *ExtractShell.gbldecl: #include <stdio.h>\
47 #include <ExternResources.h>
48 *ExtractShell.ispecdecl:
49 *ExtractShell.funcdecl: swidget create_ExtractShell()\
50
51 *ExtractShell.funcname: create_ExtractShell
52 *ExtractShell.funcdef: "swidget", "<create_ExtractShell>(%)"
53 *ExtractShell.icode:
54 *ExtractShell.fcode: return(rtrn);\
55
56 *ExtractShell.auxdecl:
57 *ExtractShell.name: ExtractShell
58 *ExtractShell.x: 2
59 *ExtractShell.y: 21
60 *ExtractShell.width: 490
61 *ExtractShell.height: 661
62 *ExtractShell.title: "Spectrum Extraction"
63 *ExtractShell.keyboardFocusPolicy: "pointer"
64 *ExtractShell.geometry: "+10+60"
65 *ExtractShell.background: WindowBackground
66
67 *form14.class: form
68 *form14.parent: ExtractShell
69 *form14.static: true
70 *form14.name: form14
71 *form14.resizePolicy: "resize_none"
72 *form14.unitType: "pixels"
73 *form14.x: 0
74 *form14.y: 0
75 *form14.width: 490
76 *form14.height: 662
77 *form14.background: WindowBackground
78
79 *form15.class: form
80 *form15.parent: form14
81 *form15.static: true
82 *form15.name: form15
83 *form15.resizePolicy: "resize_none"
84 *form15.x: 0
85 *form15.y: 576
86 *form15.width: 490
87 *form15.height: 84
88 *form15.background: ButtonBackground
89
90 *pb_ext_sky.class: pushButton
91 *pb_ext_sky.parent: form15
92 *pb_ext_sky.static: true
93 *pb_ext_sky.name: pb_ext_sky
94 *pb_ext_sky.x: 128
95 *pb_ext_sky.y: 8
96 *pb_ext_sky.width: 110
97 *pb_ext_sky.height: 30
98 *pb_ext_sky.background: ButtonBackground
99 *pb_ext_sky.fontList: BoldTextFont
100 *pb_ext_sky.foreground: ApplyForeground
101 *pb_ext_sky.labelString: "Get sky"
102 *pb_ext_sky.activateCallback: {\
103 #include <spec_comm.h>\
104 \
105 char command[128], s[10];\
106 int sky[4];\
107 extern int Lowsky[], Uppsky[];\
108 \
109 sprintf(command, "%s 4", C_EXTR_GCOOR);\
110 AppendDialogText(command);\
111 \
112 if ( !GetCoords(sky, 4) )\
113 return;\
114 \
115 sprintf(command, "set/long LOWSKY=%d,%d UPPSKY=%d,%d", sky[0], sky[1], sky[2], sky[3]);\
116 AppendDialogText(command);\
117 sprintf(s, "%d", sky[0]);\
118 UxPutValue(UxFindSwidget("tf_lowsky1"), s);\
119 sprintf(s, "%d", sky[1]);\
120 UxPutValue(UxFindSwidget("tf_lowsky2"), s);\
121 sprintf(s, "%d", sky[2]);\
122 UxPutValue(UxFindSwidget("tf_uppsky1"), s);\
123 sprintf(s, "%d", sky[3]);\
124 UxPutValue(UxFindSwidget("tf_uppsky2"), s);\
125 \
126 Lowsky[0] = sky[0]; Lowsky[1] = sky[1];\
127 Uppsky[0] = sky[2]; Uppsky[1] = sky[3];\
128 \
129 \
130 \
131 \
132 \
133 \
134 }
135
136 *pushButton28.class: pushButton
137 *pushButton28.parent: form15
138 *pushButton28.static: true
139 *pushButton28.name: pushButton28
140 *pushButton28.x: 378
141 *pushButton28.y: 40
142 *pushButton28.width: 95
143 *pushButton28.height: 30
144 *pushButton28.background: ButtonBackground
145 *pushButton28.fontList: BoldTextFont
146 *pushButton28.foreground: CancelForeground
147 *pushButton28.labelString: "Cancel"
148 *pushButton28.activateCallback: {\
149 UxPopdownInterface(UxFindSwidget("ExtractShell"));\
150 }
151
152 *pb_ext_object.class: pushButton
153 *pb_ext_object.parent: form15
154 *pb_ext_object.static: true
155 *pb_ext_object.name: pb_ext_object
156 *pb_ext_object.x: 248
157 *pb_ext_object.y: 8
158 *pb_ext_object.width: 110
159 *pb_ext_object.height: 30
160 *pb_ext_object.background: ButtonBackground
161 *pb_ext_object.fontList: BoldTextFont
162 *pb_ext_object.foreground: ApplyForeground
163 *pb_ext_object.labelString: "Get object"
164 *pb_ext_object.activateCallback: {\
165 #include <spec_comm.h>\
166 \
167 char command[128], s[10];\
168 extern int Objlim[];\
169 \
170 sprintf(command, "%s 2", C_EXTR_GCOOR);\
171 AppendDialogText(command);\
172 \
173 if ( !GetCoords(Objlim, 2) )\
174 return;\
175 \
176 sprintf(command, "set/long OBJECT=%d,%d", Objlim[0], Objlim[1]);\
177 AppendDialogText(command);\
178 sprintf(s, "%d", Objlim[0]);\
179 UxPutValue(UxFindSwidget("tf_object1"), s);\
180 sprintf(s, "%d", Objlim[1]);\
181 UxPutValue(UxFindSwidget("tf_object2"), s);\
182 \
183 }
184
185 *pb_ext_fit.class: pushButton
186 *pb_ext_fit.parent: form15
187 *pb_ext_fit.static: true
188 *pb_ext_fit.name: pb_ext_fit
189 *pb_ext_fit.x: 364
190 *pb_ext_fit.y: 8
191 *pb_ext_fit.width: 110
192 *pb_ext_fit.height: 30
193 *pb_ext_fit.background: ButtonBackground
194 *pb_ext_fit.fontList: BoldTextFont
195 *pb_ext_fit.foreground: ApplyForeground
196 *pb_ext_fit.labelString: "Fit Sky On..."
197 *pb_ext_fit.activateCallback: {\
198 #include <spec_comm.h>\
199 \
200 PopupList(LIST_FIT_SKY);\
201 }
202
203 *pb_ext_weight.class: pushButton
204 *pb_ext_weight.parent: form15
205 *pb_ext_weight.static: true
206 *pb_ext_weight.name: pb_ext_weight
207 *pb_ext_weight.x: 176
208 *pb_ext_weight.y: 42
209 *pb_ext_weight.width: 160
210 *pb_ext_weight.height: 30
211 *pb_ext_weight.background: ButtonBackground
212 *pb_ext_weight.fontList: BoldTextFont
213 *pb_ext_weight.foreground: ApplyForeground
214 *pb_ext_weight.labelString: "Extract Weight..."
215 *pb_ext_weight.activateCallback: {\
216 #include <spec_comm.h>\
217 \
218 PopupList(LIST_EXT_WEIGHT);\
219 }
220
221 *pb_ext_average.class: pushButton
222 *pb_ext_average.parent: form15
223 *pb_ext_average.static: true
224 *pb_ext_average.name: pb_ext_average
225 *pb_ext_average.x: 8
226 *pb_ext_average.y: 42
227 *pb_ext_average.width: 160
228 *pb_ext_average.height: 30
229 *pb_ext_average.background: ButtonBackground
230 *pb_ext_average.fontList: BoldTextFont
231 *pb_ext_average.foreground: ApplyForeground
232 *pb_ext_average.labelString: "Extract Average..."
233 *pb_ext_average.activateCallback: {\
234 #include <spec_comm.h>\
235 \
236 PopupList(LIST_EXT_AVER);\
237 }
238
239 *pb_ext_average1.class: pushButton
240 *pb_ext_average1.parent: form15
241 *pb_ext_average1.static: true
242 *pb_ext_average1.name: pb_ext_average1
243 *pb_ext_average1.x: 10
244 *pb_ext_average1.y: 8
245 *pb_ext_average1.width: 110
246 *pb_ext_average1.height: 30
247 *pb_ext_average1.background: ButtonBackground
248 *pb_ext_average1.fontList: BoldTextFont
249 *pb_ext_average1.foreground: ApplyForeground
250 *pb_ext_average1.labelString: "Load Image..."
251 *pb_ext_average1.activateCallback: {\
252 #include <spec_comm.h>\
253 \
254 PopupList(LIST_LOAD_IMA);\
255 }
256
257 *shelp_extract.class: text
258 *shelp_extract.parent: form14
259 *shelp_extract.static: true
260 *shelp_extract.name: shelp_extract
261 *shelp_extract.x: 2
262 *shelp_extract.y: 516
263 *shelp_extract.width: 484
264 *shelp_extract.height: 50
265 *shelp_extract.background: SHelpBackground
266 *shelp_extract.cursorPositionVisible: "false"
267 *shelp_extract.editable: "false"
268 *shelp_extract.fontList: TextFont
269
270 *separator10.class: separator
271 *separator10.parent: form14
272 *separator10.static: true
273 *separator10.name: separator10
274 *separator10.x: 0
275 *separator10.y: 506
276 *separator10.width: 492
277 *separator10.height: 10
278 *separator10.background: WindowBackground
279
280 *separator11.class: separator
281 *separator11.parent: form14
282 *separator11.static: true
283 *separator11.name: separator11
284 *separator11.x: -2
285 *separator11.y: 564
286 *separator11.width: 492
287 *separator11.height: 10
288 *separator11.background: WindowBackground
289
290 *rowColumn6.class: rowColumn
291 *rowColumn6.parent: form14
292 *rowColumn6.static: true
293 *rowColumn6.name: rowColumn6
294 *rowColumn6.x: 264
295 *rowColumn6.y: 422
296 *rowColumn6.width: 82
297 *rowColumn6.height: 67
298 *rowColumn6.radioBehavior: "true"
299 *rowColumn6.background: "grey80"
300 *rowColumn6.entryBorder: 0
301 *rowColumn6.labelString: ""
302 *rowColumn6.shadowThickness: 0
303 *rowColumn6.borderWidth: 0
304 *rowColumn6.entryAlignment: "alignment_beginning"
305 *rowColumn6.isAligned: "true"
306
307 *rb_extmtd_line.class: toggleButton
308 *rb_extmtd_line.parent: rowColumn6
309 *rb_extmtd_line.static: true
310 *rb_extmtd_line.name: rb_extmtd_line
311 *rb_extmtd_line.x: 3
312 *rb_extmtd_line.y: 2
313 *rb_extmtd_line.width: 76
314 *rb_extmtd_line.height: 20
315 *rb_extmtd_line.background: WindowBackground
316 *rb_extmtd_line.fontList: TextFont
317 *rb_extmtd_line.labelString: "SUM"
318 *rb_extmtd_line.set: "true"
319 *rb_extmtd_line.selectColor: SelectColor
320 *rb_extmtd_line.foreground: TextForeground
321 *rb_extmtd_line.highlightOnEnter: "true"
322 *rb_extmtd_line.indicatorSize: 16
323
324 *rb_extmtd_aver.class: toggleButton
325 *rb_extmtd_aver.parent: rowColumn6
326 *rb_extmtd_aver.static: true
327 *rb_extmtd_aver.name: rb_extmtd_aver
328 *rb_extmtd_aver.x: 3
329 *rb_extmtd_aver.y: 34
330 *rb_extmtd_aver.width: 76
331 *rb_extmtd_aver.height: 66
332 *rb_extmtd_aver.background: WindowBackground
333 *rb_extmtd_aver.fontList: TextFont
334 *rb_extmtd_aver.labelString: "AVERAGE"
335 *rb_extmtd_aver.selectColor: SelectColor
336 *rb_extmtd_aver.foreground: TextForeground
337 *rb_extmtd_aver.valueChangedCallback: {\
338 #include <spec_comm.h>\
339 \
340 extern int UpdateToggle;\
341 \
342 if ( !UpdateToggle )\
343 return;\
344 \
345 if ( XmToggleButtonGetState(UxWidget) ) /*selected */\
346 WriteKeyword("AVERAGE", K_EXTMTD);\
347 else\
348 WriteKeyword("LINEAR", K_EXTMTD);\
349 \
350 }
351 *rb_extmtd_aver.set: "false"
352 *rb_extmtd_aver.highlightOnEnter: "true"
353 *rb_extmtd_aver.indicatorSize: 16
354
355 *label47.class: label
356 *label47.parent: form14
357 *label47.static: true
358 *label47.name: label47
359 *label47.x: 256
360 *label47.y: 396
361 *label47.width: 122
362 *label47.height: 26
363 *label47.background: WindowBackground
364 *label47.fontList: TextFont
365 *label47.labelString: "Extraction method"
366 *label47.alignment: "alignment_beginning"
367 *label47.foreground: TextForeground
368
369 *separatorGadget26.class: separatorGadget
370 *separatorGadget26.parent: form14
371 *separatorGadget26.static: true
372 *separatorGadget26.name: separatorGadget26
373 *separatorGadget26.x: 241
374 *separatorGadget26.y: 412
375 *separatorGadget26.width: 12
376 *separatorGadget26.height: 84
377 *separatorGadget26.orientation: "vertical"
378
379 *separatorGadget27.class: separatorGadget
380 *separatorGadget27.parent: form14
381 *separatorGadget27.static: true
382 *separatorGadget27.name: separatorGadget27
383 *separatorGadget27.x: 246
384 *separatorGadget27.y: 492
385 *separatorGadget27.width: 144
386 *separatorGadget27.height: 8
387
388 *separatorGadget28.class: separatorGadget
389 *separatorGadget28.parent: form14
390 *separatorGadget28.static: true
391 *separatorGadget28.name: separatorGadget28
392 *separatorGadget28.x: 384
393 *separatorGadget28.y: 412
394 *separatorGadget28.width: 12
395 *separatorGadget28.height: 84
396 *separatorGadget28.orientation: "vertical"
397
398 *rowColumn7.class: rowColumn
399 *rowColumn7.parent: form14
400 *rowColumn7.static: true
401 *rowColumn7.name: rowColumn7
402 *rowColumn7.x: 45
403 *rowColumn7.y: 420
404 *rowColumn7.width: 82
405 *rowColumn7.height: 67
406 *rowColumn7.radioBehavior: "true"
407 *rowColumn7.background: "grey80"
408 *rowColumn7.entryBorder: 0
409 *rowColumn7.labelString: ""
410 *rowColumn7.shadowThickness: 0
411 *rowColumn7.borderWidth: 0
412 *rowColumn7.entryAlignment: "alignment_beginning"
413 *rowColumn7.isAligned: "true"
414
415 *rb_skymod_0.class: toggleButton
416 *rb_skymod_0.parent: rowColumn7
417 *rb_skymod_0.static: true
418 *rb_skymod_0.name: rb_skymod_0
419 *rb_skymod_0.x: -12
420 *rb_skymod_0.y: 0
421 *rb_skymod_0.width: 76
422 *rb_skymod_0.height: 20
423 *rb_skymod_0.background: WindowBackground
424 *rb_skymod_0.fontList: TextFont
425 *rb_skymod_0.labelString: "Same spatial profile"
426 *rb_skymod_0.set: "true"
427 *rb_skymod_0.selectColor: SelectColor
428 *rb_skymod_0.foreground: TextForeground
429 *rb_skymod_0.highlightOnEnter: "true"
430 *rb_skymod_0.indicatorSize: 16
431
432 *rb_skymod_1.class: toggleButton
433 *rb_skymod_1.parent: rowColumn7
434 *rb_skymod_1.static: true
435 *rb_skymod_1.name: rb_skymod_1
436 *rb_skymod_1.x: 3
437 *rb_skymod_1.y: 34
438 *rb_skymod_1.width: 76
439 *rb_skymod_1.height: 66
440 *rb_skymod_1.background: WindowBackground
441 *rb_skymod_1.fontList: TextFont
442 *rb_skymod_1.labelString: "Independent profile"
443 *rb_skymod_1.selectColor: SelectColor
444 *rb_skymod_1.foreground: TextForeground
445 *rb_skymod_1.valueChangedCallback: {\
446 #include <spec_comm.h>\
447 \
448 extern int UpdateToggle;\
449 \
450 if ( !UpdateToggle )\
451 return;\
452 \
453 if ( XmToggleButtonGetState(UxWidget) ) /*selected */\
454 WriteKeyword("1", K_SKYMOD);\
455 else\
456 WriteKeyword("0", K_SKYMOD);\
457 \
458 }
459 *rb_skymod_1.set: "false"
460 *rb_skymod_1.highlightOnEnter: "true"
461 *rb_skymod_1.indicatorSize: 16
462
463 *label48.class: label
464 *label48.parent: form14
465 *label48.static: true
466 *label48.name: label48
467 *label48.x: 68
468 *label48.y: 394
469 *label48.width: 105
470 *label48.height: 26
471 *label48.background: WindowBackground
472 *label48.fontList: TextFont
473 *label48.labelString: "Sky fitting mode"
474 *label48.alignment: "alignment_beginning"
475 *label48.foreground: TextForeground
476
477 *separatorGadget29.class: separatorGadget
478 *separatorGadget29.parent: form14
479 *separatorGadget29.static: true
480 *separatorGadget29.name: separatorGadget29
481 *separatorGadget29.x: 31
482 *separatorGadget29.y: 410
483 *separatorGadget29.width: 12
484 *separatorGadget29.height: 84
485 *separatorGadget29.orientation: "vertical"
486
487 *separatorGadget30.class: separatorGadget
488 *separatorGadget30.parent: form14
489 *separatorGadget30.static: true
490 *separatorGadget30.name: separatorGadget30
491 *separatorGadget30.x: 202
492 *separatorGadget30.y: 410
493 *separatorGadget30.width: 12
494 *separatorGadget30.height: 84
495 *separatorGadget30.orientation: "vertical"
496
497 *separatorGadget31.class: separatorGadget
498 *separatorGadget31.parent: form14
499 *separatorGadget31.static: true
500 *separatorGadget31.name: separatorGadget31
501 *separatorGadget31.x: 35
502 *separatorGadget31.y: 406
503 *separatorGadget31.width: 33
504 *separatorGadget31.height: 10
505
506 *separatorGadget32.class: separatorGadget
507 *separatorGadget32.parent: form14
508 *separatorGadget32.static: true
509 *separatorGadget32.name: separatorGadget32
510 *separatorGadget32.x: 172
511 *separatorGadget32.y: 406
512 *separatorGadget32.width: 36
513 *separatorGadget32.height: 10
514
515 *separatorGadget33.class: separatorGadget
516 *separatorGadget33.parent: form14
517 *separatorGadget33.static: true
518 *separatorGadget33.name: separatorGadget33
519 *separatorGadget33.x: 36
520 *separatorGadget33.y: 490
521 *separatorGadget33.width: 172
522 *separatorGadget33.height: 8
523
524 *separatorGadget34.class: separatorGadget
525 *separatorGadget34.parent: form14
526 *separatorGadget34.static: true
527 *separatorGadget34.name: separatorGadget34
528 *separatorGadget34.x: 374
529 *separatorGadget34.y: 408
530 *separatorGadget34.width: 16
531 *separatorGadget34.height: 10
532
533 *separatorGadget35.class: separatorGadget
534 *separatorGadget35.parent: form14
535 *separatorGadget35.static: true
536 *separatorGadget35.name: separatorGadget35
537 *separatorGadget35.x: 246
538 *separatorGadget35.y: 408
539 *separatorGadget35.width: 13
540 *separatorGadget35.height: 10
541
542 *label49.class: label
543 *label49.parent: form14
544 *label49.static: true
545 *label49.name: label49
546 *label49.x: 16
547 *label49.y: 62
548 *label49.width: 150
549 *label49.height: 30
550 *label49.background: LabelBackground
551 *label49.fontList: TextFont
552 *label49.labelString: "Object limits (pixels) :"
553 *label49.alignment: "alignment_beginning"
554 *label49.foreground: TextForeground
555
556 *label50.class: label
557 *label50.parent: form14
558 *label50.static: true
559 *label50.name: label50
560 *label50.x: 16
561 *label50.y: 26
562 *label50.width: 120
563 *label50.height: 30
564 *label50.background: LabelBackground
565 *label50.fontList: TextFont
566 *label50.labelString: "Sky limits (pixels) :"
567 *label50.alignment: "alignment_beginning"
568 *label50.foreground: TextForeground
569
570 *tf_lowsky2.class: textField
571 *tf_lowsky2.parent: form14
572 *tf_lowsky2.static: true
573 *tf_lowsky2.name: tf_lowsky2
574 *tf_lowsky2.x: 292
575 *tf_lowsky2.y: 24
576 *tf_lowsky2.width: 56
577 *tf_lowsky2.height: 34
578 *tf_lowsky2.background: TextBackground
579 *tf_lowsky2.fontList: TextFont
580 *tf_lowsky2.highlightOnEnter: "true"
581 *tf_lowsky2.foreground: TextForeground
582 *tf_lowsky2.losingFocusCallback: {\
583 #include <spec_comm.h>\
584 \
585 char *text;\
586 int val;\
587 extern int Lowsky[];\
588 \
589 text = XmTextGetString(UxWidget);\
590 sscanf(text, "%d", &val);\
591 \
592 if ( val != Lowsky[1] ) {\
593 Lowsky[1] = val;\
594 WriteKeyword(text, K_LOWSKY2);\
595 }\
596 \
597 XtFree(text);\
598 }
599 *tf_lowsky2.maxLength: 5
600
601 *tf_sky.class: textField
602 *tf_sky.parent: form14
603 *tf_sky.static: true
604 *tf_sky.name: tf_sky
605 *tf_sky.x: 238
606 *tf_sky.y: 356
607 *tf_sky.width: 210
608 *tf_sky.height: 40
609 *tf_sky.background: TextBackground
610 *tf_sky.fontList: TextFont
611 *tf_sky.highlightOnEnter: "true"
612 *tf_sky.foreground: TextForeground
613
614 *label38.class: label
615 *label38.parent: form14
616 *label38.static: true
617 *label38.name: label38
618 *label38.x: 18
619 *label38.y: 360
620 *label38.width: 186
621 *label38.height: 30
622 *label38.background: LabelBackground
623 *label38.fontList: TextFont
624 *label38.labelString: "Sky (image or constant) :"
625 *label38.alignment: "alignment_beginning"
626 *label38.foreground: TextForeground
627
628 *label42.class: label
629 *label42.parent: form14
630 *label42.static: true
631 *label42.name: label42
632 *label42.x: 16
633 *label42.y: 136
634 *label42.width: 194
635 *label42.height: 30
636 *label42.background: LabelBackground
637 *label42.fontList: TextFont
638 *label42.labelString: "Order for optimal extraction :"
639 *label42.alignment: "alignment_beginning"
640 *label42.foreground: TextForeground
641
642 *tf_order.class: textField
643 *tf_order.parent: form14
644 *tf_order.static: true
645 *tf_order.name: tf_order
646 *tf_order.x: 238
647 *tf_order.y: 136
648 *tf_order.width: 80
649 *tf_order.height: 34
650 *tf_order.background: TextBackground
651 *tf_order.fontList: TextFont
652 *tf_order.highlightOnEnter: "true"
653 *tf_order.foreground: TextForeground
654 *tf_order.losingFocusCallback: {\
655 #include <spec_comm.h>\
656 \
657 char *text;\
658 int val;\
659 extern int Order;\
660 \
661 text = XmTextGetString(UxWidget);\
662 sscanf(text, "%d", &val);\
663 \
664 if ( val != Order ) {\
665 Order = val;\
666 WriteKeyword(text, K_ORDER);\
667 }\
668 \
669 XtFree(text);\
670 }
671
672 *tf_skyord.class: textField
673 *tf_skyord.parent: form14
674 *tf_skyord.static: true
675 *tf_skyord.name: tf_skyord
676 *tf_skyord.x: 238
677 *tf_skyord.y: 98
678 *tf_skyord.width: 80
679 *tf_skyord.height: 34
680 *tf_skyord.background: TextBackground
681 *tf_skyord.fontList: TextFont
682 *tf_skyord.highlightOnEnter: "true"
683 *tf_skyord.foreground: TextForeground
684 *tf_skyord.losingFocusCallback: {\
685 #include <spec_comm.h>\
686 \
687 char *text;\
688 int val;\
689 extern int Skyord;\
690 \
691 text = XmTextGetString(UxWidget);\
692 sscanf(text, "%d", &val);\
693 \
694 if ( val != Skyord ) {\
695 Skyord = val;\
696 WriteKeyword(text, K_SKYORD);\
697 }\
698 \
699 XtFree(text);\
700 }
701
702 *label43.class: label
703 *label43.parent: form14
704 *label43.static: true
705 *label43.name: label43
706 *label43.x: 16
707 *label43.y: 100
708 *label43.width: 120
709 *label43.height: 30
710 *label43.background: LabelBackground
711 *label43.fontList: TextFont
712 *label43.labelString: "Order for sky fit :"
713 *label43.alignment: "alignment_beginning"
714 *label43.foreground: TextForeground
715
716 *label45.class: label
717 *label45.parent: form14
718 *label45.static: true
719 *label45.name: label45
720 *label45.x: 16
721 *label45.y: 210
722 *label45.width: 154
723 *label45.height: 30
724 *label45.background: LabelBackground
725 *label45.fontList: TextFont
726 *label45.labelString: "Read-out-noise (e-) :"
727 *label45.alignment: "alignment_beginning"
728 *label45.foreground: TextForeground
729
730 *tf_ron.class: textField
731 *tf_ron.parent: form14
732 *tf_ron.static: true
733 *tf_ron.name: tf_ron
734 *tf_ron.x: 238
735 *tf_ron.y: 210
736 *tf_ron.width: 80
737 *tf_ron.height: 34
738 *tf_ron.background: TextBackground
739 *tf_ron.fontList: TextFont
740 *tf_ron.highlightOnEnter: "true"
741 *tf_ron.foreground: TextForeground
742 *tf_ron.losingFocusCallback: {\
743 #include <spec_comm.h>\
744 \
745 char *text;\
746 float val;\
747 extern float Ron;\
748 \
749 text = XmTextGetString(UxWidget);\
750 sscanf(text, "%f", &val);\
751 \
752 if ( val != Ron ) {\
753 Ron = val;\
754 WriteKeyword(text, K_RON);\
755 }\
756 \
757 XtFree(text);\
758 \
759 }
760
761 *tf_niter.class: textField
762 *tf_niter.parent: form14
763 *tf_niter.static: true
764 *tf_niter.name: tf_niter
765 *tf_niter.x: 238
766 *tf_niter.y: 172
767 *tf_niter.width: 80
768 *tf_niter.height: 34
769 *tf_niter.background: TextBackground
770 *tf_niter.fontList: TextFont
771 *tf_niter.highlightOnEnter: "true"
772 *tf_niter.foreground: TextForeground
773 *tf_niter.losingFocusCallback: {\
774 #include <spec_comm.h>\
775 \
776 char *text;\
777 int val;\
778 extern int Niter;\
779 \
780 text = XmTextGetString(UxWidget);\
781 sscanf(text, "%d", &val);\
782 \
783 if ( val != Niter ) {\
784 Niter = val;\
785 WriteKeyword(text, K_NITER);\
786 }\
787 \
788 XtFree(text);\
789 }
790
791 *label46.class: label
792 *label46.parent: form14
793 *label46.static: true
794 *label46.name: label46
795 *label46.x: 16
796 *label46.y: 174
797 *label46.width: 146
798 *label46.height: 30
799 *label46.background: LabelBackground
800 *label46.fontList: TextFont
801 *label46.labelString: "Extraction iterations :"
802 *label46.alignment: "alignment_beginning"
803 *label46.foreground: TextForeground
804
805 *label51.class: label
806 *label51.parent: form14
807 *label51.static: true
808 *label51.name: label51
809 *label51.x: 16
810 *label51.y: 246
811 *label51.width: 206
812 *label51.height: 30
813 *label51.background: LabelBackground
814 *label51.fontList: TextFont
815 *label51.labelString: "Inverse gain factor (e-/ADU) :"
816 *label51.alignment: "alignment_beginning"
817 *label51.foreground: TextForeground
818
819 *tf_gain.class: textField
820 *tf_gain.parent: form14
821 *tf_gain.static: true
822 *tf_gain.name: tf_gain
823 *tf_gain.x: 238
824 *tf_gain.y: 246
825 *tf_gain.width: 80
826 *tf_gain.height: 34
827 *tf_gain.background: TextBackground
828 *tf_gain.fontList: TextFont
829 *tf_gain.highlightOnEnter: "true"
830 *tf_gain.foreground: TextForeground
831 *tf_gain.losingFocusCallback: {\
832 #include <spec_comm.h>\
833 \
834 char *text;\
835 float val;\
836 extern float Gain;\
837 \
838 text = XmTextGetString(UxWidget);\
839 sscanf(text, "%f", &val);\
840 \
841 if ( val != Gain ) {\
842 Gain = val;\
843 WriteKeyword(text, K_GAIN);\
844 }\
845 \
846 XtFree(text);\
847 \
848 }
849
850 *label52.class: label
851 *label52.parent: form14
852 *label52.static: true
853 *label52.name: label52
854 *label52.x: 16
855 *label52.y: 320
856 *label52.width: 220
857 *label52.height: 30
858 *label52.background: LabelBackground
859 *label52.fontList: TextFont
860 *label52.labelString: "Radius for cosmic rays removal :"
861 *label52.alignment: "alignment_beginning"
862 *label52.foreground: TextForeground
863
864 *tf_radius.class: textField
865 *tf_radius.parent: form14
866 *tf_radius.static: true
867 *tf_radius.name: tf_radius
868 *tf_radius.x: 238
869 *tf_radius.y: 320
870 *tf_radius.width: 80
871 *tf_radius.height: 34
872 *tf_radius.background: TextBackground
873 *tf_radius.fontList: TextFont
874 *tf_radius.highlightOnEnter: "true"
875 *tf_radius.foreground: TextForeground
876 *tf_radius.losingFocusCallback: {\
877 #include <spec_comm.h>\
878 \
879 char *text;\
880 int val;\
881 extern int Radius;\
882 \
883 text = XmTextGetString(UxWidget);\
884 sscanf(text, "%d", &val);\
885 \
886 if ( val != Radius ) {\
887 Radius = val;\
888 WriteKeyword(text, K_RADIUS);\
889 }\
890 \
891 XtFree(text);\
892 }
893
894 *tf_sigma.class: textField
895 *tf_sigma.parent: form14
896 *tf_sigma.static: true
897 *tf_sigma.name: tf_sigma
898 *tf_sigma.x: 238
899 *tf_sigma.y: 282
900 *tf_sigma.width: 80
901 *tf_sigma.height: 34
902 *tf_sigma.background: TextBackground
903 *tf_sigma.fontList: TextFont
904 *tf_sigma.highlightOnEnter: "true"
905 *tf_sigma.foreground: TextForeground
906 *tf_sigma.losingFocusCallback: {\
907 #include <spec_comm.h>\
908 \
909 char *text;\
910 float val;\
911 extern float Sigma;\
912 \
913 text = XmTextGetString(UxWidget);\
914 sscanf(text, "%f", &val);\
915 \
916 if ( val != Sigma ) {\
917 Sigma = val;\
918 WriteKeyword(text, K_SIGMA);\
919 }\
920 \
921 XtFree(text);\
922 \
923 }
924
925 *label53.class: label
926 *label53.parent: form14
927 *label53.static: true
928 *label53.name: label53
929 *label53.x: 16
930 *label53.y: 284
931 *label53.width: 182
932 *label53.height: 30
933 *label53.background: LabelBackground
934 *label53.fontList: TextFont
935 *label53.labelString: "Threshold for cosmic rays :"
936 *label53.alignment: "alignment_beginning"
937 *label53.foreground: TextForeground
938
939 *tf_lowsky1.class: textField
940 *tf_lowsky1.parent: form14
941 *tf_lowsky1.static: true
942 *tf_lowsky1.name: tf_lowsky1
943 *tf_lowsky1.x: 238
944 *tf_lowsky1.y: 24
945 *tf_lowsky1.width: 56
946 *tf_lowsky1.height: 34
947 *tf_lowsky1.background: TextBackground
948 *tf_lowsky1.fontList: TextFont
949 *tf_lowsky1.highlightOnEnter: "true"
950 *tf_lowsky1.foreground: TextForeground
951 *tf_lowsky1.losingFocusCallback: {\
952 #include <spec_comm.h>\
953 \
954 char *text;\
955 int val;\
956 extern int Lowsky[];\
957 \
958 text = XmTextGetString(UxWidget);\
959 sscanf(text, "%d", &val);\
960 \
961 if ( val != Lowsky[0] ) {\
962 Lowsky[0] = val;\
963 WriteKeyword(text, K_LOWSKY1);\
964 }\
965 \
966 XtFree(text);\
967 }
968 *tf_lowsky1.maxLength: 5
969
970 *tf_uppsky1.class: textField
971 *tf_uppsky1.parent: form14
972 *tf_uppsky1.static: true
973 *tf_uppsky1.name: tf_uppsky1
974 *tf_uppsky1.x: 346
975 *tf_uppsky1.y: 24
976 *tf_uppsky1.width: 56
977 *tf_uppsky1.height: 34
978 *tf_uppsky1.background: TextBackground
979 *tf_uppsky1.fontList: TextFont
980 *tf_uppsky1.highlightOnEnter: "true"
981 *tf_uppsky1.foreground: TextForeground
982 *tf_uppsky1.losingFocusCallback: {\
983 #include <spec_comm.h>\
984 \
985 char *text;\
986 int val;\
987 extern int Uppsky[];\
988 \
989 text = XmTextGetString(UxWidget);\
990 sscanf(text, "%d", &val);\
991 \
992 if ( val != Uppsky[0] ) {\
993 Uppsky[0] = val;\
994 WriteKeyword(text, K_UPPSKY1);\
995 }\
996 \
997 XtFree(text);\
998 }
999 *tf_uppsky1.maxLength: 5
1000
1001 *tf_uppsky2.class: textField
1002 *tf_uppsky2.parent: form14
1003 *tf_uppsky2.static: true
1004 *tf_uppsky2.name: tf_uppsky2
1005 *tf_uppsky2.x: 400
1006 *tf_uppsky2.y: 24
1007 *tf_uppsky2.width: 56
1008 *tf_uppsky2.height: 34
1009 *tf_uppsky2.background: TextBackground
1010 *tf_uppsky2.fontList: TextFont
1011 *tf_uppsky2.highlightOnEnter: "true"
1012 *tf_uppsky2.foreground: TextForeground
1013 *tf_uppsky2.losingFocusCallback: {\
1014 #include <spec_comm.h>\
1015 \
1016 char *text;\
1017 int val;\
1018 extern int Uppsky[];\
1019 \
1020 text = XmTextGetString(UxWidget);\
1021 sscanf(text, "%d", &val);\
1022 \
1023 if ( val != Uppsky[1] ) {\
1024 Uppsky[1] = val;\
1025 WriteKeyword(text, K_UPPSKY2);\
1026 }\
1027 \
1028 XtFree(text);\
1029 }
1030 *tf_uppsky2.maxLength: 5
1031
1032 *tf_object1.class: textField
1033 *tf_object1.parent: form14
1034 *tf_object1.static: true
1035 *tf_object1.name: tf_object1
1036 *tf_object1.x: 238
1037 *tf_object1.y: 60
1038 *tf_object1.width: 56
1039 *tf_object1.height: 34
1040 *tf_object1.background: TextBackground
1041 *tf_object1.fontList: TextFont
1042 *tf_object1.highlightOnEnter: "true"
1043 *tf_object1.foreground: TextForeground
1044 *tf_object1.losingFocusCallback: {\
1045 #include <spec_comm.h>\
1046 \
1047 char *text;\
1048 int val;\
1049 extern int Objlim[];\
1050 \
1051 text = XmTextGetString(UxWidget);\
1052 sscanf(text, "%d", &val);\
1053 \
1054 if ( val != Objlim[0] ) {\
1055 Objlim[0] = val;\
1056 WriteKeyword(text, K_OBJECT1);\
1057 }\
1058 \
1059 XtFree(text);\
1060 }
1061 *tf_object1.maxLength: 5
1062
1063 *tf_object2.class: textField
1064 *tf_object2.parent: form14
1065 *tf_object2.static: true
1066 *tf_object2.name: tf_object2
1067 *tf_object2.x: 292
1068 *tf_object2.y: 60
1069 *tf_object2.width: 56
1070 *tf_object2.height: 34
1071 *tf_object2.background: TextBackground
1072 *tf_object2.fontList: TextFont
1073 *tf_object2.highlightOnEnter: "true"
1074 *tf_object2.foreground: TextForeground
1075 *tf_object2.losingFocusCallback: {\
1076 #include <spec_comm.h>\
1077 \
1078 char *text;\
1079 int val;\
1080 extern int Objlim[];\
1081 \
1082 text = XmTextGetString(UxWidget);\
1083 sscanf(text, "%d", &val);\
1084 \
1085 if ( val != Objlim[1] ) {\
1086 Objlim[1] = val;\
1087 WriteKeyword(text, K_OBJECT2);\
1088 }\
1089 \
1090 XtFree(text);\
1091 }
1092 *tf_object2.maxLength: 5
1093