Debian Codegraph @

gui/XEchelle/src/MainShell.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 Massachusetss Ave, Cambridge,
17 MA 02139, USA.
18
19 Corresponding 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 MainShell.c
31
32
33 .VERSION
34 090825 last modif
35
36 *******************************************************************************/
37
38 #include <stdlib.h>
39 #include <stdio.h>
40
41 #include "UxLib.h"
42 #include "UxTogB.h"
43 #include "UxScList.h"
44 #include "UxLabel.h"
45 #include "UxTextF.h"
46 #include "UxScText.h"
47 #include "UxScrW.h"
48 #include "UxText.h"
49 #include "UxPushB.h"
50 #include "UxForm.h"
51 #include "UxCascB.h"
52 #include "UxSepG.h"
53 #include "UxSep.h"
54 #include "UxPushBG.h"
55 #include "UxRowCol.h"
56 #include "UxMainW.h"
57 #include "UxApplSh.h"
58
59 /*******************************************************************************
60 Includes, Defines, and Global variables from the Declarations Editor:
61 *******************************************************************************/
62
63 #include <ExternResources.h>
64 #include <proto_xech.h>
65
66 #include <midas_def.h>
67
68 void FilterFiles();
69 int GetSelection();
70
71 /*******************************************************************************
72 The definition of the context structure:
73 If you create multiple instances of your interface, the context
74 structure ensures that your callbacks use the variables for the
75 correct instance.
76
77 For each swidget in the interface, each argument to the Interface
78 function, and each variable in the Instance Specific section of the
79 Declarations Editor, there is an entry in the context structure.
80 and a #define. The #define makes the variable name refer to the
81 corresponding entry in the context structure.
82 *******************************************************************************/
83
84 typedef struct
85 {
86 swidget UxApplicWindow;
87 swidget UxMainWindow;
88 swidget Uxmenu1;
89 swidget Uxmenu1_p1;
90 swidget Uxmenu1_p1_b1;
91 swidget Uxmenu1_p1_b2;
92 swidget Uxmenu1_p1_b3;
93 swidget Uxmenu1_p1_b5;
94 swidget Uxmenu1_p1_b6;
95 swidget Uxmenu1_p1_b7;
96 swidget Uxmenu1_p1_b8;
97 swidget Uxmenu1_p1_b4;
98 swidget Uxmenu1_top_b1;
99 swidget Uxmenu1_p4;
100 swidget Uxmenu1_p4_b1;
101 swidget Uxmenu1_p4_b2;
102 swidget Uxmenu1_p4_b8;
103 swidget Uxmenu1_p4_b10;
104 swidget Uxmenu1_p4_b13;
105 swidget Uxmenu1_p4_b12;
106 swidget Uxmenu1_p4_b3;
107 swidget Uxmenu1_p4_b4;
108 swidget Uxmenu1_p4_b9;
109 swidget Uxmenu1_p4_b5;
110 swidget Uxmenu1_p4_b11;
111 swidget Uxmenu1_p4_b14;
112 swidget Uxmenu1_p4_b15;
113 swidget Uxmenu1_top_b4;
114 swidget Uxmenu1_p5;
115 swidget Uxmenu_help_context;
116 swidget Uxmenu_help_help;
117 swidget Uxmenu1_p5_b5;
118 swidget Uxmenu_help_tutorial;
119 swidget Uxmenu_help_version;
120 swidget Uxmenu1_top_b5;
121 swidget Uxform1;
122 swidget Uxform5;
123 swidget Uxpb_main_batch;
124 swidget Uxpb_main_ident;
125 swidget Uxpb_main_batch1;
126 swidget Uxpb_main_batch2;
127 swidget Uxpb_main_batch3;
128 swidget Uxseparator12;
129 swidget Uxshelp_main;
130 swidget Uxseparator1;
131 swidget Uxform22;
132 swidget UxListWindow1;
133 swidget UxscrolledList1;
134 swidget Uxtf_wrang1;
135 swidget Uxlabel3;
136 swidget Uxlabel4;
137 swidget Uxtf_wrang2;
138 swidget Uxform23;
139 swidget Uxlabel2;
140 swidget Uxtf_session;
141 swidget Uxpb_main_batch4;
142 swidget Uxform24;
143 swidget Uxlabel5;
144 swidget Uxtf_session1;
145 swidget Uxlabel32;
146 swidget Uxlabel39;
147 swidget UxscrolledWindow4;
148 swidget UxscrolledList4;
149 swidget UxrowColumn11;
150 swidget Uxlabel7;
151 swidget UxrowColumn13;
152 swidget UxtoggleButton5;
153 swidget Uxpb_main_search4;
154 swidget UxrowColumn14;
155 swidget UxtoggleButton6;
156 swidget Uxpb_main_search5;
157 swidget UxrowColumn15;
158 swidget UxtoggleButton7;
159 swidget Uxpb_main_search6;
160 swidget UxrowColumn16;
161 swidget UxtoggleButton8;
162 swidget Uxpb_main_search7;
163 swidget UxrowColumn17;
164 swidget UxtoggleButton9;
165 swidget Uxmenu2_p7;
166 swidget Uxmn_tol_angstroms7;
167 swidget Uxmn_tol_pixels7;
168 swidget Uxmenu2_p7_b3;
169 swidget Uxmenu2_p7_b4;
170 swidget Uxmenu2_p7_b5;
171 swidget Uxmenu2_p7_b6;
172 swidget Uxmn_tol7;
173 swidget Uxlabel1;
174 swidget UxrowColumn18;
175 swidget UxtoggleButton3;
176 swidget Uxpb_main_search2;
177 swidget UxrowColumn19;
178 swidget UxtoggleButton10;
179 swidget Uxpb_main_search9;
180 swidget UxrowColumn20;
181 swidget UxtoggleButton11;
182 swidget Uxpb_main_search10;
183 swidget UxrowColumn21;
184 swidget UxtoggleButton12;
185 swidget Uxpb_main_search11;
186 swidget UxrowColumn9;
187 swidget UxtoggleButton1;
188 swidget Uxpb_main_search1;
189 swidget UxrowColumn10;
190 swidget UxtoggleButton2;
191 swidget Uxpb_main_search3;
192 swidget UxrowColumn12;
193 swidget UxtoggleButton4;
194 swidget Uxpb_main_search12;
195 swidget UxrowColumn22;
196 swidget UxtoggleButton13;
197 swidget Uxpb_main_search13;
198 } _UxCApplicWindow;
199
200 #define ApplicWindow UxApplicWindowContext->UxApplicWindow
201 #define MainWindow UxApplicWindowContext->UxMainWindow
202 #define menu1 UxApplicWindowContext->Uxmenu1
203 #define menu1_p1 UxApplicWindowContext->Uxmenu1_p1
204 #define menu1_p1_b1 UxApplicWindowContext->Uxmenu1_p1_b1
205 #define menu1_p1_b2 UxApplicWindowContext->Uxmenu1_p1_b2
206 #define menu1_p1_b3 UxApplicWindowContext->Uxmenu1_p1_b3
207 #define menu1_p1_b5 UxApplicWindowContext->Uxmenu1_p1_b5
208 #define menu1_p1_b6 UxApplicWindowContext->Uxmenu1_p1_b6
209 #define menu1_p1_b7 UxApplicWindowContext->Uxmenu1_p1_b7
210 #define menu1_p1_b8 UxApplicWindowContext->Uxmenu1_p1_b8
211 #define menu1_p1_b4 UxApplicWindowContext->Uxmenu1_p1_b4
212 #define menu1_top_b1 UxApplicWindowContext->Uxmenu1_top_b1
213 #define menu1_p4 UxApplicWindowContext->Uxmenu1_p4
214 #define menu1_p4_b1 UxApplicWindowContext->Uxmenu1_p4_b1
215 #define menu1_p4_b2 UxApplicWindowContext->Uxmenu1_p4_b2
216 #define menu1_p4_b8 UxApplicWindowContext->Uxmenu1_p4_b8
217 #define menu1_p4_b10 UxApplicWindowContext->Uxmenu1_p4_b10
218 #define menu1_p4_b13 UxApplicWindowContext->Uxmenu1_p4_b13
219 #define menu1_p4_b12 UxApplicWindowContext->Uxmenu1_p4_b12
220 #define menu1_p4_b3 UxApplicWindowContext->Uxmenu1_p4_b3
221 #define menu1_p4_b4 UxApplicWindowContext->Uxmenu1_p4_b4
222 #define menu1_p4_b9 UxApplicWindowContext->Uxmenu1_p4_b9
223 #define menu1_p4_b5 UxApplicWindowContext->Uxmenu1_p4_b5
224 #define menu1_p4_b11 UxApplicWindowContext->Uxmenu1_p4_b11
225 #define menu1_p4_b14 UxApplicWindowContext->Uxmenu1_p4_b14
226 #define menu1_p4_b15 UxApplicWindowContext->Uxmenu1_p4_b15
227 #define menu1_top_b4 UxApplicWindowContext->Uxmenu1_top_b4
228 #define menu1_p5 UxApplicWindowContext->Uxmenu1_p5
229 #define menu_help_context UxApplicWindowContext->Uxmenu_help_context
230 #define menu_help_help UxApplicWindowContext->Uxmenu_help_help
231 #define menu1_p5_b5 UxApplicWindowContext->Uxmenu1_p5_b5
232 #define menu_help_tutorial UxApplicWindowContext->Uxmenu_help_tutorial
233 #define menu_help_version UxApplicWindowContext->Uxmenu_help_version
234 #define menu1_top_b5 UxApplicWindowContext->Uxmenu1_top_b5
235 #define form1 UxApplicWindowContext->Uxform1
236 #define form5 UxApplicWindowContext->Uxform5
237 #define pb_main_batch UxApplicWindowContext->Uxpb_main_batch
238 #define pb_main_ident UxApplicWindowContext->Uxpb_main_ident
239 #define pb_main_batch1 UxApplicWindowContext->Uxpb_main_batch1
240 #define pb_main_batch2 UxApplicWindowContext->Uxpb_main_batch2
241 #define pb_main_batch3 UxApplicWindowContext->Uxpb_main_batch3
242 #define separator12 UxApplicWindowContext->Uxseparator12
243 #define shelp_main UxApplicWindowContext->Uxshelp_main
244 #define separator1 UxApplicWindowContext->Uxseparator1
245 #define form22 UxApplicWindowContext->Uxform22
246 #define ListWindow1 UxApplicWindowContext->UxListWindow1
247 #define scrolledList1 UxApplicWindowContext->UxscrolledList1
248 #define tf_wrang1 UxApplicWindowContext->Uxtf_wrang1
249 #define label3 UxApplicWindowContext->Uxlabel3
250 #define label4 UxApplicWindowContext->Uxlabel4
251 #define tf_wrang2 UxApplicWindowContext->Uxtf_wrang2
252 #define form23 UxApplicWindowContext->Uxform23
253 #define label2 UxApplicWindowContext->Uxlabel2
254 #define tf_session UxApplicWindowContext->Uxtf_session
255 #define pb_main_batch4 UxApplicWindowContext->Uxpb_main_batch4
256 #define form24 UxApplicWindowContext->Uxform24
257 #define label5 UxApplicWindowContext->Uxlabel5
258 #define tf_session1 UxApplicWindowContext->Uxtf_session1
259 #define label32 UxApplicWindowContext->Uxlabel32
260 #define label39 UxApplicWindowContext->Uxlabel39
261 #define scrolledWindow4 UxApplicWindowContext->UxscrolledWindow4
262 #define scrolledList4 UxApplicWindowContext->UxscrolledList4
263 #define rowColumn11 UxApplicWindowContext->UxrowColumn11
264 #define label7 UxApplicWindowContext->Uxlabel7
265 #define rowColumn13 UxApplicWindowContext->UxrowColumn13
266 #define toggleButton5 UxApplicWindowContext->UxtoggleButton5
267 #define pb_main_search4 UxApplicWindowContext->Uxpb_main_search4
268 #define rowColumn14 UxApplicWindowContext->UxrowColumn14
269 #define toggleButton6 UxApplicWindowContext->UxtoggleButton6
270 #define pb_main_search5 UxApplicWindowContext->Uxpb_main_search5
271 #define rowColumn15 UxApplicWindowContext->UxrowColumn15
272 #define toggleButton7 UxApplicWindowContext->UxtoggleButton7
273 #define pb_main_search6 UxApplicWindowContext->Uxpb_main_search6
274 #define rowColumn16 UxApplicWindowContext->UxrowColumn16
275 #define toggleButton8 UxApplicWindowContext->UxtoggleButton8
276 #define pb_main_search7 UxApplicWindowContext->Uxpb_main_search7
277 #define rowColumn17 UxApplicWindowContext->UxrowColumn17
278 #define toggleButton9 UxApplicWindowContext->UxtoggleButton9
279 #define menu2_p7 UxApplicWindowContext->Uxmenu2_p7
280 #define mn_tol_angstroms7 UxApplicWindowContext->Uxmn_tol_angstroms7
281 #define mn_tol_pixels7 UxApplicWindowContext->Uxmn_tol_pixels7
282 #define menu2_p7_b3 UxApplicWindowContext->Uxmenu2_p7_b3
283 #define menu2_p7_b4 UxApplicWindowContext->Uxmenu2_p7_b4
284 #define menu2_p7_b5 UxApplicWindowContext->Uxmenu2_p7_b5
285 #define menu2_p7_b6 UxApplicWindowContext->Uxmenu2_p7_b6
286 #define mn_tol7 UxApplicWindowContext->Uxmn_tol7
287 #define label1 UxApplicWindowContext->Uxlabel1
288 #define rowColumn18 UxApplicWindowContext->UxrowColumn18
289 #define toggleButton3 UxApplicWindowContext->UxtoggleButton3
290 #define pb_main_search2 UxApplicWindowContext->Uxpb_main_search2
291 #define rowColumn19 UxApplicWindowContext->UxrowColumn19
292 #define toggleButton10 UxApplicWindowContext->UxtoggleButton10
293 #define pb_main_search9 UxApplicWindowContext->Uxpb_main_search9
294 #define rowColumn20 UxApplicWindowContext->UxrowColumn20
295 #define toggleButton11 UxApplicWindowContext->UxtoggleButton11
296 #define pb_main_search10 UxApplicWindowContext->Uxpb_main_search10
297 #define rowColumn21 UxApplicWindowContext->UxrowColumn21
298 #define toggleButton12 UxApplicWindowContext->UxtoggleButton12
299 #define pb_main_search11 UxApplicWindowContext->Uxpb_main_search11
300 #define rowColumn9 UxApplicWindowContext->UxrowColumn9
301 #define toggleButton1 UxApplicWindowContext->UxtoggleButton1
302 #define pb_main_search1 UxApplicWindowContext->Uxpb_main_search1
303 #define rowColumn10 UxApplicWindowContext->UxrowColumn10
304 #define toggleButton2 UxApplicWindowContext->UxtoggleButton2
305 #define pb_main_search3 UxApplicWindowContext->Uxpb_main_search3
306 #define rowColumn12 UxApplicWindowContext->UxrowColumn12
307 #define toggleButton4 UxApplicWindowContext->UxtoggleButton4
308 #define pb_main_search12 UxApplicWindowContext->Uxpb_main_search12
309 #define rowColumn22 UxApplicWindowContext->UxrowColumn22
310 #define toggleButton13 UxApplicWindowContext->UxtoggleButton13
311 #define pb_main_search13 UxApplicWindowContext->Uxpb_main_search13
312
313 static _UxCApplicWindow *UxApplicWindowContext;
314
315 extern void DisplayShortHelp(), DisplayExtendedHelp(), SetFileList();
316 extern void MidasCommand(), PopupLong(), InitAllFields();
317 extern void WidgetLeave(), WidgetEnter();
318
319 extern int RadioSet(), PopupList(), AppendDialogText();
320
321
322
323 /*******************************************************************************
324 The following are translation tables.
325 *******************************************************************************/
326
327 static char *transTable2 = "#override\n\
328 <Btn3Down>:ExtendedHelp()\n\
329 <EnterWindow>:HelpShort()\n\
330 <LeaveWindow>:ClearShort()\n";
331
332 static char *DirList = "#override\n\
333 <Btn1Up>:UpdateDirectory()\n";
334
335 /*******************************************************************************
336 Forward declarations of functions that are defined later in this file.
337 *******************************************************************************/
338
339 swidget create_ApplicWindow();
340
341 /*******************************************************************************
342 Auxiliary code from the Declarations Editor:
343 *******************************************************************************/
344
345 void FilterFiles(node)
346
347 char *node;
348
349 {
350 WGet_all_dirs(node);
351 WGet_all_files();
352 }
353
354 int CheckStatus(sw)
355
356 swidget sw;
357 {
358 char status[20];
359 strcpy(status,UxGetSet(sw));
360 if (status[0] == 't') return(TRUE);
361 else return(FALSE);
362 }
363
364 /*******************************************************************************
365 The following are Action functions.
366 *******************************************************************************/
367
368 static void action_WriteHelp( UxWidget, UxEvent, UxParams, p_UxNumParams )
369 Widget UxWidget;
370 XEvent *UxEvent;
371 String *UxParams;
372 Cardinal *p_UxNumParams;
373 {
374 _UxCApplicWindow *UxSaveCtx, *UxContext;
375 swidget UxThisWidget;
376
377 UxThisWidget = UxWidgetToSwidget( UxWidget );
378 UxSaveCtx = UxApplicWindowContext;
379 UxApplicWindowContext = UxContext =
380 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
381 {
382 DisplayShortHelp(UxWidget);
383 }
384 UxApplicWindowContext = UxSaveCtx;
385 }
386
387 static void action_ClearHelp( UxWidget, UxEvent, UxParams, p_UxNumParams )
388 Widget UxWidget;
389 XEvent *UxEvent;
390 String *UxParams;
391 Cardinal *p_UxNumParams;
392 {
393 _UxCApplicWindow *UxSaveCtx, *UxContext;
394 swidget UxThisWidget;
395
396 UxThisWidget = UxWidgetToSwidget( UxWidget );
397 UxSaveCtx = UxApplicWindowContext;
398 UxApplicWindowContext = UxContext =
399 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
400 {
401 /*
402 UxPutText(UxFindSwidget("shelp_main"), "");
403 UxPutText(UxFindSwidget("shelp_search"), "");
404 UxPutText(UxFindSwidget("shelp_calib"), "");
405 UxPutText(UxFindSwidget("shelp_rebin"), "");
406 UxPutText(UxFindSwidget("shelp_extract"), "");
407 UxPutText(UxFindSwidget("shelp_flux"), "");
408 */
409 }
410 UxApplicWindowContext = UxSaveCtx;
411 }
412
413 static void action_UpdateDirectory( UxWidget, UxEvent, UxParams, p_UxNumParams )
414 Widget UxWidget;
415 XEvent *UxEvent;
416 String *UxParams;
417 Cardinal *p_UxNumParams;
418 {
419 _UxCApplicWindow *UxSaveCtx, *UxContext;
420 swidget UxThisWidget;
421
422 UxThisWidget = UxWidgetToSwidget( UxWidget );
423 UxSaveCtx = UxApplicWindowContext;
424 UxApplicWindowContext = UxContext =
425 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
426 {
427
428 char node[80];
429
430 /* if (XmTextGetSelection(UxWidget) == NULL) return; */
431 strcpy(node,
432 XmTextGetSelection(UxWidget));
433 XmTextClearSelection(UxWidget,XtLastTimestampProcessed(UxDisplay));
434
435 node[strlen(node)-1] = '\0';
436 WGet_all_dirs(node);
437 WChange_Midas_dir();
438 WGet_all_files();
439
440 }
441 UxApplicWindowContext = UxSaveCtx;
442 }
443
444 static void action_ClearShort( UxWidget, UxEvent, UxParams, p_UxNumParams )
445 Widget UxWidget;
446 XEvent *UxEvent;
447 String *UxParams;
448 Cardinal *p_UxNumParams;
449 {
450 _UxCApplicWindow *UxSaveCtx, *UxContext;
451 swidget UxThisWidget;
452
453 UxThisWidget = UxWidgetToSwidget( UxWidget );
454 UxSaveCtx = UxApplicWindowContext;
455 UxApplicWindowContext = UxContext =
456 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
457 {WidgetLeave(UxWidget);}
458 UxApplicWindowContext = UxSaveCtx;
459 }
460
461 static void action_HelpShort( UxWidget, UxEvent, UxParams, p_UxNumParams )
462 Widget UxWidget;
463 XEvent *UxEvent;
464 String *UxParams;
465 Cardinal *p_UxNumParams;
466 {
467 _UxCApplicWindow *UxSaveCtx, *UxContext;
468 swidget UxThisWidget;
469
470 UxThisWidget = UxWidgetToSwidget( UxWidget );
471 UxSaveCtx = UxApplicWindowContext;
472 UxApplicWindowContext = UxContext =
473 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
474 {WidgetEnter(UxWidget);}
475 UxApplicWindowContext = UxSaveCtx;
476 }
477
478 static void action_ExtendedHelp( UxWidget, UxEvent, UxParams, p_UxNumParams )
479 Widget UxWidget;
480 XEvent *UxEvent;
481 String *UxParams;
482 Cardinal *p_UxNumParams;
483 {
484 _UxCApplicWindow *UxSaveCtx, *UxContext;
485 swidget UxThisWidget;
486
487 UxThisWidget = UxWidgetToSwidget( UxWidget );
488 UxSaveCtx = UxApplicWindowContext;
489 UxApplicWindowContext = UxContext =
490 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
491 {
492 DisplayExtendedHelp(UxWidget);
493 }
494 UxApplicWindowContext = UxSaveCtx;
495 }
496
497 static void action_FileSelectACT( UxWidget, UxEvent, UxParams, p_UxNumParams )
498 Widget UxWidget;
499 XEvent *UxEvent;
500 String *UxParams;
501 Cardinal *p_UxNumParams;
502 {
503 _UxCApplicWindow *UxSaveCtx, *UxContext;
504 swidget UxThisWidget;
505
506 UxThisWidget = UxWidgetToSwidget( UxWidget );
507 UxSaveCtx = UxApplicWindowContext;
508 UxApplicWindowContext = UxContext =
509 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
510 {
511 #include <xm_defs.h>
512 #include <spec_comm.h>
513
514 extern swidget FileListInterface, TextFieldSwidget;
515 extern Widget FileListWidget;
516 extern char DirSpecs[];
517 extern int ListType;
518
519 int strip = 1; /* strip off */
520
521 TextFieldSwidget = UxThisWidget;
522
523 if ( UxWidget == UxGetWidget(UxFindSwidget("tf_lincat")) ) {
524 SET_LIST_TITLE("Enter line catalog");
525 ListType = LIST_LINCAT;
526 }
527 else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_guess")) ) {
528 SET_LIST_TITLE("Enter guess table");
529 ListType = LIST_GUESS;
530 }
531 else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_flux_tbl")) ) {
532 SET_LIST_TITLE("Enter flux table");
533 ListType = LIST_FLUX_TBL;
534 }
535 else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_extin_tbl")) ) {
536 SET_LIST_TITLE("Enter extinction table");
537 ListType = LIST_EXTIN_TBL;
538 }
539
540 strcpy(DirSpecs, "*.tbl");
541 SetFileList(FileListWidget, strip, DirSpecs);
542 UxPopupInterface(FileListInterface, exclusive_grab);
543
544 }
545 UxApplicWindowContext = UxSaveCtx;
546 }
547
548 /*******************************************************************************
549 The following are callback functions.
550 *******************************************************************************/
551
552 static void activateCB_menu1_p1_b1( UxWidget, UxClientData, UxCallbackArg )
553 Widget UxWidget;
554 XtPointer UxClientData, UxCallbackArg;
555 {
556 _UxCApplicWindow *UxSaveCtx, *UxContext;
557 swidget UxThisWidget;
558
559 UxThisWidget = UxWidgetToSwidget( UxWidget );
560 UxSaveCtx = UxApplicWindowContext;
561 UxApplicWindowContext = UxContext =
562 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
563 {
564 #include <spec_comm.h>
565
566 PopupList(LIST_SESSION);
567 }
568 UxApplicWindowContext = UxSaveCtx;
569 }
570
571 static void activateCB_menu1_p1_b2( UxWidget, UxClientData, UxCallbackArg )
572 Widget UxWidget;
573 XtPointer UxClientData, UxCallbackArg;
574 {
575 _UxCApplicWindow *UxSaveCtx, *UxContext;
576 swidget UxThisWidget;
577
578 UxThisWidget = UxWidgetToSwidget( UxWidget );
579 UxSaveCtx = UxApplicWindowContext;
580 UxApplicWindowContext = UxContext =
581 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
582 {
583 #include <spec_comm.h>
584
585 extern char Session[];
586 char command[256];
587
588 sprintf(command, "%s%s", C_SAVE, Session);
589 AppendDialogText(command);
590 }
591 UxApplicWindowContext = UxSaveCtx;
592 }
593
594 static void activateCB_menu1_p1_b3( UxWidget, UxClientData, UxCallbackArg )
595 Widget UxWidget;
596 XtPointer UxClientData, UxCallbackArg;
597 {
598 _UxCApplicWindow *UxSaveCtx, *UxContext;
599 swidget UxThisWidget;
600
601 UxThisWidget = UxWidgetToSwidget( UxWidget );
602 UxSaveCtx = UxApplicWindowContext;
603 UxApplicWindowContext = UxContext =
604 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
605 {
606 #include <xm_defs.h>
607 #include <spec_comm.h>
608
609 extern int DialogType;
610 extern char Session[];
611
612 SET_DIALOG_PROMPT("Output parameters table :");
613
614 XmTextSetString(UxGetWidget(UxFindSwidget("tf_file_dialog")), Session);
615 DialogType = DIALOG_SESSION;
616 UxPopupInterface(UxFindSwidget("file_dialog"), exclusive_grab);
617 }
618 UxApplicWindowContext = UxSaveCtx;
619 }
620
621 static void activateCB_menu1_p1_b6( UxWidget, UxClientData, UxCallbackArg )
622 Widget UxWidget;
623 XtPointer UxClientData, UxCallbackArg;
624 {
625 _UxCApplicWindow *UxSaveCtx, *UxContext;
626 swidget UxThisWidget;
627
628 UxThisWidget = UxWidgetToSwidget( UxWidget );
629 UxSaveCtx = UxApplicWindowContext;
630 UxApplicWindowContext = UxContext =
631 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
632 {AppendDialogText("INIT/ECHELLE");
633 AppendDialogText("SYNCHRO/ECHELLE");
634 InitAllFields();
635 }
636 UxApplicWindowContext = UxSaveCtx;
637 }
638
639 static void activateCB_menu1_p1_b7( UxWidget, UxClientData, UxCallbackArg )
640 Widget UxWidget;
641 XtPointer UxClientData, UxCallbackArg;
642 {
643 _UxCApplicWindow *UxSaveCtx, *UxContext;
644 swidget UxThisWidget;
645
646 UxThisWidget = UxWidgetToSwidget( UxWidget );
647 UxSaveCtx = UxApplicWindowContext;
648 UxApplicWindowContext = UxContext =
649 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
650 {AppendDialogText("Synchron/ECHELLE");
651 InitAllFields();
652 }
653 UxApplicWindowContext = UxSaveCtx;
654 }
655
656 static void activateCB_menu1_p1_b4( UxWidget, UxClientData, UxCallbackArg )
657 Widget UxWidget;
658 XtPointer UxClientData, UxCallbackArg;
659 {
660 _UxCApplicWindow *UxSaveCtx, *UxContext;
661 swidget UxThisWidget;
662
663 UxThisWidget = UxWidgetToSwidget( UxWidget );
664 UxSaveCtx = UxApplicWindowContext;
665 UxApplicWindowContext = UxContext =
666 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
667 {exit(0);}
668 UxApplicWindowContext = UxSaveCtx;
669 }
670
671 static void activateCB_menu1_p4_b1( UxWidget, UxClientData, UxCallbackArg )
672 Widget UxWidget;
673 XtPointer UxClientData, UxCallbackArg;
674 {
675 _UxCApplicWindow *UxSaveCtx, *UxContext;
676 swidget UxThisWidget;
677
678 UxThisWidget = UxWidgetToSwidget( UxWidget );
679 UxSaveCtx = UxApplicWindowContext;
680 UxApplicWindowContext = UxContext =
681 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
682 AppendDialogText("create/display");
683 UxApplicWindowContext = UxSaveCtx;
684 }
685
686 static void activateCB_menu1_p4_b2( UxWidget, UxClientData, UxCallbackArg )
687 Widget UxWidget;
688 XtPointer UxClientData, UxCallbackArg;
689 {
690 _UxCApplicWindow *UxSaveCtx, *UxContext;
691 swidget UxThisWidget;
692
693 UxThisWidget = UxWidgetToSwidget( UxWidget );
694 UxSaveCtx = UxApplicWindowContext;
695 UxApplicWindowContext = UxContext =
696 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
697 AppendDialogText("graph/spec");
698 UxApplicWindowContext = UxSaveCtx;
699 }
700
701 static void activateCB_menu1_p4_b10( UxWidget, UxClientData, UxCallbackArg )
702 Widget UxWidget;
703 XtPointer UxClientData, UxCallbackArg;
704 {
705 _UxCApplicWindow *UxSaveCtx, *UxContext;
706 swidget UxThisWidget;
707
708 UxThisWidget = UxWidgetToSwidget( UxWidget );
709 UxSaveCtx = UxApplicWindowContext;
710 UxApplicWindowContext = UxContext =
711 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
712 {
713 #include <spec_comm.h>
714
715 PopupList(LIST_LOAD_IMA);
716 }
717 UxApplicWindowContext = UxSaveCtx;
718 }
719
720 static void activateCB_menu1_p4_b13( UxWidget, UxClientData, UxCallbackArg )
721 Widget UxWidget;
722 XtPointer UxClientData, UxCallbackArg;
723 {
724 _UxCApplicWindow *UxSaveCtx, *UxContext;
725 swidget UxThisWidget;
726
727 UxThisWidget = UxWidgetToSwidget( UxWidget );
728 UxSaveCtx = UxApplicWindowContext;
729 UxApplicWindowContext = UxContext =
730 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
731 AppendDialogText("clear/channel over");
732 UxApplicWindowContext = UxSaveCtx;
733 }
734
735 static void activateCB_menu1_p4_b3( UxWidget, UxClientData, UxCallbackArg )
736 Widget UxWidget;
737 XtPointer UxClientData, UxCallbackArg;
738 {
739 _UxCApplicWindow *UxSaveCtx, *UxContext;
740 swidget UxThisWidget;
741
742 UxThisWidget = UxWidgetToSwidget( UxWidget );
743 UxSaveCtx = UxApplicWindowContext;
744 UxApplicWindowContext = UxContext =
745 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
746 AppendDialogText("copy/display laser");
747 UxApplicWindowContext = UxSaveCtx;
748 }
749
750 static void activateCB_menu1_p4_b4( UxWidget, UxClientData, UxCallbackArg )
751 Widget UxWidget;
752 XtPointer UxClientData, UxCallbackArg;
753 {
754 _UxCApplicWindow *UxSaveCtx, *UxContext;
755 swidget UxThisWidget;
756
757 UxThisWidget = UxWidgetToSwidget( UxWidget );
758 UxSaveCtx = UxApplicWindowContext;
759 UxApplicWindowContext = UxContext =
760 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
761 AppendDialogText("copy/graph laser");
762 UxApplicWindowContext = UxSaveCtx;
763 }
764
765 static void activateCB_menu1_p4_b5( UxWidget, UxClientData, UxCallbackArg )
766 Widget UxWidget;
767 XtPointer UxClientData, UxCallbackArg;
768 {
769 _UxCApplicWindow *UxSaveCtx, *UxContext;
770 swidget UxThisWidget;
771
772 UxThisWidget = UxWidgetToSwidget( UxWidget );
773 UxSaveCtx = UxApplicWindowContext;
774 UxApplicWindowContext = UxContext =
775 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
776 AppendDialogText("get/gcursor");
777 UxApplicWindowContext = UxSaveCtx;
778 }
779
780 static void activateCB_menu1_p4_b11( UxWidget, UxClientData, UxCallbackArg )
781 Widget UxWidget;
782 XtPointer UxClientData, UxCallbackArg;
783 {
784 _UxCApplicWindow *UxSaveCtx, *UxContext;
785 swidget UxThisWidget;
786
787 UxThisWidget = UxWidgetToSwidget( UxWidget );
788 UxSaveCtx = UxApplicWindowContext;
789 UxApplicWindowContext = UxContext =
790 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
791 AppendDialogText("get/cursor");
792 UxApplicWindowContext = UxSaveCtx;
793 }
794
795 static void activateCB_menu1_p4_b15( UxWidget, UxClientData, UxCallbackArg )
796 Widget UxWidget;
797 XtPointer UxClientData, UxCallbackArg;
798 {
799 _UxCApplicWindow *UxSaveCtx, *UxContext;
800 swidget UxThisWidget;
801
802 UxThisWidget = UxWidgetToSwidget( UxWidget );
803 UxSaveCtx = UxApplicWindowContext;
804 UxApplicWindowContext = UxContext =
805 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
806 {
807 #include <spec_comm.h>
808
809 char midashome[256];
810 extern char DirSpecs[];
811
812 osfphname("MIDASHOME", midashome);
813 sprintf(DirSpecs, "%s/calib/data/", midashome);
814
815 PopupList(LIST_BROWSER);
816 }
817 UxApplicWindowContext = UxSaveCtx;
818 }
819
820 static void activateCB_menu_help_context( UxWidget, UxClientData, UxCallbackArg )
821 Widget UxWidget;
822 XtPointer UxClientData, UxCallbackArg;
823 {
824 _UxCApplicWindow *UxSaveCtx, *UxContext;
825 swidget UxThisWidget;
826
827 UxThisWidget = UxWidgetToSwidget( UxWidget );
828 UxSaveCtx = UxApplicWindowContext;
829 UxApplicWindowContext = UxContext =
830 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
831 DisplayExtendedHelp(UxWidget);
832 UxApplicWindowContext = UxSaveCtx;
833 }
834
835 static void activateCB_menu_help_help( UxWidget, UxClientData, UxCallbackArg )
836 Widget UxWidget;
837 XtPointer UxClientData, UxCallbackArg;
838 {
839 _UxCApplicWindow *UxSaveCtx, *UxContext;
840 swidget UxThisWidget;
841
842 UxThisWidget = UxWidgetToSwidget( UxWidget );
843 UxSaveCtx = UxApplicWindowContext;
844 UxApplicWindowContext = UxContext =
845 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
846 DisplayExtendedHelp(UxWidget);
847 UxApplicWindowContext = UxSaveCtx;
848 }
849
850 static void activateCB_menu_help_tutorial( UxWidget, UxClientData, UxCallbackArg )
851 Widget UxWidget;
852 XtPointer UxClientData, UxCallbackArg;
853 {
854 _UxCApplicWindow *UxSaveCtx, *UxContext;
855 swidget UxThisWidget;
856
857 UxThisWidget = UxWidgetToSwidget( UxWidget );
858 UxSaveCtx = UxApplicWindowContext;
859 UxApplicWindowContext = UxContext =
860 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
861 DisplayExtendedHelp(UxWidget);
862 UxApplicWindowContext = UxSaveCtx;
863 }
864
865 static void activateCB_menu_help_version( UxWidget, UxClientData, UxCallbackArg )
866 Widget UxWidget;
867 XtPointer UxClientData, UxCallbackArg;
868 {
869 _UxCApplicWindow *UxSaveCtx, *UxContext;
870 swidget UxThisWidget;
871
872 UxThisWidget = UxWidgetToSwidget( UxWidget );
873 UxSaveCtx = UxApplicWindowContext;
874 UxApplicWindowContext = UxContext =
875 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
876 DisplayExtendedHelp(UxWidget);
877 UxApplicWindowContext = UxSaveCtx;
878 }
879
880 static void activateCB_pb_main_batch( UxWidget, UxClientData, UxCallbackArg )
881 Widget UxWidget;
882 XtPointer UxClientData, UxCallbackArg;
883 {
884 _UxCApplicWindow *UxSaveCtx, *UxContext;
885 swidget UxThisWidget;
886
887 UxThisWidget = UxWidgetToSwidget( UxWidget );
888 UxSaveCtx = UxApplicWindowContext;
889 UxApplicWindowContext = UxContext =
890 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
891 {
892 MidasCommand(UxWidget);
893
894 }
895 UxApplicWindowContext = UxSaveCtx;
896 }
897
898 static void activateCB_pb_main_ident( UxWidget, UxClientData, UxCallbackArg )
899 Widget UxWidget;
900 XtPointer UxClientData, UxCallbackArg;
901 {
902 _UxCApplicWindow *UxSaveCtx, *UxContext;
903 swidget UxThisWidget;
904
905 UxThisWidget = UxWidgetToSwidget( UxWidget );
906 UxSaveCtx = UxApplicWindowContext;
907 UxApplicWindowContext = UxContext =
908 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
909 {
910 MidasCommand(UxWidget);
911
912 }
913 UxApplicWindowContext = UxSaveCtx;
914 }
915
916 static void activateCB_pb_main_batch1( UxWidget, UxClientData, UxCallbackArg )
917 Widget UxWidget;
918 XtPointer UxClientData, UxCallbackArg;
919 {
920 _UxCApplicWindow *UxSaveCtx, *UxContext;
921 swidget UxThisWidget;
922
923 UxThisWidget = UxWidgetToSwidget( UxWidget );
924 UxSaveCtx = UxApplicWindowContext;
925 UxApplicWindowContext = UxContext =
926 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
927 {
928 MidasCommand(UxWidget);
929
930 }
931 UxApplicWindowContext = UxSaveCtx;
932 }
933
934 static void activateCB_pb_main_batch2( UxWidget, UxClientData, UxCallbackArg )
935 Widget UxWidget;
936 XtPointer UxClientData, UxCallbackArg;
937 {
938 _UxCApplicWindow *UxSaveCtx, *UxContext;
939 swidget UxThisWidget;
940
941 UxThisWidget = UxWidgetToSwidget( UxWidget );
942 UxSaveCtx = UxApplicWindowContext;
943 UxApplicWindowContext = UxContext =
944 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
945 {
946 MidasCommand(UxWidget);
947
948 }
949 UxApplicWindowContext = UxSaveCtx;
950 }
951
952 static void activateCB_pb_main_batch3( UxWidget, UxClientData, UxCallbackArg )
953 Widget UxWidget;
954 XtPointer UxClientData, UxCallbackArg;
955 {
956 _UxCApplicWindow *UxSaveCtx, *UxContext;
957 swidget UxThisWidget;
958
959 UxThisWidget = UxWidgetToSwidget( UxWidget );
960 UxSaveCtx = UxApplicWindowContext;
961 UxApplicWindowContext = UxContext =
962 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
963 {
964 {exit(0);}
965 }
966 UxApplicWindowContext = UxSaveCtx;
967 }
968
969 static void losingFocusCB_tf_wrang1( UxWidget, UxClientData, UxCallbackArg )
970 Widget UxWidget;
971 XtPointer UxClientData, UxCallbackArg;
972 {
973 _UxCApplicWindow *UxSaveCtx, *UxContext;
974 swidget UxThisWidget;
975
976 UxThisWidget = UxWidgetToSwidget( UxWidget );
977 UxSaveCtx = UxApplicWindowContext;
978 UxApplicWindowContext = UxContext =
979 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
980 {
981
982 }
983 UxApplicWindowContext = UxSaveCtx;
984 }
985
986 static void losingFocusCB_tf_wrang2( UxWidget, UxClientData, UxCallbackArg )
987 Widget UxWidget;
988 XtPointer UxClientData, UxCallbackArg;
989 {
990 _UxCApplicWindow *UxSaveCtx, *UxContext;
991 swidget UxThisWidget;
992
993 UxThisWidget = UxWidgetToSwidget( UxWidget );
994 UxSaveCtx = UxApplicWindowContext;
995 UxApplicWindowContext = UxContext =
996 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
997 {
998
999 }
1000 UxApplicWindowContext = UxSaveCtx;
1001 }
1002
1003 static void activateCB_pb_main_batch4( UxWidget, UxClientData, UxCallbackArg )
1004 Widget UxWidget;
1005 XtPointer UxClientData, UxCallbackArg;
1006 {
1007 _UxCApplicWindow *UxSaveCtx, *UxContext;
1008 swidget UxThisWidget;
1009
1010 UxThisWidget = UxWidgetToSwidget( UxWidget );
1011 UxSaveCtx = UxApplicWindowContext;
1012 UxApplicWindowContext = UxContext =
1013 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1014 {
1015 {
1016
1017 char node[200];
1018
1019 strcpy(node,UxGetText(tf_session1));
1020 WGet_all_dirs(node);
1021 WChange_Midas_dir();
1022 WGet_all_files();
1023
1024 }
1025 }
1026 UxApplicWindowContext = UxSaveCtx;
1027 }
1028
1029 static void createCB_scrolledList4( UxWidget, UxClientData, UxCallbackArg )
1030 Widget UxWidget;
1031 XtPointer UxClientData, UxCallbackArg;
1032 {
1033 _UxCApplicWindow *UxSaveCtx, *UxContext;
1034 swidget UxThisWidget;
1035
1036 UxThisWidget = UxWidgetToSwidget( UxWidget );
1037 UxSaveCtx = UxApplicWindowContext;
1038 UxApplicWindowContext = UxContext =
1039 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1040 {
1041
1042 }
1043 UxApplicWindowContext = UxSaveCtx;
1044 }
1045
1046 static void activateCB_pb_main_search4( UxWidget, UxClientData, UxCallbackArg )
1047 Widget UxWidget;
1048 XtPointer UxClientData, UxCallbackArg;
1049 {
1050 _UxCApplicWindow *UxSaveCtx, *UxContext;
1051 swidget UxThisWidget;
1052
1053 UxThisWidget = UxWidgetToSwidget( UxWidget );
1054 UxSaveCtx = UxApplicWindowContext;
1055 UxApplicWindowContext = UxContext =
1056 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1057 {
1058 PopupLong("RotateShell");
1059 }
1060 UxApplicWindowContext = UxSaveCtx;
1061 }
1062
1063 static void activateCB_pb_main_search5( UxWidget, UxClientData, UxCallbackArg )
1064 Widget UxWidget;
1065 XtPointer UxClientData, UxCallbackArg;
1066 {
1067 _UxCApplicWindow *UxSaveCtx, *UxContext;
1068 swidget UxThisWidget;
1069
1070 UxThisWidget = UxWidgetToSwidget( UxWidget );
1071 UxSaveCtx = UxApplicWindowContext;
1072 UxApplicWindowContext = UxContext =
1073 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1074 {
1075 PopupLong("OrderShell");
1076 }
1077 UxApplicWindowContext = UxSaveCtx;
1078 }
1079
1080 static void activateCB_pb_main_search6( UxWidget, UxClientData, UxCallbackArg )
1081 Widget UxWidget;
1082 XtPointer UxClientData, UxCallbackArg;
1083 {
1084 _UxCApplicWindow *UxSaveCtx, *UxContext;
1085 swidget UxThisWidget;
1086
1087 UxThisWidget = UxWidgetToSwidget( UxWidget );
1088 UxSaveCtx = UxApplicWindowContext;
1089 UxApplicWindowContext = UxContext =
1090 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1091 {
1092 PopupLong("SearchShell");
1093 }
1094 UxApplicWindowContext = UxSaveCtx;
1095 }
1096
1097 static void activateCB_pb_main_search7( UxWidget, UxClientData, UxCallbackArg )
1098 Widget UxWidget;
1099 XtPointer UxClientData, UxCallbackArg;
1100 {
1101 _UxCApplicWindow *UxSaveCtx, *UxContext;
1102 swidget UxThisWidget;
1103
1104 UxThisWidget = UxWidgetToSwidget( UxWidget );
1105 UxSaveCtx = UxApplicWindowContext;
1106 UxApplicWindowContext = UxContext =
1107 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1108 {
1109 PopupLong("CalibShell");
1110 }
1111 UxApplicWindowContext = UxSaveCtx;
1112 }
1113
1114 static void activateCB_mn_tol_angstroms7( UxWidget, UxClientData, UxCallbackArg )
1115 Widget UxWidget;
1116 XtPointer UxClientData, UxCallbackArg;
1117 {
1118 _UxCApplicWindow *UxSaveCtx, *UxContext;
1119 swidget UxThisWidget;
1120
1121 UxThisWidget = UxWidgetToSwidget( UxWidget );
1122 UxSaveCtx = UxApplicWindowContext;
1123 UxApplicWindowContext = UxContext =
1124 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1125 {RadioSet(UxWidget);}
1126 UxApplicWindowContext = UxSaveCtx;
1127 }
1128
1129 static void activateCB_mn_tol_pixels7( UxWidget, UxClientData, UxCallbackArg )
1130 Widget UxWidget;
1131 XtPointer UxClientData, UxCallbackArg;
1132 {
1133 _UxCApplicWindow *UxSaveCtx, *UxContext;
1134 swidget UxThisWidget;
1135
1136 UxThisWidget = UxWidgetToSwidget( UxWidget );
1137 UxSaveCtx = UxApplicWindowContext;
1138 UxApplicWindowContext = UxContext =
1139 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1140 {RadioSet(UxWidget);}
1141 UxApplicWindowContext = UxSaveCtx;
1142 }
1143
1144 static void activateCB_menu2_p7_b3( UxWidget, UxClientData, UxCallbackArg )
1145 Widget UxWidget;
1146 XtPointer UxClientData, UxCallbackArg;
1147 {
1148 _UxCApplicWindow *UxSaveCtx, *UxContext;
1149 swidget UxThisWidget;
1150
1151 UxThisWidget = UxWidgetToSwidget( UxWidget );
1152 UxSaveCtx = UxApplicWindowContext;
1153 UxApplicWindowContext = UxContext =
1154 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1155 {RadioSet(UxWidget);}
1156 UxApplicWindowContext = UxSaveCtx;
1157 }
1158
1159 static void activateCB_menu2_p7_b4( UxWidget, UxClientData, UxCallbackArg )
1160 Widget UxWidget;
1161 XtPointer UxClientData, UxCallbackArg;
1162 {
1163 _UxCApplicWindow *UxSaveCtx, *UxContext;
1164 swidget UxThisWidget;
1165
1166 UxThisWidget = UxWidgetToSwidget( UxWidget );
1167 UxSaveCtx = UxApplicWindowContext;
1168 UxApplicWindowContext = UxContext =
1169 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1170 {RadioSet(UxWidget);}
1171 UxApplicWindowContext = UxSaveCtx;
1172 }
1173
1174 static void activateCB_menu2_p7_b5( UxWidget, UxClientData, UxCallbackArg )
1175 Widget UxWidget;
1176 XtPointer UxClientData, UxCallbackArg;
1177 {
1178 _UxCApplicWindow *UxSaveCtx, *UxContext;
1179 swidget UxThisWidget;
1180
1181 UxThisWidget = UxWidgetToSwidget( UxWidget );
1182 UxSaveCtx = UxApplicWindowContext;
1183 UxApplicWindowContext = UxContext =
1184 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1185 {RadioSet(UxWidget);}
1186 UxApplicWindowContext = UxSaveCtx;
1187 }
1188
1189 static void activateCB_menu2_p7_b6( UxWidget, UxClientData, UxCallbackArg )
1190 Widget UxWidget;
1191 XtPointer UxClientData, UxCallbackArg;
1192 {
1193 _UxCApplicWindow *UxSaveCtx, *UxContext;
1194 swidget UxThisWidget;
1195
1196 UxThisWidget = UxWidgetToSwidget( UxWidget );
1197 UxSaveCtx = UxApplicWindowContext;
1198 UxApplicWindowContext = UxContext =
1199 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1200 {RadioSet(UxWidget);}
1201 UxApplicWindowContext = UxSaveCtx;
1202 }
1203
1204 static void armCB_toggleButton3( UxWidget, UxClientData, UxCallbackArg )
1205 Widget UxWidget;
1206 XtPointer UxClientData, UxCallbackArg;
1207 {
1208 _UxCApplicWindow *UxSaveCtx, *UxContext;
1209 swidget UxThisWidget;
1210
1211 UxThisWidget = UxWidgetToSwidget( UxWidget );
1212 UxSaveCtx = UxApplicWindowContext;
1213 UxApplicWindowContext = UxContext =
1214 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1215 RadioSet(UxWidget);
1216 UxApplicWindowContext = UxSaveCtx;
1217 }
1218
1219 static void valueChangedCB_toggleButton3( UxWidget, UxClientData, UxCallbackArg )
1220 Widget UxWidget;
1221 XtPointer UxClientData, UxCallbackArg;
1222 {
1223 _UxCApplicWindow *UxSaveCtx, *UxContext;
1224 swidget UxThisWidget;
1225
1226 UxThisWidget = UxWidgetToSwidget( UxWidget );
1227 UxSaveCtx = UxApplicWindowContext;
1228 UxApplicWindowContext = UxContext =
1229 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1230 {
1231 if (CheckStatus(UxThisWidget) == TRUE)
1232 AppendDialogText("SET/ECHEL ROTOPT=YES");
1233 else
1234 AppendDialogText("SET/ECHEL ROTOPT=NO");
1235
1236 }
1237 UxApplicWindowContext = UxSaveCtx;
1238 }
1239
1240 static void activateCB_pb_main_search2( UxWidget, UxClientData, UxCallbackArg )
1241 Widget UxWidget;
1242 XtPointer UxClientData, UxCallbackArg;
1243 {
1244 _UxCApplicWindow *UxSaveCtx, *UxContext;
1245 swidget UxThisWidget;
1246
1247 UxThisWidget = UxWidgetToSwidget( UxWidget );
1248 UxSaveCtx = UxApplicWindowContext;
1249 UxApplicWindowContext = UxContext =
1250 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1251 {
1252 PopupLong("RotateShell");
1253 }
1254 UxApplicWindowContext = UxSaveCtx;
1255 }
1256
1257 static void armCB_toggleButton10( UxWidget, UxClientData, UxCallbackArg )
1258 Widget UxWidget;
1259 XtPointer UxClientData, UxCallbackArg;
1260 {
1261 _UxCApplicWindow *UxSaveCtx, *UxContext;
1262 swidget UxThisWidget;
1263
1264 UxThisWidget = UxWidgetToSwidget( UxWidget );
1265 UxSaveCtx = UxApplicWindowContext;
1266 UxApplicWindowContext = UxContext =
1267 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1268 RadioSet(UxWidget);
1269 UxApplicWindowContext = UxSaveCtx;
1270 }
1271
1272 static void valueChangedCB_toggleButton10( UxWidget, UxClientData, UxCallbackArg )
1273 Widget UxWidget;
1274 XtPointer UxClientData, UxCallbackArg;
1275 {
1276 _UxCApplicWindow *UxSaveCtx, *UxContext;
1277 swidget UxThisWidget;
1278
1279 UxThisWidget = UxWidgetToSwidget( UxWidget );
1280 UxSaveCtx = UxApplicWindowContext;
1281 UxApplicWindowContext = UxContext =
1282 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1283 {
1284 if (CheckStatus(UxThisWidget) == TRUE)
1285 AppendDialogText("SET/ECHEL BKGOPT=YES");
1286 else
1287 AppendDialogText("SET/ECHEL BKGOPT=NO");
1288
1289 }
1290 UxApplicWindowContext = UxSaveCtx;
1291 }
1292
1293 static void activateCB_pb_main_search9( UxWidget, UxClientData, UxCallbackArg )
1294 Widget UxWidget;
1295 XtPointer UxClientData, UxCallbackArg;
1296 {
1297 _UxCApplicWindow *UxSaveCtx, *UxContext;
1298 swidget UxThisWidget;
1299
1300 UxThisWidget = UxWidgetToSwidget( UxWidget );
1301 UxSaveCtx = UxApplicWindowContext;
1302 UxApplicWindowContext = UxContext =
1303 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1304 {
1305 PopupLong("BackgroundShell");
1306 }
1307 UxApplicWindowContext = UxSaveCtx;
1308 }
1309
1310 static void armCB_toggleButton11( UxWidget, UxClientData, UxCallbackArg )
1311 Widget UxWidget;
1312 XtPointer UxClientData, UxCallbackArg;
1313 {
1314 _UxCApplicWindow *UxSaveCtx, *UxContext;
1315 swidget UxThisWidget;
1316
1317 UxThisWidget = UxWidgetToSwidget( UxWidget );
1318 UxSaveCtx = UxApplicWindowContext;
1319 UxApplicWindowContext = UxContext =
1320 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1321 RadioSet(UxWidget);
1322 UxApplicWindowContext = UxSaveCtx;
1323 }
1324
1325 static void valueChangedCB_toggleButton11( UxWidget, UxClientData, UxCallbackArg )
1326 Widget UxWidget;
1327 XtPointer UxClientData, UxCallbackArg;
1328 {
1329 _UxCApplicWindow *UxSaveCtx, *UxContext;
1330 swidget UxThisWidget;
1331
1332 UxThisWidget = UxWidgetToSwidget( UxWidget );
1333 UxSaveCtx = UxApplicWindowContext;
1334 UxApplicWindowContext = UxContext =
1335 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1336 {
1337 if (CheckStatus(UxThisWidget) == TRUE)
1338 AppendDialogText("SET/ECHEL EXTOPT=YES");
1339 else
1340 AppendDialogText("SET/ECHEL EXTOPT=NO");
1341
1342 }
1343 UxApplicWindowContext = UxSaveCtx;
1344 }
1345
1346 static void activateCB_pb_main_search10( UxWidget, UxClientData, UxCallbackArg )
1347 Widget UxWidget;
1348 XtPointer UxClientData, UxCallbackArg;
1349 {
1350 _UxCApplicWindow *UxSaveCtx, *UxContext;
1351 swidget UxThisWidget;
1352
1353 UxThisWidget = UxWidgetToSwidget( UxWidget );
1354 UxSaveCtx = UxApplicWindowContext;
1355 UxApplicWindowContext = UxContext =
1356 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1357 {
1358 PopupLong("ExtractionShell");
1359 }
1360 UxApplicWindowContext = UxSaveCtx;
1361 }
1362
1363 static void armCB_toggleButton12( UxWidget, UxClientData, UxCallbackArg )
1364 Widget UxWidget;
1365 XtPointer UxClientData, UxCallbackArg;
1366 {
1367 _UxCApplicWindow *UxSaveCtx, *UxContext;
1368 swidget UxThisWidget;
1369
1370 UxThisWidget = UxWidgetToSwidget( UxWidget );
1371 UxSaveCtx = UxApplicWindowContext;
1372 UxApplicWindowContext = UxContext =
1373 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1374 RadioSet(UxWidget);
1375 UxApplicWindowContext = UxSaveCtx;
1376 }
1377
1378 static void valueChangedCB_toggleButton12( UxWidget, UxClientData, UxCallbackArg )
1379 Widget UxWidget;
1380 XtPointer UxClientData, UxCallbackArg;
1381 {
1382 _UxCApplicWindow *UxSaveCtx, *UxContext;
1383 swidget UxThisWidget;
1384
1385 UxThisWidget = UxWidgetToSwidget( UxWidget );
1386 UxSaveCtx = UxApplicWindowContext;
1387 UxApplicWindowContext = UxContext =
1388 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1389 {
1390 if (CheckStatus(UxThisWidget) == TRUE)
1391 AppendDialogText("SET/ECHEL SKYOPT=YES");
1392 else
1393 AppendDialogText("SET/ECHEL SKYOPT=NO");
1394
1395 }
1396 UxApplicWindowContext = UxSaveCtx;
1397 }
1398
1399 static void activateCB_pb_main_search11( UxWidget, UxClientData, UxCallbackArg )
1400 Widget UxWidget;
1401 XtPointer UxClientData, UxCallbackArg;
1402 {
1403 _UxCApplicWindow *UxSaveCtx, *UxContext;
1404 swidget UxThisWidget;
1405
1406 UxThisWidget = UxWidgetToSwidget( UxWidget );
1407 UxSaveCtx = UxApplicWindowContext;
1408 UxApplicWindowContext = UxContext =
1409 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1410 {
1411 PopupLong("SkyShell");
1412 }
1413 UxApplicWindowContext = UxSaveCtx;
1414 }
1415
1416 static void armCB_toggleButton1( UxWidget, UxClientData, UxCallbackArg )
1417 Widget UxWidget;
1418 XtPointer UxClientData, UxCallbackArg;
1419 {
1420 _UxCApplicWindow *UxSaveCtx, *UxContext;
1421 swidget UxThisWidget;
1422
1423 UxThisWidget = UxWidgetToSwidget( UxWidget );
1424 UxSaveCtx = UxApplicWindowContext;
1425 UxApplicWindowContext = UxContext =
1426 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1427 RadioSet(UxWidget);
1428 UxApplicWindowContext = UxSaveCtx;
1429 }
1430
1431 static void valueChangedCB_toggleButton1( UxWidget, UxClientData, UxCallbackArg )
1432 Widget UxWidget;
1433 XtPointer UxClientData, UxCallbackArg;
1434 {
1435 _UxCApplicWindow *UxSaveCtx, *UxContext;
1436 swidget UxThisWidget;
1437
1438 UxThisWidget = UxWidgetToSwidget( UxWidget );
1439 UxSaveCtx = UxApplicWindowContext;
1440 UxApplicWindowContext = UxContext =
1441 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1442 {
1443 if (CheckStatus(UxThisWidget) == TRUE)
1444 AppendDialogText("SET/ECHEL REBOPT=YES");
1445 else
1446 AppendDialogText("SET/ECHEL REBOPT=NO");
1447
1448 }
1449 UxApplicWindowContext = UxSaveCtx;
1450 }
1451
1452 static void activateCB_pb_main_search1( UxWidget, UxClientData, UxCallbackArg )
1453 Widget UxWidget;
1454 XtPointer UxClientData, UxCallbackArg;
1455 {
1456 _UxCApplicWindow *UxSaveCtx, *UxContext;
1457 swidget UxThisWidget;
1458
1459 UxThisWidget = UxWidgetToSwidget( UxWidget );
1460 UxSaveCtx = UxApplicWindowContext;
1461 UxApplicWindowContext = UxContext =
1462 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1463 {
1464 PopupLong("RebinShell");
1465 }
1466 UxApplicWindowContext = UxSaveCtx;
1467 }
1468
1469 static void armCB_toggleButton2( UxWidget, UxClientData, UxCallbackArg )
1470 Widget UxWidget;
1471 XtPointer UxClientData, UxCallbackArg;
1472 {
1473 _UxCApplicWindow *UxSaveCtx, *UxContext;
1474 swidget UxThisWidget;
1475
1476 UxThisWidget = UxWidgetToSwidget( UxWidget );
1477 UxSaveCtx = UxApplicWindowContext;
1478 UxApplicWindowContext = UxContext =
1479 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1480 RadioSet(UxWidget);
1481 UxApplicWindowContext = UxSaveCtx;
1482 }
1483
1484 static void valueChangedCB_toggleButton2( UxWidget, UxClientData, UxCallbackArg )
1485 Widget UxWidget;
1486 XtPointer UxClientData, UxCallbackArg;
1487 {
1488 _UxCApplicWindow *UxSaveCtx, *UxContext;
1489 swidget UxThisWidget;
1490
1491 UxThisWidget = UxWidgetToSwidget( UxWidget );
1492 UxSaveCtx = UxApplicWindowContext;
1493 UxApplicWindowContext = UxContext =
1494 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1495 {
1496 if (CheckStatus(UxThisWidget) == TRUE)
1497 AppendDialogText("SET/ECHEL FFOPT=YES");
1498 else
1499 AppendDialogText("SET/ECHEL FFOPT=NO");
1500
1501 }
1502 UxApplicWindowContext = UxSaveCtx;
1503 }
1504
1505 static void activateCB_pb_main_search3( UxWidget, UxClientData, UxCallbackArg )
1506 Widget UxWidget;
1507 XtPointer UxClientData, UxCallbackArg;
1508 {
1509 _UxCApplicWindow *UxSaveCtx, *UxContext;
1510 swidget UxThisWidget;
1511
1512 UxThisWidget = UxWidgetToSwidget( UxWidget );
1513 UxSaveCtx = UxApplicWindowContext;
1514 UxApplicWindowContext = UxContext =
1515 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1516 {
1517 PopupLong("FlatShell");
1518 }
1519 UxApplicWindowContext = UxSaveCtx;
1520 }
1521
1522 static void armCB_toggleButton4( UxWidget, UxClientData, UxCallbackArg )
1523 Widget UxWidget;
1524 XtPointer UxClientData, UxCallbackArg;
1525 {
1526 _UxCApplicWindow *UxSaveCtx, *UxContext;
1527 swidget UxThisWidget;
1528
1529 UxThisWidget = UxWidgetToSwidget( UxWidget );
1530 UxSaveCtx = UxApplicWindowContext;
1531 UxApplicWindowContext = UxContext =
1532 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1533 RadioSet(UxWidget);
1534 UxApplicWindowContext = UxSaveCtx;
1535 }
1536
1537 static void valueChangedCB_toggleButton4( UxWidget, UxClientData, UxCallbackArg )
1538 Widget UxWidget;
1539 XtPointer UxClientData, UxCallbackArg;
1540 {
1541 _UxCApplicWindow *UxSaveCtx, *UxContext;
1542 swidget UxThisWidget;
1543
1544 UxThisWidget = UxWidgetToSwidget( UxWidget );
1545 UxSaveCtx = UxApplicWindowContext;
1546 UxApplicWindowContext = UxContext =
1547 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1548 {
1549 if (CheckStatus(UxThisWidget) == TRUE)
1550 AppendDialogText("SET/ECHEL RESPOPT=YES");
1551 else
1552 AppendDialogText("SET/ECHEL RESPOPT=NO");
1553
1554 }
1555 UxApplicWindowContext = UxSaveCtx;
1556 }
1557
1558 static void activateCB_pb_main_search12( UxWidget, UxClientData, UxCallbackArg )
1559 Widget UxWidget;
1560 XtPointer UxClientData, UxCallbackArg;
1561 {
1562 _UxCApplicWindow *UxSaveCtx, *UxContext;
1563 swidget UxThisWidget;
1564
1565 UxThisWidget = UxWidgetToSwidget( UxWidget );
1566 UxSaveCtx = UxApplicWindowContext;
1567 UxApplicWindowContext = UxContext =
1568 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1569 {
1570 PopupLong("RespShell");
1571 }
1572 UxApplicWindowContext = UxSaveCtx;
1573 }
1574
1575 static void armCB_toggleButton13( UxWidget, UxClientData, UxCallbackArg )
1576 Widget UxWidget;
1577 XtPointer UxClientData, UxCallbackArg;
1578 {
1579 _UxCApplicWindow *UxSaveCtx, *UxContext;
1580 swidget UxThisWidget;
1581
1582 UxThisWidget = UxWidgetToSwidget( UxWidget );
1583 UxSaveCtx = UxApplicWindowContext;
1584 UxApplicWindowContext = UxContext =
1585 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1586 RadioSet(UxWidget);
1587 UxApplicWindowContext = UxSaveCtx;
1588 }
1589
1590 static void valueChangedCB_toggleButton13( UxWidget, UxClientData, UxCallbackArg )
1591 Widget UxWidget;
1592 XtPointer UxClientData, UxCallbackArg;
1593 {
1594 _UxCApplicWindow *UxSaveCtx, *UxContext;
1595 swidget UxThisWidget;
1596
1597 UxThisWidget = UxWidgetToSwidget( UxWidget );
1598 UxSaveCtx = UxApplicWindowContext;
1599 UxApplicWindowContext = UxContext =
1600 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1601 {
1602 if (CheckStatus(UxThisWidget) == TRUE)
1603 AppendDialogText("SET/ECHEL MGOPT=YES");
1604 else
1605 AppendDialogText("SET/ECHEL MGOPT=NO");
1606
1607 }
1608 UxApplicWindowContext = UxSaveCtx;
1609 }
1610
1611 static void activateCB_pb_main_search13( UxWidget, UxClientData, UxCallbackArg )
1612 Widget UxWidget;
1613 XtPointer UxClientData, UxCallbackArg;
1614 {
1615 _UxCApplicWindow *UxSaveCtx, *UxContext;
1616 swidget UxThisWidget;
1617
1618 UxThisWidget = UxWidgetToSwidget( UxWidget );
1619 UxSaveCtx = UxApplicWindowContext;
1620 UxApplicWindowContext = UxContext =
1621 (_UxCApplicWindow *) UxGetContext( UxThisWidget );
1622 {
1623 PopupLong("MergeShell");
1624 }
1625 UxApplicWindowContext = UxSaveCtx;
1626 }
1627
1628 /*******************************************************************************
1629 The 'init_' function sets the private properties for all the
1630 swidgets to the values specified in the Property Table.
1631 Some properties need to be set after the X widgets have been
1632 created and the setting of these properties is done in the
1633 'build_' function after the UxCreateWidget call.
1634 *******************************************************************************/
1635
1636 static void _Uxinit_ApplicWindow()
1637 {
1638 UxPutGeometry( ApplicWindow, "+0+0" );
1639 UxPutTitle( ApplicWindow, "Echelle Reduction" );
1640 UxPutKeyboardFocusPolicy( ApplicWindow, "pointer" );
1641 UxPutIconName( ApplicWindow, "XEchelle" );
1642 UxPutHeight( ApplicWindow, 700 );
1643 UxPutWidth( ApplicWindow, 810 );
1644 UxPutY( ApplicWindow, 410 );
1645 UxPutX( ApplicWindow, 0 );
1646
1647 UxPutBackground( MainWindow, WindowBackground );
1648 UxPutHeight( MainWindow, 320 );
1649 UxPutWidth( MainWindow, 810 );
1650 UxPutY( MainWindow, 0 );
1651 UxPutX( MainWindow, -2 );
1652 UxPutUnitType( MainWindow, "pixels" );
1653
1654 UxPutBackground( menu1, MenuBackground );
1655 UxPutMenuAccelerator( menu1, "<KeyUp>F10" );
1656 UxPutRowColumnType( menu1, "menu_bar" );
1657
1658 UxPutForeground( menu1_p1, MenuForeground );
1659 UxPutBackground( menu1_p1, MenuBackground );
1660 UxPutRowColumnType( menu1_p1, "menu_pulldown" );
1661
1662 UxPutFontList( menu1_p1_b1, BoldTextFont );
1663 UxPutMnemonic( menu1_p1_b1, "O" );
1664 UxPutLabelString( menu1_p1_b1, "Open..." );
1665
1666 UxPutFontList( menu1_p1_b2, BoldTextFont );
1667 UxPutMnemonic( menu1_p1_b2, "S" );
1668 UxPutLabelString( menu1_p1_b2, "Save" );
1669
1670 UxPutFontList( menu1_p1_b3, BoldTextFont );
1671 UxPutMnemonic( menu1_p1_b3, "S" );
1672 UxPutLabelString( menu1_p1_b3, "Save As ..." );
1673
1674 UxPutFontList( menu1_p1_b6, BoldTextFont );
1675 UxPutLabelString( menu1_p1_b6, "Set to defaults" );
1676
1677 UxPutFontList( menu1_p1_b7, BoldTextFont );
1678 UxPutLabelString( menu1_p1_b7, "Synchronize" );
1679
1680 UxPutFontList( menu1_p1_b4, BoldTextFont );
1681 UxPutAccelerator( menu1_p1_b4, "E" );
1682 UxPutMnemonic( menu1_p1_b4, "E" );
1683 UxPutLabelString( menu1_p1_b4, "Exit" );
1684
1685 UxPutForeground( menu1_top_b1, MenuForeground );
1686 UxPutFontList( menu1_top_b1, BoldTextFont );
1687 UxPutBackground( menu1_top_b1, MenuBackground );
1688 UxPutMnemonic( menu1_top_b1, "F" );
1689 UxPutLabelString( menu1_top_b1, "File" );
1690
1691 UxPutForeground( menu1_p4, MenuForeground );
1692 UxPutBackground( menu1_p4, MenuBackground );
1693 UxPutRowColumnType( menu1_p4, "menu_pulldown" );
1694
1695 UxPutFontList( menu1_p4_b1, BoldTextFont );
1696 UxPutMnemonic( menu1_p4_b1, "D" );
1697 UxPutLabelString( menu1_p4_b1, "Create Display" );
1698
1699 UxPutFontList( menu1_p4_b2, BoldTextFont );
1700 UxPutMnemonic( menu1_p4_b2, "G" );
1701 UxPutLabelString( menu1_p4_b2, "Create Graphics" );
1702
1703 UxPutMnemonic( menu1_p4_b10, "L" );
1704 UxPutFontList( menu1_p4_b10, BoldTextFont );
1705 UxPutLabelString( menu1_p4_b10, "Load image" );
1706
1707 UxPutMnemonic( menu1_p4_b13, "o" );
1708 UxPutFontList( menu1_p4_b13, BoldTextFont );
1709 UxPutLabelString( menu1_p4_b13, "Clear overlay" );
1710
1711 UxPutFontList( menu1_p4_b3, BoldTextFont );
1712 UxPutMnemonic( menu1_p4_b3, "P" );
1713 UxPutLabelString( menu1_p4_b3, "Print Display" );
1714
1715 UxPutFontList( menu1_p4_b4, BoldTextFont );
1716 UxPutMnemonic( menu1_p4_b4, "r" );
1717 UxPutLabelString( menu1_p4_b4, "Print Graphics" );
1718
1719 UxPutFontList( menu1_p4_b5, BoldTextFont );
1720 UxPutMnemonic( menu1_p4_b5, "C" );
1721 UxPutLabelString( menu1_p4_b5, "Graphics Cursor" );
1722
1723 UxPutFontList( menu1_p4_b11, BoldTextFont );
1724 UxPutMnemonic( menu1_p4_b11, "u" );
1725 UxPutLabelString( menu1_p4_b11, "Display Cursor" );
1726
1727 UxPutFontList( menu1_p4_b15, BoldTextFont );
1728 UxPutLabelString( menu1_p4_b15, "get calib. table" );
1729
1730 UxPutForeground( menu1_top_b4, MenuForeground );
1731 UxPutFontList( menu1_top_b4, BoldTextFont );
1732 UxPutBackground( menu1_top_b4, MenuBackground );
1733 UxPutMnemonic( menu1_top_b4, "U" );
1734 UxPutLabelString( menu1_top_b4, "Utils" );
1735
1736 UxPutForeground( menu1_p5, MenuForeground );
1737 UxPutBackground( menu1_p5, MenuBackground );
1738 UxPutRowColumnType( menu1_p5, "menu_pulldown" );
1739
1740 UxPutFontList( menu_help_context, BoldTextFont );
1741 UxPutMnemonic( menu_help_context, "C" );
1742 UxPutLabelString( menu_help_context, "On Context ..." );
1743
1744 UxPutFontList( menu_help_help, BoldTextFont );
1745 UxPutMnemonic( menu_help_help, "H" );
1746 UxPutLabelString( menu_help_help, "On Help ..." );
1747
1748 UxPutFontList( menu_help_tutorial, BoldTextFont );
1749 UxPutMnemonic( menu_help_tutorial, "T" );
1750 UxPutLabelString( menu_help_tutorial, "Tutorial" );
1751
1752 UxPutFontList( menu_help_version, BoldTextFont );
1753 UxPutMnemonic( menu_help_version, "V" );
1754 UxPutLabelString( menu_help_version, "On Version..." );
1755
1756 UxPutForeground( menu1_top_b5, MenuForeground );
1757 UxPutFontList( menu1_top_b5, BoldTextFont );
1758 UxPutBackground( menu1_top_b5, MenuBackground );
1759 UxPutMnemonic( menu1_top_b5, "H" );
1760 UxPutLabelString( menu1_top_b5, "Help" );
1761
1762 UxPutBackground( form1, WindowBackground );
1763
1764 UxPutBackground( form5, ButtonBackground );
1765 UxPutHeight( form5, 40 );
1766 UxPutWidth( form5, 451 );
1767 UxPutY( form5, 368 );
1768 UxPutX( form5, -1 );
1769 UxPutResizePolicy( form5, "resize_none" );
1770
1771 UxPutLabelString( pb_main_batch, "Reduce" );
1772 UxPutForeground( pb_main_batch, ButtonForeground );
1773 UxPutFontList( pb_main_batch, BoldTextFont );
1774 UxPutBackground( pb_main_batch, ButtonBackground );
1775 UxPutHeight( pb_main_batch, 30 );
1776 UxPutWidth( pb_main_batch, 86 );
1777 UxPutY( pb_main_batch, 2 );
1778 UxPutX( pb_main_batch, 96 );
1779
1780 UxPutLabelString( pb_main_ident, "Rotate" );
1781 UxPutForeground( pb_main_ident, ButtonForeground );
1782 UxPutFontList( pb_main_ident, BoldTextFont );
1783 UxPutBackground( pb_main_ident, ButtonBackground );
1784 UxPutHeight( pb_main_ident, 30 );
1785 UxPutWidth( pb_main_ident, 86 );
1786 UxPutY( pb_main_ident, 4 );
1787 UxPutX( pb_main_ident, 30 );
1788
1789 UxPutLabelString( pb_main_batch1, "Load Orders" );
1790 UxPutForeground( pb_main_batch1, ButtonForeground );
1791 UxPutFontList( pb_main_batch1, BoldTextFont );
1792 UxPutBackground( pb_main_batch1, ButtonBackground );
1793 UxPutHeight( pb_main_batch1, 30 );
1794 UxPutWidth( pb_main_batch1, 120 );
1795 UxPutY( pb_main_batch1, 2 );
1796 UxPutX( pb_main_batch1, 184 );
1797
1798 UxPutLabelString( pb_main_batch2, "Save" );
1799 UxPutForeground( pb_main_batch2, ButtonForeground );
1800 UxPutFontList( pb_main_batch2, BoldTextFont );
1801 UxPutBackground( pb_main_batch2, ButtonBackground );
1802 UxPutHeight( pb_main_batch2, 30 );
1803 UxPutWidth( pb_main_batch2, 120 );
1804 UxPutY( pb_main_batch2, 2 );
1805 UxPutX( pb_main_batch2, 306 );
1806
1807 UxPutLabelString( pb_main_batch3, "Close Window" );
1808 UxPutForeground( pb_main_batch3, ButtonForeground );
1809 UxPutFontList( pb_main_batch3, BoldTextFont );
1810 UxPutBackground( pb_main_batch3, ButtonBackground );
1811 UxPutHeight( pb_main_batch3, 30 );
1812 UxPutWidth( pb_main_batch3, 119 );
1813 UxPutY( pb_main_batch3, 2 );
1814 UxPutX( pb_main_batch3, 686 );
1815
1816 UxPutBackground( separator12, LabelBackground );
1817 UxPutHeight( separator12, 6 );
1818 UxPutWidth( separator12, 450 );
1819 UxPutY( separator12, 360 );
1820 UxPutX( separator12, 0 );
1821
1822 UxPutFontList( shelp_main, TextFont );
1823 UxPutEditable( shelp_main, "false" );
1824 UxPutCursorPositionVisible( shelp_main, "false" );
1825 UxPutBackground( shelp_main, SHelpBackground );
1826 UxPutHeight( shelp_main, 50 );
1827 UxPutWidth( shelp_main, 448 );
1828 UxPutY( shelp_main, 310 );
1829 UxPutX( shelp_main, 0 );
1830
1831 UxPutBackground( separator1, LabelBackground );
1832 UxPutHeight( separator1, 6 );
1833 UxPutWidth( separator1, 450 );
1834 UxPutY( separator1, 304 );
1835 UxPutX( separator1, -2 );
1836
1837 UxPutShadowType( form22, "shadow_in" );
1838 UxPutShadowThickness( form22, 3 );
1839 UxPutBackground( form22, WindowBackground );
1840 UxPutHeight( form22, 534 );
1841 UxPutWidth( form22, 526 );
1842 UxPutY( form22, 10 );
1843 UxPutX( form22, 250 );
1844 UxPutResizePolicy( form22, "resize_none" );
1845
1846 UxPutTopShadowColor( ListWindow1, WindowBackground );
1847 UxPutHighlightColor( ListWindow1, "black" );
1848 UxPutY( ListWindow1, 368 );
1849 UxPutX( ListWindow1, 130 );
1850 UxPutScrollBarPlacement( ListWindow1, "bottom_right" );
1851 UxPutForeground( ListWindow1, TextForeground );
1852 UxPutBottomShadowColor( ListWindow1, WindowBackground );
1853 UxPutBorderColor( ListWindow1, WindowBackground );
1854 UxPutBackground( ListWindow1, WindowBackground );
1855 UxPutShadowThickness( ListWindow1, 0 );
1856
1857 UxPutTranslations( scrolledList1, DirList );
1858 UxPutSelectionArray( scrolledList1, "select_line select_line select_line select_line" );
1859 UxPutTopShadowColor( scrolledList1, "Black" );
1860 UxPutForeground( scrolledList1, TextForeground );
1861 UxPutFontList( scrolledList1, "9x15" );
1862 UxPutBorderColor( scrolledList1, SHelpBackground );
1863 UxPutBackground( scrolledList1, SHelpBackground );
1864
1865 UxPutText( tf_wrang1, "esp" );
1866 UxPutForeground( tf_wrang1, TextForeground );
1867 UxPutHighlightOnEnter( tf_wrang1, "true" );
1868 UxPutFontList( tf_wrang1, TextFont );
1869 UxPutBackground( tf_wrang1, TextBackground );
1870 UxPutHeight( tf_wrang1, 34 );
1871 UxPutWidth( tf_wrang1, 250 );
1872 UxPutY( tf_wrang1, 230 );
1873 UxPutX( tf_wrang1, 100 );
1874
1875 UxPutAlignment( label3, "alignment_beginning" );
1876 UxPutLabelString( label3, "Output Name:" );
1877 UxPutForeground( label3, TextForeground );
1878 UxPutFontList( label3, BoldTextFont );
1879 UxPutBackground( label3, WindowBackground );
1880 UxPutHeight( label3, 36 );
1881 UxPutWidth( label3, 132 );
1882 UxPutY( label3, 492 );
1883 UxPutX( label3, 10 );
1884
1885 UxPutAlignment( label4, "alignment_beginning" );
1886 UxPutLabelString( label4, "Start Number:" );
1887 UxPutForeground( label4, TextForeground );
1888 UxPutFontList( label4, BoldTextFont );
1889 UxPutBackground( label4, WindowBackground );
1890 UxPutHeight( label4, 36 );
1891 UxPutWidth( label4, 105 );
1892 UxPutY( label4, 492 );
1893 UxPutX( label4, 336 );
1894
1895 UxPutText( tf_wrang2, "1" );
1896 UxPutForeground( tf_wrang2, TextForeground );
1897 UxPutHighlightOnEnter( tf_wrang2, "true" );
1898 UxPutFontList( tf_wrang2, TextFont );
1899 UxPutBackground( tf_wrang2, TextBackground );
1900 UxPutHeight( tf_wrang2, 34 );
1901 UxPutWidth( tf_wrang2, 100 );
1902 UxPutY( tf_wrang2, 230 );
1903 UxPutX( tf_wrang2, 450 );
1904
1905 UxPutBackground( form23, WindowBackground );
1906 UxPutHeight( form23, 40 );
1907 UxPutWidth( form23, 544 );
1908 UxPutY( form23, 54 );
1909 UxPutX( form23, 8 );
1910 UxPutResizePolicy( form23, "resize_none" );
1911
1912 UxPutLabelString( label2, "Files:" );
1913 UxPutForeground( label2, TextForeground );
1914 UxPutFontList( label2, BoldTextFont );
1915 UxPutBackground( label2, WindowBackground );
1916 UxPutHeight( label2, 36 );
1917 UxPutWidth( label2, 80 );
1918 UxPutY( label2, 4 );
1919 UxPutX( label2, 20 );
1920
1921 UxPutText( tf_session, "*.bdf" );
1922 UxPutBorderWidth( tf_session, 1 );
1923 UxPutEditable( tf_session, "true" );
1924 UxPutCursorPositionVisible( tf_session, "true" );
1925 UxPutForeground( tf_session, TextForeground );
1926 UxPutHighlightOnEnter( tf_session, "true" );
1927 UxPutFontList( tf_session, TextFont );
1928 UxPutBackground( tf_session, TextBackground );
1929 UxPutHeight( tf_session, 34 );
1930 UxPutWidth( tf_session, 235 );
1931 UxPutY( tf_session, 2 );
1932 UxPutX( tf_session, 112 );
1933
1934 UxPutLabelString( pb_main_batch4, "Filter" );
1935 UxPutForeground( pb_main_batch4, ButtonForeground );
1936 UxPutFontList( pb_main_batch4, BoldTextFont );
1937 UxPutBackground( pb_main_batch4, ButtonBackground );
1938 UxPutHeight( pb_main_batch4, 30 );
1939 UxPutWidth( pb_main_batch4, 75 );
1940 UxPutY( pb_main_batch4, 6 );
1941 UxPutX( pb_main_batch4, 394 );
1942
1943 UxPutBackground( form24, WindowBackground );
1944 UxPutHeight( form24, 40 );
1945 UxPutWidth( form24, 544 );
1946 UxPutY( form24, 8 );
1947 UxPutX( form24, 6 );
1948 UxPutResizePolicy( form24, "resize_none" );
1949
1950 UxPutLabelString( label5, "Directory:" );
1951 UxPutForeground( label5, TextForeground );
1952 UxPutFontList( label5, BoldTextFont );
1953 UxPutBackground( label5, WindowBackground );
1954 UxPutHeight( label5, 36 );
1955 UxPutWidth( label5, 80 );
1956 UxPutY( label5, 4 );
1957 UxPutX( label5, 20 );
1958
1959 UxPutText( tf_session1, "." );
1960 UxPutBorderWidth( tf_session1, 1 );
1961 UxPutEditable( tf_session1, "true" );
1962 UxPutCursorPositionVisible( tf_session1, "true" );
1963 UxPutForeground( tf_session1, TextForeground );
1964 UxPutHighlightOnEnter( tf_session1, "true" );
1965 UxPutFontList( tf_session1, TextFont );
1966 UxPutBackground( tf_session1, TextBackground );
1967 UxPutHeight( tf_session1, 34 );
1968 UxPutWidth( tf_session1, 235 );
1969 UxPutY( tf_session1, 2 );
1970 UxPutX( tf_session1, 100 );
1971
1972 UxPutAlignment( label32, "alignment_beginning" );
1973 UxPutLabelString( label32, "Directories:" );
1974 UxPutForeground( label32, TextForeground );
1975 UxPutFontList( label32, BoldTextFont );
1976 UxPutBackground( label32, WindowBackground );
1977 UxPutHeight( label32, 36 );
1978 UxPutWidth( label32, 132 );
1979 UxPutY( label32, 114 );
1980 UxPutX( label32, 32 );
1981
1982 UxPutAlignment( label39, "alignment_beginning" );
1983 UxPutLabelString( label39, "Files:" );
1984 UxPutForeground( label39, TextForeground );
1985 UxPutFontList( label39, BoldTextFont );
1986 UxPutBackground( label39, WindowBackground );
1987 UxPutHeight( label39, 36 );
1988 UxPutWidth( label39, 132 );
1989 UxPutY( label39, 114 );
1990 UxPutX( label39, 232 );
1991
1992 UxPutScrollBarPlacement( scrolledWindow4, "bottom_right" );
1993 UxPutBackground( scrolledWindow4, WindowBackground );
1994 UxPutShadowThickness( scrolledWindow4, 0 );
1995 UxPutY( scrolledWindow4, -92 );
1996 UxPutX( scrolledWindow4, 215 );
1997
1998 UxPutBorderColor( scrolledList4, SHelpBackground );
1999 UxPutSelectionPolicy( scrolledList4, "multiple_select" );
2000 UxPutScrollBarDisplayPolicy( scrolledList4, "static" );
2001 UxPutListSizePolicy( scrolledList4, "constant" );
2002 UxPutFontList( scrolledList4, "9x15" );
2003 UxPutBackground( scrolledList4, SHelpBackground );
2004 UxPutHeight( scrolledList4, 597 );
2005 UxPutWidth( scrolledList4, 311 );
2006
2007 UxPutMarginHeight( rowColumn11, 0 );
2008 UxPutResizeHeight( rowColumn11, "true" );
2009 UxPutPacking( rowColumn11, "pack_tight" );
2010 UxPutBackground( rowColumn11, WindowBackground );
2011 UxPutHeight( rowColumn11, 422 );
2012 UxPutWidth( rowColumn11, 292 );
2013 UxPutY( rowColumn11, 20 );
2014 UxPutX( rowColumn11, 270 );
2015
2016 UxPutMarginLeft( label7, 60 );
2017 UxPutForeground( label7, TextForeground );
2018 UxPutAlignment( label7, "alignment_beginning" );
2019 UxPutLabelString( label7, "Calibration" );
2020 UxPutFontList( label7, BoldTextFont );
2021 UxPutBackground( label7, LabelBackground );
2022 UxPutHeight( label7, 30 );
2023 UxPutWidth( label7, 190 );
2024 UxPutY( label7, 68 );
2025 UxPutX( label7, 6 );
2026
2027 UxPutAdjustLast( rowColumn13, "true" );
2028 UxPutResizeWidth( rowColumn13, "false" );
2029 UxPutPacking( rowColumn13, "pack_tight" );
2030 UxPutOrientation( rowColumn13, "horizontal" );
2031 UxPutBackground( rowColumn13, WindowBackground );
2032 UxPutHeight( rowColumn13, 20 );
2033 UxPutWidth( rowColumn13, 250 );
2034 UxPutY( rowColumn13, 225 );
2035 UxPutX( rowColumn13, -7 );
2036
2037 UxPutLabelString( toggleButton5, "Geometry and Rotation" );
2038 UxPutForeground( toggleButton5, TextForeground );
2039 UxPutFontList( toggleButton5, TextFont );
2040 UxPutBackground( toggleButton5, WindowBackground );
2041 UxPutRecomputeSize( toggleButton5, "false" );
2042 UxPutHeight( toggleButton5, 20 );
2043 UxPutWidth( toggleButton5, 195 );
2044 UxPutY( toggleButton5, -4 );
2045 UxPutX( toggleButton5, 3 );
2046
2047 UxPutRecomputeSize( pb_main_search4, "false" );
2048 UxPutLabelString( pb_main_search4, "..." );
2049 UxPutForeground( pb_main_search4, ButtonForeground );
2050 UxPutFontList( pb_main_search4, BoldTextFont );
2051 UxPutBackground( pb_main_search4, ButtonBackground );
2052 UxPutHeight( pb_main_search4, 25 );
2053 UxPutY( pb_main_search4, 3 );
2054 UxPutX( pb_main_search4, 3 );
2055
2056 UxPutAdjustLast( rowColumn14, "true" );
2057 UxPutResizeWidth( rowColumn14, "false" );
2058 UxPutPacking( rowColumn14, "pack_tight" );
2059 UxPutOrientation( rowColumn14, "horizontal" );
2060 UxPutBackground( rowColumn14, WindowBackground );
2061 UxPutHeight( rowColumn14, 20 );
2062 UxPutWidth( rowColumn14, 250 );
2063 UxPutY( rowColumn14, 189 );
2064 UxPutX( rowColumn14, -3 );
2065
2066 UxPutLabelString( toggleButton6, "Order Definition" );
2067 UxPutForeground( toggleButton6, TextForeground );
2068 UxPutFontList( toggleButton6, TextFont );
2069 UxPutBackground( toggleButton6, WindowBackground );
2070 UxPutRecomputeSize( toggleButton6, "false" );
2071 UxPutHeight( toggleButton6, 20 );
2072 UxPutWidth( toggleButton6, 195 );
2073 UxPutY( toggleButton6, -4 );
2074 UxPutX( toggleButton6, 3 );
2075
2076 UxPutRecomputeSize( pb_main_search5, "false" );
2077 UxPutLabelString( pb_main_search5, "..." );
2078 UxPutForeground( pb_main_search5, ButtonForeground );
2079 UxPutFontList( pb_main_search5, BoldTextFont );
2080 UxPutBackground( pb_main_search5, ButtonBackground );
2081 UxPutHeight( pb_main_search5, 25 );
2082 UxPutY( pb_main_search5, 3 );
2083 UxPutX( pb_main_search5, 3 );
2084
2085 UxPutAdjustLast( rowColumn15, "true" );
2086 UxPutResizeWidth( rowColumn15, "false" );
2087 UxPutPacking( rowColumn15, "pack_tight" );
2088 UxPutOrientation( rowColumn15, "horizontal" );
2089 UxPutBackground( rowColumn15, WindowBackground );
2090 UxPutHeight( rowColumn15, 20 );
2091 UxPutWidth( rowColumn15, 250 );
2092 UxPutY( rowColumn15, 2 );
2093 UxPutX( rowColumn15, 2 );
2094
2095 UxPutLabelString( toggleButton7, "Arc Line Search" );
2096 UxPutForeground( toggleButton7, TextForeground );
2097 UxPutFontList( toggleButton7, TextFont );
2098 UxPutBackground( toggleButton7, WindowBackground );
2099 UxPutRecomputeSize( toggleButton7, "false" );
2100 UxPutHeight( toggleButton7, 20 );
2101 UxPutWidth( toggleButton7, 195 );
2102 UxPutY( toggleButton7, -4 );
2103 UxPutX( toggleButton7, 3 );
2104
2105 UxPutRecomputeSize( pb_main_search6, "false" );
2106 UxPutLabelString( pb_main_search6, "..." );
2107 UxPutForeground( pb_main_search6, ButtonForeground );
2108 UxPutFontList( pb_main_search6, BoldTextFont );
2109 UxPutBackground( pb_main_search6, ButtonBackground );
2110 UxPutHeight( pb_main_search6, 25 );
2111 UxPutY( pb_main_search6, 3 );
2112 UxPutX( pb_main_search6, 3 );
2113
2114 UxPutAdjustLast( rowColumn16, "true" );
2115 UxPutResizeWidth( rowColumn16, "false" );
2116 UxPutPacking( rowColumn16, "pack_tight" );
2117 UxPutOrientation( rowColumn16, "horizontal" );
2118 UxPutBackground( rowColumn16, WindowBackground );
2119 UxPutHeight( rowColumn16, 20 );
2120 UxPutWidth( rowColumn16, 250 );
2121 UxPutY( rowColumn16, 137 );
2122 UxPutX( rowColumn16, 3 );
2123
2124 UxPutLabelString( toggleButton8, "Wavelength Calibration" );
2125 UxPutForeground( toggleButton8, TextForeground );
2126 UxPutFontList( toggleButton8, TextFont );
2127 UxPutBackground( toggleButton8, WindowBackground );
2128 UxPutRecomputeSize( toggleButton8, "false" );
2129 UxPutHeight( toggleButton8, 20 );
2130 UxPutWidth( toggleButton8, 195 );
2131 UxPutY( toggleButton8, -4 );
2132 UxPutX( toggleButton8, 3 );
2133
2134 UxPutRecomputeSize( pb_main_search7, "false" );
2135 UxPutLabelString( pb_main_search7, "..." );
2136 UxPutForeground( pb_main_search7, ButtonForeground );
2137 UxPutFontList( pb_main_search7, BoldTextFont );
2138 UxPutBackground( pb_main_search7, ButtonBackground );
2139 UxPutHeight( pb_main_search7, 25 );
2140 UxPutY( pb_main_search7, 3 );
2141 UxPutX( pb_main_search7, 3 );
2142
2143 UxPutAdjustLast( rowColumn17, "true" );
2144 UxPutResizeWidth( rowColumn17, "false" );
2145 UxPutPacking( rowColumn17, "pack_tight" );
2146 UxPutOrientation( rowColumn17, "horizontal" );
2147 UxPutBackground( rowColumn17, WindowBackground );
2148 UxPutHeight( rowColumn17, 20 );
2149 UxPutWidth( rowColumn17, 250 );
2150 UxPutY( rowColumn17, 24 );
2151 UxPutX( rowColumn17, 2 );
2152
2153 UxPutLabelString( toggleButton9, "EMMI Mode:" );
2154 UxPutForeground( toggleButton9, TextForeground );
2155 UxPutFontList( toggleButton9, TextFont );
2156 UxPutBackground( toggleButton9, WindowBackground );
2157 UxPutRecomputeSize( toggleButton9, "false" );
2158 UxPutHeight( toggleButton9, 20 );
2159 UxPutWidth( toggleButton9, 120 );
2160 UxPutY( toggleButton9, -4 );
2161 UxPutX( toggleButton9, 3 );
2162
2163 UxPutX( menu2_p7, 520 );
2164 UxPutWidth( menu2_p7, 120 );
2165 UxPutForeground( menu2_p7, TextForeground );
2166 UxPutBackground( menu2_p7, WindowBackground );
2167 UxPutRowColumnType( menu2_p7, "menu_pulldown" );
2168
2169 UxPutX( mn_tol_angstroms7, 520 );
2170 UxPutWidth( mn_tol_angstroms7, 120 );
2171 UxPutFontList( mn_tol_angstroms7, TextFont );
2172 UxPutLabelString( mn_tol_angstroms7, "#9CD3" );
2173
2174 UxPutX( mn_tol_pixels7, 520 );
2175 UxPutWidth( mn_tol_pixels7, 120 );
2176 UxPutFontList( mn_tol_pixels7, TextFont );
2177 UxPutLabelString( mn_tol_pixels7, "#9CD4" );
2178
2179 UxPutFontList( menu2_p7_b3, TextFont );
2180 UxPutLabelString( menu2_p7_b3, "#10CD3" );
2181
2182 UxPutFontList( menu2_p7_b4, TextFont );
2183 UxPutLabelString( menu2_p7_b4, "#10CD4" );
2184
2185 UxPutFontList( menu2_p7_b5, TextFont );
2186 UxPutLabelString( menu2_p7_b5, "#10CD5" );
2187
2188 UxPutFontList( menu2_p7_b6, TextFont );
2189 UxPutLabelString( menu2_p7_b6, "#10CD6" );
2190
2191 UxPutTranslations( mn_tol7, transTable2 );
2192 UxPutWidth( mn_tol7, 120 );
2193 UxPutLabelString( mn_tol7, " " );
2194 UxPutSpacing( mn_tol7, 0 );
2195 UxPutMarginWidth( mn_tol7, 0 );
2196 UxPutForeground( mn_tol7, TextForeground );
2197 UxPutBackground( mn_tol7, WindowBackground );
2198 UxPutY( mn_tol7, 76 );
2199 UxPutX( mn_tol7, 474 );
2200 UxPutRowColumnType( mn_tol7, "menu_option" );
2201
2202 UxPutForeground( label1, TextForeground );
2203 UxPutAlignment( label1, "alignment_beginning" );
2204 UxPutLabelString( label1, "Reduction" );
2205 UxPutFontList( label1, BoldTextFont );
2206 UxPutBackground( label1, LabelBackground );
2207 UxPutHeight( label1, 30 );
2208 UxPutWidth( label1, 190 );
2209 UxPutY( label1, 68 );
2210 UxPutX( label1, 6 );
2211
2212 UxPutAdjustLast( rowColumn18, "true" );
2213 UxPutResizeWidth( rowColumn18, "false" );
2214 UxPutPacking( rowColumn18, "pack_tight" );
2215 UxPutOrientation( rowColumn18, "horizontal" );
2216 UxPutBackground( rowColumn18, WindowBackground );
2217 UxPutHeight( rowColumn18, 20 );
2218 UxPutWidth( rowColumn18, 250 );
2219 UxPutY( rowColumn18, 24 );
2220 UxPutX( rowColumn18, 2 );
2221
2222 UxPutTranslations( toggleButton3, transTable2 );
2223 UxPutSelectColor( toggleButton3, "Yellow" );
2224 UxPutLabelString( toggleButton3, "Rotation" );
2225 UxPutForeground( toggleButton3, TextForeground );
2226 UxPutFontList( toggleButton3, TextFont );
2227 UxPutBackground( toggleButton3, WindowBackground );
2228 UxPutRecomputeSize( toggleButton3, "false" );
2229 UxPutHeight( toggleButton3, 20 );
2230 UxPutWidth( toggleButton3, 195 );
2231 UxPutY( toggleButton3, -4 );
2232 UxPutX( toggleButton3, 3 );
2233
2234 UxPutRecomputeSize( pb_main_search2, "false" );
2235 UxPutLabelString( pb_main_search2, "..." );
2236 UxPutForeground( pb_main_search2, ButtonForeground );
2237 UxPutFontList( pb_main_search2, BoldTextFont );
2238 UxPutBackground( pb_main_search2, ButtonBackground );
2239 UxPutHeight( pb_main_search2, 25 );
2240 UxPutY( pb_main_search2, 3 );
2241 UxPutX( pb_main_search2, 3 );
2242
2243 UxPutAdjustLast( rowColumn19, "true" );
2244 UxPutResizeWidth( rowColumn19, "false" );
2245 UxPutPacking( rowColumn19, "pack_tight" );
2246 UxPutOrientation( rowColumn19, "horizontal" );
2247 UxPutBackground( rowColumn19, WindowBackground );
2248 UxPutHeight( rowColumn19, 20 );
2249 UxPutWidth( rowColumn19, 250 );
2250 UxPutY( rowColumn19, 24 );
2251 UxPutX( rowColumn19, 2 );
2252
2253 UxPutTranslations( toggleButton10, transTable2 );
2254 UxPutSelectColor( toggleButton10, "Yellow" );
2255 UxPutLabelString( toggleButton10, "Inter-Order Background" );
2256 UxPutForeground( toggleButton10, TextForeground );
2257 UxPutFontList( toggleButton10, TextFont );
2258 UxPutBackground( toggleButton10, WindowBackground );
2259 UxPutRecomputeSize( toggleButton10, "false" );
2260 UxPutHeight( toggleButton10, 20 );
2261 UxPutWidth( toggleButton10, 195 );
2262 UxPutY( toggleButton10, -4 );
2263 UxPutX( toggleButton10, 3 );
2264
2265 UxPutRecomputeSize( pb_main_search9, "false" );
2266 UxPutLabelString( pb_main_search9, "..." );
2267 UxPutForeground( pb_main_search9, ButtonForeground );
2268 UxPutFontList( pb_main_search9, BoldTextFont );
2269 UxPutBackground( pb_main_search9, ButtonBackground );
2270 UxPutHeight( pb_main_search9, 25 );
2271 UxPutY( pb_main_search9, 3 );
2272 UxPutX( pb_main_search9, 3 );
2273
2274 UxPutAdjustLast( rowColumn20, "true" );
2275 UxPutResizeWidth( rowColumn20, "false" );
2276 UxPutPacking( rowColumn20, "pack_tight" );
2277 UxPutOrientation( rowColumn20, "horizontal" );
2278 UxPutBackground( rowColumn20, WindowBackground );
2279 UxPutHeight( rowColumn20, 20 );
2280 UxPutWidth( rowColumn20, 250 );
2281 UxPutY( rowColumn20, 24 );
2282 UxPutX( rowColumn20, 2 );
2283
2284 UxPutTranslations( toggleButton11, transTable2 );
2285 UxPutSelectColor( toggleButton11, "Yellow" );
2286 UxPutLabelString( toggleButton11, "Extraction" );
2287 UxPutForeground( toggleButton11, TextForeground );
2288 UxPutFontList( toggleButton11, TextFont );
2289 UxPutBackground( toggleButton11, WindowBackground );
2290 UxPutRecomputeSize( toggleButton11, "false" );
2291 UxPutHeight( toggleButton11, 20 );
2292 UxPutWidth( toggleButton11, 195 );
2293 UxPutY( toggleButton11, -4 );
2294 UxPutX( toggleButton11, 3 );
2295
2296 UxPutRecomputeSize( pb_main_search10, "false" );
2297 UxPutLabelString( pb_main_search10, "..." );
2298 UxPutForeground( pb_main_search10, ButtonForeground );
2299 UxPutFontList( pb_main_search10, BoldTextFont );
2300 UxPutBackground( pb_main_search10, ButtonBackground );
2301 UxPutHeight( pb_main_search10, 25 );
2302 UxPutY( pb_main_search10, 3 );
2303 UxPutX( pb_main_search10, 3 );
2304
2305 UxPutAdjustLast( rowColumn21, "true" );
2306 UxPutResizeWidth( rowColumn21, "false" );
2307 UxPutPacking( rowColumn21, "pack_tight" );
2308 UxPutOrientation( rowColumn21, "horizontal" );
2309 UxPutBackground( rowColumn21, WindowBackground );
2310 UxPutHeight( rowColumn21, 20 );
2311 UxPutWidth( rowColumn21, 250 );
2312 UxPutY( rowColumn21, 24 );
2313 UxPutX( rowColumn21, 2 );
2314
2315 UxPutTranslations( toggleButton12, transTable2 );
2316 UxPutSelectColor( toggleButton12, "Yellow" );
2317 UxPutLabelString( toggleButton12, "Sky Background" );
2318 UxPutForeground( toggleButton12, TextForeground );
2319 UxPutFontList( toggleButton12, TextFont );
2320 UxPutBackground( toggleButton12, WindowBackground );
2321 UxPutRecomputeSize( toggleButton12, "false" );
2322 UxPutHeight( toggleButton12, 20 );
2323 UxPutWidth( toggleButton12, 195 );
2324 UxPutY( toggleButton12, -4 );
2325 UxPutX( toggleButton12, 3 );
2326
2327 UxPutRecomputeSize( pb_main_search11, "false" );
2328 UxPutLabelString( pb_main_search11, "..." );
2329 UxPutForeground( pb_main_search11, ButtonForeground );
2330 UxPutFontList( pb_main_search11, BoldTextFont );
2331 UxPutBackground( pb_main_search11, ButtonBackground );
2332 UxPutHeight( pb_main_search11, 25 );
2333 UxPutY( pb_main_search11, 3 );
2334 UxPutX( pb_main_search11, 3 );
2335
2336 UxPutSensitive( rowColumn9, "true" );
2337 UxPutAdjustLast( rowColumn9, "true" );
2338 UxPutResizeWidth( rowColumn9, "false" );
2339 UxPutPacking( rowColumn9, "pack_tight" );
2340 UxPutOrientation( rowColumn9, "horizontal" );
2341 UxPutBackground( rowColumn9, WindowBackground );
2342 UxPutHeight( rowColumn9, 20 );
2343 UxPutWidth( rowColumn9, 250 );
2344 UxPutY( rowColumn9, 24 );
2345 UxPutX( rowColumn9, 2 );
2346
2347 UxPutTranslations( toggleButton1, transTable2 );
2348 UxPutSelectColor( toggleButton1, "Yellow" );
2349 UxPutLabelString( toggleButton1, "Resampling" );
2350 UxPutForeground( toggleButton1, TextForeground );
2351 UxPutFontList( toggleButton1, TextFont );
2352 UxPutBackground( toggleButton1, WindowBackground );
2353 UxPutRecomputeSize( toggleButton1, "false" );
2354 UxPutHeight( toggleButton1, 29 );
2355 UxPutWidth( toggleButton1, 195 );
2356 UxPutY( toggleButton1, 3 );
2357 UxPutX( toggleButton1, 3 );
2358
2359 UxPutRecomputeSize( pb_main_search1, "false" );
2360 UxPutLabelString( pb_main_search1, "..." );
2361 UxPutForeground( pb_main_search1, ButtonForeground );
2362 UxPutFontList( pb_main_search1, BoldTextFont );
2363 UxPutBackground( pb_main_search1, ButtonBackground );
2364 UxPutHeight( pb_main_search1, 25 );
2365 UxPutY( pb_main_search1, 3 );
2366 UxPutX( pb_main_search1, 201 );
2367
2368 UxPutAdjustLast( rowColumn10, "true" );
2369 UxPutResizeWidth( rowColumn10, "false" );
2370 UxPutPacking( rowColumn10, "pack_tight" );
2371 UxPutOrientation( rowColumn10, "horizontal" );
2372 UxPutBackground( rowColumn10, WindowBackground );
2373 UxPutHeight( rowColumn10, 20 );
2374 UxPutWidth( rowColumn10, 250 );
2375 UxPutY( rowColumn10, 24 );
2376 UxPutX( rowColumn10, 2 );
2377
2378 UxPutTranslations( toggleButton2, transTable2 );
2379 UxPutSelectColor( toggleButton2, "Yellow" );
2380 UxPutLabelString( toggleButton2, "Flat-Field" );
2381 UxPutForeground( toggleButton2, TextForeground );
2382 UxPutFontList( toggleButton2, TextFont );
2383 UxPutBackground( toggleButton2, WindowBackground );
2384 UxPutRecomputeSize( toggleButton2, "false" );
2385 UxPutHeight( toggleButton2, 20 );
2386 UxPutWidth( toggleButton2, 195 );
2387 UxPutY( toggleButton2, -4 );
2388 UxPutX( toggleButton2, 3 );
2389
2390 UxPutRecomputeSize( pb_main_search3, "false" );
2391 UxPutLabelString( pb_main_search3, "..." );
2392 UxPutForeground( pb_main_search3, ButtonForeground );
2393 UxPutFontList( pb_main_search3, BoldTextFont );
2394 UxPutBackground( pb_main_search3, ButtonBackground );
2395 UxPutHeight( pb_main_search3, 25 );
2396 UxPutY( pb_main_search3, 3 );
2397 UxPutX( pb_main_search3, 3 );
2398
2399 UxPutAdjustLast( rowColumn12, "true" );
2400 UxPutResizeWidth( rowColumn12, "false" );
2401 UxPutPacking( rowColumn12, "pack_tight" );
2402 UxPutOrientation( rowColumn12, "horizontal" );
2403 UxPutBackground( rowColumn12, WindowBackground );
2404 UxPutHeight( rowColumn12, 20 );
2405 UxPutWidth( rowColumn12, 250 );
2406 UxPutY( rowColumn12, 24 );
2407 UxPutX( rowColumn12, 2 );
2408
2409 UxPutTranslations( toggleButton4, transTable2 );
2410 UxPutSelectColor( toggleButton4, "Yellow" );
2411 UxPutLabelString( toggleButton4, "Chromatic Response" );
2412 UxPutForeground( toggleButton4, TextForeground );
2413 UxPutFontList( toggleButton4, TextFont );
2414 UxPutBackground( toggleButton4, WindowBackground );
2415 UxPutRecomputeSize( toggleButton4, "false" );
2416 UxPutHeight( toggleButton4, 20 );
2417 UxPutWidth( toggleButton4, 195 );
2418 UxPutY( toggleButton4, -4 );
2419 UxPutX( toggleButton4, 3 );
2420
2421 UxPutRecomputeSize( pb_main_search12, "false" );
2422 UxPutLabelString( pb_main_search12, "..." );
2423 UxPutForeground( pb_main_search12, ButtonForeground );
2424 UxPutFontList( pb_main_search12, BoldTextFont );
2425 UxPutBackground( pb_main_search12, ButtonBackground );
2426 UxPutHeight( pb_main_search12, 25 );
2427 UxPutY( pb_main_search12, 3 );
2428 UxPutX( pb_main_search12, 3 );
2429
2430 UxPutAdjustLast( rowColumn22, "true" );
2431 UxPutResizeWidth( rowColumn22, "false" );
2432 UxPutPacking( rowColumn22, "pack_tight" );
2433 UxPutOrientation( rowColumn22, "horizontal" );
2434 UxPutBackground( rowColumn22, WindowBackground );
2435 UxPutHeight( rowColumn22, 20 );
2436 UxPutWidth( rowColumn22, 250 );
2437 UxPutY( rowColumn22, 24 );
2438 UxPutX( rowColumn22, 2 );
2439
2440 UxPutTranslations( toggleButton13, transTable2 );
2441 UxPutSelectColor( toggleButton13, "Yellow" );
2442 UxPutLabelString( toggleButton13, "Order Merging" );
2443 UxPutForeground( toggleButton13, TextForeground );
2444 UxPutFontList( toggleButton13, TextFont );
2445 UxPutBackground( toggleButton13, WindowBackground );
2446 UxPutRecomputeSize( toggleButton13, "false" );
2447 UxPutHeight( toggleButton13, 20 );
2448 UxPutWidth( toggleButton13, 195 );
2449 UxPutY( toggleButton13, -4 );
2450 UxPutX( toggleButton13, 3 );
2451
2452 UxPutRecomputeSize( pb_main_search13, "false" );
2453 UxPutLabelString( pb_main_search13, "..." );
2454 UxPutForeground( pb_main_search13, ButtonForeground );
2455 UxPutFontList( pb_main_search13, BoldTextFont );
2456 UxPutBackground( pb_main_search13, ButtonBackground );
2457 UxPutHeight( pb_main_search13, 25 );
2458 UxPutY( pb_main_search13, 3 );
2459 UxPutX( pb_main_search13, 3 );
2460
2461 }
2462
2463 /*******************************************************************************
2464 The 'build_' function creates all the swidgets and X widgets,
2465 and sets their properties to the values specified in the
2466 Property Editor.
2467 *******************************************************************************/
2468
2469 static swidget _Uxbuild_ApplicWindow()
2470 {
2471 /* Create the swidgets */
2472
2473 ApplicWindow = UxCreateApplicationShell( "ApplicWindow", NO_PARENT );
2474 UxPutContext( ApplicWindow, UxApplicWindowContext );
2475
2476 MainWindow = UxCreateMainWindow( "MainWindow", ApplicWindow );
2477 menu1 = UxCreateRowColumn( "menu1", MainWindow );
2478 menu1_p1 = UxCreateRowColumn( "menu1_p1", menu1 );
2479 menu1_p1_b1 = UxCreatePushButtonGadget( "menu1_p1_b1", menu1_p1 );
2480 menu1_p1_b2 = UxCreatePushButtonGadget( "menu1_p1_b2", menu1_p1 );
2481 menu1_p1_b3 = UxCreatePushButtonGadget( "menu1_p1_b3", menu1_p1 );
2482 menu1_p1_b5 = UxCreateSeparator( "menu1_p1_b5", menu1_p1 );
2483 menu1_p1_b6 = UxCreatePushButtonGadget( "menu1_p1_b6", menu1_p1 );
2484 menu1_p1_b7 = UxCreatePushButtonGadget( "menu1_p1_b7", menu1_p1 );
2485 menu1_p1_b8 = UxCreateSeparator( "menu1_p1_b8", menu1_p1 );
2486 menu1_p1_b4 = UxCreatePushButtonGadget( "menu1_p1_b4", menu1_p1 );
2487 menu1_top_b1 = UxCreateCascadeButton( "menu1_top_b1", menu1 );
2488 menu1_p4 = UxCreateRowColumn( "menu1_p4", menu1 );
2489 menu1_p4_b1 = UxCreatePushButtonGadget( "menu1_p4_b1", menu1_p4 );
2490 menu1_p4_b2 = UxCreatePushButtonGadget( "menu1_p4_b2", menu1_p4 );
2491 menu1_p4_b8 = UxCreateSeparatorGadget( "menu1_p4_b8", menu1_p4 );
2492 menu1_p4_b10 = UxCreatePushButtonGadget( "menu1_p4_b10", menu1_p4 );
2493 menu1_p4_b13 = UxCreatePushButtonGadget( "menu1_p4_b13", menu1_p4 );
2494 menu1_p4_b12 = UxCreateSeparatorGadget( "menu1_p4_b12", menu1_p4 );
2495 menu1_p4_b3 = UxCreatePushButtonGadget( "menu1_p4_b3", menu1_p4 );
2496 menu1_p4_b4 = UxCreatePushButtonGadget( "menu1_p4_b4", menu1_p4 );
2497 menu1_p4_b9 = UxCreateSeparatorGadget( "menu1_p4_b9", menu1_p4 );
2498 menu1_p4_b5 = UxCreatePushButtonGadget( "menu1_p4_b5", menu1_p4 );
2499 menu1_p4_b11 = UxCreatePushButtonGadget( "menu1_p4_b11", menu1_p4 );
2500 menu1_p4_b14 = UxCreateSeparatorGadget( "menu1_p4_b14", menu1_p4 );
2501 menu1_p4_b15 = UxCreatePushButtonGadget( "menu1_p4_b15", menu1_p4 );
2502 menu1_top_b4 = UxCreateCascadeButton( "menu1_top_b4", menu1 );
2503 menu1_p5 = UxCreateRowColumn( "menu1_p5", menu1 );
2504 menu_help_context = UxCreatePushButtonGadget( "menu_help_context", menu1_p5 );
2505 menu_help_help = UxCreatePushButtonGadget( "menu_help_help", menu1_p5 );
2506 menu1_p5_b5 = UxCreateSeparatorGadget( "menu1_p5_b5", menu1_p5 );
2507 menu_help_tutorial = UxCreatePushButtonGadget( "menu_help_tutorial", menu1_p5 );
2508 menu_help_version = UxCreatePushButtonGadget( "menu_help_version", menu1_p5 );
2509 menu1_top_b5 = UxCreateCascadeButton( "menu1_top_b5", menu1 );
2510 form1 = UxCreateForm( "form1", MainWindow );
2511 form5 = UxCreateForm( "form5", form1 );
2512 pb_main_batch = UxCreatePushButton( "pb_main_batch", form5 );
2513 pb_main_ident = UxCreatePushButton( "pb_main_ident", form5 );
2514 pb_main_batch1 = UxCreatePushButton( "pb_main_batch1", form5 );
2515 pb_main_batch2 = UxCreatePushButton( "pb_main_batch2", form5 );
2516 pb_main_batch3 = UxCreatePushButton( "pb_main_batch3", form5 );
2517 separator12 = UxCreateSeparator( "separator12", form1 );
2518 shelp_main = UxCreateText( "shelp_main", form1 );
2519 separator1 = UxCreateSeparator( "separator1", form1 );
2520 form22 = UxCreateForm( "form22", form1 );
2521 ListWindow1 = UxCreateScrolledWindow( "ListWindow1", form22 );
2522 scrolledList1 = UxCreateScrolledText( "scrolledList1", ListWindow1 );
2523 tf_wrang1 = UxCreateTextField( "tf_wrang1", form22 );
2524 label3 = UxCreateLabel( "label3", form22 );
2525 label4 = UxCreateLabel( "label4", form22 );
2526 tf_wrang2 = UxCreateTextField( "tf_wrang2", form22 );
2527 form23 = UxCreateForm( "form23", form22 );
2528 label2 = UxCreateLabel( "label2", form23 );
2529 tf_session = UxCreateTextField( "tf_session", form23 );
2530 pb_main_batch4 = UxCreatePushButton( "pb_main_batch4", form23 );
2531 form24 = UxCreateForm( "form24", form22 );
2532 label5 = UxCreateLabel( "label5", form24 );
2533 tf_session1 = UxCreateTextField( "tf_session1", form24 );
2534 label32 = UxCreateLabel( "label32", form22 );
2535 label39 = UxCreateLabel( "label39", form22 );
2536 scrolledWindow4 = UxCreateScrolledWindow( "scrolledWindow4", form22 );
2537 scrolledList4 = UxCreateScrolledList( "scrolledList4", scrolledWindow4 );
2538 rowColumn11 = UxCreateRowColumn( "rowColumn11", form1 );
2539 label7 = UxCreateLabel( "label7", rowColumn11 );
2540 rowColumn13 = UxCreateRowColumn( "rowColumn13", rowColumn11 );
2541 toggleButton5 = UxCreateLabel( "toggleButton5", rowColumn13 );
2542 pb_main_search4 = UxCreatePushButton( "pb_main_search4", rowColumn13 );
2543 rowColumn14 = UxCreateRowColumn( "rowColumn14", rowColumn11 );
2544 toggleButton6 = UxCreateLabel( "toggleButton6", rowColumn14 );
2545 pb_main_search5 = UxCreatePushButton( "pb_main_search5", rowColumn14 );
2546 rowColumn15 = UxCreateRowColumn( "rowColumn15", rowColumn11 );
2547 toggleButton7 = UxCreateLabel( "toggleButton7", rowColumn15 );
2548 pb_main_search6 = UxCreatePushButton( "pb_main_search6", rowColumn15 );
2549 rowColumn16 = UxCreateRowColumn( "rowColumn16", rowColumn11 );
2550 toggleButton8 = UxCreateLabel( "toggleButton8", rowColumn16 );
2551 pb_main_search7 = UxCreatePushButton( "pb_main_search7", rowColumn16 );
2552 rowColumn17 = UxCreateRowColumn( "rowColumn17", rowColumn11 );
2553 toggleButton9 = UxCreateLabel( "toggleButton9", rowColumn17 );
2554 menu2_p7 = UxCreateRowColumn( "menu2_p7", rowColumn17 );
2555 mn_tol_angstroms7 = UxCreatePushButtonGadget( "mn_tol_angstroms7", menu2_p7 );
2556 mn_tol_pixels7 = UxCreatePushButtonGadget( "mn_tol_pixels7", menu2_p7 );
2557 menu2_p7_b3 = UxCreatePushButtonGadget( "menu2_p7_b3", menu2_p7 );
2558 menu2_p7_b4 = UxCreatePushButtonGadget( "menu2_p7_b4", menu2_p7 );
2559 menu2_p7_b5 = UxCreatePushButtonGadget( "menu2_p7_b5", menu2_p7 );
2560 menu2_p7_b6 = UxCreatePushButtonGadget( "menu2_p7_b6", menu2_p7 );
2561 mn_tol7 = UxCreateRowColumn( "mn_tol7", rowColumn17 );
2562 label1 = UxCreateLabel( "label1", rowColumn11 );
2563 rowColumn18 = UxCreateRowColumn( "rowColumn18", rowColumn11 );
2564 toggleButton3 = UxCreateToggleButton( "toggleButton3", rowColumn18 );
2565 pb_main_search2 = UxCreatePushButton( "pb_main_search2", rowColumn18 );
2566 rowColumn19 = UxCreateRowColumn( "rowColumn19", rowColumn11 );
2567 toggleButton10 = UxCreateToggleButton( "toggleButton10", rowColumn19 );
2568 pb_main_search9 = UxCreatePushButton( "pb_main_search9", rowColumn19 );
2569 rowColumn20 = UxCreateRowColumn( "rowColumn20", rowColumn11 );
2570 toggleButton11 = UxCreateToggleButton( "toggleButton11", rowColumn20 );
2571 pb_main_search10 = UxCreatePushButton( "pb_main_search10", rowColumn20 );
2572 rowColumn21 = UxCreateRowColumn( "rowColumn21", rowColumn11 );
2573 toggleButton12 = UxCreateToggleButton( "toggleButton12", rowColumn21 );
2574 pb_main_search11 = UxCreatePushButton( "pb_main_search11", rowColumn21 );
2575 rowColumn9 = UxCreateRowColumn( "rowColumn9", rowColumn11 );
2576 toggleButton1 = UxCreateToggleButton( "toggleButton1", rowColumn9 );
2577 pb_main_search1 = UxCreatePushButton( "pb_main_search1", rowColumn9 );
2578 rowColumn10 = UxCreateRowColumn( "rowColumn10", rowColumn11 );
2579 toggleButton2 = UxCreateToggleButton( "toggleButton2", rowColumn10 );
2580 pb_main_search3 = UxCreatePushButton( "pb_main_search3", rowColumn10 );
2581 rowColumn12 = UxCreateRowColumn( "rowColumn12", rowColumn11 );
2582 toggleButton4 = UxCreateToggleButton( "toggleButton4", rowColumn12 );
2583 pb_main_search12 = UxCreatePushButton( "pb_main_search12", rowColumn12 );
2584 rowColumn22 = UxCreateRowColumn( "rowColumn22", rowColumn11 );
2585 toggleButton13 = UxCreateToggleButton( "toggleButton13", rowColumn22 );
2586 pb_main_search13 = UxCreatePushButton( "pb_main_search13", rowColumn22 );
2587
2588 _Uxinit_ApplicWindow();
2589
2590 /* Create the X widgets */
2591
2592 UxCreateWidget( ApplicWindow );
2593 UxCreateWidget( MainWindow );
2594 UxCreateWidget( menu1 );
2595 UxCreateWidget( menu1_p1 );
2596 UxCreateWidget( menu1_p1_b1 );
2597 UxCreateWidget( menu1_p1_b2 );
2598 UxCreateWidget( menu1_p1_b3 );
2599 UxCreateWidget( menu1_p1_b5 );
2600 UxCreateWidget( menu1_p1_b6 );
2601 UxCreateWidget( menu1_p1_b7 );
2602 UxCreateWidget( menu1_p1_b8 );
2603 UxCreateWidget( menu1_p1_b4 );
2604 UxPutSubMenuId( menu1_top_b1, "menu1_p1" );
2605 UxCreateWidget( menu1_top_b1 );
2606
2607 UxCreateWidget( menu1_p4 );
2608 UxCreateWidget( menu1_p4_b1 );
2609 UxCreateWidget( menu1_p4_b2 );
2610 UxCreateWidget( menu1_p4_b8 );
2611 UxCreateWidget( menu1_p4_b10 );
2612 UxCreateWidget( menu1_p4_b13 );
2613 UxCreateWidget( menu1_p4_b12 );
2614 UxCreateWidget( menu1_p4_b3 );
2615 UxCreateWidget( menu1_p4_b4 );
2616 UxCreateWidget( menu1_p4_b9 );
2617 UxCreateWidget( menu1_p4_b5 );
2618 UxCreateWidget( menu1_p4_b11 );
2619 UxCreateWidget( menu1_p4_b14 );
2620 UxCreateWidget( menu1_p4_b15 );
2621 UxPutSubMenuId( menu1_top_b4, "menu1_p4" );
2622 UxCreateWidget( menu1_top_b4 );
2623
2624 UxCreateWidget( menu1_p5 );
2625 UxCreateWidget( menu_help_context );
2626 UxCreateWidget( menu_help_help );
2627 UxCreateWidget( menu1_p5_b5 );
2628 UxCreateWidget( menu_help_tutorial );
2629 UxCreateWidget( menu_help_version );
2630 UxPutSubMenuId( menu1_top_b5, "menu1_p5" );
2631 UxCreateWidget( menu1_top_b5 );
2632
2633 UxCreateWidget( form1 );
2634 UxPutTopOffset( form5, 60 );
2635 UxPutTopAttachment( form5, "attach_none" );
2636 UxPutBottomOffset( form5, 0 );
2637 UxPutRightOffset( form5, 0 );
2638 UxPutRightAttachment( form5, "attach_form" );
2639 UxPutLeftOffset( form5, 0 );
2640 UxPutLeftAttachment( form5, "attach_form" );
2641 UxPutBottomAttachment( form5, "attach_form" );
2642 UxCreateWidget( form5 );
2643
2644 UxPutBottomOffset( pb_main_batch, 5 );
2645 UxPutBottomAttachment( pb_main_batch, "attach_form" );
2646 UxPutLeftWidget( pb_main_batch, "" );
2647 UxPutLeftOffset( pb_main_batch, 5 );
2648 UxPutLeftAttachment( pb_main_batch, "attach_form" );
2649 UxCreateWidget( pb_main_batch );
2650
2651 UxPutLeftWidget( pb_main_ident, "pb_main_batch" );
2652 UxPutLeftOffset( pb_main_ident, 5 );
2653 UxPutLeftAttachment( pb_main_ident, "attach_widget" );
2654 UxPutBottomOffset( pb_main_ident, 5 );
2655 UxPutBottomAttachment( pb_main_ident, "attach_form" );
2656 UxCreateWidget( pb_main_ident );
2657
2658 UxPutBottomOffset( pb_main_batch1, 5 );
2659 UxPutBottomAttachment( pb_main_batch1, "attach_form" );
2660 UxPutLeftWidget( pb_main_batch1, "pb_main_ident" );
2661 UxPutLeftOffset( pb_main_batch1, 5 );
2662 UxPutLeftAttachment( pb_main_batch1, "attach_widget" );
2663 UxCreateWidget( pb_main_batch1 );
2664
2665 UxPutBottomOffset( pb_main_batch2, 5 );
2666 UxPutBottomAttachment( pb_main_batch2, "attach_form" );
2667 UxPutLeftWidget( pb_main_batch2, "pb_main_batch1" );
2668 UxPutLeftOffset( pb_main_batch2, 5 );
2669 UxPutLeftAttachment( pb_main_batch2, "attach_widget" );
2670 UxCreateWidget( pb_main_batch2 );
2671
2672 UxPutBottomOffset( pb_main_batch3, 5 );
2673 UxPutBottomAttachment( pb_main_batch3, "attach_form" );
2674 UxPutRightOffset( pb_main_batch3, 5 );
2675 UxPutRightAttachment( pb_main_batch3, "attach_form" );
2676 UxPutLeftWidget( pb_main_batch3, "pb_main_batch2" );
2677 UxPutLeftOffset( pb_main_batch3, 5 );
2678 UxPutLeftAttachment( pb_main_batch3, "attach_none" );
2679 UxCreateWidget( pb_main_batch3 );
2680
2681 UxPutLeftOffset( separator12, 0 );
2682 UxPutRightOffset( separator12, 0 );
2683 UxPutRightAttachment( separator12, "attach_form" );
2684 UxPutLeftAttachment( separator12, "attach_form" );
2685 UxPutBottomWidget( separator12, "form5" );
2686 UxPutBottomAttachment( separator12, "attach_widget" );
2687 UxCreateWidget( separator12 );
2688
2689 UxPutRightOffset( shelp_main, 5 );
2690 UxPutRightAttachment( shelp_main, "attach_form" );
2691 UxPutLeftOffset( shelp_main, 5 );
2692 UxPutLeftAttachment( shelp_main, "attach_form" );
2693 UxPutBottomWidget( shelp_main, "separator12" );
2694 UxPutBottomAttachment( shelp_main, "attach_widget" );
2695 UxCreateWidget( shelp_main );
2696
2697 UxPutRightOffset( separator1, 0 );
2698 UxPutRightAttachment( separator1, "attach_form" );
2699 UxPutLeftOffset( separator1, 0 );
2700 UxPutLeftAttachment( separator1, "attach_form" );
2701 UxPutBottomWidget( separator1, "shelp_main" );
2702 UxPutBottomAttachment( separator1, "attach_widget" );
2703 UxCreateWidget( separator1 );
2704
2705 UxPutBottomWidget( form22, "separator1" );
2706 UxPutBottomOffset( form22, 5 );
2707 UxPutBottomAttachment( form22, "attach_widget" );
2708 UxPutTopOffset( form22, 5 );
2709 UxPutTopAttachment( form22, "attach_form" );
2710 UxPutRightOffset( form22, 5 );
2711 UxPutRightAttachment( form22, "attach_form" );
2712 UxPutLeftOffset( form22, 250 );
2713 UxPutLeftAttachment( form22, "attach_form" );
2714 UxCreateWidget( form22 );
2715
2716 UxPutTopOffset( ListWindow1, 160 );
2717 UxPutTopAttachment( ListWindow1, "attach_form" );
2718 UxPutBottomOffset( ListWindow1, 60 );
2719 UxPutBottomAttachment( ListWindow1, "attach_form" );
2720 UxPutRightOffset( ListWindow1, 350 );
2721 UxPutRightAttachment( ListWindow1, "attach_form" );
2722 UxPutLeftOffset( ListWindow1, 10 );
2723 UxPutLeftAttachment( ListWindow1, "attach_form" );
2724 UxCreateWidget( ListWindow1 );
2725
2726 UxCreateWidget( scrolledList1 );
2727 UxPutBottomOffset( tf_wrang1, 5 );
2728 UxPutBottomAttachment( tf_wrang1, "attach_form" );
2729 UxPutRightOffset( tf_wrang1, 220 );
2730 UxPutRightAttachment( tf_wrang1, "attach_form" );
2731 UxPutLeftPosition( tf_wrang1, 100 );
2732 UxPutLeftOffset( tf_wrang1, 110 );
2733 UxPutLeftAttachment( tf_wrang1, "attach_form" );
2734 UxPutTopWidget( tf_wrang1, "ListWindow1" );
2735 UxPutTopOffset( tf_wrang1, 40 );
2736 UxPutTopAttachment( tf_wrang1, "attach_none" );
2737 UxCreateWidget( tf_wrang1 );
2738
2739 UxPutBottomOffset( label3, 5 );
2740 UxPutBottomAttachment( label3, "attach_form" );
2741 UxPutRightOffset( label3, 5 );
2742 UxPutLeftOffset( label3, 5 );
2743 UxPutLeftAttachment( label3, "attach_form" );
2744 UxPutTopWidget( label3, "ListWindow1" );
2745 UxPutTopOffset( label3, 40 );
2746 UxPutTopAttachment( label3, "attach_none" );
2747 UxCreateWidget( label3 );
2748
2749 UxPutBottomOffset( label4, 5 );
2750 UxPutBottomAttachment( label4, "attach_form" );
2751 UxPutLeftWidget( label4, "tf_wrang1" );
2752 UxPutRightOffset( label4, 110 );
2753 UxPutRightAttachment( label4, "attach_form" );
2754 UxPutLeftOffset( label4, 5 );
2755 UxPutLeftAttachment( label4, "attach_widget" );
2756 UxPutTopWidget( label4, "ListWindow1" );
2757 UxPutTopOffset( label4, 40 );
2758 UxPutTopAttachment( label4, "attach_none" );
2759 UxCreateWidget( label4 );
2760
2761 UxPutBottomOffset( tf_wrang2, 5 );
2762 UxPutBottomAttachment( tf_wrang2, "attach_form" );
2763 UxPutRightOffset( tf_wrang2, 5 );
2764 UxPutRightAttachment( tf_wrang2, "attach_form" );
2765 UxPutLeftWidget( tf_wrang2, "label4" );
2766 UxPutLeftOffset( tf_wrang2, 5 );
2767 UxPutLeftAttachment( tf_wrang2, "attach_widget" );
2768 UxPutTopWidget( tf_wrang2, "ListWindow1" );
2769 UxPutTopOffset( tf_wrang2, 40 );
2770 UxPutTopAttachment( tf_wrang2, "attach_none" );
2771 UxCreateWidget( tf_wrang2 );
2772
2773 UxPutTopAttachment( form23, "attach_form" );
2774 UxPutTopOffset( form23, 60 );
2775 UxPutRightOffset( form23, 4 );
2776 UxPutRightAttachment( form23, "attach_form" );
2777 UxPutLeftOffset( form23, 4 );
2778 UxPutLeftAttachment( form23, "attach_form" );
2779 UxCreateWidget( form23 );
2780
2781 UxPutLeftOffset( label2, 5 );
2782 UxPutLeftAttachment( label2, "attach_form" );
2783 UxCreateWidget( label2 );
2784
2785 UxPutRightOffset( tf_session, 85 );
2786 UxPutRightAttachment( tf_session, "attach_form" );
2787 UxPutLeftOffset( tf_session, 90 );
2788 UxPutLeftAttachment( tf_session, "attach_form" );
2789 UxCreateWidget( tf_session );
2790
2791 UxPutRightOffset( pb_main_batch4, 5 );
2792 UxPutRightAttachment( pb_main_batch4, "attach_form" );
2793 UxCreateWidget( pb_main_batch4 );
2794
2795 UxPutTopOffset( form24, 10 );
2796 UxPutTopAttachment( form24, "attach_form" );
2797 UxCreateWidget( form24 );
2798
2799 UxPutLeftOffset( label5, 6 );
2800 UxPutLeftAttachment( label5, "attach_form" );
2801 UxCreateWidget( label5 );
2802
2803 UxPutRightOffset( tf_session1, 80 );
2804 UxPutRightAttachment( tf_session1, "attach_form" );
2805 UxPutLeftOffset( tf_session1, 90 );
2806 UxPutLeftAttachment( tf_session1, "attach_form" );
2807 UxCreateWidget( tf_session1 );
2808
2809 UxPutLeftOffset( label32, 10 );
2810 UxPutLeftAttachment( label32, "attach_form" );
2811 UxPutTopOffset( label32, 110 );
2812 UxPutTopAttachment( label32, "attach_form" );
2813 UxCreateWidget( label32 );
2814
2815 UxPutTopOffset( label39, 110 );
2816 UxPutTopAttachment( label39, "attach_form" );
2817 UxPutLeftOffset( label39, 230 );
2818 UxPutLeftAttachment( label39, "attach_form" );
2819 UxCreateWidget( label39 );
2820
2821 UxPutRightOffset( scrolledWindow4, 10 );
2822 UxPutRightAttachment( scrolledWindow4, "attach_form" );
2823 UxPutTopOffset( scrolledWindow4, 160 );
2824 UxPutTopAttachment( scrolledWindow4, "attach_form" );
2825 UxPutLeftWidget( scrolledWindow4, "ListWindow1" );
2826 UxPutLeftOffset( scrolledWindow4, 10 );
2827 UxPutLeftAttachment( scrolledWindow4, "attach_widget" );
2828 UxPutBottomOffset( scrolledWindow4, 60 );
2829 UxPutBottomAttachment( scrolledWindow4, "attach_form" );
2830 UxCreateWidget( scrolledWindow4 );
2831
2832 UxCreateWidget( scrolledList4 );
2833 createCB_scrolledList4( UxGetWidget( scrolledList4 ),
2834 (XtPointer) UxApplicWindowContext, (XtPointer) NULL );
2835
2836 UxPutBottomWidget( rowColumn11, "separator1" );
2837 UxPutBottomOffset( rowColumn11, 5 );
2838 UxPutBottomAttachment( rowColumn11, "attach_widget" );
2839 UxPutTopOffset( rowColumn11, 10 );
2840 UxPutTopAttachment( rowColumn11, "attach_form" );
2841 UxPutLeftOffset( rowColumn11, 5 );
2842 UxPutLeftAttachment( rowColumn11, "attach_form" );
2843 UxCreateWidget( rowColumn11 );
2844
2845 UxCreateWidget( label7 );
2846 UxCreateWidget( rowColumn13 );
2847 UxCreateWidget( toggleButton5 );
2848 UxCreateWidget( pb_main_search4 );
2849 UxCreateWidget( rowColumn14 );
2850 UxCreateWidget( toggleButton6 );
2851 UxCreateWidget( pb_main_search5 );
2852 UxCreateWidget( rowColumn15 );
2853 UxCreateWidget( toggleButton7 );
2854 UxCreateWidget( pb_main_search6 );
2855 UxCreateWidget( rowColumn16 );
2856 UxCreateWidget( toggleButton8 );
2857 UxCreateWidget( pb_main_search7 );
2858 UxCreateWidget( rowColumn17 );
2859 UxCreateWidget( toggleButton9 );
2860 UxCreateWidget( menu2_p7 );
2861 UxCreateWidget( mn_tol_angstroms7 );
2862 UxCreateWidget( mn_tol_pixels7 );
2863 UxCreateWidget( menu2_p7_b3 );
2864 UxCreateWidget( menu2_p7_b4 );
2865 UxCreateWidget( menu2_p7_b5 );
2866 UxCreateWidget( menu2_p7_b6 );
2867 UxPutSubMenuId( mn_tol7, "menu2_p7" );
2868 UxCreateWidget( mn_tol7 );
2869
2870 UxCreateWidget( label1 );
2871 UxCreateWidget( rowColumn18 );
2872 UxCreateWidget( toggleButton3 );
2873 UxCreateWidget( pb_main_search2 );
2874 UxCreateWidget( rowColumn19 );
2875 UxCreateWidget( toggleButton10 );
2876 UxCreateWidget( pb_main_search9 );
2877 UxCreateWidget( rowColumn20 );
2878 UxCreateWidget( toggleButton11 );
2879 UxCreateWidget( pb_main_search10 );
2880 UxCreateWidget( rowColumn21 );
2881 UxCreateWidget( toggleButton12 );
2882 UxCreateWidget( pb_main_search11 );
2883 UxCreateWidget( rowColumn9 );
2884 UxCreateWidget( toggleButton1 );
2885 UxCreateWidget( pb_main_search1 );
2886 UxCreateWidget( rowColumn10 );
2887 UxCreateWidget( toggleButton2 );
2888 UxCreateWidget( pb_main_search3 );
2889 UxCreateWidget( rowColumn12 );
2890 UxCreateWidget( toggleButton4 );
2891 UxCreateWidget( pb_main_search12 );
2892 UxCreateWidget( rowColumn22 );
2893 UxCreateWidget( toggleButton13 );
2894 UxCreateWidget( pb_main_search13 );
2895
2896 UxPutMenuHelpWidget( menu1, "menu1_top_b5" );
2897
2898 UxAddCallback( menu1_p1_b1, XmNactivateCallback,
2899 activateCB_menu1_p1_b1,
2900 (XtPointer) UxApplicWindowContext );
2901
2902 UxAddCallback( menu1_p1_b2, XmNactivateCallback,
2903 activateCB_menu1_p1_b2,
2904 (XtPointer) UxApplicWindowContext );
2905
2906 UxAddCallback( menu1_p1_b3, XmNactivateCallback,
2907 activateCB_menu1_p1_b3,
2908 (XtPointer) UxApplicWindowContext );
2909
2910 UxAddCallback( menu1_p1_b6, XmNactivateCallback,
2911 activateCB_menu1_p1_b6,
2912 (XtPointer) UxApplicWindowContext );
2913
2914 UxAddCallback( menu1_p1_b7, XmNactivateCallback,
2915 activateCB_menu1_p1_b7,
2916 (XtPointer) UxApplicWindowContext );
2917
2918 UxAddCallback( menu1_p1_b4, XmNactivateCallback,
2919 activateCB_menu1_p1_b4,
2920 (XtPointer) UxApplicWindowContext );
2921
2922 UxAddCallback( menu1_p4_b1, XmNactivateCallback,
2923 activateCB_menu1_p4_b1,
2924 (XtPointer) UxApplicWindowContext );
2925
2926 UxAddCallback( menu1_p4_b2, XmNactivateCallback,
2927 activateCB_menu1_p4_b2,
2928 (XtPointer) UxApplicWindowContext );
2929
2930 UxAddCallback( menu1_p4_b10, XmNactivateCallback,
2931 activateCB_menu1_p4_b10,
2932 (XtPointer) UxApplicWindowContext );
2933
2934 UxAddCallback( menu1_p4_b13, XmNactivateCallback,
2935 activateCB_menu1_p4_b13,
2936 (XtPointer) UxApplicWindowContext );
2937
2938 UxAddCallback( menu1_p4_b3, XmNactivateCallback,
2939 activateCB_menu1_p4_b3,
2940 (XtPointer) UxApplicWindowContext );
2941
2942 UxAddCallback( menu1_p4_b4, XmNactivateCallback,
2943 activateCB_menu1_p4_b4,
2944 (XtPointer) UxApplicWindowContext );
2945
2946 UxAddCallback( menu1_p4_b5, XmNactivateCallback,
2947 activateCB_menu1_p4_b5,
2948 (XtPointer) UxApplicWindowContext );
2949
2950 UxAddCallback( menu1_p4_b11, XmNactivateCallback,
2951 activateCB_menu1_p4_b11,
2952 (XtPointer) UxApplicWindowContext );
2953
2954 UxAddCallback( menu1_p4_b15, XmNactivateCallback,
2955 activateCB_menu1_p4_b15,
2956 (XtPointer) UxApplicWindowContext );
2957
2958 UxAddCallback( menu_help_context, XmNactivateCallback,
2959 activateCB_menu_help_context,
2960 (XtPointer) UxApplicWindowContext );
2961
2962 UxAddCallback( menu_help_help, XmNactivateCallback,
2963 activateCB_menu_help_help,
2964 (XtPointer) UxApplicWindowContext );
2965
2966 UxAddCallback( menu_help_tutorial, XmNactivateCallback,
2967 activateCB_menu_help_tutorial,
2968 (XtPointer) UxApplicWindowContext );
2969
2970 UxAddCallback( menu_help_version, XmNactivateCallback,
2971 activateCB_menu_help_version,
2972 (XtPointer) UxApplicWindowContext );
2973
2974 UxAddCallback( pb_main_batch, XmNactivateCallback,
2975 activateCB_pb_main_batch,
2976 (XtPointer) UxApplicWindowContext );
2977
2978 UxAddCallback( pb_main_ident, XmNactivateCallback,
2979 activateCB_pb_main_ident,
2980 (XtPointer) UxApplicWindowContext );
2981
2982 UxAddCallback( pb_main_batch1, XmNactivateCallback,
2983 activateCB_pb_main_batch1,
2984 (XtPointer) UxApplicWindowContext );
2985
2986 UxAddCallback( pb_main_batch2, XmNactivateCallback,
2987 activateCB_pb_main_batch2,
2988 (XtPointer) UxApplicWindowContext );
2989
2990 UxAddCallback( pb_main_batch3, XmNactivateCallback,
2991 activateCB_pb_main_batch3,
2992 (XtPointer) UxApplicWindowContext );
2993
2994 UxAddCallback( tf_wrang1, XmNlosingFocusCallback,
2995 losingFocusCB_tf_wrang1,
2996 (XtPointer) UxApplicWindowContext );
2997
2998 UxAddCallback( tf_wrang2, XmNlosingFocusCallback,
2999 losingFocusCB_tf_wrang2,
3000 (XtPointer) UxApplicWindowContext );
3001
3002 UxAddCallback( pb_main_batch4, XmNactivateCallback,
3003 activateCB_pb_main_batch4,
3004 (XtPointer) UxApplicWindowContext );
3005
3006 UxAddCallback( pb_main_search4, XmNactivateCallback,
3007 activateCB_pb_main_search4,
3008 (XtPointer) UxApplicWindowContext );
3009
3010 UxAddCallback( pb_main_search5, XmNactivateCallback,
3011 activateCB_pb_main_search5,
3012 (XtPointer) UxApplicWindowContext );
3013
3014 UxAddCallback( pb_main_search6, XmNactivateCallback,
3015 activateCB_pb_main_search6,
3016 (XtPointer) UxApplicWindowContext );
3017
3018 UxAddCallback( pb_main_search7, XmNactivateCallback,
3019 activateCB_pb_main_search7,
3020 (XtPointer) UxApplicWindowContext );
3021
3022 UxAddCallback( mn_tol_angstroms7, XmNactivateCallback,
3023 activateCB_mn_tol_angstroms7,
3024 (XtPointer) UxApplicWindowContext );
3025
3026 UxAddCallback( mn_tol_pixels7, XmNactivateCallback,
3027 activateCB_mn_tol_pixels7,
3028 (XtPointer) UxApplicWindowContext );
3029
3030 UxAddCallback( menu2_p7_b3, XmNactivateCallback,
3031 activateCB_menu2_p7_b3,
3032 (XtPointer) UxApplicWindowContext );
3033
3034 UxAddCallback( menu2_p7_b4, XmNactivateCallback,
3035 activateCB_menu2_p7_b4,
3036 (XtPointer) UxApplicWindowContext );
3037
3038 UxAddCallback( menu2_p7_b5, XmNactivateCallback,
3039 activateCB_menu2_p7_b5,
3040 (XtPointer) UxApplicWindowContext );
3041
3042 UxAddCallback( menu2_p7_b6, XmNactivateCallback,
3043 activateCB_menu2_p7_b6,
3044 (XtPointer) UxApplicWindowContext );
3045
3046 UxAddCallback( toggleButton3, XmNarmCallback,
3047 armCB_toggleButton3,
3048 (XtPointer) UxApplicWindowContext );
3049 UxAddCallback( toggleButton3, XmNvalueChangedCallback,
3050 valueChangedCB_toggleButton3,
3051 (XtPointer) UxApplicWindowContext );
3052
3053 UxAddCallback( pb_main_search2, XmNactivateCallback,
3054 activateCB_pb_main_search2,
3055 (XtPointer) UxApplicWindowContext );
3056
3057 UxAddCallback( toggleButton10, XmNarmCallback,
3058 armCB_toggleButton10,
3059 (XtPointer) UxApplicWindowContext );
3060 UxAddCallback( toggleButton10, XmNvalueChangedCallback,
3061 valueChangedCB_toggleButton10,
3062 (XtPointer) UxApplicWindowContext );
3063
3064 UxAddCallback( pb_main_search9, XmNactivateCallback,
3065 activateCB_pb_main_search9,
3066 (XtPointer) UxApplicWindowContext );
3067
3068 UxAddCallback( toggleButton11, XmNarmCallback,
3069 armCB_toggleButton11,
3070 (XtPointer) UxApplicWindowContext );
3071 UxAddCallback( toggleButton11, XmNvalueChangedCallback,
3072 valueChangedCB_toggleButton11,
3073 (XtPointer) UxApplicWindowContext );
3074
3075 UxAddCallback( pb_main_search10, XmNactivateCallback,
3076 activateCB_pb_main_search10,
3077 (XtPointer) UxApplicWindowContext );
3078
3079 UxAddCallback( toggleButton12, XmNarmCallback,
3080 armCB_toggleButton12,
3081 (XtPointer) UxApplicWindowContext );
3082 UxAddCallback( toggleButton12, XmNvalueChangedCallback,
3083 valueChangedCB_toggleButton12,
3084 (XtPointer) UxApplicWindowContext );
3085
3086 UxAddCallback( pb_main_search11, XmNactivateCallback,
3087 activateCB_pb_main_search11,
3088 (XtPointer) UxApplicWindowContext );
3089
3090 UxAddCallback( toggleButton1, XmNarmCallback,
3091 armCB_toggleButton1,
3092 (XtPointer) UxApplicWindowContext );
3093 UxAddCallback( toggleButton1, XmNvalueChangedCallback,
3094 valueChangedCB_toggleButton1,
3095 (XtPointer) UxApplicWindowContext );
3096
3097 UxAddCallback( pb_main_search1, XmNactivateCallback,
3098 activateCB_pb_main_search1,
3099 (XtPointer) UxApplicWindowContext );
3100
3101 UxAddCallback( toggleButton2, XmNarmCallback,
3102 armCB_toggleButton2,
3103 (XtPointer) UxApplicWindowContext );
3104 UxAddCallback( toggleButton2, XmNvalueChangedCallback,
3105 valueChangedCB_toggleButton2,
3106 (XtPointer) UxApplicWindowContext );
3107
3108 UxAddCallback( pb_main_search3, XmNactivateCallback,
3109 activateCB_pb_main_search3,
3110 (XtPointer) UxApplicWindowContext );
3111
3112 UxAddCallback( toggleButton4, XmNarmCallback,
3113 armCB_toggleButton4,
3114 (XtPointer) UxApplicWindowContext );
3115 UxAddCallback( toggleButton4, XmNvalueChangedCallback,
3116 valueChangedCB_toggleButton4,
3117 (XtPointer) UxApplicWindowContext );
3118
3119 UxAddCallback( pb_main_search12, XmNactivateCallback,
3120 activateCB_pb_main_search12,
3121 (XtPointer) UxApplicWindowContext );
3122
3123 UxAddCallback( toggleButton13, XmNarmCallback,
3124 armCB_toggleButton13,
3125 (XtPointer) UxApplicWindowContext );
3126 UxAddCallback( toggleButton13, XmNvalueChangedCallback,
3127 valueChangedCB_toggleButton13,
3128 (XtPointer) UxApplicWindowContext );
3129
3130 UxAddCallback( pb_main_search13, XmNactivateCallback,
3131 activateCB_pb_main_search13,
3132 (XtPointer) UxApplicWindowContext );
3133
3134
3135 /* Finally, call UxRealizeInterface to create the X windows
3136 for the widgets created above. */
3137
3138 UxRealizeInterface( ApplicWindow );
3139
3140 UxMainWindowSetAreas( MainWindow, menu1, NULL_SWIDGET,
3141 NULL_SWIDGET, NULL_SWIDGET, form1 );
3142 return ( ApplicWindow );
3143 }
3144
3145 /*******************************************************************************
3146 The following function includes the code that was entered
3147 in the 'Initial Code' and 'Final Code' sections of the
3148 Declarations Editor. This function is called from the
3149 'Interface function' below.
3150 *******************************************************************************/
3151
3152 static swidget _Ux_create_ApplicWindow()
3153 {
3154 swidget rtrn;
3155 _UxCApplicWindow *UxContext;
3156
3157 UxApplicWindowContext = UxContext =
3158 (_UxCApplicWindow *) UxMalloc( sizeof(_UxCApplicWindow) );
3159
3160 {
3161 extern swidget create_SearchShell();
3162 extern swidget create_CalibShell();
3163 extern swidget create_RebinShell();
3164 extern swidget create_file_dialog();
3165 extern swidget create_extin_dialog();
3166 extern swidget create_resid_dialog();
3167 extern swidget create_HelpShell();
3168 extern swidget create_OrderShell();
3169 extern swidget create_RotateShell();
3170 extern swidget create_BackgroundShell();
3171 extern swidget create_ExtractionShell();
3172 extern swidget create_SkyShell();
3173 extern swidget create_FlatShell();
3174 extern swidget create_RespShell();
3175 extern swidget create_MergeShell();
3176 rtrn = _Uxbuild_ApplicWindow();
3177
3178 create_SearchShell();
3179 create_CalibShell();
3180 create_RebinShell();
3181 create_file_dialog();
3182 create_extin_dialog();
3183 create_resid_dialog();
3184 create_HelpShell();
3185 create_OrderShell();
3186 create_RotateShell();
3187 create_BackgroundShell();
3188 create_ExtractionShell();
3189 create_SkyShell();
3190 create_FlatShell();
3191 create_RespShell();
3192 create_MergeShell();
3193
3194 return(rtrn);
3195 }
3196 }
3197
3198 /*******************************************************************************
3199 The following is the 'Interface function' which is the
3200 external entry point for creating this interface.
3201 This function should be called from your application or from
3202 a callback function.
3203 *******************************************************************************/
3204
3205 swidget create_ApplicWindow()
3206 {
3207 swidget _Uxrtrn;
3208 static int _Uxinit = 0;
3209
3210 if ( ! _Uxinit )
3211 {
3212 static XtActionsRec _Uxactions[] = {
3213 { "WriteHelp", action_WriteHelp },
3214 { "ClearHelp", action_ClearHelp },
3215 { "UpdateDirectory", action_UpdateDirectory },
3216 { "ClearShort", action_ClearShort },
3217 { "HelpShort", action_HelpShort },
3218 { "ExtendedHelp", action_ExtendedHelp },
3219 { "FileSelectACT", action_FileSelectACT }
3220 };
3221
3222 XtAppAddActions( UxAppContext,
3223 _Uxactions,
3224 XtNumber(_Uxactions) );
3225
3226 _Uxinit = 1;
3227 }
3228
3229 _Uxrtrn = _Ux_create_ApplicWindow();
3230
3231 return ( _Uxrtrn );
3232 }
3233
3234 /*******************************************************************************
3235 END OF FILE
3236 *******************************************************************************/
3237