1
! UIMX ascii 2.0 key: 303
3
char s[100],comm[160] ;\
4
extern char print_com[];\
8
/*sprintf(comm,"WRITE/OUT here");\
9
AppendDialogText(comm);*/\
11
if (sw == UxGetWidget(UxFindSwidget("ColButton"))) {\
12
strcpy(s,"Select the OST columns to be displayed into the scrolled window");\
13
UxPutText(UxFindSwidget("SHelp") ,s); \
15
else if (sw == UxGetWidget(UxFindSwidget("ClassiButton"))) {\
16
strcpy(s,"Activate interface for defining classification rules ");\
17
UxPutText(UxFindSwidget("SHelp") ,s); \
19
else if (sw == UxGetWidget(UxFindSwidget("AssoButton"))) {\
20
strcpy(s,"Activate interface for classifying images");\
21
UxPutText(UxFindSwidget("SHelp") ,s); \
23
else if (sw == UxGetWidget(UxFindSwidget("AssoButton1"))) {\
24
strcpy(s,"Activate interface for associating calibration exposures to scientific frames");\
25
UxPutText(UxFindSwidget("SHelp") ,s); \
27
else if (sw == UxGetWidget(UxFindSwidget("NewsButton3"))) {\
28
strcpy(s,"Create the OST table");\
29
UxPutText(UxFindSwidget("SHelp3") ,s); \
31
else if (sw == UxGetWidget(UxFindSwidget("PrintButton3"))) {\
32
strcpy(s,"Popdown this interface");\
33
UxPutText(UxFindSwidget("SHelp3") ,s); \
35
else if (sw == UxGetWidget(UxFindSwidget("ost_t1"))){ \
36
strcpy(s,"Name of the Observation Summary Table to be created ");\
37
UxPutText(UxFindSwidget("SHelp3") ,s); \
39
else if (sw == UxGetWidget(UxFindSwidget("ost_t2"))){ \
40
strcpy(s,"List of frames to be processed ");\
41
UxPutText(UxFindSwidget("SHelp3") ,s); \
43
else if (sw == UxGetWidget(UxFindSwidget("ost_t3"))){ \
44
strcpy(s,"Name of the table containing the list of relevant Midas descriptors"); \
45
UxPutText(UxFindSwidget("SHelp3") ,s); \
47
else if (sw == UxGetWidget(UxFindSwidget("pushButton4"))){ \
48
strcpy(s,"Push button to popup the File Selection Box"); \
49
UxPutText(UxFindSwidget("SHelp3") ,s); \
51
else if (sw == UxGetWidget(UxFindSwidget("pushButton5"))){ \
52
strcpy(s,"Push button to popup the File Selection Box"); \
53
UxPutText(UxFindSwidget("SHelp3") ,s); \
57
UxPutText(UxFindSwidget("SHelp"),"");\
60
*translation.table: transTable2
61
*translation.parent: transientShell3
62
*translation.policy: override
63
*translation.<EnterWindow> : WriteHelp ()
64
*translation.<LeaveWindow> : ClearHelp ()
66
*transientShell3.class: transientShell
67
*transientShell3.parent: NO_PARENT
68
*transientShell3.static: true
69
*transientShell3.gbldecl: #include <stdio.h>\
70
#include <ExternResources.h>\
71
#include <midas_def.h>\
72
char *instr[] = {"EMMI","SUSI"};\
74
extern char print_com[], mid_mail[];\
75
extern swidget scrolledList1;
76
*transientShell3.ispecdecl:
77
*transientShell3.funcdecl: swidget create_transientShell3()\
79
*transientShell3.funcname: create_transientShell3
80
*transientShell3.funcdef: "swidget", "<create_transientShell3>(%)"
81
*transientShell3.icode:
82
*transientShell3.fcode: return(rtrn);\
84
*transientShell3.auxdecl:
85
*transientShell3.name: transientShell3
86
*transientShell3.x: 264
87
*transientShell3.y: 431
88
*transientShell3.width: 480
89
*transientShell3.height: 400
90
*transientShell3.popupCallback: {\
93
*transientShell3.title: "Creation of The OST"
94
*transientShell3.translations: ""
96
*workArea3.class: form
97
*workArea3.parent: transientShell3
98
*workArea3.static: true
99
*workArea3.name: workArea3
102
*workArea3.width: 480
103
*workArea3.height: 400
104
*workArea3.borderWidth: 0
105
*workArea3.createCallback: {\
108
*workArea3.mapCallback: {\
111
*workArea3.background: WindowBackground
112
*workArea3.unitType: "pixels"
113
*workArea3.noResize: "true"
114
*workArea3.resizePolicy: "resize_none"
117
*SHelp3.parent: workArea3
124
*SHelp3.background: SHelpBackground
125
*SHelp3.foreground: TextForeground
126
*SHelp3.highlightColor: ApplicBackground
127
*SHelp3.fontList: TextFont
128
*SHelp3.cursorPositionVisible: "true"
129
*SHelp3.translations: ""
130
*SHelp3.activateCallback: {\
133
*SHelp3.pendingDelete: "true"
134
*SHelp3.blinkRate: 500
135
*SHelp3.editMode: "single_line_edit"
136
*SHelp3.highlightOnEnter: "true"
137
*SHelp3.wordWrap: "false"
138
*SHelp3.accelerators: ""
139
*SHelp3.leftAttachment: "attach_form"
140
*SHelp3.leftOffset: 5
141
*SHelp3.rightAttachment: "attach_form"
142
*SHelp3.rightOffset: 5
143
*SHelp3.bottomAttachment: "attach_form"
144
*SHelp3.bottomOffset: 50
145
*SHelp3.editable: "true"
148
*NewsButton3.class: pushButton
149
*NewsButton3.parent: workArea3
150
*NewsButton3.static: true
151
*NewsButton3.name: NewsButton3
154
*NewsButton3.width: 95
155
*NewsButton3.height: 30
156
*NewsButton3.background: ButtonBackground
157
*NewsButton3.labelString: "Apply"
158
*NewsButton3.foreground: ButtonForeground
159
*NewsButton3.fontList: BoldTextFont
160
*NewsButton3.activateCallback: {\
161
char command[160],iframe[60],dtable[60],fflag[8],sflag[8],flag[4],pfix[5];\
162
extern char ostchoice[60];\
163
extern int tidost,tidcomm;\
165
strcpy(ostchoice ,osfsupply(UxGetText(UxFindSwidget("ost_t1")),".tbl"));\
166
strncpy(iframe,UxGetText(UxFindSwidget("ost_t2")),60);\
167
/*printf("ostchoice: %s\n",iframe);*/\
168
if (iframe[0] == '\0') iframe[0] = '?';\
169
strncpy(dtable,UxGetText(UxFindSwidget("ost_t3")),60);\
170
strcpy(fflag ,UxGetSet(UxFindSwidget("ost_to1")));\
171
strcpy(sflag,UxGetSet(UxFindSwidget("ost_to2")));\
173
if (fflag[0] == 't') flag[0] = 'F';\
175
if (sflag[0] == 't') flag[2] = 'F';\
183
TCTOPN( "TAB_COMM",F_IO_MODE,&tidcomm);\
184
TCEWRC(tidcomm,1,2,ostchoice);\
185
TCEWRC(tidcomm,1,3,dtable);\
186
/*SCDWRC(tidost ,"table_descr",1,dtable,1,60,&unit);*/\
190
ostcrea(iframe,pfix,dtable,ostchoice,flag);\
192
sprintf(command,"CREATE/OST %s ? %s %s %s",iframe,dtable,ostchoice,flag);\
193
/*AppendDialogText(command);*/\
195
if (read_ost_table()) {\
197
display_ident_table(UxGetWidget(UxFindSwidget("identlist")));\
199
/*SCDWRC(tidost ,"table_descr",1,dtable,1,60,&unit);*/\
201
*NewsButton3.recomputeSize: "false"
202
*NewsButton3.topAttachment: "attach_widget"
203
*NewsButton3.topOffset: 10
204
*NewsButton3.topWidget: "SHelp3"
205
*NewsButton3.highlightColor: "Black"
206
*NewsButton3.leftAttachment: "attach_form"
207
*NewsButton3.leftOffset: 50
209
*PrintButton3.class: pushButton
210
*PrintButton3.parent: workArea3
211
*PrintButton3.static: true
212
*PrintButton3.name: PrintButton3
215
*PrintButton3.width: 95
216
*PrintButton3.height: 30
217
*PrintButton3.background: ButtonBackground
218
*PrintButton3.labelString: "Cancel"
219
*PrintButton3.foreground: ButtonForeground
220
*PrintButton3.fontList: BoldTextFont
221
*PrintButton3.activateCallback: {\
222
extern swidget crea;\
224
UxPopdownInterface(crea);\
227
*PrintButton3.recomputeSize: "false"
228
*PrintButton3.topAttachment: "attach_widget"
229
*PrintButton3.topOffset: 10
230
*PrintButton3.topWidget: "SHelp3"
231
*PrintButton3.leftAttachment: "attach_none"
232
*PrintButton3.leftOffset: 40
233
*PrintButton3.leftWidget: "NewsButton3"
234
*PrintButton3.highlightColor: "Black"
235
*PrintButton3.rightAttachment: "attach_form"
236
*PrintButton3.rightOffset: 50
239
*label4.parent: workArea3
246
*label4.background: LabelBackground
247
*label4.fontList: BoldTextFont
248
*label4.foreground: TextForeground
249
*label4.labelString: "OST"
250
*label4.leftAttachment: "attach_form"
251
*label4.leftOffset: 35
252
*label4.topOffset: 20
253
*label4.topAttachment: "attach_form"
256
*label3.parent: workArea3
263
*label3.background: LabelBackground
264
*label3.fontList: BoldTextFont
265
*label3.foreground: TextForeground
266
*label3.labelString: "Input Frames"
267
*label3.topAttachment: "attach_form"
268
*label3.topOffset: 65
269
*label3.leftAttachment: "attach_form"
270
*label3.leftOffset: 35
273
*label1.parent: workArea3
280
*label1.background: LabelBackground
281
*label1.fontList: BoldTextFont
282
*label1.foreground: TextForeground
283
*label1.labelString: "Descriptor Table"
284
*label1.leftAttachment: "attach_form"
285
*label1.leftOffset: 35
286
*label1.topAttachment: "attach_form"
287
*label1.topOffset: 110
290
*label2.parent: workArea3
297
*label2.background: LabelBackground
298
*label2.fontList: BoldTextFont
299
*label2.foreground: TextForeground
300
*label2.labelString: "Type"
301
*label2.leftAttachment: "attach_form"
302
*label2.topAttachment: "attach_form"
303
*label2.leftOffset: 30
304
*label2.topOffset: 250
307
*ost_t1.parent: workArea3
314
*ost_t1.topAttachment: "attach_form"
315
*ost_t1.topOffset: 10
316
*ost_t1.rightAttachment: "attach_none"
317
*ost_t1.rightOffset: 20
318
*ost_t1.fontList: TextFont
319
*ost_t1.foreground: TextForeground
320
*ost_t1.background: TextBackground
321
*ost_t1.leftAttachment: "attach_form"
322
*ost_t1.leftOffset: 220
323
*ost_t1.topShadowColor: "Gray80"
324
*ost_t1.cursorPosition: 0
327
*ost_t2.parent: workArea3
334
*ost_t2.fontList: TextFont
335
*ost_t2.foreground: TextForeground
336
*ost_t2.background: TextBackground
337
*ost_t2.topAttachment: "attach_form"
338
*ost_t2.topOffset: 58
339
*ost_t2.rightAttachment: "attach_none"
340
*ost_t2.rightOffset: 20
341
*ost_t2.leftAttachment: "attach_form"
342
*ost_t2.leftOffset: 220
345
*pushButton4.class: pushButton
346
*pushButton4.parent: workArea3
347
*pushButton4.static: true
348
*pushButton4.name: pushButton4
351
*pushButton4.width: 40
352
*pushButton4.height: 40
353
*pushButton4.fontList: BoldTextFont
354
*pushButton4.foreground: ButtonForeground
355
*pushButton4.background: ButtonBackground
356
*pushButton4.labelString: "..."
357
*pushButton4.topAttachment: "attach_form"
358
*pushButton4.topOffset: 58
359
*pushButton4.rightAttachment: "attach_form"
360
*pushButton4.rightOffset: 40
361
*pushButton4.activateCallback: {\
363
extern swidget flist;\
365
UxPopupInterface(flist,no_grab);\
369
*pushButton5.class: pushButton
370
*pushButton5.parent: workArea3
371
*pushButton5.static: true
372
*pushButton5.name: pushButton5
375
*pushButton5.width: 40
376
*pushButton5.height: 40
377
*pushButton5.fontList: BoldTextFont
378
*pushButton5.foreground: ButtonForeground
379
*pushButton5.background: ButtonBackground
380
*pushButton5.labelString: "..."
381
*pushButton5.rightAttachment: "attach_form"
382
*pushButton5.rightOffset: 40
383
*pushButton5.topAttachment: "attach_form"
384
*pushButton5.topOffset: 158
385
*pushButton5.activateCallback: {\
386
extern swidget ilist,dlist;\
388
char cbuf1[8],cbuf2[8];\
392
strcpy(cbuf1,UxGetSet(UxFindSwidget("toggleButtonGadget1")));\
393
strcpy(cbuf2,UxGetSet(UxFindSwidget("toggleButtonGadget2")));\
394
if (cbuf1[0] == 't') {\
397
str = (XmString *)XtMalloc(item_no * sizeof(XmString));\
398
for (i=0; i<item_no; i++)\
399
str[i] = XmStringCreateSimple(instr[i]);\
400
XtVaSetValues(UxGetWidget(UxFindSwidget("SelectInstrument")),\
402
XmNlistItemCount,item_no,\
405
UxPutListLabelString( UxFindSwidget("SelectInstrument"),"Instrument");\
406
UxPutDialogTitle(UxFindSwidget("SelectInstrument"),"Select Instrument");\
407
UxPopupInterface(ilist,no_grab);\
409
else if (cbuf2[0] == 't') {\
410
/* XtVaSetValues(UxGetWidget(dlist),XmNtitle,\
411
"Select Descriptor Table",NULL);*/\
412
UxPutDialogTitle(UxFindSwidget("SelectDescrTable"),"Select Descriptor Table");\
413
UxPopupInterface(dlist,no_grab);\
416
UxPutDialogTitle(UxFindSwidget("SelectDescrTable"),"Select FITS File");\
417
UxPopupInterface(dlist,no_grab);\
422
*ost_t3.parent: workArea3
429
*ost_t3.fontList: TextFont
430
*ost_t3.foreground: TextForeground
431
*ost_t3.background: TextBackground
432
*ost_t3.topAttachment: "attach_form"
433
*ost_t3.topOffset: 158
434
*ost_t3.leftAttachment: "attach_form"
435
*ost_t3.leftOffset: 220
437
*ost_to1.class: toggleButton
438
*ost_to1.parent: workArea3
439
*ost_to1.static: true
440
*ost_to1.name: ost_to1
445
*ost_to1.topAttachment: "attach_form"
446
*ost_to1.topOffset: 245
447
*ost_to1.background: TextBackground
448
*ost_to1.fontList: BoldTextFont
449
*ost_to1.foreground: TextForeground
450
*ost_to1.leftAttachment: "attach_form"
451
*ost_to1.leftOffset: 120
452
*ost_to1.selectColor: "PaleGreen"
453
*ost_to1.labelString: "Fits"
454
*ost_to1.indicatorType: "one_of_many"
455
*ost_to1.valueChangedCallback: {\
457
strcpy(cbuf,UxGetSet(UxThisWidget));\
458
if (cbuf[0] == 't') \
459
UxPutLabelString(UxThisWidget,"Fits");\
461
UxPutLabelString(UxThisWidget,"Midas");\
466
*label6.parent: workArea3
473
*label6.background: LabelBackground
474
*label6.fontList: BoldTextFont
475
*label6.foreground: TextForeground
476
*label6.labelString: "Statistics"
477
*label6.leftAttachment: "attach_form"
478
*label6.leftOffset: 250
479
*label6.topAttachment: "attach_form"
480
*label6.topOffset: 250
482
*ost_to2.class: toggleButton
483
*ost_to2.parent: workArea3
484
*ost_to2.static: true
485
*ost_to2.name: ost_to2
490
*ost_to2.background: TextBackground
491
*ost_to2.fontList: BoldTextFont
492
*ost_to2.foreground: TextForeground
493
*ost_to2.selectColor: "PaleGreen"
494
*ost_to2.labelString: "Yes"
495
*ost_to2.indicatorType: "one_of_many"
496
*ost_to2.leftAttachment: "attach_none"
497
*ost_to2.leftOffset: 30
498
*ost_to2.topAttachment: "attach_form"
499
*ost_to2.topOffset: 245
500
*ost_to2.valueChangedCallback: {\
502
strcpy(cbuf,UxGetSet(UxThisWidget));\
504
UxPutLabelString(UxThisWidget,"Yes");\
506
UxPutLabelString(UxThisWidget,"No");\
509
*ost_to2.rightAttachment: "attach_form"
510
*ost_to2.rightOffset: 30
513
*rowColumn1.class: rowColumn
514
*rowColumn1.parent: workArea3
515
*rowColumn1.static: true
516
*rowColumn1.name: rowColumn1
519
*rowColumn1.width: 140
520
*rowColumn1.height: 110
521
*rowColumn1.background: WindowBackground
522
*rowColumn1.radioBehavior: "true"
523
*rowColumn1.leftAttachment: "attach_form"
524
*rowColumn1.leftOffset: 20
526
*toggleButtonGadget1.class: toggleButtonGadget
527
*toggleButtonGadget1.parent: rowColumn1
528
*toggleButtonGadget1.static: true
529
*toggleButtonGadget1.name: toggleButtonGadget1
530
*toggleButtonGadget1.x: 10
531
*toggleButtonGadget1.y: 10
532
*toggleButtonGadget1.width: 120
533
*toggleButtonGadget1.height: 20
534
*toggleButtonGadget1.indicatorType: "one_of_many"
535
*toggleButtonGadget1.labelString: "Get Standard Table"
536
*toggleButtonGadget1.fontList: TextFont
537
*toggleButtonGadget1.selectColor: "PaleGreen"
539
*toggleButtonGadget2.class: toggleButtonGadget
540
*toggleButtonGadget2.parent: rowColumn1
541
*toggleButtonGadget2.static: true
542
*toggleButtonGadget2.name: toggleButtonGadget2
543
*toggleButtonGadget2.x: 13
544
*toggleButtonGadget2.y: 13
545
*toggleButtonGadget2.width: 120
546
*toggleButtonGadget2.height: 20
547
*toggleButtonGadget2.indicatorType: "one_of_many"
548
*toggleButtonGadget2.labelString: "Select Own Table"
549
*toggleButtonGadget2.fontList: TextFont
550
*toggleButtonGadget2.selectColor: "PaleGreen"
551
*toggleButtonGadget2.set: "true"
553
*toggleButtonGadget3.class: toggleButtonGadget
554
*toggleButtonGadget3.parent: rowColumn1
555
*toggleButtonGadget3.static: true
556
*toggleButtonGadget3.name: toggleButtonGadget3
557
*toggleButtonGadget3.x: 13
558
*toggleButtonGadget3.y: 44
559
*toggleButtonGadget3.width: 120
560
*toggleButtonGadget3.height: 20
561
*toggleButtonGadget3.indicatorType: "one_of_many"
562
*toggleButtonGadget3.labelString: "Create from Fits File"
563
*toggleButtonGadget3.fontList: TextFont
564
*toggleButtonGadget3.selectColor: "PaleGreen"
566
*separator1.class: separator
567
*separator1.parent: workArea3
568
*separator1.static: true
569
*separator1.name: separator1
572
*separator1.width: 10
573
*separator1.height: 106
574
*separator1.orientation: "vertical"
575
*separator1.background: WindowBackground
576
*separator1.leftAttachment: "attach_form"
577
*separator1.leftOffset: 180
578
*separator1.topAttachment: "attach_form"
579
*separator1.topOffset: 120
581
*separator2.class: separator
582
*separator2.parent: workArea3
583
*separator2.static: true
584
*separator2.name: separator2
587
*separator2.width: 10
588
*separator2.height: 106
589
*separator2.orientation: "vertical"
590
*separator2.background: WindowBackground
591
*separator2.topAttachment: "attach_form"
592
*separator2.topOffset: 120
593
*separator2.leftAttachment: "attach_form"
594
*separator2.leftOffset: 10
596
*separator3.class: separator
597
*separator3.parent: workArea3
598
*separator3.static: true
599
*separator3.name: separator3
602
*separator3.width: 170
603
*separator3.height: 10
604
*separator3.background: WindowBackground
605
*separator3.leftAttachment: "attach_form"
606
*separator3.leftOffset: 15
607
*separator3.topAttachment: "attach_form"
608
*separator3.topOffset: 222
610
*separator4.class: separator
611
*separator4.parent: workArea3
612
*separator4.static: true
613
*separator4.name: separator4
616
*separator4.width: 170
617
*separator4.height: 10
618
*separator4.background: WindowBackground
619
*separator4.topAttachment: "attach_form"
620
*separator4.topOffset: 115
621
*separator4.leftAttachment: "attach_form"
622
*separator4.leftOffset: 15