Debian Codegraph @

gui/XLong/prj/RebinShell.i

raw
1 ! UIMX ascii 2.0 key: 3585
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: SelectFileRebin
39 *translation.parent: RebinShell
40 *translation.policy: override
41 *translation.<Btn3Down>: FileSelectACT()
42
43 *RebinShell.class: applicationShell
44 *RebinShell.parent: NO_PARENT
45 *RebinShell.static: true
46 *RebinShell.gbldecl: #include <stdio.h>\
47 #include <ExternResources.h>
48 *RebinShell.ispecdecl:
49 *RebinShell.funcdecl: swidget create_RebinShell()\
50
51 *RebinShell.funcname: create_RebinShell
52 *RebinShell.funcdef: "swidget", "<create_RebinShell>(%)"
53 *RebinShell.icode:
54 *RebinShell.fcode: return(rtrn);\
55
56 *RebinShell.auxdecl:
57 *RebinShell.name: RebinShell
58 *RebinShell.x: 383
59 *RebinShell.y: 105
60 *RebinShell.width: 490
61 *RebinShell.height: 263
62 *RebinShell.title: "Rebinning"
63 *RebinShell.keyboardFocusPolicy: "pointer"
64 *RebinShell.geometry: "+10+60"
65 *RebinShell.background: WindowBackground
66
67 *form7.class: form
68 *form7.parent: RebinShell
69 *form7.static: true
70 *form7.name: form7
71 *form7.resizePolicy: "resize_none"
72 *form7.unitType: "pixels"
73 *form7.x: 0
74 *form7.y: 0
75 *form7.width: 408
76 *form7.height: 348
77 *form7.background: WindowBackground
78
79 *label21.class: label
80 *label21.parent: form7
81 *label21.static: true
82 *label21.name: label21
83 *label21.x: 24
84 *label21.y: 30
85 *label21.width: 168
86 *label21.height: 30
87 *label21.background: LabelBackground
88 *label21.fontList: TextFont
89 *label21.labelString: "Starting wavelength (A) :"
90 *label21.alignment: "alignment_beginning"
91 *label21.foreground: TextForeground
92
93 *tf_rebstrt.class: textField
94 *tf_rebstrt.parent: form7
95 *tf_rebstrt.static: true
96 *tf_rebstrt.name: tf_rebstrt
97 *tf_rebstrt.x: 201
98 *tf_rebstrt.y: 24
99 *tf_rebstrt.width: 96
100 *tf_rebstrt.height: 34
101 *tf_rebstrt.background: TextBackground
102 *tf_rebstrt.fontList: TextFont
103 *tf_rebstrt.highlightOnEnter: "true"
104 *tf_rebstrt.foreground: TextForeground
105 *tf_rebstrt.losingFocusCallback: {\
106 #include <spec_comm.h>\
107 \
108 char *text;\
109 double val;\
110 extern double Rebstrt;\
111 \
112 text = XmTextGetString(UxWidget);\
113 sscanf(text, "%lf", &val);\
114 \
115 if ( val != Rebstrt ) {\
116 Rebstrt = val;\
117 WriteKeyword(text, K_REBSTRT);\
118 }\
119 \
120 XtFree(text);\
121 }
122
123 *label22.class: label
124 *label22.parent: form7
125 *label22.static: true
126 *label22.name: label22
127 *label22.x: 24
128 *label22.y: 66
129 *label22.width: 156
130 *label22.height: 30
131 *label22.background: LabelBackground
132 *label22.fontList: TextFont
133 *label22.labelString: "Final wavelength (A) :"
134 *label22.alignment: "alignment_beginning"
135 *label22.foreground: TextForeground
136
137 *label23.class: label
138 *label23.parent: form7
139 *label23.static: true
140 *label23.name: label23
141 *label23.x: 24
142 *label23.y: 102
143 *label23.width: 158
144 *label23.height: 30
145 *label23.background: LabelBackground
146 *label23.fontList: TextFont
147 *label23.labelString: "Wavelength step (A) :"
148 *label23.alignment: "alignment_beginning"
149 *label23.foreground: TextForeground
150
151 *tf_rebend.class: textField
152 *tf_rebend.parent: form7
153 *tf_rebend.static: true
154 *tf_rebend.name: tf_rebend
155 *tf_rebend.x: 201
156 *tf_rebend.y: 62
157 *tf_rebend.width: 94
158 *tf_rebend.height: 34
159 *tf_rebend.background: TextBackground
160 *tf_rebend.fontList: TextFont
161 *tf_rebend.highlightOnEnter: "true"
162 *tf_rebend.foreground: TextForeground
163 *tf_rebend.losingFocusCallback: {\
164 #include <spec_comm.h>\
165 \
166 char *text;\
167 double val;\
168 extern double Rebend;\
169 \
170 text = XmTextGetString(UxWidget);\
171 sscanf(text, "%lf", &val);\
172 \
173 if ( val != Rebend ) {\
174 Rebend = val;\
175 WriteKeyword(text, K_REBEND);\
176 }\
177 \
178 XtFree(text);\
179 }
180
181 *rowColumn3.class: rowColumn
182 *rowColumn3.parent: form7
183 *rowColumn3.static: true
184 *rowColumn3.name: rowColumn3
185 *rowColumn3.x: 327
186 *rowColumn3.y: 35
187 *rowColumn3.width: 106
188 *rowColumn3.height: 96
189 *rowColumn3.radioBehavior: "true"
190 *rowColumn3.background: WindowBackground
191 *rowColumn3.entryBorder: 0
192 *rowColumn3.labelString: ""
193 *rowColumn3.shadowThickness: 0
194 *rowColumn3.borderWidth: 0
195 *rowColumn3.entryAlignment: "alignment_beginning"
196 *rowColumn3.adjustLast: "false"
197 *rowColumn3.adjustMargin: "true"
198 *rowColumn3.isAligned: "true"
199
200 *rb_rebmtd_line.class: toggleButton
201 *rb_rebmtd_line.parent: rowColumn3
202 *rb_rebmtd_line.static: true
203 *rb_rebmtd_line.name: rb_rebmtd_line
204 *rb_rebmtd_line.x: 12
205 *rb_rebmtd_line.y: 12
206 *rb_rebmtd_line.width: 148
207 *rb_rebmtd_line.height: 30
208 *rb_rebmtd_line.background: WindowBackground
209 *rb_rebmtd_line.fontList: TextFont
210 *rb_rebmtd_line.labelString: "LINEAR"
211 *rb_rebmtd_line.set: "true"
212 *rb_rebmtd_line.selectColor: SelectColor
213 *rb_rebmtd_line.highlightOnEnter: "true"
214 *rb_rebmtd_line.valueChangedCallback: {\
215 #include <spec_comm.h>\
216 \
217 extern int UpdateToggle;\
218 \
219 if ( UpdateToggle && XmToggleButtonGetState(UxWidget) )\
220 WriteKeyword("LINEAR", K_REBMTD);\
221 }
222 *rb_rebmtd_line.indicatorSize: 16
223 *rb_rebmtd_line.foreground: TextForeground
224
225 *rb_rebmtd_quad.class: toggleButton
226 *rb_rebmtd_quad.parent: rowColumn3
227 *rb_rebmtd_quad.static: true
228 *rb_rebmtd_quad.name: rb_rebmtd_quad
229 *rb_rebmtd_quad.x: 5
230 *rb_rebmtd_quad.y: 85
231 *rb_rebmtd_quad.width: 148
232 *rb_rebmtd_quad.height: 30
233 *rb_rebmtd_quad.background: WindowBackground
234 *rb_rebmtd_quad.fontList: TextFont
235 *rb_rebmtd_quad.labelString: "QUADRATIC"
236 *rb_rebmtd_quad.selectColor: SelectColor
237 *rb_rebmtd_quad.highlightOnEnter: "true"
238 *rb_rebmtd_quad.valueChangedCallback: {\
239 #include <spec_comm.h>\
240 \
241 extern int UpdateToggle;\
242 \
243 if ( UpdateToggle && XmToggleButtonGetState(UxWidget) )\
244 WriteKeyword("QUADRATIC", K_REBMTD);\
245 }
246 *rb_rebmtd_quad.indicatorSize: 16
247 *rb_rebmtd_quad.foreground: TextForeground
248
249 *rb_rebmtd_spli.class: toggleButton
250 *rb_rebmtd_spli.parent: rowColumn3
251 *rb_rebmtd_spli.static: true
252 *rb_rebmtd_spli.name: rb_rebmtd_spli
253 *rb_rebmtd_spli.x: 4
254 *rb_rebmtd_spli.y: 66
255 *rb_rebmtd_spli.width: 96
256 *rb_rebmtd_spli.height: 24
257 *rb_rebmtd_spli.background: WindowBackground
258 *rb_rebmtd_spli.fontList: TextFont
259 *rb_rebmtd_spli.labelString: "SPLINE"
260 *rb_rebmtd_spli.selectColor: SelectColor
261 *rb_rebmtd_spli.highlightOnEnter: "true"
262 *rb_rebmtd_spli.valueChangedCallback: {\
263 #include <spec_comm.h>\
264 \
265 extern int UpdateToggle;\
266 \
267 if ( UpdateToggle && XmToggleButtonGetState(UxWidget) )\
268 WriteKeyword("SPLINE", K_REBMTD);\
269 }
270 *rb_rebmtd_spli.indicatorSize: 16
271 *rb_rebmtd_spli.foreground: TextForeground
272
273 *label24.class: label
274 *label24.parent: form7
275 *label24.static: true
276 *label24.name: label24
277 *label24.x: 326
278 *label24.y: 6
279 *label24.width: 126
280 *label24.height: 27
281 *label24.background: LabelBackground
282 *label24.fontList: TextFont
283 *label24.labelString: "Rebinning method"
284 *label24.alignment: "alignment_beginning"
285 *label24.foreground: TextForeground
286
287 *separatorGadget11.class: separatorGadget
288 *separatorGadget11.parent: form7
289 *separatorGadget11.static: true
290 *separatorGadget11.name: separatorGadget11
291 *separatorGadget11.x: 451
292 *separatorGadget11.y: 21
293 *separatorGadget11.width: 12
294 *separatorGadget11.height: 120
295 *separatorGadget11.orientation: "vertical"
296
297 *separatorGadget12.class: separatorGadget
298 *separatorGadget12.parent: form7
299 *separatorGadget12.static: true
300 *separatorGadget12.name: separatorGadget12
301 *separatorGadget12.x: 315
302 *separatorGadget12.y: 21
303 *separatorGadget12.width: 12
304 *separatorGadget12.height: 120
305 *separatorGadget12.orientation: "vertical"
306
307 *tf_rebstp.class: textField
308 *tf_rebstp.parent: form7
309 *tf_rebstp.static: true
310 *tf_rebstp.name: tf_rebstp
311 *tf_rebstp.x: 201
312 *tf_rebstp.y: 100
313 *tf_rebstp.width: 94
314 *tf_rebstp.height: 34
315 *tf_rebstp.background: TextBackground
316 *tf_rebstp.fontList: TextFont
317 *tf_rebstp.highlightOnEnter: "true"
318 *tf_rebstp.foreground: TextForeground
319 *tf_rebstp.losingFocusCallback: {\
320 #include <spec_comm.h>\
321 \
322 char *text;\
323 double val;\
324 extern double Rebstp;\
325 \
326 text = XmTextGetString(UxWidget);\
327 sscanf(text, "%lf", &val);\
328 \
329 if ( val != Rebstp ) {\
330 Rebstp = val;\
331 WriteKeyword(text, K_REBSTP);\
332 }\
333 \
334 XtFree(text);\
335 }
336
337 *form8.class: form
338 *form8.parent: form7
339 *form8.static: true
340 *form8.name: form8
341 *form8.resizePolicy: "resize_none"
342 *form8.x: -2
343 *form8.y: 222
344 *form8.width: 490
345 *form8.height: 40
346 *form8.background: ButtonBackground
347
348 *pb_rebin_rbr.class: pushButton
349 *pb_rebin_rbr.parent: form8
350 *pb_rebin_rbr.static: true
351 *pb_rebin_rbr.name: pb_rebin_rbr
352 *pb_rebin_rbr.x: 4
353 *pb_rebin_rbr.y: 6
354 *pb_rebin_rbr.width: 100
355 *pb_rebin_rbr.height: 30
356 *pb_rebin_rbr.background: ButtonBackground
357 *pb_rebin_rbr.fontList: BoldTextFont
358 *pb_rebin_rbr.foreground: ApplyForeground
359 *pb_rebin_rbr.labelString: "Rebin RBR..."
360 *pb_rebin_rbr.activateCallback: {\
361 #include <spec_comm.h>\
362 \
363 PopupList(LIST_REBIN_RBR);\
364 \
365 }
366
367 *pushButton13.class: pushButton
368 *pushButton13.parent: form8
369 *pushButton13.static: true
370 *pushButton13.name: pushButton13
371 *pushButton13.x: 400
372 *pushButton13.y: 6
373 *pushButton13.width: 86
374 *pushButton13.height: 30
375 *pushButton13.background: ButtonBackground
376 *pushButton13.fontList: BoldTextFont
377 *pushButton13.foreground: CancelForeground
378 *pushButton13.labelString: "Cancel"
379 *pushButton13.activateCallback: {\
380 UxPopdownInterface(UxFindSwidget("RebinShell"));\
381 }
382
383 *pb_rebin_plot.class: pushButton
384 *pb_rebin_plot.parent: form8
385 *pb_rebin_plot.static: true
386 *pb_rebin_plot.name: pb_rebin_plot
387 *pb_rebin_plot.x: 312
388 *pb_rebin_plot.y: 6
389 *pb_rebin_plot.width: 86
390 *pb_rebin_plot.height: 30
391 *pb_rebin_plot.background: ButtonBackground
392 *pb_rebin_plot.fontList: BoldTextFont
393 *pb_rebin_plot.foreground: ButtonForeground
394 *pb_rebin_plot.labelString: "Plot table"
395 *pb_rebin_plot.activateCallback: {\
396 #include <spec_comm.h>\
397 \
398 char command[128], *out_file;\
399 \
400 out_file = XmTextGetString(UxGetWidget(UxFindSwidget("tf_file_dialog")));\
401 \
402 sprintf(command, "%s%s", C_PLOT_SPEC, out_file);\
403 \
404 AppendDialogText(command);\
405 \
406 XtFree(out_file);\
407 }
408
409 *pb_rebin_table.class: pushButton
410 *pb_rebin_table.parent: form8
411 *pb_rebin_table.static: true
412 *pb_rebin_table.name: pb_rebin_table
413 *pb_rebin_table.x: 206
414 *pb_rebin_table.y: 6
415 *pb_rebin_table.width: 100
416 *pb_rebin_table.height: 30
417 *pb_rebin_table.background: ButtonBackground
418 *pb_rebin_table.fontList: BoldTextFont
419 *pb_rebin_table.foreground: ApplyForeground
420 *pb_rebin_table.labelString: "Rebin table..."
421 *pb_rebin_table.activateCallback: {\
422 #include <spec_comm.h>\
423 \
424 PopupList(LIST_REBIN_TBL);\
425 }
426
427 *pb_rebin_2d.class: pushButton
428 *pb_rebin_2d.parent: form8
429 *pb_rebin_2d.static: true
430 *pb_rebin_2d.name: pb_rebin_2d
431 *pb_rebin_2d.x: 106
432 *pb_rebin_2d.y: 6
433 *pb_rebin_2d.width: 100
434 *pb_rebin_2d.height: 30
435 *pb_rebin_2d.background: ButtonBackground
436 *pb_rebin_2d.fontList: BoldTextFont
437 *pb_rebin_2d.foreground: ApplyForeground
438 *pb_rebin_2d.labelString: "Rebin 2D..."
439 *pb_rebin_2d.activateCallback: {\
440 #include <spec_comm.h>\
441 \
442 PopupList(LIST_REBIN_2D);\
443 }
444
445 *shelp_rebin.class: text
446 *shelp_rebin.parent: form7
447 *shelp_rebin.static: true
448 *shelp_rebin.name: shelp_rebin
449 *shelp_rebin.x: 0
450 *shelp_rebin.y: 162
451 *shelp_rebin.width: 484
452 *shelp_rebin.height: 50
453 *shelp_rebin.background: SHelpBackground
454 *shelp_rebin.cursorPositionVisible: "false"
455 *shelp_rebin.editable: "false"
456 *shelp_rebin.fontList: TextFont
457
458 *separator6.class: separator
459 *separator6.parent: form7
460 *separator6.static: true
461 *separator6.name: separator6
462 *separator6.x: -2
463 *separator6.y: 152
464 *separator6.width: 492
465 *separator6.height: 10
466 *separator6.background: WindowBackground
467
468 *separator7.class: separator
469 *separator7.parent: form7
470 *separator7.static: true
471 *separator7.name: separator7
472 *separator7.x: -4
473 *separator7.y: 210
474 *separator7.width: 492
475 *separator7.height: 10
476 *separator7.background: WindowBackground
477
478 *separatorGadget15.class: separatorGadget
479 *separatorGadget15.parent: form7
480 *separatorGadget15.static: true
481 *separatorGadget15.name: separatorGadget15
482 *separatorGadget15.x: 319
483 *separatorGadget15.y: 135
484 *separatorGadget15.width: 138
485 *separatorGadget15.height: 10
486