Debian Codegraph @

gui/XEchelle/src/FluxShell.c

raw
1 /* @(#)FluxShell.c 19.1 (ES0-DMD) 02/25/03 13:45:56 */
2 /*===========================================================================
3 Copyright (C) 1995 European Southern Observatory (ESO)
4
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License as
7 published by the Free Software Foundation; either version 2 of
8 the License, or (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public
16 License along with this program; if not, write to the Free
17 Software Foundation, Inc., 675 Massachusetss Ave, Cambridge,
18 MA 02139, USA.
19
20 Corresponding concerning ESO-MIDAS should be addressed as follows:
21 Internet e-mail: [email protected]
22 Postal address: European Southern Observatory
23 Data Management Division
24 Karl-Schwarzschild-Strasse 2
25 D 85748 Garching bei Muenchen
26 GERMANY
27 ===========================================================================*/
28
29
30 /*******************************************************************************
31 FluxShell.c
32
33 *******************************************************************************/
34
35 #include <stdio.h>
36 #include "UxLib.h"
37 #include "UxSepG.h"
38 #include "UxTogB.h"
39 #include "UxRowCol.h"
40 #include "UxTextF.h"
41 #include "UxLabel.h"
42 #include "UxSep.h"
43 #include "UxText.h"
44 #include "UxPushB.h"
45 #include "UxForm.h"
46 #include "UxApplSh.h"
47
48 /*******************************************************************************
49 Includes, Defines, and Global variables from the Declarations Editor:
50 *******************************************************************************/
51
52 #include <ExternResources.h>
53
54 /*******************************************************************************
55 The definition of the context structure:
56 If you create multiple instances of your interface, the context
57 structure ensures that your callbacks use the variables for the
58 correct instance.
59
60 For each swidget in the interface, each argument to the Interface
61 function, and each variable in the Instance Specific section of the
62 Declarations Editor, there is an entry in the context structure.
63 and a #define. The #define makes the variable name refer to the
64 corresponding entry in the context structure.
65 *******************************************************************************/
66
67 typedef struct
68 {
69 swidget UxFluxShell;
70 swidget Uxform10;
71 swidget Uxform11;
72 swidget Uxpb_flux_extin;
73 swidget UxpushButton18;
74 swidget Uxpb_flux_presp;
75 swidget Uxpb_flux_integr;
76 swidget Uxpb_flux_fit;
77 swidget Uxpb_flux_pflux;
78 swidget Uxpb_flux_filter;
79 swidget Uxpb_correct;
80 swidget Uxpb_edit_flux;
81 swidget Uxshelp_flux;
82 swidget Uxseparator8;
83 swidget Uxseparator9;
84 swidget Uxlabel27;
85 swidget Uxtf_extin_tbl;
86 swidget Uxlabel29;
87 swidget Uxtf_flux_tbl;
88 swidget Uxlabel30;
89 swidget Uxtf_output_resp;
90 swidget UxrowColumn4;
91 swidget Uxrb_fityp_poly;
92 swidget Uxrb_fityp_spli;
93 swidget Uxlabel33;
94 swidget UxseparatorGadget16;
95 swidget UxseparatorGadget17;
96 swidget UxseparatorGadget18;
97 swidget UxrowColumn5;
98 swidget Uxrb_plotyp_rati;
99 swidget Uxrb_plotyp_colo;
100 swidget Uxlabel34;
101 swidget UxseparatorGadget21;
102 swidget UxseparatorGadget22;
103 swidget UxseparatorGadget23;
104 swidget UxseparatorGadget24;
105 swidget UxseparatorGadget25;
106 swidget UxseparatorGadget19;
107 swidget UxseparatorGadget20;
108 swidget Uxlabel35;
109 swidget Uxtf_smooth;
110 swidget Uxlabel36;
111 swidget Uxtf_fitd;
112 swidget Uxlabel37;
113 } _UxCFluxShell;
114
115 #define FluxShell UxFluxShellContext->UxFluxShell
116 #define form10 UxFluxShellContext->Uxform10
117 #define form11 UxFluxShellContext->Uxform11
118 #define pb_flux_extin UxFluxShellContext->Uxpb_flux_extin
119 #define pushButton18 UxFluxShellContext->UxpushButton18
120 #define pb_flux_presp UxFluxShellContext->Uxpb_flux_presp
121 #define pb_flux_integr UxFluxShellContext->Uxpb_flux_integr
122 #define pb_flux_fit UxFluxShellContext->Uxpb_flux_fit
123 #define pb_flux_pflux UxFluxShellContext->Uxpb_flux_pflux
124 #define pb_flux_filter UxFluxShellContext->Uxpb_flux_filter
125 #define pb_correct UxFluxShellContext->Uxpb_correct
126 #define pb_edit_flux UxFluxShellContext->Uxpb_edit_flux
127 #define shelp_flux UxFluxShellContext->Uxshelp_flux
128 #define separator8 UxFluxShellContext->Uxseparator8
129 #define separator9 UxFluxShellContext->Uxseparator9
130 #define label27 UxFluxShellContext->Uxlabel27
131 #define tf_extin_tbl UxFluxShellContext->Uxtf_extin_tbl
132 #define label29 UxFluxShellContext->Uxlabel29
133 #define tf_flux_tbl UxFluxShellContext->Uxtf_flux_tbl
134 #define label30 UxFluxShellContext->Uxlabel30
135 #define tf_output_resp UxFluxShellContext->Uxtf_output_resp
136 #define rowColumn4 UxFluxShellContext->UxrowColumn4
137 #define rb_fityp_poly UxFluxShellContext->Uxrb_fityp_poly
138 #define rb_fityp_spli UxFluxShellContext->Uxrb_fityp_spli
139 #define label33 UxFluxShellContext->Uxlabel33
140 #define separatorGadget16 UxFluxShellContext->UxseparatorGadget16
141 #define separatorGadget17 UxFluxShellContext->UxseparatorGadget17
142 #define separatorGadget18 UxFluxShellContext->UxseparatorGadget18
143 #define rowColumn5 UxFluxShellContext->UxrowColumn5
144 #define rb_plotyp_rati UxFluxShellContext->Uxrb_plotyp_rati
145 #define rb_plotyp_colo UxFluxShellContext->Uxrb_plotyp_colo
146 #define label34 UxFluxShellContext->Uxlabel34
147 #define separatorGadget21 UxFluxShellContext->UxseparatorGadget21
148 #define separatorGadget22 UxFluxShellContext->UxseparatorGadget22
149 #define separatorGadget23 UxFluxShellContext->UxseparatorGadget23
150 #define separatorGadget24 UxFluxShellContext->UxseparatorGadget24
151 #define separatorGadget25 UxFluxShellContext->UxseparatorGadget25
152 #define separatorGadget19 UxFluxShellContext->UxseparatorGadget19
153 #define separatorGadget20 UxFluxShellContext->UxseparatorGadget20
154 #define label35 UxFluxShellContext->Uxlabel35
155 #define tf_smooth UxFluxShellContext->Uxtf_smooth
156 #define label36 UxFluxShellContext->Uxlabel36
157 #define tf_fitd UxFluxShellContext->Uxtf_fitd
158 #define label37 UxFluxShellContext->Uxlabel37
159
160 static _UxCFluxShell *UxFluxShellContext;
161
162
163 /*******************************************************************************
164 The following are translation tables.
165 *******************************************************************************/
166
167 static char *FileSelectFlux = "#override\n\
168 <Btn3Down>:FileSelectACT()\n";
169
170 static char *transTable34 = "#override\n\
171 <Btn3Down>:ExtendedHelp()\n\
172 <EnterWindow>:HelpShort()\n\
173 <LeaveWindow>:ClearShort()\n";
174
175 /*******************************************************************************
176 Forward declarations of functions that are defined later in this file.
177 *******************************************************************************/
178
179 swidget create_FluxShell();
180
181 /*******************************************************************************
182 The following are Action functions.
183 *******************************************************************************/
184
185 static void action_ClearShort( UxWidget, UxEvent, UxParams, p_UxNumParams )
186 Widget UxWidget;
187 XEvent *UxEvent;
188 String *UxParams;
189 Cardinal *p_UxNumParams;
190 {
191 Cardinal UxNumParams = *p_UxNumParams;
192 _UxCFluxShell *UxSaveCtx, *UxContext;
193 swidget UxThisWidget;
194
195 UxThisWidget = UxWidgetToSwidget( UxWidget );
196 UxSaveCtx = UxFluxShellContext;
197 UxFluxShellContext = UxContext =
198 (_UxCFluxShell *) UxGetContext( UxThisWidget );
199 {WidgetLeave(UxWidget);}
200 UxFluxShellContext = UxSaveCtx;
201 }
202
203 static void action_HelpShort( UxWidget, UxEvent, UxParams, p_UxNumParams )
204 Widget UxWidget;
205 XEvent *UxEvent;
206 String *UxParams;
207 Cardinal *p_UxNumParams;
208 {
209 Cardinal UxNumParams = *p_UxNumParams;
210 _UxCFluxShell *UxSaveCtx, *UxContext;
211 swidget UxThisWidget;
212
213 UxThisWidget = UxWidgetToSwidget( UxWidget );
214 UxSaveCtx = UxFluxShellContext;
215 UxFluxShellContext = UxContext =
216 (_UxCFluxShell *) UxGetContext( UxThisWidget );
217 {WidgetEnter(UxWidget);}
218 UxFluxShellContext = UxSaveCtx;
219 }
220
221 static void action_ExtendedHelp( UxWidget, UxEvent, UxParams, p_UxNumParams )
222 Widget UxWidget;
223 XEvent *UxEvent;
224 String *UxParams;
225 Cardinal *p_UxNumParams;
226 {
227 Cardinal UxNumParams = *p_UxNumParams;
228 _UxCFluxShell *UxSaveCtx, *UxContext;
229 swidget UxThisWidget;
230
231 UxThisWidget = UxWidgetToSwidget( UxWidget );
232 UxSaveCtx = UxFluxShellContext;
233 UxFluxShellContext = UxContext =
234 (_UxCFluxShell *) UxGetContext( UxThisWidget );
235 {
236 DisplayExtendedHelp(UxWidget);
237 }
238 UxFluxShellContext = UxSaveCtx;
239 }
240
241 static void action_FileSelectACT( UxWidget, UxEvent, UxParams, p_UxNumParams )
242 Widget UxWidget;
243 XEvent *UxEvent;
244 String *UxParams;
245 Cardinal *p_UxNumParams;
246 {
247 Cardinal UxNumParams = *p_UxNumParams;
248 _UxCFluxShell *UxSaveCtx, *UxContext;
249 swidget UxThisWidget;
250
251 UxThisWidget = UxWidgetToSwidget( UxWidget );
252 UxSaveCtx = UxFluxShellContext;
253 UxFluxShellContext = UxContext =
254 (_UxCFluxShell *) UxGetContext( UxThisWidget );
255 {
256 #include <xm_defs.h>
257 #include <spec_comm.h>
258
259 extern swidget FileListInterface, TextFieldSwidget;
260 extern Widget FileListWidget;
261 extern char DirSpecs[];
262 extern int ListType;
263
264 int strip = 1; /* strip off */
265
266 TextFieldSwidget = UxThisWidget;
267
268 if ( UxWidget == UxGetWidget(UxFindSwidget("tf_lincat")) ) {
269 SET_LIST_TITLE("Enter line catalog");
270 ListType = LIST_LINCAT;
271 }
272 else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_guess")) ) {
273 SET_LIST_TITLE("Enter guess table");
274 ListType = LIST_GUESS;
275 }
276 else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_flux_tbl")) ) {
277 SET_LIST_TITLE("Enter flux table");
278 ListType = LIST_FLUX_TBL;
279 }
280 else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_extin_tbl")) ) {
281 SET_LIST_TITLE("Enter extinction table");
282 ListType = LIST_EXTIN_TBL;
283 }
284
285 strcpy(DirSpecs, "*.tbl");
286 SetFileList(FileListWidget, strip, DirSpecs);
287 UxPopupInterface(FileListInterface, exclusive_grab);
288
289 }
290 UxFluxShellContext = UxSaveCtx;
291 }
292
293 /*******************************************************************************
294 The following are callback functions.
295 *******************************************************************************/
296
297 static void activateCB_pb_flux_extin( UxWidget, UxClientData, UxCallbackArg )
298 Widget UxWidget;
299 XtPointer UxClientData, UxCallbackArg;
300 {
301 _UxCFluxShell *UxSaveCtx, *UxContext;
302 swidget UxThisWidget;
303
304 UxThisWidget = UxWidgetToSwidget( UxWidget );
305 UxSaveCtx = UxFluxShellContext;
306 UxFluxShellContext = UxContext =
307 (_UxCFluxShell *) UxGetContext( UxThisWidget );
308 {
309 #include <spec_comm.h>
310
311 PopupList(LIST_EXTIN);
312 }
313 UxFluxShellContext = UxSaveCtx;
314 }
315
316 static void activateCB_pushButton18( UxWidget, UxClientData, UxCallbackArg )
317 Widget UxWidget;
318 XtPointer UxClientData, UxCallbackArg;
319 {
320 _UxCFluxShell *UxSaveCtx, *UxContext;
321 swidget UxThisWidget;
322
323 UxThisWidget = UxWidgetToSwidget( UxWidget );
324 UxSaveCtx = UxFluxShellContext;
325 UxFluxShellContext = UxContext =
326 (_UxCFluxShell *) UxGetContext( UxThisWidget );
327 {
328 UxPopdownInterface(UxFindSwidget("FluxShell"));
329 }
330 UxFluxShellContext = UxSaveCtx;
331 }
332
333 static void activateCB_pb_flux_presp( UxWidget, UxClientData, UxCallbackArg )
334 Widget UxWidget;
335 XtPointer UxClientData, UxCallbackArg;
336 {
337 _UxCFluxShell *UxSaveCtx, *UxContext;
338 swidget UxThisWidget;
339
340 UxThisWidget = UxWidgetToSwidget( UxWidget );
341 UxSaveCtx = UxFluxShellContext;
342 UxFluxShellContext = UxContext =
343 (_UxCFluxShell *) UxGetContext( UxThisWidget );
344 {
345 #include <spec_comm.h>
346
347 AppendDialogText(C_PLOT_RESP);
348
349 }
350 UxFluxShellContext = UxSaveCtx;
351 }
352
353 static void activateCB_pb_flux_integr( UxWidget, UxClientData, UxCallbackArg )
354 Widget UxWidget;
355 XtPointer UxClientData, UxCallbackArg;
356 {
357 _UxCFluxShell *UxSaveCtx, *UxContext;
358 swidget UxThisWidget;
359
360 UxThisWidget = UxWidgetToSwidget( UxWidget );
361 UxSaveCtx = UxFluxShellContext;
362 UxFluxShellContext = UxContext =
363 (_UxCFluxShell *) UxGetContext( UxThisWidget );
364 {
365 #include <spec_comm.h>
366
367 PopupList(LIST_INTEGR);
368 }
369 UxFluxShellContext = UxSaveCtx;
370 }
371
372 static void activateCB_pb_flux_fit( UxWidget, UxClientData, UxCallbackArg )
373 Widget UxWidget;
374 XtPointer UxClientData, UxCallbackArg;
375 {
376 _UxCFluxShell *UxSaveCtx, *UxContext;
377 swidget UxThisWidget;
378
379 UxThisWidget = UxWidgetToSwidget( UxWidget );
380 UxSaveCtx = UxFluxShellContext;
381 UxFluxShellContext = UxContext =
382 (_UxCFluxShell *) UxGetContext( UxThisWidget );
383 {
384 #include <spec_comm.h>
385
386 AppendDialogText(C_FLUX_FIT);
387
388 }
389 UxFluxShellContext = UxSaveCtx;
390 }
391
392 static void activateCB_pb_flux_pflux( UxWidget, UxClientData, UxCallbackArg )
393 Widget UxWidget;
394 XtPointer UxClientData, UxCallbackArg;
395 {
396 _UxCFluxShell *UxSaveCtx, *UxContext;
397 swidget UxThisWidget;
398
399 UxThisWidget = UxWidgetToSwidget( UxWidget );
400 UxSaveCtx = UxFluxShellContext;
401 UxFluxShellContext = UxContext =
402 (_UxCFluxShell *) UxGetContext( UxThisWidget );
403 {
404 #include <spec_comm.h>
405
406 AppendDialogText(C_PLOT_FLUX);
407
408 }
409 UxFluxShellContext = UxSaveCtx;
410 }
411
412 static void activateCB_pb_flux_filter( UxWidget, UxClientData, UxCallbackArg )
413 Widget UxWidget;
414 XtPointer UxClientData, UxCallbackArg;
415 {
416 _UxCFluxShell *UxSaveCtx, *UxContext;
417 swidget UxThisWidget;
418
419 UxThisWidget = UxWidgetToSwidget( UxWidget );
420 UxSaveCtx = UxFluxShellContext;
421 UxFluxShellContext = UxContext =
422 (_UxCFluxShell *) UxGetContext( UxThisWidget );
423 {
424 #include <spec_comm.h>
425
426 PopupList(LIST_FLUX_FILT);
427 }
428 UxFluxShellContext = UxSaveCtx;
429 }
430
431 static void activateCB_pb_correct( UxWidget, UxClientData, UxCallbackArg )
432 Widget UxWidget;
433 XtPointer UxClientData, UxCallbackArg;
434 {
435 _UxCFluxShell *UxSaveCtx, *UxContext;
436 swidget UxThisWidget;
437
438 UxThisWidget = UxWidgetToSwidget( UxWidget );
439 UxSaveCtx = UxFluxShellContext;
440 UxFluxShellContext = UxContext =
441 (_UxCFluxShell *) UxGetContext( UxThisWidget );
442 {
443 #include <spec_comm.h>
444
445 PopupList(LIST_CORRECT);
446
447 }
448 UxFluxShellContext = UxSaveCtx;
449 }
450
451 static void activateCB_pb_edit_flux( UxWidget, UxClientData, UxCallbackArg )
452 Widget UxWidget;
453 XtPointer UxClientData, UxCallbackArg;
454 {
455 _UxCFluxShell *UxSaveCtx, *UxContext;
456 swidget UxThisWidget;
457
458 UxThisWidget = UxWidgetToSwidget( UxWidget );
459 UxSaveCtx = UxFluxShellContext;
460 UxFluxShellContext = UxContext =
461 (_UxCFluxShell *) UxGetContext( UxThisWidget );
462 {
463 #include <spec_comm.h>
464
465 AppendDialogText(C_EDIT_FLUX);
466
467 }
468 UxFluxShellContext = UxSaveCtx;
469 }
470
471 static void losingFocusCB_tf_extin_tbl( UxWidget, UxClientData, UxCallbackArg )
472 Widget UxWidget;
473 XtPointer UxClientData, UxCallbackArg;
474 {
475 _UxCFluxShell *UxSaveCtx, *UxContext;
476 swidget UxThisWidget;
477
478 UxThisWidget = UxWidgetToSwidget( UxWidget );
479 UxSaveCtx = UxFluxShellContext;
480 UxFluxShellContext = UxContext =
481 (_UxCFluxShell *) UxGetContext( UxThisWidget );
482 {
483
484 }
485 UxFluxShellContext = UxSaveCtx;
486 }
487
488 static void losingFocusCB_tf_flux_tbl( UxWidget, UxClientData, UxCallbackArg )
489 Widget UxWidget;
490 XtPointer UxClientData, UxCallbackArg;
491 {
492 _UxCFluxShell *UxSaveCtx, *UxContext;
493 swidget UxThisWidget;
494
495 UxThisWidget = UxWidgetToSwidget( UxWidget );
496 UxSaveCtx = UxFluxShellContext;
497 UxFluxShellContext = UxContext =
498 (_UxCFluxShell *) UxGetContext( UxThisWidget );
499 {
500
501 }
502 UxFluxShellContext = UxSaveCtx;
503 }
504
505 static void losingFocusCB_tf_output_resp( UxWidget, UxClientData, UxCallbackArg )
506 Widget UxWidget;
507 XtPointer UxClientData, UxCallbackArg;
508 {
509 _UxCFluxShell *UxSaveCtx, *UxContext;
510 swidget UxThisWidget;
511
512 UxThisWidget = UxWidgetToSwidget( UxWidget );
513 UxSaveCtx = UxFluxShellContext;
514 UxFluxShellContext = UxContext =
515 (_UxCFluxShell *) UxGetContext( UxThisWidget );
516 {
517
518 }
519 UxFluxShellContext = UxSaveCtx;
520 }
521
522 static void armCB_rb_fityp_poly( UxWidget, UxClientData, UxCallbackArg )
523 Widget UxWidget;
524 XtPointer UxClientData, UxCallbackArg;
525 {
526 _UxCFluxShell *UxSaveCtx, *UxContext;
527 swidget UxThisWidget;
528
529 UxThisWidget = UxWidgetToSwidget( UxWidget );
530 UxSaveCtx = UxFluxShellContext;
531 UxFluxShellContext = UxContext =
532 (_UxCFluxShell *) UxGetContext( UxThisWidget );
533 RadioSet(UxWidget);
534 UxFluxShellContext = UxSaveCtx;
535 }
536
537 static void armCB_rb_fityp_spli( UxWidget, UxClientData, UxCallbackArg )
538 Widget UxWidget;
539 XtPointer UxClientData, UxCallbackArg;
540 {
541 _UxCFluxShell *UxSaveCtx, *UxContext;
542 swidget UxThisWidget;
543
544 UxThisWidget = UxWidgetToSwidget( UxWidget );
545 UxSaveCtx = UxFluxShellContext;
546 UxFluxShellContext = UxContext =
547 (_UxCFluxShell *) UxGetContext( UxThisWidget );
548 RadioSet(UxWidget);
549 UxFluxShellContext = UxSaveCtx;
550 }
551
552 static void valueChangedCB_rb_fityp_spli( UxWidget, UxClientData, UxCallbackArg )
553 Widget UxWidget;
554 XtPointer UxClientData, UxCallbackArg;
555 {
556 _UxCFluxShell *UxSaveCtx, *UxContext;
557 swidget UxThisWidget;
558
559 UxThisWidget = UxWidgetToSwidget( UxWidget );
560 UxSaveCtx = UxFluxShellContext;
561 UxFluxShellContext = UxContext =
562 (_UxCFluxShell *) UxGetContext( UxThisWidget );
563 {
564
565 }
566 UxFluxShellContext = UxSaveCtx;
567 }
568
569 static void armCB_rb_plotyp_rati( UxWidget, UxClientData, UxCallbackArg )
570 Widget UxWidget;
571 XtPointer UxClientData, UxCallbackArg;
572 {
573 _UxCFluxShell *UxSaveCtx, *UxContext;
574 swidget UxThisWidget;
575
576 UxThisWidget = UxWidgetToSwidget( UxWidget );
577 UxSaveCtx = UxFluxShellContext;
578 UxFluxShellContext = UxContext =
579 (_UxCFluxShell *) UxGetContext( UxThisWidget );
580 RadioSet(UxWidget);
581 UxFluxShellContext = UxSaveCtx;
582 }
583
584 static void armCB_rb_plotyp_colo( UxWidget, UxClientData, UxCallbackArg )
585 Widget UxWidget;
586 XtPointer UxClientData, UxCallbackArg;
587 {
588 _UxCFluxShell *UxSaveCtx, *UxContext;
589 swidget UxThisWidget;
590
591 UxThisWidget = UxWidgetToSwidget( UxWidget );
592 UxSaveCtx = UxFluxShellContext;
593 UxFluxShellContext = UxContext =
594 (_UxCFluxShell *) UxGetContext( UxThisWidget );
595 RadioSet(UxWidget);
596 UxFluxShellContext = UxSaveCtx;
597 }
598
599 static void valueChangedCB_rb_plotyp_colo( UxWidget, UxClientData, UxCallbackArg )
600 Widget UxWidget;
601 XtPointer UxClientData, UxCallbackArg;
602 {
603 _UxCFluxShell *UxSaveCtx, *UxContext;
604 swidget UxThisWidget;
605
606 UxThisWidget = UxWidgetToSwidget( UxWidget );
607 UxSaveCtx = UxFluxShellContext;
608 UxFluxShellContext = UxContext =
609 (_UxCFluxShell *) UxGetContext( UxThisWidget );
610 {
611
612 }
613 UxFluxShellContext = UxSaveCtx;
614 }
615
616 static void losingFocusCB_tf_smooth( UxWidget, UxClientData, UxCallbackArg )
617 Widget UxWidget;
618 XtPointer UxClientData, UxCallbackArg;
619 {
620 _UxCFluxShell *UxSaveCtx, *UxContext;
621 swidget UxThisWidget;
622
623 UxThisWidget = UxWidgetToSwidget( UxWidget );
624 UxSaveCtx = UxFluxShellContext;
625 UxFluxShellContext = UxContext =
626 (_UxCFluxShell *) UxGetContext( UxThisWidget );
627 {
628
629 }
630 UxFluxShellContext = UxSaveCtx;
631 }
632
633 static void losingFocusCB_tf_fitd( UxWidget, UxClientData, UxCallbackArg )
634 Widget UxWidget;
635 XtPointer UxClientData, UxCallbackArg;
636 {
637 _UxCFluxShell *UxSaveCtx, *UxContext;
638 swidget UxThisWidget;
639
640 UxThisWidget = UxWidgetToSwidget( UxWidget );
641 UxSaveCtx = UxFluxShellContext;
642 UxFluxShellContext = UxContext =
643 (_UxCFluxShell *) UxGetContext( UxThisWidget );
644 {
645
646 }
647 UxFluxShellContext = UxSaveCtx;
648 }
649
650 /*******************************************************************************
651 The 'init_' function sets the private properties for all the
652 swidgets to the values specified in the Property Table.
653 Some properties need to be set after the X widgets have been
654 created and the setting of these properties is done in the
655 'build_' function after the UxCreateWidget call.
656 *******************************************************************************/
657
658 static void _Uxinit_FluxShell()
659 {
660 UxPutBackground( FluxShell, WindowBackground );
661 UxPutGeometry( FluxShell, "+10+60" );
662 UxPutKeyboardFocusPolicy( FluxShell, "pointer" );
663 UxPutTitle( FluxShell, "Flux calibration" );
664 UxPutHeight( FluxShell, 427 );
665 UxPutWidth( FluxShell, 490 );
666 UxPutY( FluxShell, 83 );
667 UxPutX( FluxShell, 294 );
668
669 UxPutBackground( form10, WindowBackground );
670 UxPutHeight( form10, 348 );
671 UxPutWidth( form10, 408 );
672 UxPutY( form10, 0 );
673 UxPutX( form10, 0 );
674 UxPutUnitType( form10, "pixels" );
675 UxPutResizePolicy( form10, "resize_none" );
676
677 UxPutBackground( form11, ButtonBackground );
678 UxPutHeight( form11, 84 );
679 UxPutWidth( form11, 490 );
680 UxPutY( form11, 342 );
681 UxPutX( form11, -2 );
682 UxPutResizePolicy( form11, "resize_none" );
683
684 UxPutLabelString( pb_flux_extin, "Extinct" );
685 UxPutForeground( pb_flux_extin, ApplyForeground );
686 UxPutFontList( pb_flux_extin, BoldTextFont );
687 UxPutBackground( pb_flux_extin, ButtonBackground );
688 UxPutHeight( pb_flux_extin, 30 );
689 UxPutWidth( pb_flux_extin, 86 );
690 UxPutY( pb_flux_extin, 4 );
691 UxPutX( pb_flux_extin, 8 );
692
693 UxPutLabelString( pushButton18, "Cancel" );
694 UxPutForeground( pushButton18, CancelForeground );
695 UxPutFontList( pushButton18, BoldTextFont );
696 UxPutBackground( pushButton18, ButtonBackground );
697 UxPutHeight( pushButton18, 30 );
698 UxPutWidth( pushButton18, 86 );
699 UxPutY( pushButton18, 42 );
700 UxPutX( pushButton18, 290 );
701
702 UxPutLabelString( pb_flux_presp, "Plot resp" );
703 UxPutForeground( pb_flux_presp, ButtonForeground );
704 UxPutFontList( pb_flux_presp, BoldTextFont );
705 UxPutBackground( pb_flux_presp, ButtonBackground );
706 UxPutHeight( pb_flux_presp, 30 );
707 UxPutWidth( pb_flux_presp, 86 );
708 UxPutY( pb_flux_presp, 42 );
709 UxPutX( pb_flux_presp, 196 );
710
711 UxPutLabelString( pb_flux_integr, "Integr" );
712 UxPutForeground( pb_flux_integr, ApplyForeground );
713 UxPutFontList( pb_flux_integr, BoldTextFont );
714 UxPutBackground( pb_flux_integr, ButtonBackground );
715 UxPutHeight( pb_flux_integr, 30 );
716 UxPutWidth( pb_flux_integr, 86 );
717 UxPutY( pb_flux_integr, 4 );
718 UxPutX( pb_flux_integr, 102 );
719
720 UxPutLabelString( pb_flux_fit, "Fit" );
721 UxPutForeground( pb_flux_fit, ApplyForeground );
722 UxPutFontList( pb_flux_fit, BoldTextFont );
723 UxPutBackground( pb_flux_fit, ButtonBackground );
724 UxPutHeight( pb_flux_fit, 30 );
725 UxPutWidth( pb_flux_fit, 86 );
726 UxPutY( pb_flux_fit, 4 );
727 UxPutX( pb_flux_fit, 196 );
728
729 UxPutLabelString( pb_flux_pflux, "Plot flux" );
730 UxPutForeground( pb_flux_pflux, ButtonForeground );
731 UxPutFontList( pb_flux_pflux, BoldTextFont );
732 UxPutBackground( pb_flux_pflux, ButtonBackground );
733 UxPutHeight( pb_flux_pflux, 30 );
734 UxPutWidth( pb_flux_pflux, 86 );
735 UxPutY( pb_flux_pflux, 42 );
736 UxPutX( pb_flux_pflux, 102 );
737
738 UxPutLabelString( pb_flux_filter, "Filter" );
739 UxPutForeground( pb_flux_filter, ApplyForeground );
740 UxPutFontList( pb_flux_filter, BoldTextFont );
741 UxPutBackground( pb_flux_filter, ButtonBackground );
742 UxPutHeight( pb_flux_filter, 30 );
743 UxPutWidth( pb_flux_filter, 86 );
744 UxPutY( pb_flux_filter, 4 );
745 UxPutX( pb_flux_filter, 384 );
746
747 UxPutLabelString( pb_correct, "Correct" );
748 UxPutForeground( pb_correct, ApplyForeground );
749 UxPutFontList( pb_correct, BoldTextFont );
750 UxPutBackground( pb_correct, ButtonBackground );
751 UxPutHeight( pb_correct, 30 );
752 UxPutWidth( pb_correct, 86 );
753 UxPutY( pb_correct, 42 );
754 UxPutX( pb_correct, 8 );
755
756 UxPutLabelString( pb_edit_flux, "Edit" );
757 UxPutForeground( pb_edit_flux, ApplyForeground );
758 UxPutFontList( pb_edit_flux, BoldTextFont );
759 UxPutBackground( pb_edit_flux, ButtonBackground );
760 UxPutHeight( pb_edit_flux, 30 );
761 UxPutWidth( pb_edit_flux, 86 );
762 UxPutY( pb_edit_flux, 4 );
763 UxPutX( pb_edit_flux, 290 );
764
765 UxPutFontList( shelp_flux, TextFont );
766 UxPutEditable( shelp_flux, "false" );
767 UxPutCursorPositionVisible( shelp_flux, "false" );
768 UxPutBackground( shelp_flux, SHelpBackground );
769 UxPutHeight( shelp_flux, 50 );
770 UxPutWidth( shelp_flux, 484 );
771 UxPutY( shelp_flux, 282 );
772 UxPutX( shelp_flux, 0 );
773
774 UxPutBackground( separator8, WindowBackground );
775 UxPutHeight( separator8, 10 );
776 UxPutWidth( separator8, 492 );
777 UxPutY( separator8, 272 );
778 UxPutX( separator8, -2 );
779
780 UxPutBackground( separator9, WindowBackground );
781 UxPutHeight( separator9, 10 );
782 UxPutWidth( separator9, 492 );
783 UxPutY( separator9, 330 );
784 UxPutX( separator9, -4 );
785
786 UxPutForeground( label27, TextForeground );
787 UxPutAlignment( label27, "alignment_beginning" );
788 UxPutLabelString( label27, "Extinction table :" );
789 UxPutFontList( label27, TextFont );
790 UxPutBackground( label27, LabelBackground );
791 UxPutHeight( label27, 30 );
792 UxPutWidth( label27, 126 );
793 UxPutY( label27, 12 );
794 UxPutX( label27, 10 );
795
796 UxPutTranslations( tf_extin_tbl, FileSelectFlux );
797 UxPutForeground( tf_extin_tbl, TextForeground );
798 UxPutHighlightOnEnter( tf_extin_tbl, "true" );
799 UxPutFontList( tf_extin_tbl, TextFont );
800 UxPutBackground( tf_extin_tbl, TextBackground );
801 UxPutHeight( tf_extin_tbl, 34 );
802 UxPutWidth( tf_extin_tbl, 222 );
803 UxPutY( tf_extin_tbl, 10 );
804 UxPutX( tf_extin_tbl, 148 );
805
806 UxPutForeground( label29, TextForeground );
807 UxPutAlignment( label29, "alignment_beginning" );
808 UxPutLabelString( label29, "Flux table :" );
809 UxPutFontList( label29, TextFont );
810 UxPutBackground( label29, LabelBackground );
811 UxPutHeight( label29, 30 );
812 UxPutWidth( label29, 122 );
813 UxPutY( label29, 48 );
814 UxPutX( label29, 10 );
815
816 UxPutTranslations( tf_flux_tbl, FileSelectFlux );
817 UxPutForeground( tf_flux_tbl, TextForeground );
818 UxPutHighlightOnEnter( tf_flux_tbl, "true" );
819 UxPutFontList( tf_flux_tbl, TextFont );
820 UxPutBackground( tf_flux_tbl, TextBackground );
821 UxPutHeight( tf_flux_tbl, 34 );
822 UxPutWidth( tf_flux_tbl, 221 );
823 UxPutY( tf_flux_tbl, 48 );
824 UxPutX( tf_flux_tbl, 148 );
825
826 UxPutForeground( label30, TextForeground );
827 UxPutAlignment( label30, "alignment_beginning" );
828 UxPutLabelString( label30, "Response curve :" );
829 UxPutFontList( label30, TextFont );
830 UxPutBackground( label30, LabelBackground );
831 UxPutHeight( label30, 30 );
832 UxPutWidth( label30, 126 );
833 UxPutY( label30, 88 );
834 UxPutX( label30, 10 );
835
836 UxPutForeground( tf_output_resp, TextForeground );
837 UxPutHighlightOnEnter( tf_output_resp, "true" );
838 UxPutFontList( tf_output_resp, TextFont );
839 UxPutBackground( tf_output_resp, TextBackground );
840 UxPutHeight( tf_output_resp, 34 );
841 UxPutWidth( tf_output_resp, 221 );
842 UxPutY( tf_output_resp, 88 );
843 UxPutX( tf_output_resp, 148 );
844
845 UxPutIsAligned( rowColumn4, "true" );
846 UxPutEntryAlignment( rowColumn4, "alignment_beginning" );
847 UxPutBorderWidth( rowColumn4, 0 );
848 UxPutShadowThickness( rowColumn4, 0 );
849 UxPutLabelString( rowColumn4, "" );
850 UxPutEntryBorder( rowColumn4, 0 );
851 UxPutBackground( rowColumn4, "grey80" );
852 UxPutRadioBehavior( rowColumn4, "true" );
853 UxPutHeight( rowColumn4, 67 );
854 UxPutWidth( rowColumn4, 82 );
855 UxPutY( rowColumn4, 191 );
856 UxPutX( rowColumn4, 233 );
857
858 UxPutTranslations( rb_fityp_poly, transTable34 );
859 UxPutIndicatorSize( rb_fityp_poly, 16 );
860 UxPutHighlightOnEnter( rb_fityp_poly, "true" );
861 UxPutForeground( rb_fityp_poly, TextForeground );
862 UxPutSelectColor( rb_fityp_poly, SelectColor );
863 UxPutSet( rb_fityp_poly, "true" );
864 UxPutLabelString( rb_fityp_poly, "POLY" );
865 UxPutFontList( rb_fityp_poly, TextFont );
866 UxPutBackground( rb_fityp_poly, WindowBackground );
867 UxPutHeight( rb_fityp_poly, 20 );
868 UxPutWidth( rb_fityp_poly, 76 );
869 UxPutY( rb_fityp_poly, 2 );
870 UxPutX( rb_fityp_poly, 3 );
871
872 UxPutTranslations( rb_fityp_spli, transTable34 );
873 UxPutIndicatorSize( rb_fityp_spli, 16 );
874 UxPutHighlightOnEnter( rb_fityp_spli, "true" );
875 UxPutSet( rb_fityp_spli, "false" );
876 UxPutForeground( rb_fityp_spli, TextForeground );
877 UxPutSelectColor( rb_fityp_spli, SelectColor );
878 UxPutLabelString( rb_fityp_spli, "SPLINE" );
879 UxPutFontList( rb_fityp_spli, TextFont );
880 UxPutBackground( rb_fityp_spli, WindowBackground );
881 UxPutHeight( rb_fityp_spli, 66 );
882 UxPutWidth( rb_fityp_spli, 76 );
883 UxPutY( rb_fityp_spli, 34 );
884 UxPutX( rb_fityp_spli, 3 );
885
886 UxPutForeground( label33, TextForeground );
887 UxPutAlignment( label33, "alignment_beginning" );
888 UxPutLabelString( label33, "Fitting type" );
889 UxPutFontList( label33, TextFont );
890 UxPutBackground( label33, WindowBackground );
891 UxPutHeight( label33, 22 );
892 UxPutWidth( label33, 80 );
893 UxPutY( label33, 164 );
894 UxPutX( label33, 236 );
895
896 UxPutOrientation( separatorGadget16, "vertical" );
897 UxPutHeight( separatorGadget16, 84 );
898 UxPutWidth( separatorGadget16, 12 );
899 UxPutY( separatorGadget16, 180 );
900 UxPutX( separatorGadget16, 218 );
901
902 UxPutHeight( separatorGadget17, 8 );
903 UxPutWidth( separatorGadget17, 104 );
904 UxPutY( separatorGadget17, 260 );
905 UxPutX( separatorGadget17, 224 );
906
907 UxPutOrientation( separatorGadget18, "vertical" );
908 UxPutHeight( separatorGadget18, 84 );
909 UxPutWidth( separatorGadget18, 12 );
910 UxPutY( separatorGadget18, 180 );
911 UxPutX( separatorGadget18, 322 );
912
913 UxPutIsAligned( rowColumn5, "true" );
914 UxPutEntryAlignment( rowColumn5, "alignment_beginning" );
915 UxPutBorderWidth( rowColumn5, 0 );
916 UxPutShadowThickness( rowColumn5, 0 );
917 UxPutLabelString( rowColumn5, "" );
918 UxPutEntryBorder( rowColumn5, 0 );
919 UxPutBackground( rowColumn5, "grey80" );
920 UxPutRadioBehavior( rowColumn5, "true" );
921 UxPutHeight( rowColumn5, 67 );
922 UxPutWidth( rowColumn5, 82 );
923 UxPutY( rowColumn5, 190 );
924 UxPutX( rowColumn5, 348 );
925
926 UxPutTranslations( rb_plotyp_rati, transTable34 );
927 UxPutIndicatorSize( rb_plotyp_rati, 16 );
928 UxPutHighlightOnEnter( rb_plotyp_rati, "true" );
929 UxPutForeground( rb_plotyp_rati, TextForeground );
930 UxPutSelectColor( rb_plotyp_rati, SelectColor );
931 UxPutSet( rb_plotyp_rati, "true" );
932 UxPutLabelString( rb_plotyp_rati, "RATIO" );
933 UxPutFontList( rb_plotyp_rati, TextFont );
934 UxPutBackground( rb_plotyp_rati, WindowBackground );
935 UxPutHeight( rb_plotyp_rati, 20 );
936 UxPutWidth( rb_plotyp_rati, 76 );
937 UxPutY( rb_plotyp_rati, 0 );
938 UxPutX( rb_plotyp_rati, -12 );
939
940 UxPutTranslations( rb_plotyp_colo, transTable34 );
941 UxPutIndicatorSize( rb_plotyp_colo, 16 );
942 UxPutHighlightOnEnter( rb_plotyp_colo, "true" );
943 UxPutSet( rb_plotyp_colo, "false" );
944 UxPutForeground( rb_plotyp_colo, TextForeground );
945 UxPutSelectColor( rb_plotyp_colo, SelectColor );
946 UxPutLabelString( rb_plotyp_colo, "MAGNITUDE" );
947 UxPutFontList( rb_plotyp_colo, TextFont );
948 UxPutBackground( rb_plotyp_colo, WindowBackground );
949 UxPutHeight( rb_plotyp_colo, 66 );
950 UxPutWidth( rb_plotyp_colo, 76 );
951 UxPutY( rb_plotyp_colo, 34 );
952 UxPutX( rb_plotyp_colo, 3 );
953
954 UxPutForeground( label34, TextForeground );
955 UxPutAlignment( label34, "alignment_beginning" );
956 UxPutLabelString( label34, "Fitting space" );
957 UxPutFontList( label34, TextFont );
958 UxPutBackground( label34, WindowBackground );
959 UxPutHeight( label34, 22 );
960 UxPutWidth( label34, 91 );
961 UxPutY( label34, 164 );
962 UxPutX( label34, 365 );
963
964 UxPutOrientation( separatorGadget21, "vertical" );
965 UxPutHeight( separatorGadget21, 84 );
966 UxPutWidth( separatorGadget21, 12 );
967 UxPutY( separatorGadget21, 180 );
968 UxPutX( separatorGadget21, 334 );
969
970 UxPutOrientation( separatorGadget22, "vertical" );
971 UxPutHeight( separatorGadget22, 84 );
972 UxPutWidth( separatorGadget22, 12 );
973 UxPutY( separatorGadget22, 180 );
974 UxPutX( separatorGadget22, 471 );
975
976 UxPutHeight( separatorGadget23, 10 );
977 UxPutWidth( separatorGadget23, 24 );
978 UxPutY( separatorGadget23, 176 );
979 UxPutX( separatorGadget23, 338 );
980
981 UxPutHeight( separatorGadget24, 10 );
982 UxPutWidth( separatorGadget24, 17 );
983 UxPutY( separatorGadget24, 176 );
984 UxPutX( separatorGadget24, 460 );
985
986 UxPutHeight( separatorGadget25, 8 );
987 UxPutWidth( separatorGadget25, 138 );
988 UxPutY( separatorGadget25, 260 );
989 UxPutX( separatorGadget25, 339 );
990
991 UxPutHeight( separatorGadget19, 10 );
992 UxPutWidth( separatorGadget19, 10 );
993 UxPutY( separatorGadget19, 176 );
994 UxPutX( separatorGadget19, 318 );
995
996 UxPutHeight( separatorGadget20, 10 );
997 UxPutWidth( separatorGadget20, 10 );
998 UxPutY( separatorGadget20, 176 );
999 UxPutX( separatorGadget20, 222 );
1000
1001 UxPutForeground( label35, TextForeground );
1002 UxPutAlignment( label35, "alignment_beginning" );
1003 UxPutLabelString( label35, "Smoothing factor :" );
1004 UxPutFontList( label35, TextFont );
1005 UxPutBackground( label35, LabelBackground );
1006 UxPutHeight( label35, 30 );
1007 UxPutWidth( label35, 120 );
1008 UxPutY( label35, 226 );
1009 UxPutX( label35, 12 );
1010
1011 UxPutForeground( tf_smooth, TextForeground );
1012 UxPutHighlightOnEnter( tf_smooth, "true" );
1013 UxPutFontList( tf_smooth, TextFont );
1014 UxPutBackground( tf_smooth, TextBackground );
1015 UxPutHeight( tf_smooth, 34 );
1016 UxPutWidth( tf_smooth, 80 );
1017 UxPutY( tf_smooth, 222 );
1018 UxPutX( tf_smooth, 136 );
1019
1020 UxPutForeground( label36, TextForeground );
1021 UxPutAlignment( label36, "alignment_beginning" );
1022 UxPutLabelString( label36, "Fit degree :" );
1023 UxPutFontList( label36, TextFont );
1024 UxPutBackground( label36, LabelBackground );
1025 UxPutHeight( label36, 30 );
1026 UxPutWidth( label36, 120 );
1027 UxPutY( label36, 186 );
1028 UxPutX( label36, 12 );
1029
1030 UxPutForeground( tf_fitd, TextForeground );
1031 UxPutHighlightOnEnter( tf_fitd, "true" );
1032 UxPutFontList( tf_fitd, TextFont );
1033 UxPutBackground( tf_fitd, TextBackground );
1034 UxPutHeight( tf_fitd, 34 );
1035 UxPutWidth( tf_fitd, 80 );
1036 UxPutY( tf_fitd, 182 );
1037 UxPutX( tf_fitd, 136 );
1038
1039 UxPutForeground( label37, TextForeground );
1040 UxPutAlignment( label37, "alignment_beginning" );
1041 UxPutLabelString( label37, "FITTING PARAMETERS" );
1042 UxPutFontList( label37, TextFont );
1043 UxPutBackground( label37, LabelBackground );
1044 UxPutHeight( label37, 30 );
1045 UxPutWidth( label37, 180 );
1046 UxPutY( label37, 140 );
1047 UxPutX( label37, 4 );
1048
1049 }
1050
1051 /*******************************************************************************
1052 The 'build_' function creates all the swidgets and X widgets,
1053 and sets their properties to the values specified in the
1054 Property Editor.
1055 *******************************************************************************/
1056
1057 static swidget _Uxbuild_FluxShell()
1058 {
1059 /* Create the swidgets */
1060
1061 FluxShell = UxCreateApplicationShell( "FluxShell", NO_PARENT );
1062 UxPutContext( FluxShell, UxFluxShellContext );
1063
1064 form10 = UxCreateForm( "form10", FluxShell );
1065 form11 = UxCreateForm( "form11", form10 );
1066 pb_flux_extin = UxCreatePushButton( "pb_flux_extin", form11 );
1067 pushButton18 = UxCreatePushButton( "pushButton18", form11 );
1068 pb_flux_presp = UxCreatePushButton( "pb_flux_presp", form11 );
1069 pb_flux_integr = UxCreatePushButton( "pb_flux_integr", form11 );
1070 pb_flux_fit = UxCreatePushButton( "pb_flux_fit", form11 );
1071 pb_flux_pflux = UxCreatePushButton( "pb_flux_pflux", form11 );
1072 pb_flux_filter = UxCreatePushButton( "pb_flux_filter", form11 );
1073 pb_correct = UxCreatePushButton( "pb_correct", form11 );
1074 pb_edit_flux = UxCreatePushButton( "pb_edit_flux", form11 );
1075 shelp_flux = UxCreateText( "shelp_flux", form10 );
1076 separator8 = UxCreateSeparator( "separator8", form10 );
1077 separator9 = UxCreateSeparator( "separator9", form10 );
1078 label27 = UxCreateLabel( "label27", form10 );
1079 tf_extin_tbl = UxCreateTextField( "tf_extin_tbl", form10 );
1080 label29 = UxCreateLabel( "label29", form10 );
1081 tf_flux_tbl = UxCreateTextField( "tf_flux_tbl", form10 );
1082 label30 = UxCreateLabel( "label30", form10 );
1083 tf_output_resp = UxCreateTextField( "tf_output_resp", form10 );
1084 rowColumn4 = UxCreateRowColumn( "rowColumn4", form10 );
1085 rb_fityp_poly = UxCreateToggleButton( "rb_fityp_poly", rowColumn4 );
1086 rb_fityp_spli = UxCreateToggleButton( "rb_fityp_spli", rowColumn4 );
1087 label33 = UxCreateLabel( "label33", form10 );
1088 separatorGadget16 = UxCreateSeparatorGadget( "separatorGadget16", form10 );
1089 separatorGadget17 = UxCreateSeparatorGadget( "separatorGadget17", form10 );
1090 separatorGadget18 = UxCreateSeparatorGadget( "separatorGadget18", form10 );
1091 rowColumn5 = UxCreateRowColumn( "rowColumn5", form10 );
1092 rb_plotyp_rati = UxCreateToggleButton( "rb_plotyp_rati", rowColumn5 );
1093 rb_plotyp_colo = UxCreateToggleButton( "rb_plotyp_colo", rowColumn5 );
1094 label34 = UxCreateLabel( "label34", form10 );
1095 separatorGadget21 = UxCreateSeparatorGadget( "separatorGadget21", form10 );
1096 separatorGadget22 = UxCreateSeparatorGadget( "separatorGadget22", form10 );
1097 separatorGadget23 = UxCreateSeparatorGadget( "separatorGadget23", form10 );
1098 separatorGadget24 = UxCreateSeparatorGadget( "separatorGadget24", form10 );
1099 separatorGadget25 = UxCreateSeparatorGadget( "separatorGadget25", form10 );
1100 separatorGadget19 = UxCreateSeparatorGadget( "separatorGadget19", form10 );
1101 separatorGadget20 = UxCreateSeparatorGadget( "separatorGadget20", form10 );
1102 label35 = UxCreateLabel( "label35", form10 );
1103 tf_smooth = UxCreateTextField( "tf_smooth", form10 );
1104 label36 = UxCreateLabel( "label36", form10 );
1105 tf_fitd = UxCreateTextField( "tf_fitd", form10 );
1106 label37 = UxCreateLabel( "label37", form10 );
1107
1108 _Uxinit_FluxShell();
1109
1110 /* Create the X widgets */
1111
1112 UxCreateWidget( FluxShell );
1113 UxCreateWidget( form10 );
1114 UxCreateWidget( form11 );
1115 UxCreateWidget( pb_flux_extin );
1116 UxCreateWidget( pushButton18 );
1117 UxCreateWidget( pb_flux_presp );
1118 UxCreateWidget( pb_flux_integr );
1119 UxCreateWidget( pb_flux_fit );
1120 UxCreateWidget( pb_flux_pflux );
1121 UxCreateWidget( pb_flux_filter );
1122 UxCreateWidget( pb_correct );
1123 UxCreateWidget( pb_edit_flux );
1124 UxCreateWidget( shelp_flux );
1125 UxCreateWidget( separator8 );
1126 UxCreateWidget( separator9 );
1127 UxCreateWidget( label27 );
1128 UxCreateWidget( tf_extin_tbl );
1129 UxCreateWidget( label29 );
1130 UxCreateWidget( tf_flux_tbl );
1131 UxCreateWidget( label30 );
1132 UxCreateWidget( tf_output_resp );
1133 UxCreateWidget( rowColumn4 );
1134 UxCreateWidget( rb_fityp_poly );
1135 UxCreateWidget( rb_fityp_spli );
1136 UxCreateWidget( label33 );
1137 UxCreateWidget( separatorGadget16 );
1138 UxCreateWidget( separatorGadget17 );
1139 UxCreateWidget( separatorGadget18 );
1140 UxCreateWidget( rowColumn5 );
1141 UxCreateWidget( rb_plotyp_rati );
1142 UxCreateWidget( rb_plotyp_colo );
1143 UxCreateWidget( label34 );
1144 UxCreateWidget( separatorGadget21 );
1145 UxCreateWidget( separatorGadget22 );
1146 UxCreateWidget( separatorGadget23 );
1147 UxCreateWidget( separatorGadget24 );
1148 UxCreateWidget( separatorGadget25 );
1149 UxCreateWidget( separatorGadget19 );
1150 UxCreateWidget( separatorGadget20 );
1151 UxCreateWidget( label35 );
1152 UxCreateWidget( tf_smooth );
1153 UxCreateWidget( label36 );
1154 UxCreateWidget( tf_fitd );
1155 UxCreateWidget( label37 );
1156
1157 UxAddCallback( pb_flux_extin, XmNactivateCallback,
1158 activateCB_pb_flux_extin,
1159 (XtPointer) UxFluxShellContext );
1160
1161 UxAddCallback( pushButton18, XmNactivateCallback,
1162 activateCB_pushButton18,
1163 (XtPointer) UxFluxShellContext );
1164
1165 UxAddCallback( pb_flux_presp, XmNactivateCallback,
1166 activateCB_pb_flux_presp,
1167 (XtPointer) UxFluxShellContext );
1168
1169 UxAddCallback( pb_flux_integr, XmNactivateCallback,
1170 activateCB_pb_flux_integr,
1171 (XtPointer) UxFluxShellContext );
1172
1173 UxAddCallback( pb_flux_fit, XmNactivateCallback,
1174 activateCB_pb_flux_fit,
1175 (XtPointer) UxFluxShellContext );
1176
1177 UxAddCallback( pb_flux_pflux, XmNactivateCallback,
1178 activateCB_pb_flux_pflux,
1179 (XtPointer) UxFluxShellContext );
1180
1181 UxAddCallback( pb_flux_filter, XmNactivateCallback,
1182 activateCB_pb_flux_filter,
1183 (XtPointer) UxFluxShellContext );
1184
1185 UxAddCallback( pb_correct, XmNactivateCallback,
1186 activateCB_pb_correct,
1187 (XtPointer) UxFluxShellContext );
1188
1189 UxAddCallback( pb_edit_flux, XmNactivateCallback,
1190 activateCB_pb_edit_flux,
1191 (XtPointer) UxFluxShellContext );
1192
1193 UxAddCallback( tf_extin_tbl, XmNlosingFocusCallback,
1194 losingFocusCB_tf_extin_tbl,
1195 (XtPointer) UxFluxShellContext );
1196
1197 UxAddCallback( tf_flux_tbl, XmNlosingFocusCallback,
1198 losingFocusCB_tf_flux_tbl,
1199 (XtPointer) UxFluxShellContext );
1200
1201 UxAddCallback( tf_output_resp, XmNlosingFocusCallback,
1202 losingFocusCB_tf_output_resp,
1203 (XtPointer) UxFluxShellContext );
1204
1205 UxAddCallback( rb_fityp_poly, XmNarmCallback,
1206 armCB_rb_fityp_poly,
1207 (XtPointer) UxFluxShellContext );
1208
1209 UxAddCallback( rb_fityp_spli, XmNarmCallback,
1210 armCB_rb_fityp_spli,
1211 (XtPointer) UxFluxShellContext );
1212 UxAddCallback( rb_fityp_spli, XmNvalueChangedCallback,
1213 valueChangedCB_rb_fityp_spli,
1214 (XtPointer) UxFluxShellContext );
1215
1216 UxAddCallback( rb_plotyp_rati, XmNarmCallback,
1217 armCB_rb_plotyp_rati,
1218 (XtPointer) UxFluxShellContext );
1219
1220 UxAddCallback( rb_plotyp_colo, XmNarmCallback,
1221 armCB_rb_plotyp_colo,
1222 (XtPointer) UxFluxShellContext );
1223 UxAddCallback( rb_plotyp_colo, XmNvalueChangedCallback,
1224 valueChangedCB_rb_plotyp_colo,
1225 (XtPointer) UxFluxShellContext );
1226
1227 UxAddCallback( tf_smooth, XmNlosingFocusCallback,
1228 losingFocusCB_tf_smooth,
1229 (XtPointer) UxFluxShellContext );
1230
1231 UxAddCallback( tf_fitd, XmNlosingFocusCallback,
1232 losingFocusCB_tf_fitd,
1233 (XtPointer) UxFluxShellContext );
1234
1235
1236 /* Finally, call UxRealizeInterface to create the X windows
1237 for the widgets created above. */
1238
1239 UxRealizeInterface( FluxShell );
1240
1241 return ( FluxShell );
1242 }
1243
1244 /*******************************************************************************
1245 The following function includes the code that was entered
1246 in the 'Initial Code' and 'Final Code' sections of the
1247 Declarations Editor. This function is called from the
1248 'Interface function' below.
1249 *******************************************************************************/
1250
1251 static swidget _Ux_create_FluxShell()
1252 {
1253 swidget rtrn;
1254 _UxCFluxShell *UxContext;
1255
1256 UxFluxShellContext = UxContext =
1257 (_UxCFluxShell *) UxMalloc( sizeof(_UxCFluxShell) );
1258
1259 rtrn = _Uxbuild_FluxShell();
1260
1261 return(rtrn);
1262 }
1263
1264 /*******************************************************************************
1265 The following is the 'Interface function' which is the
1266 external entry point for creating this interface.
1267 This function should be called from your application or from
1268 a callback function.
1269 *******************************************************************************/
1270
1271 swidget create_FluxShell()
1272 {
1273 swidget _Uxrtrn;
1274 static int _Uxinit = 0;
1275
1276 if ( ! _Uxinit )
1277 {
1278 static XtActionsRec _Uxactions[] = {
1279 { "ClearShort", action_ClearShort },
1280 { "HelpShort", action_HelpShort },
1281 { "ExtendedHelp", action_ExtendedHelp },
1282 { "FileSelectACT", action_FileSelectACT }
1283 };
1284
1285 XtAppAddActions( UxAppContext,
1286 _Uxactions,
1287 XtNumber(_Uxactions) );
1288
1289 _Uxinit = 1;
1290 }
1291
1292 _Uxrtrn = _Ux_create_FluxShell();
1293
1294 return ( _Uxrtrn );
1295 }
1296
1297 /*******************************************************************************
1298 END OF FILE
1299 *******************************************************************************/
1300