Debian Codegraph @

gui/XEchelle/src/CalibShell.c

raw
1 /*===========================================================================
2 Copyright (C) 1995-2009 European Southern Observatory (ESO)
3
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License as
6 published by the Free Software Foundation; either version 2 of
7 the License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public
15 License along with this program; if not, write to the Free
16 Software Foundation, Inc., 675 Massachusetts Ave, Cambridge,
17 MA 02139, USA.
18
19 Correspondence concerning ESO-MIDAS should be addressed as follows:
20 Internet e-mail: [email protected]
21 Postal address: European Southern Observatory
22 Data Management Division
23 Karl-Schwarzschild-Strasse 2
24 D 85748 Garching bei Muenchen
25 GERMANY
26 ===========================================================================*/
27
28
29 /*******************************************************************************
30 CalibShell.c
31
32 .VERSION
33 090825 last modif
34
35 *******************************************************************************/
36
37 #include <stdio.h>
38 #include "UxLib.h"
39 #include "UxPushBG.h"
40 #include "UxPushB.h"
41 #include "UxText.h"
42 #include "UxSep.h"
43 #include "UxTextF.h"
44 #include "UxLabel.h"
45 #include "UxTogB.h"
46 #include "UxRowCol.h"
47 #include "UxForm.h"
48 #include "UxApplSh.h"
49
50 /*******************************************************************************
51 Includes, Defines, and Global variables from the Declarations Editor:
52 *******************************************************************************/
53
54 #include <ExternResources.h>
55
56 /*******************************************************************************
57 The definition of the context structure:
58 If you create multiple instances of your interface, the context
59 structure ensures that your callbacks use the variables for the
60 correct instance.
61
62 For each swidget in the interface, each argument to the Interface
63 function, and each variable in the Instance Specific section of the
64 Declarations Editor, there is an entry in the context structure.
65 and a #define. The #define makes the variable name refer to the
66 corresponding entry in the context structure.
67 *******************************************************************************/
68
69 typedef struct
70 {
71 swidget UxCalibShell;
72 swidget Uxform3;
73 swidget UxrowColumn2;
74 swidget Uxrb_wlcmtd_iden;
75 swidget Uxrb_wlcmtd_gues;
76 swidget Uxlabel14;
77 swidget Uxlabel16;
78 swidget Uxtf_tol;
79 swidget Uxlabel17;
80 swidget Uxtf_dcx1;
81 swidget Uxtf_alpha;
82 swidget Uxlabel19;
83 swidget Uxlabel20;
84 swidget Uxtf_maxdev;
85 swidget Uxguess_session_label;
86 swidget Uxseparator4;
87 swidget Uxshelp_calib;
88 swidget Uxseparator5;
89 swidget Uxtf_wlcniter1;
90 swidget Uxtf_wlcniter2;
91 swidget Uxtg_coropt;
92 swidget Uxform20;
93 swidget Uxpb_calib_calibrate;
94 swidget UxpushButton40;
95 swidget Uxpb_calib_disper;
96 swidget Uxpb_calib_resid;
97 swidget Uxpb_calib_spec;
98 swidget Uxlabel8;
99 swidget Uxtf_maxdev1;
100 swidget Uxtf_maxdev2;
101 swidget Uxtf_guess1;
102 swidget Uxtf_guess2;
103 swidget Uxlabel15;
104 swidget Uxlabel26;
105 swidget UxrowColumn24;
106 swidget Uxrb_wlcmtd_iden1;
107 swidget Uxrb_wlcmtd_gues4;
108 swidget Uxrb_wlcmtd_gues5;
109 swidget Uxrb_wlcmtd_gues6;
110 swidget Uxrb_wlcmtd_gues7;
111 swidget UxrowColumn25;
112 swidget Uxrb_wlcmtd_iden2;
113 swidget Uxrb_wlcmtd_gues1;
114 swidget Uxseparator13;
115 swidget Uxseparator14;
116 swidget Uxseparator15;
117 swidget Uxseparator16;
118 swidget Uxseparator17;
119 swidget Uxseparator18;
120 swidget Uxseparator19;
121 swidget Uxlabel28;
122 swidget Uxlabel31;
123 swidget Uxmenu2_p1;
124 swidget Uxmn_tol_angstroms1;
125 swidget Uxmn_tol_pixels1;
126 swidget Uxmn_tol1;
127 swidget Uxlabel18;
128 swidget Uxpb_main_search33;
129 } _UxCCalibShell;
130
131 #define CalibShell UxCalibShellContext->UxCalibShell
132 #define form3 UxCalibShellContext->Uxform3
133 #define rowColumn2 UxCalibShellContext->UxrowColumn2
134 #define rb_wlcmtd_iden UxCalibShellContext->Uxrb_wlcmtd_iden
135 #define rb_wlcmtd_gues UxCalibShellContext->Uxrb_wlcmtd_gues
136 #define label14 UxCalibShellContext->Uxlabel14
137 #define label16 UxCalibShellContext->Uxlabel16
138 #define tf_tol UxCalibShellContext->Uxtf_tol
139 #define label17 UxCalibShellContext->Uxlabel17
140 #define tf_dcx1 UxCalibShellContext->Uxtf_dcx1
141 #define tf_alpha UxCalibShellContext->Uxtf_alpha
142 #define label19 UxCalibShellContext->Uxlabel19
143 #define label20 UxCalibShellContext->Uxlabel20
144 #define tf_maxdev UxCalibShellContext->Uxtf_maxdev
145 #define guess_session_label UxCalibShellContext->Uxguess_session_label
146 #define separator4 UxCalibShellContext->Uxseparator4
147 #define shelp_calib UxCalibShellContext->Uxshelp_calib
148 #define separator5 UxCalibShellContext->Uxseparator5
149 #define tf_wlcniter1 UxCalibShellContext->Uxtf_wlcniter1
150 #define tf_wlcniter2 UxCalibShellContext->Uxtf_wlcniter2
151 #define tg_coropt UxCalibShellContext->Uxtg_coropt
152 #define form20 UxCalibShellContext->Uxform20
153 #define pb_calib_calibrate UxCalibShellContext->Uxpb_calib_calibrate
154 #define pushButton40 UxCalibShellContext->UxpushButton40
155 #define pb_calib_disper UxCalibShellContext->Uxpb_calib_disper
156 #define pb_calib_resid UxCalibShellContext->Uxpb_calib_resid
157 #define pb_calib_spec UxCalibShellContext->Uxpb_calib_spec
158 #define label8 UxCalibShellContext->Uxlabel8
159 #define tf_maxdev1 UxCalibShellContext->Uxtf_maxdev1
160 #define tf_maxdev2 UxCalibShellContext->Uxtf_maxdev2
161 #define tf_guess1 UxCalibShellContext->Uxtf_guess1
162 #define tf_guess2 UxCalibShellContext->Uxtf_guess2
163 #define label15 UxCalibShellContext->Uxlabel15
164 #define label26 UxCalibShellContext->Uxlabel26
165 #define rowColumn24 UxCalibShellContext->UxrowColumn24
166 #define rb_wlcmtd_iden1 UxCalibShellContext->Uxrb_wlcmtd_iden1
167 #define rb_wlcmtd_gues4 UxCalibShellContext->Uxrb_wlcmtd_gues4
168 #define rb_wlcmtd_gues5 UxCalibShellContext->Uxrb_wlcmtd_gues5
169 #define rb_wlcmtd_gues6 UxCalibShellContext->Uxrb_wlcmtd_gues6
170 #define rb_wlcmtd_gues7 UxCalibShellContext->Uxrb_wlcmtd_gues7
171 #define rowColumn25 UxCalibShellContext->UxrowColumn25
172 #define rb_wlcmtd_iden2 UxCalibShellContext->Uxrb_wlcmtd_iden2
173 #define rb_wlcmtd_gues1 UxCalibShellContext->Uxrb_wlcmtd_gues1
174 #define separator13 UxCalibShellContext->Uxseparator13
175 #define separator14 UxCalibShellContext->Uxseparator14
176 #define separator15 UxCalibShellContext->Uxseparator15
177 #define separator16 UxCalibShellContext->Uxseparator16
178 #define separator17 UxCalibShellContext->Uxseparator17
179 #define separator18 UxCalibShellContext->Uxseparator18
180 #define separator19 UxCalibShellContext->Uxseparator19
181 #define label28 UxCalibShellContext->Uxlabel28
182 #define label31 UxCalibShellContext->Uxlabel31
183 #define menu2_p1 UxCalibShellContext->Uxmenu2_p1
184 #define mn_tol_angstroms1 UxCalibShellContext->Uxmn_tol_angstroms1
185 #define mn_tol_pixels1 UxCalibShellContext->Uxmn_tol_pixels1
186 #define mn_tol1 UxCalibShellContext->Uxmn_tol1
187 #define label18 UxCalibShellContext->Uxlabel18
188 #define pb_main_search33 UxCalibShellContext->Uxpb_main_search33
189
190 static _UxCCalibShell *UxCalibShellContext;
191
192 extern void DisplayShortHelp(), DisplayExtendedHelp(), SetFileList();
193 extern void MidasCommand(), PopupLong(), InitAllFields();
194 extern void WidgetLeave(), WidgetEnter();
195 extern void WriteKeyword(), GetExtendedHelp(), SelectList();
196
197
198 extern int RadioSet(), PopupList(), AppendDialogText();
199
200
201 /*******************************************************************************
202 The following are translation tables.
203 *******************************************************************************/
204
205 static char *transTable6 = "#override\n\
206 <Btn3Down>:ExtendedHelp()\n\
207 <EnterWindow>:HelpShort()\n\
208 <LeaveWindow>:ClearShort()\n";
209
210 /*******************************************************************************
211 Forward declarations of functions that are defined later in this file.
212 *******************************************************************************/
213
214 swidget create_CalibShell();
215
216 /*******************************************************************************
217 The following are Action functions.
218 *******************************************************************************/
219
220 static void action_WriteHelp( UxWidget, UxEvent, UxParams, p_UxNumParams )
221 Widget UxWidget;
222 XEvent *UxEvent;
223 String *UxParams;
224 Cardinal *p_UxNumParams;
225 {
226 _UxCCalibShell *UxSaveCtx, *UxContext;
227 swidget UxThisWidget;
228
229 UxThisWidget = UxWidgetToSwidget( UxWidget );
230 UxSaveCtx = UxCalibShellContext;
231 UxCalibShellContext = UxContext =
232 (_UxCCalibShell *) UxGetContext( UxThisWidget );
233 {
234 DisplayShortHelp(UxWidget);
235 }
236 UxCalibShellContext = UxSaveCtx;
237 }
238
239 static void action_ClearHelp( UxWidget, UxEvent, UxParams, p_UxNumParams )
240 Widget UxWidget;
241 XEvent *UxEvent;
242 String *UxParams;
243 Cardinal *p_UxNumParams;
244 {
245 _UxCCalibShell *UxSaveCtx, *UxContext;
246 swidget UxThisWidget;
247
248 UxThisWidget = UxWidgetToSwidget( UxWidget );
249 UxSaveCtx = UxCalibShellContext;
250 UxCalibShellContext = UxContext =
251 (_UxCCalibShell *) UxGetContext( UxThisWidget );
252 {
253 /*
254 UxPutText(UxFindSwidget("shelp_main"), "");
255 UxPutText(UxFindSwidget("shelp_search"), "");
256 UxPutText(UxFindSwidget("shelp_calib"), "");
257 UxPutText(UxFindSwidget("shelp_rebin"), "");
258 UxPutText(UxFindSwidget("shelp_extract"), "");
259 UxPutText(UxFindSwidget("shelp_flux"), "");
260 */
261 }
262 UxCalibShellContext = UxSaveCtx;
263 }
264
265 static void action_ClearShort( UxWidget, UxEvent, UxParams, p_UxNumParams )
266 Widget UxWidget;
267 XEvent *UxEvent;
268 String *UxParams;
269 Cardinal *p_UxNumParams;
270 {
271 _UxCCalibShell *UxSaveCtx, *UxContext;
272 swidget UxThisWidget;
273
274 UxThisWidget = UxWidgetToSwidget( UxWidget );
275 UxSaveCtx = UxCalibShellContext;
276 UxCalibShellContext = UxContext =
277 (_UxCCalibShell *) UxGetContext( UxThisWidget );
278 {WidgetLeave(UxWidget);}
279 UxCalibShellContext = UxSaveCtx;
280 }
281
282 static void action_HelpShort( UxWidget, UxEvent, UxParams, p_UxNumParams )
283 Widget UxWidget;
284 XEvent *UxEvent;
285 String *UxParams;
286 Cardinal *p_UxNumParams;
287 {
288 _UxCCalibShell *UxSaveCtx, *UxContext;
289 swidget UxThisWidget;
290
291 UxThisWidget = UxWidgetToSwidget( UxWidget );
292 UxSaveCtx = UxCalibShellContext;
293 UxCalibShellContext = UxContext =
294 (_UxCCalibShell *) UxGetContext( UxThisWidget );
295 {WidgetEnter(UxWidget);}
296 UxCalibShellContext = UxSaveCtx;
297 }
298
299 static void action_ExtendedHelp( UxWidget, UxEvent, UxParams, p_UxNumParams )
300 Widget UxWidget;
301 XEvent *UxEvent;
302 String *UxParams;
303 Cardinal *p_UxNumParams;
304 {
305 _UxCCalibShell *UxSaveCtx, *UxContext;
306 swidget UxThisWidget;
307
308 UxThisWidget = UxWidgetToSwidget( UxWidget );
309 UxSaveCtx = UxCalibShellContext;
310 UxCalibShellContext = UxContext =
311 (_UxCCalibShell *) UxGetContext( UxThisWidget );
312 {
313 DisplayExtendedHelp(UxWidget);
314 }
315 UxCalibShellContext = UxSaveCtx;
316 }
317
318 static void action_FileSelectACT( UxWidget, UxEvent, UxParams, p_UxNumParams )
319 Widget UxWidget;
320 XEvent *UxEvent;
321 String *UxParams;
322 Cardinal *p_UxNumParams;
323 {
324 _UxCCalibShell *UxSaveCtx, *UxContext;
325 swidget UxThisWidget;
326
327 UxThisWidget = UxWidgetToSwidget( UxWidget );
328 UxSaveCtx = UxCalibShellContext;
329 UxCalibShellContext = UxContext =
330 (_UxCCalibShell *) UxGetContext( UxThisWidget );
331 {
332 #include <xm_defs.h>
333 #include <spec_comm.h>
334
335 extern swidget FileListInterface, TextFieldSwidget;
336 extern Widget FileListWidget;
337 extern char DirSpecs[];
338 extern int ListType;
339
340 int strip = 1; /* strip off */
341
342 TextFieldSwidget = UxThisWidget;
343
344 if ( UxWidget == UxGetWidget(UxFindSwidget("tf_lincat")) ) {
345 SET_LIST_TITLE("Enter line catalog");
346 ListType = LIST_LINCAT;
347 }
348 else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_guess")) ) {
349 SET_LIST_TITLE("Enter guess table");
350 ListType = LIST_GUESS;
351 }
352 else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_flux_tbl")) ) {
353 SET_LIST_TITLE("Enter flux table");
354 ListType = LIST_FLUX_TBL;
355 }
356 else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_extin_tbl")) ) {
357 SET_LIST_TITLE("Enter extinction table");
358 ListType = LIST_EXTIN_TBL;
359 }
360
361 strcpy(DirSpecs, "*.tbl");
362 SetFileList(FileListWidget, strip, DirSpecs);
363 UxPopupInterface(FileListInterface, exclusive_grab);
364
365 }
366 UxCalibShellContext = UxSaveCtx;
367 }
368
369 /*******************************************************************************
370 The following are callback functions.
371 *******************************************************************************/
372
373 static void armCB_rb_wlcmtd_iden( UxWidget, UxClientData, UxCallbackArg )
374 Widget UxWidget;
375 XtPointer UxClientData, UxCallbackArg;
376 {
377 _UxCCalibShell *UxSaveCtx, *UxContext;
378 swidget UxThisWidget;
379
380 UxThisWidget = UxWidgetToSwidget( UxWidget );
381 UxSaveCtx = UxCalibShellContext;
382 UxCalibShellContext = UxContext =
383 (_UxCCalibShell *) UxGetContext( UxThisWidget );
384 RadioSet ( UxWidget ) ;
385 UxCalibShellContext = UxSaveCtx;
386 }
387
388 static void valueChangedCB_rb_wlcmtd_iden( UxWidget, UxClientData, UxCallbackArg )
389 Widget UxWidget;
390 XtPointer UxClientData, UxCallbackArg;
391 {
392 _UxCCalibShell *UxSaveCtx, *UxContext;
393 swidget UxThisWidget;
394
395 UxThisWidget = UxWidgetToSwidget( UxWidget );
396 UxSaveCtx = UxCalibShellContext;
397 UxCalibShellContext = UxContext =
398 (_UxCCalibShell *) UxGetContext( UxThisWidget );
399 {
400
401
402 }
403 UxCalibShellContext = UxSaveCtx;
404 }
405
406 static void armCB_rb_wlcmtd_gues( UxWidget, UxClientData, UxCallbackArg )
407 Widget UxWidget;
408 XtPointer UxClientData, UxCallbackArg;
409 {
410 _UxCCalibShell *UxSaveCtx, *UxContext;
411 swidget UxThisWidget;
412
413 UxThisWidget = UxWidgetToSwidget( UxWidget );
414 UxSaveCtx = UxCalibShellContext;
415 UxCalibShellContext = UxContext =
416 (_UxCCalibShell *) UxGetContext( UxThisWidget );
417 RadioSet ( UxWidget ) ;
418 UxCalibShellContext = UxSaveCtx;
419 }
420
421 static void valueChangedCB_rb_wlcmtd_gues( UxWidget, UxClientData, UxCallbackArg )
422 Widget UxWidget;
423 XtPointer UxClientData, UxCallbackArg;
424 {
425 _UxCCalibShell *UxSaveCtx, *UxContext;
426 swidget UxThisWidget;
427
428 UxThisWidget = UxWidgetToSwidget( UxWidget );
429 UxSaveCtx = UxCalibShellContext;
430 UxCalibShellContext = UxContext =
431 (_UxCCalibShell *) UxGetContext( UxThisWidget );
432 {
433
434
435 }
436 UxCalibShellContext = UxSaveCtx;
437 }
438
439 static void losingFocusCB_tf_tol( UxWidget, UxClientData, UxCallbackArg )
440 Widget UxWidget;
441 XtPointer UxClientData, UxCallbackArg;
442 {
443 _UxCCalibShell *UxSaveCtx, *UxContext;
444 swidget UxThisWidget;
445
446 UxThisWidget = UxWidgetToSwidget( UxWidget );
447 UxSaveCtx = UxCalibShellContext;
448 UxCalibShellContext = UxContext =
449 (_UxCCalibShell *) UxGetContext( UxThisWidget );
450 {
451
452 }
453 UxCalibShellContext = UxSaveCtx;
454 }
455
456 static void losingFocusCB_tf_dcx1( UxWidget, UxClientData, UxCallbackArg )
457 Widget UxWidget;
458 XtPointer UxClientData, UxCallbackArg;
459 {
460 _UxCCalibShell *UxSaveCtx, *UxContext;
461 swidget UxThisWidget;
462
463 UxThisWidget = UxWidgetToSwidget( UxWidget );
464 UxSaveCtx = UxCalibShellContext;
465 UxCalibShellContext = UxContext =
466 (_UxCCalibShell *) UxGetContext( UxThisWidget );
467 {
468
469 }
470 UxCalibShellContext = UxSaveCtx;
471 }
472
473 static void losingFocusCB_tf_alpha( UxWidget, UxClientData, UxCallbackArg )
474 Widget UxWidget;
475 XtPointer UxClientData, UxCallbackArg;
476 {
477 _UxCCalibShell *UxSaveCtx, *UxContext;
478 swidget UxThisWidget;
479
480 UxThisWidget = UxWidgetToSwidget( UxWidget );
481 UxSaveCtx = UxCalibShellContext;
482 UxCalibShellContext = UxContext =
483 (_UxCCalibShell *) UxGetContext( UxThisWidget );
484 {
485
486 }
487 UxCalibShellContext = UxSaveCtx;
488 }
489
490 static void losingFocusCB_tf_maxdev( UxWidget, UxClientData, UxCallbackArg )
491 Widget UxWidget;
492 XtPointer UxClientData, UxCallbackArg;
493 {
494 _UxCCalibShell *UxSaveCtx, *UxContext;
495 swidget UxThisWidget;
496
497 UxThisWidget = UxWidgetToSwidget( UxWidget );
498 UxSaveCtx = UxCalibShellContext;
499 UxCalibShellContext = UxContext =
500 (_UxCCalibShell *) UxGetContext( UxThisWidget );
501 {
502
503 }
504 UxCalibShellContext = UxSaveCtx;
505 }
506
507 static void losingFocusCB_tf_wlcniter1( UxWidget, UxClientData, UxCallbackArg )
508 Widget UxWidget;
509 XtPointer UxClientData, UxCallbackArg;
510 {
511 _UxCCalibShell *UxSaveCtx, *UxContext;
512 swidget UxThisWidget;
513
514 UxThisWidget = UxWidgetToSwidget( UxWidget );
515 UxSaveCtx = UxCalibShellContext;
516 UxCalibShellContext = UxContext =
517 (_UxCCalibShell *) UxGetContext( UxThisWidget );
518 {
519
520 }
521 UxCalibShellContext = UxSaveCtx;
522 }
523
524 static void losingFocusCB_tf_wlcniter2( UxWidget, UxClientData, UxCallbackArg )
525 Widget UxWidget;
526 XtPointer UxClientData, UxCallbackArg;
527 {
528 _UxCCalibShell *UxSaveCtx, *UxContext;
529 swidget UxThisWidget;
530
531 UxThisWidget = UxWidgetToSwidget( UxWidget );
532 UxSaveCtx = UxCalibShellContext;
533 UxCalibShellContext = UxContext =
534 (_UxCCalibShell *) UxGetContext( UxThisWidget );
535 {
536
537 }
538 UxCalibShellContext = UxSaveCtx;
539 }
540
541 static void valueChangedCB_tg_coropt( UxWidget, UxClientData, UxCallbackArg )
542 Widget UxWidget;
543 XtPointer UxClientData, UxCallbackArg;
544 {
545 _UxCCalibShell *UxSaveCtx, *UxContext;
546 swidget UxThisWidget;
547
548 UxThisWidget = UxWidgetToSwidget( UxWidget );
549 UxSaveCtx = UxCalibShellContext;
550 UxCalibShellContext = UxContext =
551 (_UxCCalibShell *) UxGetContext( UxThisWidget );
552 {
553 #include <spec_comm.h>
554
555 extern int UpdateToggle;
556
557 if ( !UpdateToggle )
558 return;
559
560 if ( XmToggleButtonGetState(UxWidget) )
561 AppendDialogText("set/long CORVISU=YES COROPT=YES");
562 else
563 AppendDialogText("set/long CORVISU=NO COROPT=NO");
564 }
565 UxCalibShellContext = UxSaveCtx;
566 }
567
568 static void activateCB_pb_calib_calibrate( UxWidget, UxClientData, UxCallbackArg )
569 Widget UxWidget;
570 XtPointer UxClientData, UxCallbackArg;
571 {
572 _UxCCalibShell *UxSaveCtx, *UxContext;
573 swidget UxThisWidget;
574
575 UxThisWidget = UxWidgetToSwidget( UxWidget );
576 UxSaveCtx = UxCalibShellContext;
577 UxCalibShellContext = UxContext =
578 (_UxCCalibShell *) UxGetContext( UxThisWidget );
579 {
580 MidasCommand(UxWidget);
581
582 }
583 UxCalibShellContext = UxSaveCtx;
584 }
585
586 static void activateCB_pushButton40( UxWidget, UxClientData, UxCallbackArg )
587 Widget UxWidget;
588 XtPointer UxClientData, UxCallbackArg;
589 {
590 _UxCCalibShell *UxSaveCtx, *UxContext;
591 swidget UxThisWidget;
592
593 UxThisWidget = UxWidgetToSwidget( UxWidget );
594 UxSaveCtx = UxCalibShellContext;
595 UxCalibShellContext = UxContext =
596 (_UxCCalibShell *) UxGetContext( UxThisWidget );
597 {
598 UxPopdownInterface(UxFindSwidget("CalibShell"));
599 }
600 UxCalibShellContext = UxSaveCtx;
601 }
602
603 static void activateCB_pb_calib_disper( UxWidget, UxClientData, UxCallbackArg )
604 Widget UxWidget;
605 XtPointer UxClientData, UxCallbackArg;
606 {
607 _UxCCalibShell *UxSaveCtx, *UxContext;
608 swidget UxThisWidget;
609
610 UxThisWidget = UxWidgetToSwidget( UxWidget );
611 UxSaveCtx = UxCalibShellContext;
612 UxCalibShellContext = UxContext =
613 (_UxCCalibShell *) UxGetContext( UxThisWidget );
614 {
615 GetExtendedHelp(UxWidget);
616
617 }
618 UxCalibShellContext = UxSaveCtx;
619 }
620
621 static void activateCB_pb_calib_resid( UxWidget, UxClientData, UxCallbackArg )
622 Widget UxWidget;
623 XtPointer UxClientData, UxCallbackArg;
624 {
625 _UxCCalibShell *UxSaveCtx, *UxContext;
626 swidget UxThisWidget;
627
628 UxThisWidget = UxWidgetToSwidget( UxWidget );
629 UxSaveCtx = UxCalibShellContext;
630 UxCalibShellContext = UxContext =
631 (_UxCCalibShell *) UxGetContext( UxThisWidget );
632 {
633 MidasCommand(UxWidget);
634
635 }
636 UxCalibShellContext = UxSaveCtx;
637 }
638
639 static void activateCB_pb_calib_spec( UxWidget, UxClientData, UxCallbackArg )
640 Widget UxWidget;
641 XtPointer UxClientData, UxCallbackArg;
642 {
643 _UxCCalibShell *UxSaveCtx, *UxContext;
644 swidget UxThisWidget;
645
646 UxThisWidget = UxWidgetToSwidget( UxWidget );
647 UxSaveCtx = UxCalibShellContext;
648 UxCalibShellContext = UxContext =
649 (_UxCCalibShell *) UxGetContext( UxThisWidget );
650 {
651 MidasCommand(UxWidget);
652
653 }
654 UxCalibShellContext = UxSaveCtx;
655 }
656
657 static void losingFocusCB_tf_maxdev1( UxWidget, UxClientData, UxCallbackArg )
658 Widget UxWidget;
659 XtPointer UxClientData, UxCallbackArg;
660 {
661 _UxCCalibShell *UxSaveCtx, *UxContext;
662 swidget UxThisWidget;
663
664 UxThisWidget = UxWidgetToSwidget( UxWidget );
665 UxSaveCtx = UxCalibShellContext;
666 UxCalibShellContext = UxContext =
667 (_UxCCalibShell *) UxGetContext( UxThisWidget );
668 {
669
670 }
671 UxCalibShellContext = UxSaveCtx;
672 }
673
674 static void losingFocusCB_tf_maxdev2( UxWidget, UxClientData, UxCallbackArg )
675 Widget UxWidget;
676 XtPointer UxClientData, UxCallbackArg;
677 {
678 _UxCCalibShell *UxSaveCtx, *UxContext;
679 swidget UxThisWidget;
680
681 UxThisWidget = UxWidgetToSwidget( UxWidget );
682 UxSaveCtx = UxCalibShellContext;
683 UxCalibShellContext = UxContext =
684 (_UxCCalibShell *) UxGetContext( UxThisWidget );
685 {
686
687 }
688 UxCalibShellContext = UxSaveCtx;
689 }
690
691 static void losingFocusCB_tf_guess1( UxWidget, UxClientData, UxCallbackArg )
692 Widget UxWidget;
693 XtPointer UxClientData, UxCallbackArg;
694 {
695 _UxCCalibShell *UxSaveCtx, *UxContext;
696 swidget UxThisWidget;
697
698 UxThisWidget = UxWidgetToSwidget( UxWidget );
699 UxSaveCtx = UxCalibShellContext;
700 UxCalibShellContext = UxContext =
701 (_UxCCalibShell *) UxGetContext( UxThisWidget );
702 {
703
704 }
705 UxCalibShellContext = UxSaveCtx;
706 }
707
708 static void losingFocusCB_tf_guess2( UxWidget, UxClientData, UxCallbackArg )
709 Widget UxWidget;
710 XtPointer UxClientData, UxCallbackArg;
711 {
712 _UxCCalibShell *UxSaveCtx, *UxContext;
713 swidget UxThisWidget;
714
715 UxThisWidget = UxWidgetToSwidget( UxWidget );
716 UxSaveCtx = UxCalibShellContext;
717 UxCalibShellContext = UxContext =
718 (_UxCCalibShell *) UxGetContext( UxThisWidget );
719 {
720
721 }
722 UxCalibShellContext = UxSaveCtx;
723 }
724
725 static void armCB_rb_wlcmtd_iden1( UxWidget, UxClientData, UxCallbackArg )
726 Widget UxWidget;
727 XtPointer UxClientData, UxCallbackArg;
728 {
729 _UxCCalibShell *UxSaveCtx, *UxContext;
730 swidget UxThisWidget;
731
732 UxThisWidget = UxWidgetToSwidget( UxWidget );
733 UxSaveCtx = UxCalibShellContext;
734 UxCalibShellContext = UxContext =
735 (_UxCCalibShell *) UxGetContext( UxThisWidget );
736 {
737 RadioSet(UxWidget);
738 }
739 UxCalibShellContext = UxSaveCtx;
740 }
741
742 static void valueChangedCB_rb_wlcmtd_iden1( UxWidget, UxClientData, UxCallbackArg )
743 Widget UxWidget;
744 XtPointer UxClientData, UxCallbackArg;
745 {
746 _UxCCalibShell *UxSaveCtx, *UxContext;
747 swidget UxThisWidget;
748
749 UxThisWidget = UxWidgetToSwidget( UxWidget );
750 UxSaveCtx = UxCalibShellContext;
751 UxCalibShellContext = UxContext =
752 (_UxCCalibShell *) UxGetContext( UxThisWidget );
753 {
754
755 }
756 UxCalibShellContext = UxSaveCtx;
757 }
758
759 static void armCB_rb_wlcmtd_gues4( UxWidget, UxClientData, UxCallbackArg )
760 Widget UxWidget;
761 XtPointer UxClientData, UxCallbackArg;
762 {
763 _UxCCalibShell *UxSaveCtx, *UxContext;
764 swidget UxThisWidget;
765
766 UxThisWidget = UxWidgetToSwidget( UxWidget );
767 UxSaveCtx = UxCalibShellContext;
768 UxCalibShellContext = UxContext =
769 (_UxCCalibShell *) UxGetContext( UxThisWidget );
770 {
771 RadioSet(UxWidget);
772 }
773 UxCalibShellContext = UxSaveCtx;
774 }
775
776 static void valueChangedCB_rb_wlcmtd_gues4( UxWidget, UxClientData, UxCallbackArg )
777 Widget UxWidget;
778 XtPointer UxClientData, UxCallbackArg;
779 {
780 _UxCCalibShell *UxSaveCtx, *UxContext;
781 swidget UxThisWidget;
782
783 UxThisWidget = UxWidgetToSwidget( UxWidget );
784 UxSaveCtx = UxCalibShellContext;
785 UxCalibShellContext = UxContext =
786 (_UxCCalibShell *) UxGetContext( UxThisWidget );
787 {
788 RadioSet ( UxWidget ) ;
789 }
790 UxCalibShellContext = UxSaveCtx;
791 }
792
793 static void armCB_rb_wlcmtd_gues5( UxWidget, UxClientData, UxCallbackArg )
794 Widget UxWidget;
795 XtPointer UxClientData, UxCallbackArg;
796 {
797 _UxCCalibShell *UxSaveCtx, *UxContext;
798 swidget UxThisWidget;
799
800 UxThisWidget = UxWidgetToSwidget( UxWidget );
801 UxSaveCtx = UxCalibShellContext;
802 UxCalibShellContext = UxContext =
803 (_UxCCalibShell *) UxGetContext( UxThisWidget );
804 {
805 RadioSet(UxWidget);
806 }
807 UxCalibShellContext = UxSaveCtx;
808 }
809
810 static void valueChangedCB_rb_wlcmtd_gues5( UxWidget, UxClientData, UxCallbackArg )
811 Widget UxWidget;
812 XtPointer UxClientData, UxCallbackArg;
813 {
814 _UxCCalibShell *UxSaveCtx, *UxContext;
815 swidget UxThisWidget;
816
817 UxThisWidget = UxWidgetToSwidget( UxWidget );
818 UxSaveCtx = UxCalibShellContext;
819 UxCalibShellContext = UxContext =
820 (_UxCCalibShell *) UxGetContext( UxThisWidget );
821 {
822
823
824 }
825 UxCalibShellContext = UxSaveCtx;
826 }
827
828 static void armCB_rb_wlcmtd_gues6( UxWidget, UxClientData, UxCallbackArg )
829 Widget UxWidget;
830 XtPointer UxClientData, UxCallbackArg;
831 {
832 _UxCCalibShell *UxSaveCtx, *UxContext;
833 swidget UxThisWidget;
834
835 UxThisWidget = UxWidgetToSwidget( UxWidget );
836 UxSaveCtx = UxCalibShellContext;
837 UxCalibShellContext = UxContext =
838 (_UxCCalibShell *) UxGetContext( UxThisWidget );
839 {
840 RadioSet(UxWidget);
841 }
842 UxCalibShellContext = UxSaveCtx;
843 }
844
845 static void valueChangedCB_rb_wlcmtd_gues6( UxWidget, UxClientData, UxCallbackArg )
846 Widget UxWidget;
847 XtPointer UxClientData, UxCallbackArg;
848 {
849 _UxCCalibShell *UxSaveCtx, *UxContext;
850 swidget UxThisWidget;
851
852 UxThisWidget = UxWidgetToSwidget( UxWidget );
853 UxSaveCtx = UxCalibShellContext;
854 UxCalibShellContext = UxContext =
855 (_UxCCalibShell *) UxGetContext( UxThisWidget );
856 {
857
858
859 }
860 UxCalibShellContext = UxSaveCtx;
861 }
862
863 static void armCB_rb_wlcmtd_gues7( UxWidget, UxClientData, UxCallbackArg )
864 Widget UxWidget;
865 XtPointer UxClientData, UxCallbackArg;
866 {
867 _UxCCalibShell *UxSaveCtx, *UxContext;
868 swidget UxThisWidget;
869
870 UxThisWidget = UxWidgetToSwidget( UxWidget );
871 UxSaveCtx = UxCalibShellContext;
872 UxCalibShellContext = UxContext =
873 (_UxCCalibShell *) UxGetContext( UxThisWidget );
874 {
875 RadioSet(UxWidget);
876 }
877 UxCalibShellContext = UxSaveCtx;
878 }
879
880 static void valueChangedCB_rb_wlcmtd_gues7( UxWidget, UxClientData, UxCallbackArg )
881 Widget UxWidget;
882 XtPointer UxClientData, UxCallbackArg;
883 {
884 _UxCCalibShell *UxSaveCtx, *UxContext;
885 swidget UxThisWidget;
886
887 UxThisWidget = UxWidgetToSwidget( UxWidget );
888 UxSaveCtx = UxCalibShellContext;
889 UxCalibShellContext = UxContext =
890 (_UxCCalibShell *) UxGetContext( UxThisWidget );
891 {
892
893
894 }
895 UxCalibShellContext = UxSaveCtx;
896 }
897
898 static void armCB_rb_wlcmtd_iden2( UxWidget, UxClientData, UxCallbackArg )
899 Widget UxWidget;
900 XtPointer UxClientData, UxCallbackArg;
901 {
902 _UxCCalibShell *UxSaveCtx, *UxContext;
903 swidget UxThisWidget;
904
905 UxThisWidget = UxWidgetToSwidget( UxWidget );
906 UxSaveCtx = UxCalibShellContext;
907 UxCalibShellContext = UxContext =
908 (_UxCCalibShell *) UxGetContext( UxThisWidget );
909 RadioSet ( UxWidget ) ;
910 UxCalibShellContext = UxSaveCtx;
911 }
912
913 static void valueChangedCB_rb_wlcmtd_iden2( UxWidget, UxClientData, UxCallbackArg )
914 Widget UxWidget;
915 XtPointer UxClientData, UxCallbackArg;
916 {
917 _UxCCalibShell *UxSaveCtx, *UxContext;
918 swidget UxThisWidget;
919
920 UxThisWidget = UxWidgetToSwidget( UxWidget );
921 UxSaveCtx = UxCalibShellContext;
922 UxCalibShellContext = UxContext =
923 (_UxCCalibShell *) UxGetContext( UxThisWidget );
924 {
925
926 }
927 UxCalibShellContext = UxSaveCtx;
928 }
929
930 static void armCB_rb_wlcmtd_gues1( UxWidget, UxClientData, UxCallbackArg )
931 Widget UxWidget;
932 XtPointer UxClientData, UxCallbackArg;
933 {
934 _UxCCalibShell *UxSaveCtx, *UxContext;
935 swidget UxThisWidget;
936
937 UxThisWidget = UxWidgetToSwidget( UxWidget );
938 UxSaveCtx = UxCalibShellContext;
939 UxCalibShellContext = UxContext =
940 (_UxCCalibShell *) UxGetContext( UxThisWidget );
941 RadioSet ( UxWidget ) ;
942 UxCalibShellContext = UxSaveCtx;
943 }
944
945 static void valueChangedCB_rb_wlcmtd_gues1( UxWidget, UxClientData, UxCallbackArg )
946 Widget UxWidget;
947 XtPointer UxClientData, UxCallbackArg;
948 {
949 _UxCCalibShell *UxSaveCtx, *UxContext;
950 swidget UxThisWidget;
951
952 UxThisWidget = UxWidgetToSwidget( UxWidget );
953 UxSaveCtx = UxCalibShellContext;
954 UxCalibShellContext = UxContext =
955 (_UxCCalibShell *) UxGetContext( UxThisWidget );
956 {
957
958 }
959 UxCalibShellContext = UxSaveCtx;
960 }
961
962 static void activateCB_mn_tol_angstroms1( UxWidget, UxClientData, UxCallbackArg )
963 Widget UxWidget;
964 XtPointer UxClientData, UxCallbackArg;
965 {
966 _UxCCalibShell *UxSaveCtx, *UxContext;
967 swidget UxThisWidget;
968
969 UxThisWidget = UxWidgetToSwidget( UxWidget );
970 UxSaveCtx = UxCalibShellContext;
971 UxCalibShellContext = UxContext =
972 (_UxCCalibShell *) UxGetContext( UxThisWidget );
973 {
974 #include <spec_comm.h>
975
976 char text[32];
977 extern float Tol;
978 extern int TolPixels;
979
980 TolPixels = FALSE;
981
982 sprintf(text, "%f", -Tol);
983 WriteKeyword(text, K_TOL);
984
985 XtFree(text);
986 }
987 UxCalibShellContext = UxSaveCtx;
988 }
989
990 static void activateCB_mn_tol_pixels1( UxWidget, UxClientData, UxCallbackArg )
991 Widget UxWidget;
992 XtPointer UxClientData, UxCallbackArg;
993 {
994 _UxCCalibShell *UxSaveCtx, *UxContext;
995 swidget UxThisWidget;
996
997 UxThisWidget = UxWidgetToSwidget( UxWidget );
998 UxSaveCtx = UxCalibShellContext;
999 UxCalibShellContext = UxContext =
1000 (_UxCCalibShell *) UxGetContext( UxThisWidget );
1001 {
1002 #include <spec_comm.h>
1003
1004 char text[32];
1005 extern float Tol;
1006 extern int TolPixels;
1007
1008 TolPixels = TRUE;
1009
1010 sprintf(text, "%f", Tol);
1011 WriteKeyword(text, K_TOL);
1012
1013 XtFree(text);
1014 }
1015 UxCalibShellContext = UxSaveCtx;
1016 }
1017
1018 static void activateCB_pb_main_search33( UxWidget, UxClientData, UxCallbackArg )
1019 Widget UxWidget;
1020 XtPointer UxClientData, UxCallbackArg;
1021 {
1022 _UxCCalibShell *UxSaveCtx, *UxContext;
1023 swidget UxThisWidget;
1024
1025 UxThisWidget = UxWidgetToSwidget( UxWidget );
1026 UxSaveCtx = UxCalibShellContext;
1027 UxCalibShellContext = UxContext =
1028 (_UxCCalibShell *) UxGetContext( UxThisWidget );
1029 {
1030 SelectList(UxWidget);
1031
1032 }
1033 UxCalibShellContext = UxSaveCtx;
1034 }
1035
1036 /*******************************************************************************
1037 The 'init_' function sets the private properties for all the
1038 swidgets to the values specified in the Property Table.
1039 Some properties need to be set after the X widgets have been
1040 created and the setting of these properties is done in the
1041 'build_' function after the UxCreateWidget call.
1042 *******************************************************************************/
1043
1044 static void _Uxinit_CalibShell()
1045 {
1046 UxPutGeometry( CalibShell, "+10+60" );
1047 UxPutDefaultFontList( CalibShell, TextFont );
1048 UxPutKeyboardFocusPolicy( CalibShell, "pointer" );
1049 UxPutIconName( CalibShell, "Calibration" );
1050 UxPutHeight( CalibShell, 520 );
1051 UxPutWidth( CalibShell, 520 );
1052 UxPutY( CalibShell, 327 );
1053 UxPutX( CalibShell, 29 );
1054
1055 UxPutBackground( form3, "grey80" );
1056 UxPutHeight( form3, 616 );
1057 UxPutWidth( form3, 600 );
1058 UxPutY( form3, 0 );
1059 UxPutX( form3, 2 );
1060 UxPutUnitType( form3, "pixels" );
1061 UxPutResizePolicy( form3, "resize_none" );
1062
1063 UxPutTranslations( rowColumn2, transTable6 );
1064 UxPutPacking( rowColumn2, "pack_tight" );
1065 UxPutOrientation( rowColumn2, "vertical" );
1066 UxPutIsAligned( rowColumn2, "true" );
1067 UxPutEntryAlignment( rowColumn2, "alignment_beginning" );
1068 UxPutBorderWidth( rowColumn2, 0 );
1069 UxPutShadowThickness( rowColumn2, 0 );
1070 UxPutLabelString( rowColumn2, "" );
1071 UxPutEntryBorder( rowColumn2, 0 );
1072 UxPutBackground( rowColumn2, "grey80" );
1073 UxPutRadioBehavior( rowColumn2, "true" );
1074 UxPutHeight( rowColumn2, 31 );
1075 UxPutWidth( rowColumn2, 402 );
1076 UxPutY( rowColumn2, 304 );
1077 UxPutX( rowColumn2, 368 );
1078
1079 UxPutTranslations( rb_wlcmtd_iden, transTable6 );
1080 UxPutIndicatorSize( rb_wlcmtd_iden, 16 );
1081 UxPutHighlightOnEnter( rb_wlcmtd_iden, "true" );
1082 UxPutForeground( rb_wlcmtd_iden, TextForeground );
1083 UxPutSelectColor( rb_wlcmtd_iden, SelectColor );
1084 UxPutSet( rb_wlcmtd_iden, "true" );
1085 UxPutLabelString( rb_wlcmtd_iden, "Yes" );
1086 UxPutFontList( rb_wlcmtd_iden, TextFont );
1087 UxPutBackground( rb_wlcmtd_iden, WindowBackground );
1088 UxPutHeight( rb_wlcmtd_iden, 113 );
1089 UxPutWidth( rb_wlcmtd_iden, 77 );
1090 UxPutY( rb_wlcmtd_iden, 3 );
1091 UxPutX( rb_wlcmtd_iden, 3 );
1092
1093 UxPutTranslations( rb_wlcmtd_gues, transTable6 );
1094 UxPutIndicatorSize( rb_wlcmtd_gues, 16 );
1095 UxPutHighlightOnEnter( rb_wlcmtd_gues, "true" );
1096 UxPutSet( rb_wlcmtd_gues, "false" );
1097 UxPutForeground( rb_wlcmtd_gues, TextForeground );
1098 UxPutSelectColor( rb_wlcmtd_gues, SelectColor );
1099 UxPutLabelString( rb_wlcmtd_gues, "No" );
1100 UxPutFontList( rb_wlcmtd_gues, TextFont );
1101 UxPutBackground( rb_wlcmtd_gues, WindowBackground );
1102 UxPutHeight( rb_wlcmtd_gues, 32 );
1103 UxPutWidth( rb_wlcmtd_gues, 93 );
1104 UxPutY( rb_wlcmtd_gues, 34 );
1105 UxPutX( rb_wlcmtd_gues, 3 );
1106
1107 UxPutForeground( label14, TextForeground );
1108 UxPutAlignment( label14, "alignment_beginning" );
1109 UxPutLabelString( label14, "Method" );
1110 UxPutFontList( label14, TextFont );
1111 UxPutBackground( label14, WindowBackground );
1112 UxPutHeight( label14, 18 );
1113 UxPutWidth( label14, 60 );
1114 UxPutY( label14, 56 );
1115 UxPutX( label14, 14 );
1116
1117 UxPutForeground( label16, TextForeground );
1118 UxPutAlignment( label16, "alignment_beginning" );
1119 UxPutLabelString( label16, "Tolerance :" );
1120 UxPutFontList( label16, TextFont );
1121 UxPutBackground( label16, LabelBackground );
1122 UxPutHeight( label16, 30 );
1123 UxPutWidth( label16, 130 );
1124 UxPutY( label16, 124 );
1125 UxPutX( label16, 14 );
1126
1127 UxPutForeground( tf_tol, TextForeground );
1128 UxPutHighlightOnEnter( tf_tol, "true" );
1129 UxPutFontList( tf_tol, TextFont );
1130 UxPutBackground( tf_tol, TextBackground );
1131 UxPutHeight( tf_tol, 34 );
1132 UxPutWidth( tf_tol, 100 );
1133 UxPutY( tf_tol, 120 );
1134 UxPutX( tf_tol, 238 );
1135
1136 UxPutForeground( label17, TextForeground );
1137 UxPutAlignment( label17, "alignment_beginning" );
1138 UxPutLabelString( label17, "Degree of polynomial :" );
1139 UxPutFontList( label17, TextFont );
1140 UxPutBackground( label17, LabelBackground );
1141 UxPutHeight( label17, 30 );
1142 UxPutWidth( label17, 200 );
1143 UxPutY( label17, 164 );
1144 UxPutX( label17, 14 );
1145
1146 UxPutForeground( tf_dcx1, TextForeground );
1147 UxPutHighlightOnEnter( tf_dcx1, "true" );
1148 UxPutFontList( tf_dcx1, TextFont );
1149 UxPutBackground( tf_dcx1, TextBackground );
1150 UxPutHeight( tf_dcx1, 34 );
1151 UxPutWidth( tf_dcx1, 100 );
1152 UxPutY( tf_dcx1, 158 );
1153 UxPutX( tf_dcx1, 238 );
1154
1155 UxPutForeground( tf_alpha, TextForeground );
1156 UxPutHighlightOnEnter( tf_alpha, "true" );
1157 UxPutFontList( tf_alpha, TextFont );
1158 UxPutBackground( tf_alpha, TextBackground );
1159 UxPutHeight( tf_alpha, 32 );
1160 UxPutWidth( tf_alpha, 96 );
1161 UxPutY( tf_alpha, 238 );
1162 UxPutX( tf_alpha, 238 );
1163
1164 UxPutForeground( label19, TextForeground );
1165 UxPutAlignment( label19, "alignment_beginning" );
1166 UxPutLabelString( label19, "Matching parameter :" );
1167 UxPutFontList( label19, TextFont );
1168 UxPutBackground( label19, LabelBackground );
1169 UxPutHeight( label19, 30 );
1170 UxPutWidth( label19, 200 );
1171 UxPutY( label19, 274 );
1172 UxPutX( label19, 14 );
1173
1174 UxPutForeground( label20, TextForeground );
1175 UxPutAlignment( label20, "alignment_beginning" );
1176 UxPutLabelString( label20, "Maximum deviation (pixels) :" );
1177 UxPutFontList( label20, TextFont );
1178 UxPutBackground( label20, LabelBackground );
1179 UxPutHeight( label20, 30 );
1180 UxPutWidth( label20, 200 );
1181 UxPutY( label20, 354 );
1182 UxPutX( label20, 14 );
1183
1184 UxPutForeground( tf_maxdev, TextForeground );
1185 UxPutHighlightOnEnter( tf_maxdev, "true" );
1186 UxPutFontList( tf_maxdev, TextFont );
1187 UxPutBackground( tf_maxdev, TextBackground );
1188 UxPutHeight( tf_maxdev, 34 );
1189 UxPutWidth( tf_maxdev, 100 );
1190 UxPutY( tf_maxdev, 312 );
1191 UxPutX( tf_maxdev, 238 );
1192
1193 UxPutSensitive( guess_session_label, "false" );
1194 UxPutForeground( guess_session_label, TextForeground );
1195 UxPutAlignment( guess_session_label, "alignment_beginning" );
1196 UxPutLabelString( guess_session_label, "Initial guess :" );
1197 UxPutFontList( guess_session_label, TextFont );
1198 UxPutBackground( guess_session_label, LabelBackground );
1199 UxPutHeight( guess_session_label, 30 );
1200 UxPutWidth( guess_session_label, 100 );
1201 UxPutY( guess_session_label, 88 );
1202 UxPutX( guess_session_label, 14 );
1203
1204 UxPutBackground( separator4, WindowBackground );
1205 UxPutHeight( separator4, 11 );
1206 UxPutWidth( separator4, 110 );
1207 UxPutY( separator4, 252 );
1208 UxPutX( separator4, 356 );
1209
1210 UxPutFontList( shelp_calib, TextFont );
1211 UxPutEditable( shelp_calib, "false" );
1212 UxPutCursorPositionVisible( shelp_calib, "false" );
1213 UxPutBackground( shelp_calib, SHelpBackground );
1214 UxPutHeight( shelp_calib, 50 );
1215 UxPutWidth( shelp_calib, 510 );
1216 UxPutY( shelp_calib, 404 );
1217 UxPutX( shelp_calib, 8 );
1218
1219 UxPutBackground( separator5, WindowBackground );
1220 UxPutHeight( separator5, 6 );
1221 UxPutWidth( separator5, 516 );
1222 UxPutY( separator5, 456 );
1223 UxPutX( separator5, 4 );
1224
1225 UxPutForeground( tf_wlcniter1, TextForeground );
1226 UxPutHighlightOnEnter( tf_wlcniter1, "true" );
1227 UxPutFontList( tf_wlcniter1, TextFont );
1228 UxPutBackground( tf_wlcniter1, TextBackground );
1229 UxPutHeight( tf_wlcniter1, 34 );
1230 UxPutWidth( tf_wlcniter1, 48 );
1231 UxPutY( tf_wlcniter1, 196 );
1232 UxPutX( tf_wlcniter1, 238 );
1233
1234 UxPutForeground( tf_wlcniter2, TextForeground );
1235 UxPutHighlightOnEnter( tf_wlcniter2, "true" );
1236 UxPutFontList( tf_wlcniter2, TextFont );
1237 UxPutBackground( tf_wlcniter2, TextBackground );
1238 UxPutHeight( tf_wlcniter2, 34 );
1239 UxPutWidth( tf_wlcniter2, 48 );
1240 UxPutY( tf_wlcniter2, 196 );
1241 UxPutX( tf_wlcniter2, 288 );
1242
1243 UxPutIndicatorSize( tg_coropt, 16 );
1244 UxPutSensitive( tg_coropt, "false" );
1245 UxPutHighlightOnEnter( tg_coropt, "true" );
1246 UxPutForeground( tg_coropt, TextForeground );
1247 UxPutSelectColor( tg_coropt, SelectColor );
1248 UxPutSet( tg_coropt, "false" );
1249 UxPutLabelString( tg_coropt, "Compute Cross-correlation" );
1250 UxPutFontList( tg_coropt, TextFont );
1251 UxPutBackground( tg_coropt, WindowBackground );
1252 UxPutHeight( tg_coropt, 26 );
1253 UxPutWidth( tg_coropt, 206 );
1254 UxPutY( tg_coropt, 82 );
1255 UxPutX( tg_coropt, 302 );
1256
1257 UxPutBackground( form20, ButtonBackground );
1258 UxPutHeight( form20, 48 );
1259 UxPutWidth( form20, 520 );
1260 UxPutY( form20, 466 );
1261 UxPutX( form20, 4 );
1262 UxPutResizePolicy( form20, "resize_none" );
1263
1264 UxPutLabelString( pb_calib_calibrate, "Calibrate" );
1265 UxPutForeground( pb_calib_calibrate, ApplyForeground );
1266 UxPutFontList( pb_calib_calibrate, BoldTextFont );
1267 UxPutBackground( pb_calib_calibrate, ButtonBackground );
1268 UxPutHeight( pb_calib_calibrate, 30 );
1269 UxPutWidth( pb_calib_calibrate, 86 );
1270 UxPutY( pb_calib_calibrate, 6 );
1271 UxPutX( pb_calib_calibrate, 4 );
1272
1273 UxPutLabelString( pushButton40, "Cancel" );
1274 UxPutForeground( pushButton40, CancelForeground );
1275 UxPutFontList( pushButton40, BoldTextFont );
1276 UxPutBackground( pushButton40, ButtonBackground );
1277 UxPutHeight( pushButton40, 30 );
1278 UxPutWidth( pushButton40, 86 );
1279 UxPutY( pushButton40, 6 );
1280 UxPutX( pushButton40, 430 );
1281
1282 UxPutLabelString( pb_calib_disper, "Help" );
1283 UxPutForeground( pb_calib_disper, ButtonForeground );
1284 UxPutFontList( pb_calib_disper, BoldTextFont );
1285 UxPutBackground( pb_calib_disper, ButtonBackground );
1286 UxPutHeight( pb_calib_disper, 30 );
1287 UxPutWidth( pb_calib_disper, 86 );
1288 UxPutY( pb_calib_disper, 6 );
1289 UxPutX( pb_calib_disper, 344 );
1290
1291 UxPutLabelString( pb_calib_resid, "Residuals" );
1292 UxPutForeground( pb_calib_resid, ButtonForeground );
1293 UxPutFontList( pb_calib_resid, BoldTextFont );
1294 UxPutBackground( pb_calib_resid, ButtonBackground );
1295 UxPutHeight( pb_calib_resid, 30 );
1296 UxPutWidth( pb_calib_resid, 86 );
1297 UxPutY( pb_calib_resid, 6 );
1298 UxPutX( pb_calib_resid, 92 );
1299
1300 UxPutLabelString( pb_calib_spec, "Spectrum" );
1301 UxPutForeground( pb_calib_spec, ButtonForeground );
1302 UxPutFontList( pb_calib_spec, BoldTextFont );
1303 UxPutBackground( pb_calib_spec, ButtonBackground );
1304 UxPutHeight( pb_calib_spec, 30 );
1305 UxPutWidth( pb_calib_spec, 86 );
1306 UxPutY( pb_calib_spec, 6 );
1307 UxPutX( pb_calib_spec, 180 );
1308
1309 UxPutForeground( label8, TextForeground );
1310 UxPutAlignment( label8, "alignment_beginning" );
1311 UxPutLabelString( label8, "Initial Tolerance (pixels) :" );
1312 UxPutFontList( label8, TextFont );
1313 UxPutBackground( label8, LabelBackground );
1314 UxPutHeight( label8, 30 );
1315 UxPutWidth( label8, 200 );
1316 UxPutY( label8, 314 );
1317 UxPutX( label8, 14 );
1318
1319 UxPutForeground( tf_maxdev1, TextForeground );
1320 UxPutHighlightOnEnter( tf_maxdev1, "true" );
1321 UxPutFontList( tf_maxdev1, TextFont );
1322 UxPutBackground( tf_maxdev1, TextBackground );
1323 UxPutHeight( tf_maxdev1, 34 );
1324 UxPutWidth( tf_maxdev1, 100 );
1325 UxPutY( tf_maxdev1, 352 );
1326 UxPutX( tf_maxdev1, 238 );
1327
1328 UxPutForeground( tf_maxdev2, TextForeground );
1329 UxPutHighlightOnEnter( tf_maxdev2, "true" );
1330 UxPutFontList( tf_maxdev2, TextFont );
1331 UxPutBackground( tf_maxdev2, TextBackground );
1332 UxPutHeight( tf_maxdev2, 34 );
1333 UxPutWidth( tf_maxdev2, 100 );
1334 UxPutY( tf_maxdev2, 272 );
1335 UxPutX( tf_maxdev2, 238 );
1336
1337 UxPutTranslations( tf_guess1, "" );
1338 UxPutSensitive( tf_guess1, "true" );
1339 UxPutForeground( tf_guess1, TextForeground );
1340 UxPutHighlightOnEnter( tf_guess1, "true" );
1341 UxPutFontList( tf_guess1, TextFont );
1342 UxPutBackground( tf_guess1, TextBackground );
1343 UxPutHeight( tf_guess1, 36 );
1344 UxPutWidth( tf_guess1, 278 );
1345 UxPutY( tf_guess1, 6 );
1346 UxPutX( tf_guess1, 178 );
1347
1348 UxPutTranslations( tf_guess2, "" );
1349 UxPutSensitive( tf_guess2, "false" );
1350 UxPutForeground( tf_guess2, TextForeground );
1351 UxPutHighlightOnEnter( tf_guess2, "true" );
1352 UxPutFontList( tf_guess2, TextFont );
1353 UxPutBackground( tf_guess2, TextBackground );
1354 UxPutHeight( tf_guess2, 36 );
1355 UxPutWidth( tf_guess2, 164 );
1356 UxPutY( tf_guess2, 80 );
1357 UxPutX( tf_guess2, 126 );
1358
1359 UxPutForeground( label15, TextForeground );
1360 UxPutAlignment( label15, "alignment_beginning" );
1361 UxPutLabelString( label15, "Line Catalog:" );
1362 UxPutFontList( label15, TextFont );
1363 UxPutBackground( label15, LabelBackground );
1364 UxPutHeight( label15, 30 );
1365 UxPutWidth( label15, 210 );
1366 UxPutY( label15, 6 );
1367 UxPutX( label15, 14 );
1368
1369 UxPutForeground( label26, TextForeground );
1370 UxPutAlignment( label26, "alignment_beginning" );
1371 UxPutLabelString( label26, "Maximum deviation (pixels) :" );
1372 UxPutFontList( label26, TextFont );
1373 UxPutBackground( label26, LabelBackground );
1374 UxPutHeight( label26, 30 );
1375 UxPutWidth( label26, 200 );
1376 UxPutY( label26, 238 );
1377 UxPutX( label26, 14 );
1378
1379 UxPutTranslations( rowColumn24, "" );
1380 UxPutPacking( rowColumn24, "pack_tight" );
1381 UxPutOrientation( rowColumn24, "horizontal" );
1382 UxPutIsAligned( rowColumn24, "true" );
1383 UxPutEntryAlignment( rowColumn24, "alignment_beginning" );
1384 UxPutBorderWidth( rowColumn24, 0 );
1385 UxPutShadowThickness( rowColumn24, 0 );
1386 UxPutLabelString( rowColumn24, "" );
1387 UxPutEntryBorder( rowColumn24, 0 );
1388 UxPutBackground( rowColumn24, "grey80" );
1389 UxPutRadioBehavior( rowColumn24, "true" );
1390 UxPutHeight( rowColumn24, 31 );
1391 UxPutWidth( rowColumn24, 402 );
1392 UxPutY( rowColumn24, 43 );
1393 UxPutX( rowColumn24, 104 );
1394
1395 UxPutTranslations( rb_wlcmtd_iden1, transTable6 );
1396 UxPutIndicatorSize( rb_wlcmtd_iden1, 16 );
1397 UxPutHighlightOnEnter( rb_wlcmtd_iden1, "true" );
1398 UxPutForeground( rb_wlcmtd_iden1, TextForeground );
1399 UxPutSelectColor( rb_wlcmtd_iden1, SelectColor );
1400 UxPutSet( rb_wlcmtd_iden1, "true" );
1401 UxPutLabelString( rb_wlcmtd_iden1, "PAIR" );
1402 UxPutFontList( rb_wlcmtd_iden1, TextFont );
1403 UxPutBackground( rb_wlcmtd_iden1, WindowBackground );
1404 UxPutHeight( rb_wlcmtd_iden1, 20 );
1405 UxPutWidth( rb_wlcmtd_iden1, 76 );
1406 UxPutY( rb_wlcmtd_iden1, 2 );
1407 UxPutX( rb_wlcmtd_iden1, 3 );
1408
1409 UxPutTranslations( rb_wlcmtd_gues4, transTable6 );
1410 UxPutIndicatorSize( rb_wlcmtd_gues4, 16 );
1411 UxPutHighlightOnEnter( rb_wlcmtd_gues4, "true" );
1412 UxPutSet( rb_wlcmtd_gues4, "false" );
1413 UxPutForeground( rb_wlcmtd_gues4, TextForeground );
1414 UxPutSelectColor( rb_wlcmtd_gues4, SelectColor );
1415 UxPutLabelString( rb_wlcmtd_gues4, "ANGLE" );
1416 UxPutFontList( rb_wlcmtd_gues4, TextFont );
1417 UxPutBackground( rb_wlcmtd_gues4, WindowBackground );
1418 UxPutHeight( rb_wlcmtd_gues4, 32 );
1419 UxPutWidth( rb_wlcmtd_gues4, 93 );
1420 UxPutY( rb_wlcmtd_gues4, 34 );
1421 UxPutX( rb_wlcmtd_gues4, 3 );
1422
1423 UxPutTranslations( rb_wlcmtd_gues5, transTable6 );
1424 UxPutIndicatorSize( rb_wlcmtd_gues5, 16 );
1425 UxPutHighlightOnEnter( rb_wlcmtd_gues5, "true" );
1426 UxPutSet( rb_wlcmtd_gues5, "false" );
1427 UxPutForeground( rb_wlcmtd_gues5, TextForeground );
1428 UxPutSelectColor( rb_wlcmtd_gues5, SelectColor );
1429 UxPutLabelString( rb_wlcmtd_gues5, "RESTART" );
1430 UxPutFontList( rb_wlcmtd_gues5, TextFont );
1431 UxPutBackground( rb_wlcmtd_gues5, WindowBackground );
1432 UxPutHeight( rb_wlcmtd_gues5, 23 );
1433 UxPutWidth( rb_wlcmtd_gues5, 90 );
1434 UxPutY( rb_wlcmtd_gues5, 2 );
1435 UxPutX( rb_wlcmtd_gues5, 146 );
1436
1437 UxPutTranslations( rb_wlcmtd_gues6, transTable6 );
1438 UxPutIndicatorSize( rb_wlcmtd_gues6, 16 );
1439 UxPutHighlightOnEnter( rb_wlcmtd_gues6, "true" );
1440 UxPutSet( rb_wlcmtd_gues6, "false" );
1441 UxPutForeground( rb_wlcmtd_gues6, TextForeground );
1442 UxPutSelectColor( rb_wlcmtd_gues6, SelectColor );
1443 UxPutLabelString( rb_wlcmtd_gues6, "ORDER" );
1444 UxPutFontList( rb_wlcmtd_gues6, TextFont );
1445 UxPutBackground( rb_wlcmtd_gues6, WindowBackground );
1446 UxPutHeight( rb_wlcmtd_gues6, 66 );
1447 UxPutWidth( rb_wlcmtd_gues6, 76 );
1448 UxPutY( rb_wlcmtd_gues6, 34 );
1449 UxPutX( rb_wlcmtd_gues6, 3 );
1450
1451 UxPutTranslations( rb_wlcmtd_gues7, transTable6 );
1452 UxPutIndicatorSize( rb_wlcmtd_gues7, 16 );
1453 UxPutHighlightOnEnter( rb_wlcmtd_gues7, "true" );
1454 UxPutSet( rb_wlcmtd_gues7, "false" );
1455 UxPutForeground( rb_wlcmtd_gues7, TextForeground );
1456 UxPutSelectColor( rb_wlcmtd_gues7, SelectColor );
1457 UxPutLabelString( rb_wlcmtd_gues7, "GUESS" );
1458 UxPutFontList( rb_wlcmtd_gues7, TextFont );
1459 UxPutBackground( rb_wlcmtd_gues7, WindowBackground );
1460 UxPutHeight( rb_wlcmtd_gues7, 17 );
1461 UxPutWidth( rb_wlcmtd_gues7, 76 );
1462 UxPutY( rb_wlcmtd_gues7, 6 );
1463 UxPutX( rb_wlcmtd_gues7, 114 );
1464
1465 UxPutTranslations( rowColumn25, transTable6 );
1466 UxPutPacking( rowColumn25, "pack_tight" );
1467 UxPutOrientation( rowColumn25, "vertical" );
1468 UxPutIsAligned( rowColumn25, "true" );
1469 UxPutEntryAlignment( rowColumn25, "alignment_beginning" );
1470 UxPutBorderWidth( rowColumn25, 0 );
1471 UxPutShadowThickness( rowColumn25, 0 );
1472 UxPutLabelString( rowColumn25, "" );
1473 UxPutEntryBorder( rowColumn25, 0 );
1474 UxPutBackground( rowColumn25, "grey80" );
1475 UxPutRadioBehavior( rowColumn25, "true" );
1476 UxPutHeight( rowColumn25, 74 );
1477 UxPutWidth( rowColumn25, 83 );
1478 UxPutY( rowColumn25, 183 );
1479 UxPutX( rowColumn25, 368 );
1480
1481 UxPutTranslations( rb_wlcmtd_iden2, transTable6 );
1482 UxPutIndicatorSize( rb_wlcmtd_iden2, 16 );
1483 UxPutHighlightOnEnter( rb_wlcmtd_iden2, "true" );
1484 UxPutForeground( rb_wlcmtd_iden2, TextForeground );
1485 UxPutSelectColor( rb_wlcmtd_iden2, SelectColor );
1486 UxPutSet( rb_wlcmtd_iden2, "true" );
1487 UxPutLabelString( rb_wlcmtd_iden2, "1D" );
1488 UxPutFontList( rb_wlcmtd_iden2, TextFont );
1489 UxPutBackground( rb_wlcmtd_iden2, WindowBackground );
1490 UxPutHeight( rb_wlcmtd_iden2, 32 );
1491 UxPutWidth( rb_wlcmtd_iden2, 77 );
1492 UxPutY( rb_wlcmtd_iden2, 3 );
1493 UxPutX( rb_wlcmtd_iden2, 3 );
1494
1495 UxPutTranslations( rb_wlcmtd_gues1, transTable6 );
1496 UxPutIndicatorSize( rb_wlcmtd_gues1, 16 );
1497 UxPutHighlightOnEnter( rb_wlcmtd_gues1, "true" );
1498 UxPutSet( rb_wlcmtd_gues1, "false" );
1499 UxPutForeground( rb_wlcmtd_gues1, TextForeground );
1500 UxPutSelectColor( rb_wlcmtd_gues1, SelectColor );
1501 UxPutLabelString( rb_wlcmtd_gues1, "2D" );
1502 UxPutFontList( rb_wlcmtd_gues1, TextFont );
1503 UxPutBackground( rb_wlcmtd_gues1, WindowBackground );
1504 UxPutHeight( rb_wlcmtd_gues1, 32 );
1505 UxPutWidth( rb_wlcmtd_gues1, 77 );
1506 UxPutY( rb_wlcmtd_gues1, 39 );
1507 UxPutX( rb_wlcmtd_gues1, 3 );
1508
1509 UxPutBackground( separator13, WindowBackground );
1510 UxPutHeight( separator13, 10 );
1511 UxPutWidth( separator13, 512 );
1512 UxPutY( separator13, 392 );
1513 UxPutX( separator13, 8 );
1514
1515 UxPutOrientation( separator14, "vertical" );
1516 UxPutBackground( separator14, WindowBackground );
1517 UxPutHeight( separator14, 88 );
1518 UxPutWidth( separator14, 12 );
1519 UxPutY( separator14, 290 );
1520 UxPutX( separator14, 350 );
1521
1522 UxPutBackground( separator15, WindowBackground );
1523 UxPutHeight( separator15, 10 );
1524 UxPutWidth( separator15, 110 );
1525 UxPutY( separator15, 372 );
1526 UxPutX( separator15, 352 );
1527
1528 UxPutOrientation( separator16, "vertical" );
1529 UxPutBackground( separator16, WindowBackground );
1530 UxPutHeight( separator16, 88 );
1531 UxPutWidth( separator16, 12 );
1532 UxPutY( separator16, 288 );
1533 UxPutX( separator16, 458 );
1534
1535 UxPutOrientation( separator17, "vertical" );
1536 UxPutBackground( separator17, WindowBackground );
1537 UxPutHeight( separator17, 87 );
1538 UxPutWidth( separator17, 12 );
1539 UxPutY( separator17, 171 );
1540 UxPutX( separator17, 358 );
1541
1542 UxPutOrientation( separator18, "vertical" );
1543 UxPutBackground( separator18, WindowBackground );
1544 UxPutHeight( separator18, 93 );
1545 UxPutWidth( separator18, 14 );
1546 UxPutY( separator18, 169 );
1547 UxPutX( separator18, 456 );
1548
1549 UxPutOrientation( separator19, "vertical" );
1550 UxPutBackground( separator19, WindowBackground );
1551 UxPutHeight( separator19, 91 );
1552 UxPutWidth( separator19, 12 );
1553 UxPutY( separator19, 169 );
1554 UxPutX( separator19, 456 );
1555
1556 UxPutForeground( label28, TextForeground );
1557 UxPutAlignment( label28, "alignment_beginning" );
1558 UxPutLabelString( label28, "Visualize" );
1559 UxPutFontList( label28, TextFont );
1560 UxPutBackground( label28, LabelBackground );
1561 UxPutHeight( label28, 30 );
1562 UxPutWidth( label28, 88 );
1563 UxPutY( label28, 276 );
1564 UxPutX( label28, 366 );
1565
1566 UxPutForeground( label31, TextForeground );
1567 UxPutAlignment( label31, "alignment_beginning" );
1568 UxPutLabelString( label31, "Disp. Relation" );
1569 UxPutFontList( label31, TextFont );
1570 UxPutBackground( label31, LabelBackground );
1571 UxPutHeight( label31, 30 );
1572 UxPutWidth( label31, 100 );
1573 UxPutY( label31, 154 );
1574 UxPutX( label31, 362 );
1575
1576 UxPutForeground( menu2_p1, TextForeground );
1577 UxPutBackground( menu2_p1, WindowBackground );
1578 UxPutRowColumnType( menu2_p1, "menu_pulldown" );
1579
1580 UxPutFontList( mn_tol_angstroms1, TextFont );
1581 UxPutLabelString( mn_tol_angstroms1, " Angstroms " );
1582
1583 UxPutFontList( mn_tol_pixels1, TextFont );
1584 UxPutLabelString( mn_tol_pixels1, " Pixels " );
1585
1586 UxPutTranslations( mn_tol1, transTable6 );
1587 UxPutLabelString( mn_tol1, " " );
1588 UxPutSpacing( mn_tol1, 0 );
1589 UxPutMarginWidth( mn_tol1, 0 );
1590 UxPutForeground( mn_tol1, TextForeground );
1591 UxPutBackground( mn_tol1, WindowBackground );
1592 UxPutY( mn_tol1, 124 );
1593 UxPutX( mn_tol1, 350 );
1594 UxPutRowColumnType( mn_tol1, "menu_option" );
1595
1596 UxPutForeground( label18, TextForeground );
1597 UxPutAlignment( label18, "alignment_beginning" );
1598 UxPutLabelString( label18, "Min. and Max. number of iter. :" );
1599 UxPutFontList( label18, TextFont );
1600 UxPutBackground( label18, LabelBackground );
1601 UxPutHeight( label18, 30 );
1602 UxPutWidth( label18, 200 );
1603 UxPutY( label18, 198 );
1604 UxPutX( label18, 13 );
1605
1606 UxPutWidth( pb_main_search33, 46 );
1607 UxPutRecomputeSize( pb_main_search33, "true" );
1608 UxPutLabelString( pb_main_search33, "..." );
1609 UxPutForeground( pb_main_search33, ButtonForeground );
1610 UxPutFontList( pb_main_search33, BoldTextFont );
1611 UxPutBackground( pb_main_search33, ButtonBackground );
1612 UxPutHeight( pb_main_search33, 28 );
1613 UxPutY( pb_main_search33, 8 );
1614 UxPutX( pb_main_search33, 464 );
1615
1616 }
1617
1618 /*******************************************************************************
1619 The 'build_' function creates all the swidgets and X widgets,
1620 and sets their properties to the values specified in the
1621 Property Editor.
1622 *******************************************************************************/
1623
1624 static swidget _Uxbuild_CalibShell()
1625 {
1626 /* Create the swidgets */
1627
1628 CalibShell = UxCreateApplicationShell( "CalibShell", NO_PARENT );
1629 UxPutContext( CalibShell, UxCalibShellContext );
1630
1631 form3 = UxCreateForm( "form3", CalibShell );
1632 rowColumn2 = UxCreateRowColumn( "rowColumn2", form3 );
1633 rb_wlcmtd_iden = UxCreateToggleButton( "rb_wlcmtd_iden", rowColumn2 );
1634 rb_wlcmtd_gues = UxCreateToggleButton( "rb_wlcmtd_gues", rowColumn2 );
1635 label14 = UxCreateLabel( "label14", form3 );
1636 label16 = UxCreateLabel( "label16", form3 );
1637 tf_tol = UxCreateTextField( "tf_tol", form3 );
1638 label17 = UxCreateLabel( "label17", form3 );
1639 tf_dcx1 = UxCreateTextField( "tf_dcx1", form3 );
1640 tf_alpha = UxCreateTextField( "tf_alpha", form3 );
1641 label19 = UxCreateLabel( "label19", form3 );
1642 label20 = UxCreateLabel( "label20", form3 );
1643 tf_maxdev = UxCreateTextField( "tf_maxdev", form3 );
1644 guess_session_label = UxCreateLabel( "guess_session_label", form3 );
1645 separator4 = UxCreateSeparator( "separator4", form3 );
1646 shelp_calib = UxCreateText( "shelp_calib", form3 );
1647 separator5 = UxCreateSeparator( "separator5", form3 );
1648 tf_wlcniter1 = UxCreateTextField( "tf_wlcniter1", form3 );
1649 tf_wlcniter2 = UxCreateTextField( "tf_wlcniter2", form3 );
1650 tg_coropt = UxCreateToggleButton( "tg_coropt", form3 );
1651 form20 = UxCreateForm( "form20", form3 );
1652 pb_calib_calibrate = UxCreatePushButton( "pb_calib_calibrate", form20 );
1653 pushButton40 = UxCreatePushButton( "pushButton40", form20 );
1654 pb_calib_disper = UxCreatePushButton( "pb_calib_disper", form20 );
1655 pb_calib_resid = UxCreatePushButton( "pb_calib_resid", form20 );
1656 pb_calib_spec = UxCreatePushButton( "pb_calib_spec", form20 );
1657 label8 = UxCreateLabel( "label8", form3 );
1658 tf_maxdev1 = UxCreateTextField( "tf_maxdev1", form3 );
1659 tf_maxdev2 = UxCreateTextField( "tf_maxdev2", form3 );
1660 tf_guess1 = UxCreateTextField( "tf_guess1", form3 );
1661 tf_guess2 = UxCreateTextField( "tf_guess2", form3 );
1662 label15 = UxCreateLabel( "label15", form3 );
1663 label26 = UxCreateLabel( "label26", form3 );
1664 rowColumn24 = UxCreateRowColumn( "rowColumn24", form3 );
1665 rb_wlcmtd_iden1 = UxCreateToggleButton( "rb_wlcmtd_iden1", rowColumn24 );
1666 rb_wlcmtd_gues4 = UxCreateToggleButton( "rb_wlcmtd_gues4", rowColumn24 );
1667 rb_wlcmtd_gues5 = UxCreateToggleButton( "rb_wlcmtd_gues5", rowColumn24 );
1668 rb_wlcmtd_gues6 = UxCreateToggleButton( "rb_wlcmtd_gues6", rowColumn24 );
1669 rb_wlcmtd_gues7 = UxCreateToggleButton( "rb_wlcmtd_gues7", rowColumn24 );
1670 rowColumn25 = UxCreateRowColumn( "rowColumn25", form3 );
1671 rb_wlcmtd_iden2 = UxCreateToggleButton( "rb_wlcmtd_iden2", rowColumn25 );
1672 rb_wlcmtd_gues1 = UxCreateToggleButton( "rb_wlcmtd_gues1", rowColumn25 );
1673 separator13 = UxCreateSeparator( "separator13", form3 );
1674 separator14 = UxCreateSeparator( "separator14", form3 );
1675 separator15 = UxCreateSeparator( "separator15", form3 );
1676 separator16 = UxCreateSeparator( "separator16", form3 );
1677 separator17 = UxCreateSeparator( "separator17", form3 );
1678 separator18 = UxCreateSeparator( "separator18", form3 );
1679 separator19 = UxCreateSeparator( "separator19", form3 );
1680 label28 = UxCreateLabel( "label28", form3 );
1681 label31 = UxCreateLabel( "label31", form3 );
1682 menu2_p1 = UxCreateRowColumn( "menu2_p1", form3 );
1683 mn_tol_angstroms1 = UxCreatePushButtonGadget( "mn_tol_angstroms1", menu2_p1 );
1684 mn_tol_pixels1 = UxCreatePushButtonGadget( "mn_tol_pixels1", menu2_p1 );
1685 mn_tol1 = UxCreateRowColumn( "mn_tol1", form3 );
1686 label18 = UxCreateLabel( "label18", form3 );
1687 pb_main_search33 = UxCreatePushButton( "pb_main_search33", form3 );
1688
1689 _Uxinit_CalibShell();
1690
1691 /* Create the X widgets */
1692
1693 UxCreateWidget( CalibShell );
1694 UxCreateWidget( form3 );
1695 UxCreateWidget( rowColumn2 );
1696 UxCreateWidget( rb_wlcmtd_iden );
1697 UxCreateWidget( rb_wlcmtd_gues );
1698 UxPutLeftOffset( label14, 10 );
1699 UxPutLeftAttachment( label14, "attach_form" );
1700 UxCreateWidget( label14 );
1701
1702 UxPutLeftOffset( label16, 10 );
1703 UxPutLeftAttachment( label16, "attach_form" );
1704 UxCreateWidget( label16 );
1705
1706 UxCreateWidget( tf_tol );
1707 UxPutLeftOffset( label17, 10 );
1708 UxPutLeftAttachment( label17, "attach_form" );
1709 UxCreateWidget( label17 );
1710
1711 UxCreateWidget( tf_dcx1 );
1712 UxCreateWidget( tf_alpha );
1713 UxPutLeftOffset( label19, 10 );
1714 UxPutLeftAttachment( label19, "attach_form" );
1715 UxCreateWidget( label19 );
1716
1717 UxPutLeftOffset( label20, 10 );
1718 UxPutLeftAttachment( label20, "attach_form" );
1719 UxCreateWidget( label20 );
1720
1721 UxCreateWidget( tf_maxdev );
1722 UxPutLeftOffset( guess_session_label, 10 );
1723 UxPutLeftAttachment( guess_session_label, "attach_form" );
1724 UxCreateWidget( guess_session_label );
1725
1726 UxCreateWidget( separator4 );
1727 UxCreateWidget( shelp_calib );
1728 UxCreateWidget( separator5 );
1729 UxCreateWidget( tf_wlcniter1 );
1730 UxCreateWidget( tf_wlcniter2 );
1731 UxCreateWidget( tg_coropt );
1732 UxCreateWidget( form20 );
1733 UxCreateWidget( pb_calib_calibrate );
1734 UxCreateWidget( pushButton40 );
1735 UxCreateWidget( pb_calib_disper );
1736 UxCreateWidget( pb_calib_resid );
1737 UxCreateWidget( pb_calib_spec );
1738 UxPutLeftOffset( label8, 10 );
1739 UxPutLeftAttachment( label8, "attach_form" );
1740 UxCreateWidget( label8 );
1741
1742 UxCreateWidget( tf_maxdev1 );
1743 UxCreateWidget( tf_maxdev2 );
1744 UxCreateWidget( tf_guess1 );
1745 UxCreateWidget( tf_guess2 );
1746 UxPutLeftOffset( label15, 10 );
1747 UxPutLeftAttachment( label15, "attach_form" );
1748 UxCreateWidget( label15 );
1749
1750 UxPutLeftOffset( label26, 10 );
1751 UxPutLeftAttachment( label26, "attach_form" );
1752 UxCreateWidget( label26 );
1753
1754 UxCreateWidget( rowColumn24 );
1755 UxCreateWidget( rb_wlcmtd_iden1 );
1756 UxCreateWidget( rb_wlcmtd_gues4 );
1757 UxCreateWidget( rb_wlcmtd_gues5 );
1758 UxCreateWidget( rb_wlcmtd_gues6 );
1759 UxCreateWidget( rb_wlcmtd_gues7 );
1760 UxCreateWidget( rowColumn25 );
1761 UxCreateWidget( rb_wlcmtd_iden2 );
1762 UxCreateWidget( rb_wlcmtd_gues1 );
1763 UxCreateWidget( separator13 );
1764 UxCreateWidget( separator14 );
1765 UxCreateWidget( separator15 );
1766 UxCreateWidget( separator16 );
1767 UxCreateWidget( separator17 );
1768 UxCreateWidget( separator18 );
1769 UxCreateWidget( separator19 );
1770 UxCreateWidget( label28 );
1771 UxCreateWidget( label31 );
1772 UxCreateWidget( menu2_p1 );
1773 UxCreateWidget( mn_tol_angstroms1 );
1774 UxCreateWidget( mn_tol_pixels1 );
1775 UxPutSubMenuId( mn_tol1, "menu2_p1" );
1776 UxCreateWidget( mn_tol1 );
1777
1778 UxCreateWidget( label18 );
1779 UxCreateWidget( pb_main_search33 );
1780
1781 UxAddCallback( rb_wlcmtd_iden, XmNarmCallback,
1782 armCB_rb_wlcmtd_iden,
1783 (XtPointer) UxCalibShellContext );
1784 UxAddCallback( rb_wlcmtd_iden, XmNvalueChangedCallback,
1785 valueChangedCB_rb_wlcmtd_iden,
1786 (XtPointer) UxCalibShellContext );
1787
1788 UxAddCallback( rb_wlcmtd_gues, XmNarmCallback,
1789 armCB_rb_wlcmtd_gues,
1790 (XtPointer) UxCalibShellContext );
1791 UxAddCallback( rb_wlcmtd_gues, XmNvalueChangedCallback,
1792 valueChangedCB_rb_wlcmtd_gues,
1793 (XtPointer) UxCalibShellContext );
1794
1795 UxAddCallback( tf_tol, XmNlosingFocusCallback,
1796 losingFocusCB_tf_tol,
1797 (XtPointer) UxCalibShellContext );
1798
1799 UxAddCallback( tf_dcx1, XmNlosingFocusCallback,
1800 losingFocusCB_tf_dcx1,
1801 (XtPointer) UxCalibShellContext );
1802
1803 UxAddCallback( tf_alpha, XmNlosingFocusCallback,
1804 losingFocusCB_tf_alpha,
1805 (XtPointer) UxCalibShellContext );
1806
1807 UxAddCallback( tf_maxdev, XmNlosingFocusCallback,
1808 losingFocusCB_tf_maxdev,
1809 (XtPointer) UxCalibShellContext );
1810
1811 UxAddCallback( tf_wlcniter1, XmNlosingFocusCallback,
1812 losingFocusCB_tf_wlcniter1,
1813 (XtPointer) UxCalibShellContext );
1814
1815 UxAddCallback( tf_wlcniter2, XmNlosingFocusCallback,
1816 losingFocusCB_tf_wlcniter2,
1817 (XtPointer) UxCalibShellContext );
1818
1819 UxAddCallback( tg_coropt, XmNvalueChangedCallback,
1820 valueChangedCB_tg_coropt,
1821 (XtPointer) UxCalibShellContext );
1822
1823 UxAddCallback( pb_calib_calibrate, XmNactivateCallback,
1824 activateCB_pb_calib_calibrate,
1825 (XtPointer) UxCalibShellContext );
1826
1827 UxAddCallback( pushButton40, XmNactivateCallback,
1828 activateCB_pushButton40,
1829 (XtPointer) UxCalibShellContext );
1830
1831 UxAddCallback( pb_calib_disper, XmNactivateCallback,
1832 activateCB_pb_calib_disper,
1833 (XtPointer) UxCalibShellContext );
1834
1835 UxAddCallback( pb_calib_resid, XmNactivateCallback,
1836 activateCB_pb_calib_resid,
1837 (XtPointer) UxCalibShellContext );
1838
1839 UxAddCallback( pb_calib_spec, XmNactivateCallback,
1840 activateCB_pb_calib_spec,
1841 (XtPointer) UxCalibShellContext );
1842
1843 UxAddCallback( tf_maxdev1, XmNlosingFocusCallback,
1844 losingFocusCB_tf_maxdev1,
1845 (XtPointer) UxCalibShellContext );
1846
1847 UxAddCallback( tf_maxdev2, XmNlosingFocusCallback,
1848 losingFocusCB_tf_maxdev2,
1849 (XtPointer) UxCalibShellContext );
1850
1851 UxAddCallback( tf_guess1, XmNlosingFocusCallback,
1852 losingFocusCB_tf_guess1,
1853 (XtPointer) UxCalibShellContext );
1854
1855 UxAddCallback( tf_guess2, XmNlosingFocusCallback,
1856 losingFocusCB_tf_guess2,
1857 (XtPointer) UxCalibShellContext );
1858
1859 UxAddCallback( rb_wlcmtd_iden1, XmNarmCallback,
1860 armCB_rb_wlcmtd_iden1,
1861 (XtPointer) UxCalibShellContext );
1862 UxAddCallback( rb_wlcmtd_iden1, XmNvalueChangedCallback,
1863 valueChangedCB_rb_wlcmtd_iden1,
1864 (XtPointer) UxCalibShellContext );
1865
1866 UxAddCallback( rb_wlcmtd_gues4, XmNarmCallback,
1867 armCB_rb_wlcmtd_gues4,
1868 (XtPointer) UxCalibShellContext );
1869 UxAddCallback( rb_wlcmtd_gues4, XmNvalueChangedCallback,
1870 valueChangedCB_rb_wlcmtd_gues4,
1871 (XtPointer) UxCalibShellContext );
1872
1873 UxAddCallback( rb_wlcmtd_gues5, XmNarmCallback,
1874 armCB_rb_wlcmtd_gues5,
1875 (XtPointer) UxCalibShellContext );
1876 UxAddCallback( rb_wlcmtd_gues5, XmNvalueChangedCallback,
1877 valueChangedCB_rb_wlcmtd_gues5,
1878 (XtPointer) UxCalibShellContext );
1879
1880 UxAddCallback( rb_wlcmtd_gues6, XmNarmCallback,
1881 armCB_rb_wlcmtd_gues6,
1882 (XtPointer) UxCalibShellContext );
1883 UxAddCallback( rb_wlcmtd_gues6, XmNvalueChangedCallback,
1884 valueChangedCB_rb_wlcmtd_gues6,
1885 (XtPointer) UxCalibShellContext );
1886
1887 UxAddCallback( rb_wlcmtd_gues7, XmNarmCallback,
1888 armCB_rb_wlcmtd_gues7,
1889 (XtPointer) UxCalibShellContext );
1890 UxAddCallback( rb_wlcmtd_gues7, XmNvalueChangedCallback,
1891 valueChangedCB_rb_wlcmtd_gues7,
1892 (XtPointer) UxCalibShellContext );
1893
1894 UxAddCallback( rb_wlcmtd_iden2, XmNarmCallback,
1895 armCB_rb_wlcmtd_iden2,
1896 (XtPointer) UxCalibShellContext );
1897 UxAddCallback( rb_wlcmtd_iden2, XmNvalueChangedCallback,
1898 valueChangedCB_rb_wlcmtd_iden2,
1899 (XtPointer) UxCalibShellContext );
1900
1901 UxAddCallback( rb_wlcmtd_gues1, XmNarmCallback,
1902 armCB_rb_wlcmtd_gues1,
1903 (XtPointer) UxCalibShellContext );
1904 UxAddCallback( rb_wlcmtd_gues1, XmNvalueChangedCallback,
1905 valueChangedCB_rb_wlcmtd_gues1,
1906 (XtPointer) UxCalibShellContext );
1907
1908 UxAddCallback( mn_tol_angstroms1, XmNactivateCallback,
1909 activateCB_mn_tol_angstroms1,
1910 (XtPointer) UxCalibShellContext );
1911
1912 UxAddCallback( mn_tol_pixels1, XmNactivateCallback,
1913 activateCB_mn_tol_pixels1,
1914 (XtPointer) UxCalibShellContext );
1915
1916 UxAddCallback( pb_main_search33, XmNactivateCallback,
1917 activateCB_pb_main_search33,
1918 (XtPointer) UxCalibShellContext );
1919
1920
1921 /* Finally, call UxRealizeInterface to create the X windows
1922 for the widgets created above. */
1923
1924 UxRealizeInterface( CalibShell );
1925
1926 return ( CalibShell );
1927 }
1928
1929 /*******************************************************************************
1930 The following function includes the code that was entered
1931 in the 'Initial Code' and 'Final Code' sections of the
1932 Declarations Editor. This function is called from the
1933 'Interface function' below.
1934 *******************************************************************************/
1935
1936 static swidget _Ux_create_CalibShell()
1937 {
1938 swidget rtrn;
1939 _UxCCalibShell *UxContext;
1940
1941 UxCalibShellContext = UxContext =
1942 (_UxCCalibShell *) UxMalloc( sizeof(_UxCCalibShell) );
1943
1944 rtrn = _Uxbuild_CalibShell();
1945
1946 return(rtrn);
1947 }
1948
1949 /*******************************************************************************
1950 The following is the 'Interface function' which is the
1951 external entry point for creating this interface.
1952 This function should be called from your application or from
1953 a callback function.
1954 *******************************************************************************/
1955
1956 swidget create_CalibShell()
1957 {
1958 swidget _Uxrtrn;
1959 static int _Uxinit = 0;
1960
1961 if ( ! _Uxinit )
1962 {
1963 static XtActionsRec _Uxactions[] = {
1964 { "WriteHelp", action_WriteHelp },
1965 { "ClearHelp", action_ClearHelp },
1966 { "ClearShort", action_ClearShort },
1967 { "HelpShort", action_HelpShort },
1968 { "ExtendedHelp", action_ExtendedHelp },
1969 { "FileSelectACT", action_FileSelectACT }
1970 };
1971
1972 XtAppAddActions( UxAppContext,
1973 _Uxactions,
1974 XtNumber(_Uxactions) );
1975
1976 _Uxinit = 1;
1977 }
1978
1979 _Uxrtrn = _Ux_create_CalibShell();
1980
1981 return ( _Uxrtrn );
1982 }
1983
1984 /*******************************************************************************
1985 END OF FILE
1986 *******************************************************************************/
1987