1
! UIMX ascii 2.0 key: 5708
3
if( UxWidget == UxGetWidget(arrowButton1))\
4
{UxPutText(UxFindSwidget("help_text_top"),IMAGEUPAR);\
5
UxPutText(UxFindSwidget("HelpTopLevel"),IMAGEUPAR);}\
6
else if( UxWidget == UxGetWidget(arrowButton2))\
7
UxPutText(UxFindSwidget("help_text_top"),IMAGEDNAR);\
8
else if( UxWidget == UxGetWidget(arrowButton11))\
9
UxPutText(UxFindSwidget("help_text_top"),FILTERUPAR);\
10
else if( UxWidget == UxGetWidget(arrowButton12))\
11
UxPutText(UxFindSwidget("help_text_top"),FILTERDNAR);\
12
else if( UxWidget == UxGetWidget(arrowButton3))\
13
UxPutText(UxFindSwidget("help_text_top"),FITUPAR);\
14
else if( UxWidget == UxGetWidget(arrowButton4))\
15
UxPutText(UxFindSwidget("help_text_top"),FITDNAR);\
16
else if( UxWidget == UxGetWidget(AutoFitTButton))\
17
UxPutText(UxFindSwidget("help_text_top"),AUTOFIT);\
18
else if( UxWidget == UxGetWidget(GaussButton))\
19
UxPutText(UxFindSwidget("help_text_top"),GAUSSINTER);\
20
else if( UxWidget == UxGetWidget(IntegrateButton))\
21
UxPutText(UxFindSwidget("help_text_top"),INTEGRATE);\
22
else if( UxWidget == UxGetWidget(Cut_x))\
23
UxPutText(UxFindSwidget("help_text_top"),CUTX);\
24
else if( UxWidget == UxGetWidget(Cut_y))\
25
UxPutText(UxFindSwidget("help_text_top"),CUTY);\
26
else if( UxWidget == UxGetWidget(Move))\
27
UxPutText(UxFindSwidget("help_text_top"),MOVE);\
28
else if( UxWidget == UxGetWidget(Unzoom))\
29
UxPutText(UxFindSwidget("help_text_top"),UNZOOM);\
30
else if( UxWidget == UxGetWidget(arrowButton7))\
31
UxPutText(UxFindSwidget("help_text_top"),ZOOMUPARROW);\
32
else if( UxWidget == UxGetWidget(arrowButton8))\
33
UxPutText(UxFindSwidget("help_text_top"),ZOOMLFARROW );\
34
else if( UxWidget == UxGetWidget(arrowButton6))\
35
UxPutText(UxFindSwidget("help_text_top"), ZOOMDNARROW);\
36
else if( UxWidget == UxGetWidget(arrowButton5))\
37
UxPutText(UxFindSwidget("help_text_top"), ZOOMRTARROW);\
38
else if( UxWidget == UxGetWidget(step_text))\
39
UxPutText(UxFindSwidget("help_text_top"), ZOOMSTEP);\
40
else if( UxWidget == UxGetWidget(RebinButton))\
41
UxPutText(UxFindSwidget("help_text_top"), REBIN);\
43
*action.clearHelpTop: {UxPutText(UxFindSwidget("help_text_top"),"");\
44
UxPutText(UxFindSwidget("HelpTopLevel"),"");}
45
*action.HelpHelp: DisplayExtendedHelp(UxWidget);
47
if( UxWidget == UxGetWidget(arrowButton1))\
48
{UxPutText(UxFindSwidget("help_text_top"),IMAGEUPAR);\
49
UxPutText(UxFindSwidget("HelpTopLevel"),IMAGEUPAR);}\
50
else if( UxWidget == UxGetWidget(arrowButton2))\
51
UxPutText(UxFindSwidget("help_text_top"),IMAGEDNAR);\
52
else if( UxWidget == UxGetWidget(arrowButton11))\
53
UxPutText(UxFindSwidget("help_text_top"),FILTERUPAR);\
54
else if( UxWidget == UxGetWidget(arrowButton12))\
55
UxPutText(UxFindSwidget("help_text_top"),FILTERDNAR);\
56
else if( UxWidget == UxGetWidget(arrowButton3))\
57
UxPutText(UxFindSwidget("help_text_top"),FITUPAR);\
58
else if( UxWidget == UxGetWidget(arrowButton4))\
59
UxPutText(UxFindSwidget("help_text_top"),FITDNAR);\
60
else if( UxWidget == UxGetWidget(AutoFitTButton))\
61
UxPutText(UxFindSwidget("help_text_top"),AUTOFIT);\
62
else if( UxWidget == UxGetWidget(GaussButton))\
63
UxPutText(UxFindSwidget("help_text_top"),GAUSSINTER);\
64
else if( UxWidget == UxGetWidget(IntegrateButton))\
65
UxPutText(UxFindSwidget("help_text_top"),INTEGRATE);\
66
else if( UxWidget == UxGetWidget(Cut_x))\
67
UxPutText(UxFindSwidget("help_text_top"),CUTX);\
68
else if( UxWidget == UxGetWidget(Cut_y))\
69
UxPutText(UxFindSwidget("help_text_top"),CUTY);\
70
else if( UxWidget == UxGetWidget(Move))\
71
UxPutText(UxFindSwidget("help_text_top"),MOVE);\
72
else if( UxWidget == UxGetWidget(Unzoom))\
73
UxPutText(UxFindSwidget("help_text_top"),UNZOOM);\
74
else if( UxWidget == UxGetWidget(arrowButton7))\
75
UxPutText(UxFindSwidget("help_text_top"),ZOOMUPARROW);\
76
else if( UxWidget == UxGetWidget(arrowButton8))\
77
UxPutText(UxFindSwidget("help_text_top"),ZOOMLFARROW );\
78
else if( UxWidget == UxGetWidget(arrowButton6))\
79
UxPutText(UxFindSwidget("help_text_top"), ZOOMDNARROW);\
80
else if( UxWidget == UxGetWidget(arrowButton5))\
81
UxPutText(UxFindSwidget("help_text_top"), ZOOMRTARROW);\
82
else if( UxWidget == UxGetWidget(step_text))\
83
UxPutText(UxFindSwidget("help_text_top"), ZOOMSTEP);\
84
else if( UxWidget == UxGetWidget(RebinButton1))\
85
UxPutText(UxFindSwidget("help_text_top"), REBIN);\
88
*translation.table: HELPTopTab
89
*translation.parent: AliceShell
90
*translation.policy: override
91
*translation.<EnterWindow>: HelpTop1()
92
*translation.<LeaveWindow>: clearHelpTop()
94
*translation.table: TextTab
95
*translation.parent: AliceShell
96
*translation.policy: override
97
*translation.<Key>Delete: delete-previous-character()
98
*translation.<Key>BackSpace: delete-previous-character()
99
*translation.<Key>osfBackSpace: delete-previous-character()
100
*translation. <Key>osfDelete: delete-previous-character()
102
*translation.table: Help
103
*translation.parent: AliceShell
104
*translation.policy: override
105
*translation.<Btn3Down>: HelpHelp()
106
*translation.<EnterWindow>: HelpTop1()
107
*translation.<LeaveWindow>: clearHelpTop()
109
*translation.table: transTable1
110
*translation.parent: AliceShell
111
*translation.policy: override
112
*translation.<EnterWindow>: HelpTop2()
113
*translation.<LeaveWindow>: clearHelpTop()
115
*AliceShell.class: applicationShell
116
*AliceShell.parent: NO_PARENT
117
*AliceShell.static: false
118
*AliceShell.gbldecl: #include <stdio.h>\
119
#include <ExternResources.h>\
120
#include <alice_global.h>\
121
#include <alice_help.h>\
124
*AliceShell.ispecdecl:
125
*AliceShell.funcdecl: swidget create_AliceShell()\
127
*AliceShell.funcname: create_AliceShell
128
*AliceShell.funcdef: "swidget", "<create_AliceShell>(%)"
129
*AliceShell.icode: swidget create_GaussShell();\
130
swidget create_HelpTopLevel();\
131
swidget create_StatShell();\
132
swidget create_MessageShell();\
133
swidget create_sh_list1();\
134
swidget create_LabelOptions();\
135
swidget create_LabelCursor();\
136
swidget create_Savefiles();\
137
swidget create_Printer();\
138
swidget create_RebinShell();\
139
swidget create_SaveAsShell();\
140
swidget create_OverPlotShell();\
142
extern swidget ListPopup;
143
*AliceShell.fcode: create_GaussShell();\
144
create_HelpTopLevel();\
145
ListPopup = create_sh_list1();\
147
create_MessageShell();\
148
create_LabelOptions();\
149
create_LabelCursor();\
152
create_RebinShell();\
153
create_SaveAsShell();\
154
create_OverPlotShell();\
160
*AliceShell.name: AliceShell
163
*AliceShell.width: 561
164
*AliceShell.height: 469
165
*AliceShell.keyboardFocusPolicy: "pointer"
166
*AliceShell.title: "Alice - Spectrum Analysis"
167
*AliceShell.defaultFontList: BoldTextFont
169
*AliceWindow.class: mainWindow
170
*AliceWindow.parent: AliceShell
171
*AliceWindow.static: true
172
*AliceWindow.name: AliceWindow
173
*AliceWindow.unitType: "pixels"
176
*AliceWindow.width: 106
177
*AliceWindow.height: 72
178
*AliceWindow.background: WindowBackground
180
*Topmenu.class: rowColumn
181
*Topmenu.parent: AliceWindow
182
*Topmenu.static: true
183
*Topmenu.name: Topmenu
184
*Topmenu.rowColumnType: "menu_bar"
185
*Topmenu.background: MenuBackground
186
*Topmenu.menuAccelerator: "<KeyUp>F10"
187
*Topmenu.menuHelpWidget: "QuitMenu"
189
*FilePane.class: rowColumn
190
*FilePane.parent: Topmenu
191
*FilePane.static: true
192
*FilePane.name: FilePane
193
*FilePane.rowColumnType: "menu_pulldown"
194
*FilePane.background: MenuBackground
195
*FilePane.highlightColor: "Black"
196
*FilePane.foreground: MenuForeground
198
*ReadItem.class: pushButton
199
*ReadItem.parent: FilePane
200
*ReadItem.static: true
201
*ReadItem.name: ReadItem
202
*ReadItem.labelString: "Open ..."
203
*ReadItem.mnemonic: "O"
204
*ReadItem.background: MenuBackground
205
*ReadItem.activateCallback: {\
206
extern swidget ListPopup;\
207
extern swidget scrolledList1;\
208
UxPopupInterface(ListPopup,no_grab);\
209
SetFileList( UxGetWidget(scrolledList1),1, "*.bdf" );\
212
AppendDialogText("cre/gra 0 1000,400,40,500");\
213
AppendDialogText("SET/GCURSOR ? C_HAIR");\
215
specInputFrame = TRUE;\
218
*ReadItem.fontList: BoldTextFont
219
*ReadItem.foreground: MenuForeground
221
*SaveAsItem.class: pushButton
222
*SaveAsItem.parent: FilePane
223
*SaveAsItem.static: true
224
*SaveAsItem.name: SaveAsItem
225
*SaveAsItem.labelString: "Save As ..."
226
*SaveAsItem.background: MenuBackground
227
*SaveAsItem.mnemonic: "A"
228
*SaveAsItem.fontList: BoldTextFont
229
*SaveAsItem.foreground: MenuForeground
230
*SaveAsItem.activateCallback: {\
231
UxPopupInterface(UxFindSwidget("SaveAsShell"),no_grab);\
235
*SaveItem.class: pushButton
236
*SaveItem.parent: FilePane
237
*SaveItem.static: true
238
*SaveItem.name: SaveItem
239
*SaveItem.labelString: "Save"
240
*SaveItem.mnemonic: "S"
241
*SaveItem.background: MenuBackground
242
*SaveItem.fontList: BoldTextFont
243
*SaveItem.foreground: MenuForeground
244
*SaveItem.activateCallback: {\
245
save_file(specSaveName);\
249
*FramePane.class: rowColumn
250
*FramePane.parent: Topmenu
251
*FramePane.static: true
252
*FramePane.name: FramePane
253
*FramePane.rowColumnType: "menu_pulldown"
254
*FramePane.background: MenuBackground
255
*FramePane.highlightColor: "Black"
256
*FramePane.foreground: MenuForeground
258
*CutxItem.class: pushButton
259
*CutxItem.parent: FramePane
260
*CutxItem.static: true
261
*CutxItem.name: CutxItem
262
*CutxItem.labelString: "Cut X"
263
*CutxItem.mnemonic: "X"
264
*CutxItem.background: MenuBackground
265
*CutxItem.activateCallback: {\
271
*CutxItem.fontList: BoldTextFont
272
*CutxItem.foreground: MenuForeground
274
*CutyItem.class: pushButton
275
*CutyItem.parent: FramePane
276
*CutyItem.static: true
277
*CutyItem.name: CutyItem
278
*CutyItem.labelString: "Cut Y"
279
*CutyItem.mnemonic: "Y"
280
*CutyItem.background: MenuBackground
281
*CutyItem.activateCallback: {\
287
*CutyItem.fontList: BoldTextFont
288
*CutyItem.foreground: MenuForeground
290
*UnzoomItem.class: pushButton
291
*UnzoomItem.parent: FramePane
292
*UnzoomItem.static: true
293
*UnzoomItem.name: UnzoomItem
294
*UnzoomItem.labelString: "Unzoom"
295
*UnzoomItem.mnemonic: "U"
296
*UnzoomItem.background: MenuBackground
297
*UnzoomItem.activateCallback: {\
300
specXcen = specXcenw2;\
301
specYcen = specYcenw2;\
304
spec(specX,specY,specNpix[0],specXcen-specDx,specXcen+specDx,\
305
specYcen-specDy,specYcen+specDy,PLOTMODE);\
312
*UnzoomItem.fontList: BoldTextFont
313
*UnzoomItem.foreground: MenuForeground
315
*RedrawItem.class: pushButton
316
*RedrawItem.parent: FramePane
317
*RedrawItem.static: true
318
*RedrawItem.name: RedrawItem
319
*RedrawItem.labelString: "Redraw"
320
*RedrawItem.mnemonic: "R"
321
*RedrawItem.background: MenuBackground
322
*RedrawItem.activateCallback: {\
325
spec(specX,specY,specNpix[0],specXcen-specDx,specXcen+specDx,\
326
specYcen-specDy,specYcen+specDy,PLOTMODE);\
333
*RedrawItem.fontList: BoldTextFont
334
*RedrawItem.foreground: MenuForeground
336
*PrintPane.class: pushButton
337
*PrintPane.parent: FramePane
338
*PrintPane.static: true
339
*PrintPane.name: PrintPane
340
*PrintPane.labelString: "Print"
341
*PrintPane.mnemonic: "P"
342
*PrintPane.background: MenuBackground
343
*PrintPane.activateCallback: {\
346
if(XmToggleButtonGetState(UxGetWidget(UxFindSwidget("NormalToggle"))))\
347
print_plot(NORMALPRINT,PrinterName);\
349
print_plot(PORTRAITPRINT,PrinterName);\
354
*PrintPane.fontList: BoldTextFont
355
*PrintPane.foreground: MenuForeground
357
*ContinPane.class: rowColumn
358
*ContinPane.parent: Topmenu
359
*ContinPane.static: true
360
*ContinPane.name: ContinPane
361
*ContinPane.rowColumnType: "menu_pulldown"
362
*ContinPane.background: MenuBackground
363
*ContinPane.highlightColor: "Black"
364
*ContinPane.foreground: MenuForeground
366
*BeginItem.class: pushButton
367
*BeginItem.parent: ContinPane
368
*BeginItem.static: true
369
*BeginItem.name: BeginItem
370
*BeginItem.labelString: "Begin"
371
*BeginItem.mnemonic: "B"
372
*BeginItem.background: MenuBackground
373
*BeginItem.activateCallback: {\
376
gaussNumOfFitData=0;\
379
if(fitMode == POLYFITMODE)\
380
plot_fit(specXaux,specYaux,gaussNumOfFitData-1,fitDegree+1,6);\
382
plot_spline(gaussNumOfFitData,6);\
387
*BeginItem.fontList: BoldTextFont
388
*BeginItem.foreground: MenuForeground
390
*AddItem.class: pushButton
391
*AddItem.parent: ContinPane
392
*AddItem.static: true
393
*AddItem.name: AddItem
394
*AddItem.labelString: "Add points"
395
*AddItem.mnemonic: "A"
396
*AddItem.background: MenuBackground
397
*AddItem.activateCallback: {\
401
if(fitMode == POLYFITMODE) \
402
plot_fit(specXaux,specYaux,gaussNumOfFitData-1,fitDegree+1,6);\
404
plot_spline(gaussNumOfFitData,6);\
409
*AddItem.fontList: BoldTextFont
410
*AddItem.foreground: MenuForeground
412
*FitItem.class: pushButton
413
*FitItem.parent: ContinPane
414
*FitItem.static: true
415
*FitItem.name: FitItem
416
*FitItem.labelString: "Plot"
417
*FitItem.mnemonic: "P"
418
*FitItem.background: MenuBackground
419
*FitItem.activateCallback: {\
424
if(fitMode == POLYFITMODE)\
425
plot_fit(specXaux,specYaux,gaussNumOfFitData-1,fitDegree+1,6);\
427
plot_spline(gaussNumOfFitData,6);\
433
*FitItem.fontList: BoldTextFont
434
*FitItem.foreground: MenuForeground
436
*ReFitItem.class: pushButton
437
*ReFitItem.parent: ContinPane
438
*ReFitItem.static: true
439
*ReFitItem.name: ReFitItem
440
*ReFitItem.labelString: "Fit"
441
*ReFitItem.mnemonic: "F"
442
*ReFitItem.background: MenuBackground
443
*ReFitItem.fontList: BoldTextFont
444
*ReFitItem.foreground: MenuForeground
445
*ReFitItem.activateCallback: {\
451
plot_fit(specXaux,specYaux,gaussNumOfFitData-1,fitDegree+1,6);\
458
*FilterPane.class: rowColumn
459
*FilterPane.parent: Topmenu
460
*FilterPane.static: true
461
*FilterPane.name: FilterPane
462
*FilterPane.rowColumnType: "menu_pulldown"
463
*FilterPane.background: MenuBackground
464
*FilterPane.highlightColor: "Black"
465
*FilterPane.foreground: MenuForeground
467
*SmoothItem.class: pushButton
468
*SmoothItem.parent: FilterPane
469
*SmoothItem.static: true
470
*SmoothItem.name: SmoothItem
471
*SmoothItem.labelString: "Smooth"
472
*SmoothItem.mnemonic: "S"
473
*SmoothItem.background: MenuBackground
474
*SmoothItem.activateCallback: {\
475
float y2[MAXVALUES];\
479
mean_filter(specY,specNpix[0],filterWindWidth,y2);\
480
for(i=0;i<specNpix[0];i++)\
482
median_filter(specY,specNpix[0],filterWindWidth,y2);\
485
spec(specX,specY,specNpix[0],specXcen-specDx,specXcen+specDx,\
486
specYcen-specDy,specYcen+specDy,PLOTMODE);\
489
XtSetSensitive(UxGetWidget(UxFindSwidget("UndoItem")),1);\
494
*SmoothItem.fontList: BoldTextFont
495
*SmoothItem.foreground: MenuForeground
497
*MedianItem.class: pushButton
498
*MedianItem.parent: FilterPane
499
*MedianItem.static: true
500
*MedianItem.name: MedianItem
501
*MedianItem.labelString: "Median"
502
*MedianItem.mnemonic: "M"
503
*MedianItem.background: MenuBackground
504
*MedianItem.activateCallback: {\
505
float y2[MAXVALUES];\
509
median_filter(specY,specNpix[0],filterWindWidth,y2);\
510
for(i=0;i<specNpix[0];i++)\
512
median_filter(specY,specNpix[0],filterWindWidth,y2);\
515
spec(specX,specY,specNpix[0],specXcen-specDx,specXcen+specDx,\
516
specYcen-specDy,specYcen+specDy,PLOTMODE);\
519
XtSetSensitive(UxGetWidget(UxFindSwidget("UndoItem")),1);\
524
*MedianItem.fontList: BoldTextFont
525
*MedianItem.foreground: MenuForeground
527
*UndoItem.class: pushButton
528
*UndoItem.parent: FilterPane
529
*UndoItem.static: true
530
*UndoItem.name: UndoItem
531
*UndoItem.labelString: "Undo"
532
*UndoItem.mnemonic: "U"
533
*UndoItem.activateCallback: {\
536
read_image(specLastName);\
537
XtSetSensitive(UxGetWidget(UxFindSwidget("UndoItem")),0);\
542
*UndoItem.background: MenuBackground
543
*UndoItem.fontList: BoldTextFont
544
*UndoItem.foreground: MenuForeground
546
*LabelPane.class: rowColumn
547
*LabelPane.parent: Topmenu
548
*LabelPane.static: true
549
*LabelPane.name: LabelPane
550
*LabelPane.rowColumnType: "menu_pulldown"
551
*LabelPane.background: MenuBackground
552
*LabelPane.highlightColor: "Black"
553
*LabelPane.foreground: MenuForeground
555
*AxisItem.class: pushButton
556
*AxisItem.parent: LabelPane
557
*AxisItem.static: true
558
*AxisItem.name: AxisItem
559
*AxisItem.labelString: "Label axis"
560
*AxisItem.mnemonic: "a"
561
*AxisItem.background: MenuBackground
562
*AxisItem.activateCallback: {\
563
extern swidget LabelOptions;\
567
sprintf(out,"%s",plotTitle);\
568
UxPutText(UxFindSwidget("Titletext"),out);\
569
sprintf(out,"%s",plotLabelX);\
570
UxPutText(UxFindSwidget("labelxtext"),out);\
571
sprintf(out,"%s",plotLabelY);\
572
UxPutText(UxFindSwidget("labelytext"),out);\
573
UxPopupInterface(UxFindSwidget("LabelOptions"),no_grab); \
578
*AxisItem.fontList: BoldTextFont
579
*AxisItem.foreground: MenuForeground
581
*CursorItem.class: pushButton
582
*CursorItem.parent: LabelPane
583
*CursorItem.static: true
584
*CursorItem.name: CursorItem
585
*CursorItem.labelString: "Label / Cursor"
586
*CursorItem.mnemonic: "C"
587
*CursorItem.background: MenuBackground
588
*CursorItem.activateCallback: {\
590
UxPopupInterface(UxFindSwidget("LabelCursor"),no_grab);\
594
*CursorItem.fontList: BoldTextFont
595
*CursorItem.foreground: MenuForeground
597
*LoadItem.class: pushButton
598
*LoadItem.parent: LabelPane
599
*LoadItem.static: true
600
*LoadItem.name: LoadItem
601
*LoadItem.labelString: "Load label file"
602
*LoadItem.mnemonic: "L"
603
*LoadItem.background: MenuBackground
604
*LoadItem.activateCallback: {\
605
extern swidget ListPopup;\
606
extern swidget scrolledList1;\
609
UxPopupInterface(ListPopup,no_grab);\
610
SetFileList( UxGetWidget(scrolledList1), 1,"*.prg" );\
616
*LoadItem.fontList: BoldTextFont
617
*LoadItem.foreground: MenuForeground
619
*ClearItem.class: pushButton
620
*ClearItem.parent: LabelPane
621
*ClearItem.static: true
622
*ClearItem.name: ClearItem
623
*ClearItem.labelString: "Clear labels"
624
*ClearItem.mnemonic: "C"
625
*ClearItem.background: MenuBackground
626
*ClearItem.activateCallback: {\
630
system("rm -f TMPalice.prg");\
631
spec(specX,specY,specNpix[0],specXcen-specDx,specXcen+specDx,\
632
specYcen-specDy,specYcen+specDy,PLOTMODE);\
639
*ClearItem.fontList: BoldTextFont
640
*ClearItem.foreground: MenuForeground
642
*UtilsPane.class: rowColumn
643
*UtilsPane.parent: Topmenu
644
*UtilsPane.static: true
645
*UtilsPane.name: UtilsPane
646
*UtilsPane.rowColumnType: "menu_pulldown"
647
*UtilsPane.background: MenuBackground
648
*UtilsPane.highlightColor: "Black"
649
*UtilsPane.foreground: MenuForeground
651
*GetcursorItem.class: pushButton
652
*GetcursorItem.parent: UtilsPane
653
*GetcursorItem.static: true
654
*GetcursorItem.name: GetcursorItem
655
*GetcursorItem.labelString: "Get cursor"
656
*GetcursorItem.mnemonic: "G"
657
*GetcursorItem.background: MenuBackground
658
*GetcursorItem.activateCallback: {\
666
SCTPUT("\t X-axis\t\t Y-axis");\
667
SCTPUT("\t---------------------------");\
673
sprintf(output,"\t%f\t%f",x1,y1);\
681
*GetcursorItem.fontList: BoldTextFont
682
*GetcursorItem.foreground: MenuForeground
684
*SavetmpItem.class: pushButton
685
*SavetmpItem.parent: UtilsPane
686
*SavetmpItem.static: true
687
*SavetmpItem.name: SavetmpItem
688
*SavetmpItem.labelString: "Save TMP files ..."
689
*SavetmpItem.mnemonic: "S"
690
*SavetmpItem.background: MenuBackground
691
*SavetmpItem.activateCallback: {\
692
UxPopupInterface(UxFindSwidget("Savefiles"),no_grab);\
694
*SavetmpItem.fontList: BoldTextFont
695
*SavetmpItem.foreground: MenuForeground
697
*PrinterItem.class: pushButton
698
*PrinterItem.parent: UtilsPane
699
*PrinterItem.static: true
700
*PrinterItem.name: PrinterItem
701
*PrinterItem.labelString: "Default Printer ..."
702
*PrinterItem.mnemonic: "D"
703
*PrinterItem.activateCallback: {\
704
UxPopupInterface(UxFindSwidget("Printer"),no_grab);\
706
*PrinterItem.background: MenuBackground
707
*PrinterItem.fontList: BoldTextFont
708
*PrinterItem.foreground: MenuForeground
710
*OptionPane.class: rowColumn
711
*OptionPane.parent: Topmenu
712
*OptionPane.static: true
713
*OptionPane.name: OptionPane
714
*OptionPane.rowColumnType: "menu_pulldown"
715
*OptionPane.background: MenuBackground
716
*OptionPane.foreground: MenuForeground
717
*OptionPane.highlightColor: "Black"
719
*PlotItem.class: cascadeButton
720
*PlotItem.parent: OptionPane
721
*PlotItem.static: true
722
*PlotItem.name: PlotItem
723
*PlotItem.labelString: "Plot mode"
724
*PlotItem.subMenuId: "PlotRadio"
725
*PlotItem.background: MenuBackground
726
*PlotItem.fontList: BoldTextFont
727
*PlotItem.foreground: MenuForeground
729
*ContinuumItem.class: cascadeButton
730
*ContinuumItem.parent: OptionPane
731
*ContinuumItem.static: true
732
*ContinuumItem.name: ContinuumItem
733
*ContinuumItem.labelString: "Continuum fit mode"
734
*ContinuumItem.subMenuId: "ContinRadio"
735
*ContinuumItem.fontList: BoldTextFont
736
*ContinuumItem.foreground: MenuForeground
737
*ContinuumItem.background: MenuBackground
739
*PrintItem.class: cascadeButton
740
*PrintItem.parent: OptionPane
741
*PrintItem.static: true
742
*PrintItem.name: PrintItem
743
*PrintItem.labelString: "Print Mode"
744
*PrintItem.subMenuId: "PrintRadio"
745
*PrintItem.background: MenuBackground
746
*PrintItem.fontList: BoldTextFont
747
*PrintItem.foreground: MenuForeground
749
*ContinRadio.class: rowColumn
750
*ContinRadio.parent: OptionPane
751
*ContinRadio.static: true
752
*ContinRadio.name: ContinRadio
753
*ContinRadio.rowColumnType: "menu_pulldown"
754
*ContinRadio.radioBehavior: "true"
755
*ContinRadio.foreground: MenuForeground
756
*ContinRadio.background: MenuBackground
758
*PolynomialItem.class: toggleButton
759
*PolynomialItem.parent: ContinRadio
760
*PolynomialItem.static: true
761
*PolynomialItem.name: PolynomialItem
762
*PolynomialItem.labelString: "Polynomial"
763
*PolynomialItem.fontList: BoldTextFont
764
*PolynomialItem.foreground: MenuForeground
765
*PolynomialItem.background: MenuBackground
766
*PolynomialItem.set: "true"
767
*PolynomialItem.valueChangedCallback: fitMode = POLYFITMODE;\
768
XtSetSensitive(UxGetWidget(UxFindSwidget("arrowButton4")),1);\
769
XtSetSensitive(UxGetWidget(UxFindSwidget("arrowButton3")),1);\
770
XtSetSensitive(UxGetWidget(UxFindSwidget("degree_text")),1);\
771
XtSetSensitive(UxGetWidget(UxFindSwidget("ReFitItem")),1);\
774
*PolynomialItem.height: 20
776
*SplineItem.class: toggleButton
777
*SplineItem.parent: ContinRadio
778
*SplineItem.static: true
779
*SplineItem.name: SplineItem
780
*SplineItem.labelString: "Spline"
781
*SplineItem.fontList: BoldTextFont
782
*SplineItem.foreground: MenuForeground
783
*SplineItem.background: MenuBackground
784
*SplineItem.valueChangedCallback: fitMode = SPLINEFITMODE;\
785
XtSetSensitive(UxGetWidget(UxFindSwidget("arrowButton3")),0);\
786
XtSetSensitive(UxGetWidget(UxFindSwidget("arrowButton4")),0);\
787
XtSetSensitive(UxGetWidget(UxFindSwidget("degree_text")),0);\
788
XtSetSensitive(UxGetWidget(UxFindSwidget("ReFitItem")),0);
789
*SplineItem.set: "false"
790
*SplineItem.height: 20
792
*PlotRadio.class: rowColumn
793
*PlotRadio.parent: OptionPane
794
*PlotRadio.static: true
795
*PlotRadio.name: PlotRadio
796
*PlotRadio.rowColumnType: "menu_pulldown"
797
*PlotRadio.radioBehavior: "true"
798
*PlotRadio.background: MenuBackground
799
*PlotRadio.foreground: MenuForeground
801
*StraightToggle.class: toggleButton
802
*StraightToggle.parent: PlotRadio
803
*StraightToggle.static: true
804
*StraightToggle.name: StraightToggle
805
*StraightToggle.labelString: "Straight line"
806
*StraightToggle.background: MenuBackground
807
*StraightToggle.set: "true"
808
*StraightToggle.fontList: BoldTextFont
809
*StraightToggle.foreground: MenuForeground
810
*StraightToggle.valueChangedCallback: plotMode = LINEMODE;
811
*StraightToggle.height: 20
813
*HistoToggle.class: toggleButton
814
*HistoToggle.parent: PlotRadio
815
*HistoToggle.static: true
816
*HistoToggle.name: HistoToggle
817
*HistoToggle.labelString: "Histogram - like"
818
*HistoToggle.background: MenuBackground
819
*HistoToggle.fontList: BoldTextFont
820
*HistoToggle.foreground: MenuForeground
821
*HistoToggle.valueChangedCallback: plotMode = HISTMODE;
822
*HistoToggle.height: 20
824
*PrintRadio.class: rowColumn
825
*PrintRadio.parent: OptionPane
826
*PrintRadio.static: true
827
*PrintRadio.name: PrintRadio
828
*PrintRadio.rowColumnType: "menu_pulldown"
829
*PrintRadio.radioBehavior: "true"
830
*PrintRadio.background: MenuBackground
832
*NormalToggle.class: toggleButton
833
*NormalToggle.parent: PrintRadio
834
*NormalToggle.static: true
835
*NormalToggle.name: NormalToggle
836
*NormalToggle.labelString: "Landscape"
837
*NormalToggle.mnemonic: "L"
838
*NormalToggle.background: MenuBackground
839
*NormalToggle.fontList: BoldTextFont
840
*NormalToggle.foreground: MenuForeground
841
*NormalToggle.set: "true"
842
*NormalToggle.valueChangedCallback: {\
843
if(XmToggleButtonGetState(UxGetWidget(UxFindSwidget("NormalToggle"))))\
845
AppendDialogText("del/gra 0");\
846
AppendDialogText("cre/gra 0 1000,400,40,500");\
847
AppendDialogText("SET/GCURSOR ? C_HAIR");\
851
*PortraitToggle.class: toggleButton
852
*PortraitToggle.parent: PrintRadio
853
*PortraitToggle.static: true
854
*PortraitToggle.name: PortraitToggle
855
*PortraitToggle.labelString: "Portrait"
856
*PortraitToggle.mnemonic: "P"
857
*PortraitToggle.background: MenuBackground
858
*PortraitToggle.fontList: BoldTextFont
859
*PortraitToggle.foreground: MenuForeground
860
*PortraitToggle.valueChangedCallback: {\
861
if(XmToggleButtonGetState(UxGetWidget(UxFindSwidget("PortraitToggle"))))\
863
AppendDialogText("del/gra 0");\
864
AppendDialogText("cre/gra 0 500,800,10,80");\
865
AppendDialogText("SET/GCURSOR ? C_HAIR");\
869
*HelpPane.class: rowColumn
870
*HelpPane.parent: Topmenu
871
*HelpPane.static: true
872
*HelpPane.name: HelpPane
873
*HelpPane.rowColumnType: "menu_pulldown"
874
*HelpPane.background: MenuBackground
875
*HelpPane.foreground: MenuForeground
877
*Context.class: pushButton
878
*Context.parent: HelpPane
879
*Context.static: true
880
*Context.name: Context
881
*Context.labelString: "On Context"
882
*Context.mnemonic: "C"
883
*Context.activateCallback: { UxPopupInterface(UxFindSwidget("HelpTopLevel"),no_grab);\
884
UxPutText(UxFindSwidget("helpText"),find_extended_help("CONTEXT"));\
886
*Context.background: MenuBackground
887
*Context.fontList: BoldTextFont
888
*Context.foreground: MenuForeground
890
*OnHelp.class: pushButton
891
*OnHelp.parent: HelpPane
894
*OnHelp.labelString: "On Help"
895
*OnHelp.mnemonic: "H"
896
*OnHelp.background: MenuBackground
897
*OnHelp.fontList: BoldTextFont
898
*OnHelp.foreground: MenuForeground
899
*OnHelp.activateCallback: {\
900
UxPopupInterface(UxFindSwidget("HelpTopLevel"),no_grab);\
901
UxPutText(UxFindSwidget("helpText"),find_extended_help("HELP"));\
904
*QuitPane.class: rowColumn
905
*QuitPane.parent: Topmenu
906
*QuitPane.static: true
907
*QuitPane.name: QuitPane
908
*QuitPane.rowColumnType: "menu_pulldown"
909
*QuitPane.background: MenuBackground
910
*QuitPane.highlightColor: "Black"
911
*QuitPane.foreground: MenuForeground
913
*QuitItem.class: pushButton
914
*QuitItem.parent: QuitPane
915
*QuitItem.static: true
916
*QuitItem.name: QuitItem
917
*QuitItem.labelString: "Bye"
918
*QuitItem.mnemonic: "B"
919
*QuitItem.background: MenuBackground
920
*QuitItem.activateCallback: {\
921
system("rm -f alicel.plt alice.plt TMPalice.* TMPcont.bdf pscrplot.0");\
924
*QuitItem.fontList: BoldTextFont
925
*QuitItem.foreground: MenuForeground
927
*FileMenu.class: cascadeButton
928
*FileMenu.parent: Topmenu
929
*FileMenu.static: true
930
*FileMenu.name: FileMenu
931
*FileMenu.labelString: "File"
932
*FileMenu.mnemonic: "F"
933
*FileMenu.subMenuId: "FilePane"
934
*FileMenu.background: MenuBackground
935
*FileMenu.fontList: BoldTextFont
936
*FileMenu.foreground: MenuForeground
937
*FileMenu.highlightColor: "Black"
939
*FrameMenu.class: cascadeButton
940
*FrameMenu.parent: Topmenu
941
*FrameMenu.static: true
942
*FrameMenu.name: FrameMenu
943
*FrameMenu.labelString: "Frame"
944
*FrameMenu.mnemonic: "m"
945
*FrameMenu.subMenuId: "FramePane"
946
*FrameMenu.background: MenuBackground
947
*FrameMenu.fontList: BoldTextFont
948
*FrameMenu.foreground: MenuForeground
949
*FrameMenu.highlightColor: "Black"
951
*ContinunmMenu.class: cascadeButton
952
*ContinunmMenu.parent: Topmenu
953
*ContinunmMenu.static: true
954
*ContinunmMenu.name: ContinunmMenu
955
*ContinunmMenu.labelString: "Continuum"
956
*ContinunmMenu.mnemonic: "C"
957
*ContinunmMenu.subMenuId: "ContinPane"
958
*ContinunmMenu.background: MenuBackground
959
*ContinunmMenu.fontList: BoldTextFont
960
*ContinunmMenu.foreground: MenuForeground
961
*ContinunmMenu.highlightColor: "Black"
963
*FilterMenu.class: cascadeButton
964
*FilterMenu.parent: Topmenu
965
*FilterMenu.static: true
966
*FilterMenu.name: FilterMenu
967
*FilterMenu.labelString: "Filter"
968
*FilterMenu.mnemonic: "t"
969
*FilterMenu.subMenuId: "FilterPane"
970
*FilterMenu.background: MenuBackground
971
*FilterMenu.fontList: BoldTextFont
972
*FilterMenu.foreground: MenuForeground
973
*FilterMenu.highlightColor: "Black"
975
*LabelMenu.class: cascadeButton
976
*LabelMenu.parent: Topmenu
977
*LabelMenu.static: true
978
*LabelMenu.name: LabelMenu
979
*LabelMenu.labelString: "Label"
980
*LabelMenu.mnemonic: "L"
981
*LabelMenu.subMenuId: "LabelPane"
982
*LabelMenu.background: MenuBackground
983
*LabelMenu.fontList: BoldTextFont
984
*LabelMenu.foreground: MenuForeground
985
*LabelMenu.highlightColor: "Black"
987
*UtilsMenu.class: cascadeButton
988
*UtilsMenu.parent: Topmenu
989
*UtilsMenu.static: true
990
*UtilsMenu.name: UtilsMenu
991
*UtilsMenu.labelString: "Utils"
992
*UtilsMenu.mnemonic: "U"
993
*UtilsMenu.subMenuId: "UtilsPane"
994
*UtilsMenu.background: MenuBackground
995
*UtilsMenu.fontList: BoldTextFont
996
*UtilsMenu.foreground: MenuForeground
997
*UtilsMenu.highlightColor: "Black"
999
*OptionMenu.class: cascadeButton
1000
*OptionMenu.parent: Topmenu
1001
*OptionMenu.static: true
1002
*OptionMenu.name: OptionMenu
1003
*OptionMenu.labelString: "Options"
1004
*OptionMenu.mnemonic: "O"
1005
*OptionMenu.subMenuId: "OptionPane"
1006
*OptionMenu.background: MenuBackground
1007
*OptionMenu.fontList: BoldTextFont
1008
*OptionMenu.foreground: MenuForeground
1009
*OptionMenu.highlightColor: "Black"
1011
*HelpMenu.class: cascadeButton
1012
*HelpMenu.parent: Topmenu
1013
*HelpMenu.static: true
1014
*HelpMenu.name: HelpMenu
1015
*HelpMenu.labelString: "Help"
1016
*HelpMenu.mnemonic: "H"
1017
*HelpMenu.subMenuId: "HelpPane"
1018
*HelpMenu.background: MenuBackground
1019
*HelpMenu.fontList: BoldTextFont
1020
*HelpMenu.foreground: MenuForeground
1022
*QuitMenu.class: cascadeButton
1023
*QuitMenu.parent: Topmenu
1024
*QuitMenu.static: true
1025
*QuitMenu.name: QuitMenu
1026
*QuitMenu.labelString: "Quit"
1027
*QuitMenu.mnemonic: "Q"
1028
*QuitMenu.subMenuId: "QuitPane"
1029
*QuitMenu.background: MenuBackground
1030
*QuitMenu.fontList: BoldTextFont
1031
*QuitMenu.foreground: MenuForeground
1032
*QuitMenu.highlightColor: "Black"
1034
*AliceForm1.class: form
1035
*AliceForm1.parent: AliceWindow
1036
*AliceForm1.static: true
1037
*AliceForm1.name: AliceForm1
1038
*AliceForm1.background: WindowBackground
1041
*Line.parent: AliceForm1
1048
*Line.background: LabelBackground
1049
*Line.fontList: TextFont
1050
*Line.foreground: TextForeground
1051
*Line.labelString: "Line :"
1053
*CurrLine.class: text
1054
*CurrLine.parent: AliceForm1
1055
*CurrLine.static: true
1056
*CurrLine.name: CurrLine
1060
*CurrLine.height: 36
1061
*CurrLine.background: TextBackground
1062
*CurrLine.borderColor: "Gray100"
1063
*CurrLine.losingFocusCallback: {\
1064
int aux_specLineNum;\
1066
if(specInputFrame )\
1068
if( specModLineNum)\
1069
{ specModLineNum = FALSE;\
1070
sscanf(UxGetText(CurrLine),"%d",&aux_specLineNum);\
1071
if(aux_specLineNum != specLineNum)\
1073
if(aux_specLineNum > 0 & aux_specLineNum + specLineStep -1 <= specDim)\
1075
specLineNum = aux_specLineNum;\
1076
read_image(specImageName);\
1079
{sprintf(out,"%d",specLineNum);\
1080
XmTextSetString(UxGetWidget(UxFindSwidget("CurrLine")),out);\
1081
out_error("Invalid Line Number");\
1086
else if(specModLineNum)\
1088
UxPutText(UxFindSwidget("help_text_top")," ");\
1090
*CurrLine.modifyVerifyCallback: {\
1092
specModLineNum = TRUE;\
1095
*CurrLine.foreground: TextForeground
1096
*CurrLine.maxLength: 5
1097
*CurrLine.highlightOnEnter: "true"
1098
*CurrLine.focusCallback: {\
1099
#include <alice_help.h>\
1100
UxPutText(UxFindSwidget("help_text_top"),IMAGELINE);\
1102
*CurrLine.fontList: TextFont
1103
*CurrLine.translations: TextTab
1105
*Linestep.class: text
1106
*Linestep.parent: AliceForm1
1107
*Linestep.static: true
1108
*Linestep.name: Linestep
1112
*Linestep.height: 36
1113
*Linestep.background: TextBackground
1114
*Linestep.borderColor: "Gray100"
1115
*Linestep.losingFocusCallback: {\
1116
extern int specModLineStep;\
1119
if(specInputFrame & specModLineStep)\
1121
if( specModLineStep)\
1122
{ specModLineStep = FALSE;\
1123
sscanf(UxGetText(Linestep),"%d",&aux);\
1124
if( aux <= specDim & aux >0)\
1126
specLineStep = aux;\
1127
read_image(specImageName);\
1131
sprintf(out,"%d",specLineStep);\
1132
XmTextSetString(UxGetWidget(UxFindSwidget("Linestep")),out);\
1133
out_error("Invalid Line Step");\
1137
else if(specModLineStep)\
1139
UxPutText(UxFindSwidget("help_text_top"),"");\
1141
*Linestep.modifyVerifyCallback: {\
1142
extern int specModLineStep;\
1144
specModLineStep = TRUE;\
1146
*Linestep.foreground: TextForeground
1147
*Linestep.maxLength: 3
1148
*Linestep.highlightOnEnter: "true"
1149
*Linestep.focusCallback: {\
1150
#include <alice_help.h>\
1151
UxPutText(UxFindSwidget("help_text_top"),IMAGEWIDE);\
1153
*Linestep.fontList: TextFont
1154
*Linestep.translations: TextTab
1156
*arrowButton1.class: arrowButton
1157
*arrowButton1.parent: AliceForm1
1158
*arrowButton1.static: true
1159
*arrowButton1.name: arrowButton1
1160
*arrowButton1.x: 141
1162
*arrowButton1.width: 30
1163
*arrowButton1.height: 20
1164
*arrowButton1.background: TextBackground
1165
*arrowButton1.foreground: MenuBackground
1166
*arrowButton1.activateCallback: {\
1170
if(specLineNum + specLineStep <= specDim)\
1171
specLineNum+=specLineStep;\
1174
sprintf(line,"%d",specLineNum);\
1175
UxPutText(CurrLine,line);\
1176
read_image(specImageName);\
1177
specModLineNum = FALSE;\
1178
specModLineStep = FALSE;\
1183
*arrowButton1.highlightOnEnter: "true"
1184
*arrowButton1.translations: HELPTopTab
1185
*arrowButton1.highlightColor: "Black"
1187
*arrowButton2.class: arrowButton
1188
*arrowButton2.parent: AliceForm1
1189
*arrowButton2.static: true
1190
*arrowButton2.name: arrowButton2
1191
*arrowButton2.x: 141
1193
*arrowButton2.width: 30
1194
*arrowButton2.height: 20
1195
*arrowButton2.background: TextBackground
1196
*arrowButton2.foreground: MenuBackground
1197
*arrowButton2.arrowDirection: "arrow_down"
1198
*arrowButton2.activateCallback: {\
1202
if(specLineNum - specLineStep > 0)\
1203
specLineNum-=specLineStep;\
1205
specLineNum = specDim - specLineStep +1;\
1206
sprintf(line,"%d",specLineNum);\
1207
UxPutText(CurrLine,line);\
1208
read_image(specImageName);\
1209
specModLineNum = FALSE;\
1210
specModLineStep = FALSE;\
1215
*arrowButton2.highlightOnEnter: "true"
1216
*arrowButton2.translations: HELPTopTab
1217
*arrowButton2.highlightColor: "Black"
1219
*Degree.class: label
1220
*Degree.parent: AliceForm1
1221
*Degree.static: false
1222
*Degree.name: Degree
1227
*Degree.background: LabelBackground
1228
*Degree.fontList: TextFont
1229
*Degree.borderColor: "Gray100"
1230
*Degree.labelString: "Fit Degree :"
1231
*Degree.foreground: TextForeground
1233
*degree_text.class: text
1234
*degree_text.parent: AliceForm1
1235
*degree_text.static: true
1236
*degree_text.name: degree_text
1239
*degree_text.width: 36
1240
*degree_text.height: 36
1241
*degree_text.background: TextBackground
1242
*degree_text.borderColor: "Gray100"
1243
*degree_text.losingFocusCallback: {\
1247
{ fitModFitDeg = FALSE;\
1248
sscanf(UxGetText(degree_text),"%d",&aux_fitDegree);\
1249
if(aux_fitDegree >0 && aux_fitDegree < 16)\
1250
fitDegree = aux_fitDegree;\
1253
sprintf(out,"%d",fitDegree);\
1254
XmTextSetString(UxGetWidget(UxFindSwidget("degree_text")),out);\
1257
UxPutText(UxFindSwidget("help_text_top"),"");\
1259
*degree_text.modifyVerifyCallback: {\
1260
fitModFitDeg = TRUE;\
1262
*degree_text.foreground: TextForeground
1263
*degree_text.maxLength: 3
1264
*degree_text.highlightOnEnter: "true"
1265
*degree_text.focusCallback: {\
1266
#include <alice_help.h>\
1267
UxPutText(UxFindSwidget("help_text_top"),FITDEGREE);\
1269
*degree_text.fontList: TextFont
1270
*degree_text.translations: TextTab
1272
*arrowButton3.class: arrowButton
1273
*arrowButton3.parent: AliceForm1
1274
*arrowButton3.static: true
1275
*arrowButton3.name: arrowButton3
1276
*arrowButton3.x: 464
1278
*arrowButton3.width: 30
1279
*arrowButton3.height: 20
1280
*arrowButton3.background: TextBackground
1281
*arrowButton3.foreground: MenuBackground
1282
*arrowButton3.activateCallback: {\
1288
sprintf(deg,"%d",fitDegree);\
1289
UxPutText(degree_text,deg);\
1290
specModLineNum = FALSE;\
1291
specModLineStep = FALSE;\
1293
*arrowButton3.highlightOnEnter: "true"
1294
*arrowButton3.translations: HELPTopTab
1295
*arrowButton3.highlightColor: "Black"
1297
*arrowButton4.class: arrowButton
1298
*arrowButton4.parent: AliceForm1
1299
*arrowButton4.static: true
1300
*arrowButton4.name: arrowButton4
1301
*arrowButton4.x: 464
1303
*arrowButton4.width: 30
1304
*arrowButton4.height: 20
1305
*arrowButton4.background: TextBackground
1306
*arrowButton4.arrowDirection: "arrow_down"
1307
*arrowButton4.foreground: MenuBackground
1308
*arrowButton4.activateCallback: {\
1314
sprintf(deg,"%d",fitDegree);\
1315
UxPutText(degree_text,deg);\
1317
*arrowButton4.highlightOnEnter: "true"
1318
*arrowButton4.translations: HELPTopTab
1319
*arrowButton4.highlightColor: "Black"
1321
*AliceForm2.class: form
1322
*AliceForm2.parent: AliceForm1
1323
*AliceForm2.static: true
1324
*AliceForm2.name: AliceForm2
1325
*AliceForm2.resizePolicy: "resize_none"
1328
*AliceForm2.width: 565
1329
*AliceForm2.height: 44
1330
*AliceForm2.background: ButtonBackground
1332
*GaussButton.class: pushButton
1333
*GaussButton.parent: AliceForm2
1334
*GaussButton.static: true
1335
*GaussButton.name: GaussButton
1338
*GaussButton.width: 90
1339
*GaussButton.height: 30
1340
*GaussButton.fontList: BoldTextFont
1341
*GaussButton.foreground: ButtonForeground
1342
*GaussButton.labelString: "Gauss ..."
1343
*GaussButton.activateCallback: {\
1344
extern swidget Gauss_Shell;\
1346
UxPopupInterface(UxFindSwidget("GaussShell"),no_grab);\
1350
*GaussButton.background: ButtonBackground
1351
*GaussButton.helpCallback: {\
1352
UxPutText(UxFindSwidget("help_text_top"),"Help Button");\
1354
*GaussButton.highlightOnEnter: "true"
1355
*GaussButton.translations: Help
1356
*GaussButton.highlightColor: "Black"
1358
*IntegrateButton.class: pushButton
1359
*IntegrateButton.parent: AliceForm2
1360
*IntegrateButton.static: true
1361
*IntegrateButton.name: IntegrateButton
1362
*IntegrateButton.x: 375
1363
*IntegrateButton.y: 6
1364
*IntegrateButton.width: 90
1365
*IntegrateButton.height: 30
1366
*IntegrateButton.fontList: BoldTextFont
1367
*IntegrateButton.foreground: ButtonForeground
1368
*IntegrateButton.labelString: "Integrate"
1369
*IntegrateButton.background: ButtonBackground
1370
*IntegrateButton.activateCallback: {\
1376
*IntegrateButton.highlightOnEnter: "true"
1377
*IntegrateButton.translations: Help
1379
*RebinButton.class: pushButton
1380
*RebinButton.parent: AliceForm2
1381
*RebinButton.static: true
1382
*RebinButton.name: RebinButton
1385
*RebinButton.width: 90
1386
*RebinButton.height: 30
1387
*RebinButton.fontList: BoldTextFont
1388
*RebinButton.foreground: ButtonForeground
1389
*RebinButton.labelString: "Rebin ..."
1390
*RebinButton.activateCallback: {\
1392
UxPopupInterface(UxFindSwidget("RebinShell"),no_grab);\
1396
*RebinButton.background: ButtonBackground
1397
*RebinButton.helpCallback: {\
1398
UxPutText(UxFindSwidget("help_text_top"),"Help Button");\
1400
*RebinButton.highlightOnEnter: "true"
1401
*RebinButton.translations: Help
1402
*RebinButton.highlightColor: "Black"
1404
*RebinButton1.class: pushButton
1405
*RebinButton1.parent: AliceForm2
1406
*RebinButton1.static: true
1407
*RebinButton1.name: RebinButton1
1408
*RebinButton1.x: 263
1410
*RebinButton1.width: 90
1411
*RebinButton1.height: 30
1412
*RebinButton1.fontList: BoldTextFont
1413
*RebinButton1.foreground: ButtonForeground
1414
*RebinButton1.labelString: "Overplot ..."
1415
*RebinButton1.activateCallback: {\
1417
UxPopupInterface(UxFindSwidget("OverPlotShell"),no_grab);\
1421
*RebinButton1.background: ButtonBackground
1422
*RebinButton1.helpCallback: {\
1423
UxPutText(UxFindSwidget("help_text_top"),"Help Button");\
1425
*RebinButton1.highlightOnEnter: "true"
1426
*RebinButton1.translations: Help
1427
*RebinButton1.highlightColor: "Black"
1429
*separator1.class: separator
1430
*separator1.parent: AliceForm1
1431
*separator1.static: true
1432
*separator1.name: separator1
1435
*separator1.width: 554
1436
*separator1.height: 5
1437
*separator1.background: LabelBackground
1438
*separator1.foreground: TextForeground
1440
*width_text.class: text
1441
*width_text.parent: AliceForm1
1442
*width_text.static: true
1443
*width_text.name: width_text
1446
*width_text.width: 52
1447
*width_text.height: 36
1448
*width_text.background: TextBackground
1449
*width_text.borderColor: "Gray100"
1450
*width_text.losingFocusCallback: {\
1453
if( filterModWindWidth)\
1454
{ filterModWindWidth = FALSE;\
1455
sscanf(UxGetText(width_text),"%d",&aux_width);\
1456
if(aux_width >1 && aux_width < specNpix[0]/2)\
1457
filterWindWidth = aux_width;\
1460
sprintf(out,"%d",filterWindWidth);\
1461
XmTextSetString(UxGetWidget(UxFindSwidget("width_text")),out);\
1462
out_error("Invalid Window Width");\
1465
UxPutText(UxFindSwidget("help_text_top"),"");\
1467
*width_text.modifyVerifyCallback: {\
1468
filterModWindWidth = TRUE;\
1470
*width_text.foreground: TextForeground
1471
*width_text.maxLength: 4
1472
*width_text.highlightOnEnter: "true"
1473
*width_text.focusCallback: {\
1474
#include <alice_help.h>\
1475
UxPutText(UxFindSwidget("help_text_top"),FILTERWIDE);\
1477
*width_text.fontList: TextFont
1478
*width_text.translations: TextTab
1480
*arrowButton11.class: arrowButton
1481
*arrowButton11.parent: AliceForm1
1482
*arrowButton11.static: true
1483
*arrowButton11.name: arrowButton11
1484
*arrowButton11.x: 303
1485
*arrowButton11.y: 32
1486
*arrowButton11.width: 30
1487
*arrowButton11.height: 20
1488
*arrowButton11.background: TextBackground
1489
*arrowButton11.foreground: MenuBackground
1490
*arrowButton11.activateCallback: {\
1492
if(filterWindWidth < specNpix[0]/2)\
1495
out_error("Invalid Window Width");\
1496
sprintf(out,"%d",filterWindWidth);\
1497
UxPutText(width_text,out);\
1498
specModLineNum = FALSE;\
1499
specModLineStep = FALSE;\
1501
*arrowButton11.highlightOnEnter: "true"
1502
*arrowButton11.translations: HELPTopTab
1503
*arrowButton11.highlightColor: "Black"
1505
*arrowButton12.class: arrowButton
1506
*arrowButton12.parent: AliceForm1
1507
*arrowButton12.static: true
1508
*arrowButton12.name: arrowButton12
1509
*arrowButton12.x: 303
1510
*arrowButton12.y: 50
1511
*arrowButton12.width: 30
1512
*arrowButton12.height: 20
1513
*arrowButton12.background: TextBackground
1514
*arrowButton12.arrowDirection: "arrow_down"
1515
*arrowButton12.foreground: MenuBackground
1516
*arrowButton12.activateCallback: {\
1518
if(filterWindWidth > 2)\
1521
out_error("Invalid Window Width");\
1522
sprintf(out,"%d",filterWindWidth);\
1523
UxPutText(width_text,out);\
1525
*arrowButton12.highlightOnEnter: "true"
1526
*arrowButton12.translations: HELPTopTab
1527
*arrowButton12.highlightColor: "Black"
1530
*Line1.parent: AliceForm1
1531
*Line1.static: false
1537
*Line1.background: LabelBackground
1538
*Line1.fontList: TextFont
1539
*Line1.labelString: "Window :"
1540
*Line1.foreground: TextForeground
1543
*Line2.parent: AliceForm1
1544
*Line2.static: false
1550
*Line2.background: LabelBackground
1551
*Line2.fontList: TextFont
1552
*Line2.labelString: "Image"
1553
*Line2.foreground: TextForeground
1556
*Line3.parent: AliceForm1
1557
*Line3.static: false
1563
*Line3.background: LabelBackground
1564
*Line3.fontList: TextFont
1565
*Line3.labelString: "Filter"
1566
*Line3.foreground: TextForeground
1569
*Line4.parent: AliceForm1
1570
*Line4.static: false
1576
*Line4.background: LabelBackground
1577
*Line4.fontList: TextFont
1578
*Line4.labelString: "Continuum"
1579
*Line4.foreground: TextForeground
1581
*help_text_top.class: text
1582
*help_text_top.parent: AliceForm1
1583
*help_text_top.static: true
1584
*help_text_top.name: help_text_top
1586
*help_text_top.y: 332
1587
*help_text_top.width: 555
1588
*help_text_top.height: 48
1589
*help_text_top.background: SHelpBackground
1590
*help_text_top.editable: "false"
1591
*help_text_top.fontList: TextFont
1592
*help_text_top.cursorPositionVisible: "false"
1593
*help_text_top.foreground: TextForeground
1594
*help_text_top.marginHeight: 3
1596
*separator3.class: separator
1597
*separator3.parent: AliceForm1
1598
*separator3.static: true
1599
*separator3.name: separator3
1602
*separator3.width: 565
1603
*separator3.height: 8
1604
*separator3.background: ButtonBackground
1605
*separator3.foreground: TextForeground
1607
*separator8.class: separator
1608
*separator8.parent: AliceForm1
1609
*separator8.static: true
1610
*separator8.name: separator8
1613
*separator8.width: 158
1614
*separator8.height: 10
1615
*separator8.background: LabelBackground
1616
*separator8.foreground: TextForeground
1618
*separator9.class: separator
1619
*separator9.parent: AliceForm1
1620
*separator9.static: true
1621
*separator9.name: separator9
1624
*separator9.width: 146
1625
*separator9.height: 10
1626
*separator9.background: LabelBackground
1627
*separator9.foreground: TextForeground
1629
*separator10.class: separator
1630
*separator10.parent: AliceForm1
1631
*separator10.static: true
1632
*separator10.name: separator10
1635
*separator10.width: 202
1636
*separator10.height: 10
1637
*separator10.background: LabelBackground
1638
*separator10.foreground: TextForeground
1640
*GaussDrawingArea.class: drawingArea
1641
*GaussDrawingArea.parent: AliceForm1
1642
*GaussDrawingArea.static: true
1643
*GaussDrawingArea.name: GaussDrawingArea
1644
*GaussDrawingArea.resizePolicy: "resize_none"
1645
*GaussDrawingArea.x: 16
1646
*GaussDrawingArea.y: 112
1647
*GaussDrawingArea.width: 400
1648
*GaussDrawingArea.height: 200
1649
*GaussDrawingArea.background: TextBackground
1650
*GaussDrawingArea.marginHeight: 0
1651
*GaussDrawingArea.marginWidth: 0
1652
*GaussDrawingArea.foreground: TextForeground
1653
*GaussDrawingArea.highlightColor: "Black"
1654
*GaussDrawingArea.createCallback: {\
1655
#define Cross_cursor 30\
1658
XSetWindowAttributes attributes;\
1660
display = XtDisplay(UxGetWidget(UxFindSwidget("GaussDrawingArea")));\
1661
window = XtWindow(UxGetWidget(UxFindSwidget("GaussDrawingArea")));\
1663
attributes.cursor = XCreateFontCursor(display,Cross_cursor);\
1664
XChangeWindowAttributes(display,window,CWCursor,&attributes);\
1666
*GaussDrawingArea.exposeCallback: {\
1669
display = XtDisplay(UxGetWidget(UxFindSwidget("GaussDrawingArea")));\
1670
window = XtWindow(UxGetWidget(UxFindSwidget("GaussDrawingArea")));\
1671
XClearWindow(display,window);\
1675
*arrowButton8.class: arrowButton
1676
*arrowButton8.parent: AliceForm1
1677
*arrowButton8.static: false
1678
*arrowButton8.name: arrowButton8
1679
*arrowButton8.x: 442
1680
*arrowButton8.y: 239
1681
*arrowButton8.width: 30
1682
*arrowButton8.height: 30
1683
*arrowButton8.arrowDirection: "arrow_left"
1684
*arrowButton8.background: ButtonBackground
1685
*arrowButton8.activateCallback: {\
1691
*arrowButton8.foreground: TextForeground
1692
*arrowButton8.highlightOnEnter: "true"
1693
*arrowButton8.highlightColor: "Black"
1694
*arrowButton8.translations: HELPTopTab
1696
*arrowButton6.class: arrowButton
1697
*arrowButton6.parent: AliceForm1
1698
*arrowButton6.static: false
1699
*arrowButton6.name: arrowButton6
1700
*arrowButton6.x: 476
1701
*arrowButton6.y: 251
1702
*arrowButton6.width: 30
1703
*arrowButton6.height: 30
1704
*arrowButton6.arrowDirection: "arrow_down"
1705
*arrowButton6.background: ButtonBackground
1706
*arrowButton6.activateCallback: {\
1707
if(specInputFrame) \
1712
*arrowButton6.foreground: TextForeground
1713
*arrowButton6.highlightOnEnter: "true"
1714
*arrowButton6.highlightColor: "Black"
1715
*arrowButton6.translations: HELPTopTab
1717
*arrowButton5.class: arrowButton
1718
*arrowButton5.parent: AliceForm1
1719
*arrowButton5.static: false
1720
*arrowButton5.name: arrowButton5
1721
*arrowButton5.x: 508
1722
*arrowButton5.y: 239
1723
*arrowButton5.width: 30
1724
*arrowButton5.height: 30
1725
*arrowButton5.arrowDirection: "arrow_right"
1726
*arrowButton5.background: ButtonBackground
1727
*arrowButton5.activateCallback: {\
1734
*arrowButton5.foreground: TextForeground
1735
*arrowButton5.highlightOnEnter: "true"
1736
*arrowButton5.highlightColor: "Black"
1737
*arrowButton5.translations: HELPTopTab
1739
*arrowButton7.class: arrowButton
1740
*arrowButton7.parent: AliceForm1
1741
*arrowButton7.static: false
1742
*arrowButton7.name: arrowButton7
1743
*arrowButton7.x: 475
1744
*arrowButton7.y: 223
1745
*arrowButton7.width: 30
1746
*arrowButton7.height: 30
1747
*arrowButton7.background: ButtonBackground
1748
*arrowButton7.activateCallback: {\
1754
*arrowButton7.foreground: TextForeground
1755
*arrowButton7.highlightOnEnter: "true"
1756
*arrowButton7.highlightColor: "Black"
1757
*arrowButton7.translations: HELPTopTab
1760
*Step.parent: AliceForm1
1767
*Step.fontList: TextFont
1768
*Step.foreground: TextForeground
1769
*Step.background: LabelBackground
1770
*Step.labelString: "Step :"
1772
*step_text.class: text
1773
*step_text.parent: AliceForm1
1774
*step_text.static: false
1775
*step_text.name: step_text
1778
*step_text.width: 51
1779
*step_text.height: 34
1780
*step_text.foreground: TextForeground
1781
*step_text.background: TextBackground
1782
*step_text.highlightOnEnter: "true"
1783
*step_text.text: "0.2"
1784
*step_text.sensitive: "true"
1785
*step_text.losingFocusCallback: {\
1786
if( filterModStepWin)\
1787
{ filterModStepWin = FALSE;\
1788
sscanf(UxGetText(step_text),"%f",&specStepWin);\
1790
UxPutText(UxFindSwidget("help_text_top"),"");\
1792
*step_text.modifyVerifyCallback: {\
1793
filterModStepWin = TRUE;\
1795
*step_text.fontList: TextFont
1796
*step_text.translations: TextTab
1797
*step_text.highlightColor: "Black"
1798
*step_text.topShadowColor: WindowBackground
1799
*step_text.focusCallback: {\
1800
UxPutText(UxFindSwidget("help_text_top"),ZOOMSTEP);\
1803
*Cut_x.class: pushButton
1804
*Cut_x.parent: AliceForm1
1805
*Cut_x.static: false
1811
*Cut_x.background: ButtonBackground
1812
*Cut_x.labelString: "Cut X"
1813
*Cut_x.fontList: BoldTextFont
1814
*Cut_x.foreground: ButtonForeground
1815
*Cut_x.activateCallback: {\
1822
*Cut_x.highlightOnEnter: "true"
1823
*Cut_x.highlightColor: "Black"
1824
*Cut_x.translations: Help
1826
*Cut_y.class: pushButton
1827
*Cut_y.parent: AliceForm1
1828
*Cut_y.static: false
1834
*Cut_y.background: ButtonBackground
1835
*Cut_y.foreground: ButtonForeground
1836
*Cut_y.fontList: BoldTextFont
1837
*Cut_y.labelString: "Cut Y"
1838
*Cut_y.activateCallback: {\
1844
*Cut_y.highlightOnEnter: "true"
1845
*Cut_y.highlightColor: "Black"
1846
*Cut_y.translations: Help
1848
*Move.class: pushButton
1849
*Move.parent: AliceForm1
1856
*Move.background: ButtonBackground
1857
*Move.foreground: ButtonForeground
1858
*Move.fontList: BoldTextFont
1859
*Move.activateCallback: {\
1865
*Move.highlightOnEnter: "true"
1866
*Move.highlightColor: "Black"
1867
*Move.translations: Help
1869
*separator11.class: separator
1870
*separator11.parent: AliceForm1
1871
*separator11.static: true
1872
*separator11.name: separator11
1875
*separator11.width: 416
1876
*separator11.height: 9
1877
*separator11.background: LabelBackground
1878
*separator11.foreground: TextForeground
1880
*separator12.class: separator
1881
*separator12.parent: AliceForm1
1882
*separator12.static: true
1883
*separator12.name: separator12
1886
*separator12.width: 10
1887
*separator12.height: 216
1888
*separator12.orientation: "vertical"
1889
*separator12.background: LabelBackground
1890
*separator12.foreground: TextForeground
1892
*separator13.class: separator
1893
*separator13.parent: AliceForm1
1894
*separator13.static: true
1895
*separator13.name: separator13
1898
*separator13.width: 10
1899
*separator13.height: 215
1900
*separator13.orientation: "vertical"
1901
*separator13.background: LabelBackground
1902
*separator13.foreground: TextForeground
1904
*separator14.class: separator
1905
*separator14.parent: AliceForm1
1906
*separator14.static: true
1907
*separator14.name: separator14
1910
*separator14.width: 415
1911
*separator14.height: 9
1912
*separator14.background: LabelBackground
1913
*separator14.foreground: TextForeground
1915
*Unzoom.class: pushButton
1916
*Unzoom.parent: AliceForm1
1917
*Unzoom.static: false
1918
*Unzoom.name: Unzoom
1923
*Unzoom.background: ButtonBackground
1924
*Unzoom.foreground: ButtonForeground
1925
*Unzoom.fontList: BoldTextFont
1926
*Unzoom.activateCallback: {\
1929
box(specXcenw2-specDxw2,specXcenw2+specDxw2,\
1930
specYcenw2-specDyw2,specYcenw2+specDyw2,GXequiv );\
1931
specXmin = specX[0]; specXmax = specX[specNpix[0]-1];\
1932
specYmin = specYmax = specY[0];\
1933
for(i = 0; i < specNpix[0] ; i++)\
1935
if(specY[i] > specYmax)\
1936
specYmax = specY[i];\
1937
if(specY[i] < specYmin)\
1938
specYmin = specY[i];\
1940
specXcen=specXmin+(specXmax-specXmin)/2;\
1941
specYcen=specYmin+(specYmax-specYmin)/2;\
1942
specDx = specXmax - specXcen;\
1943
specDy = specYmax - specYcen;\
1944
specXcenw2 =specXcen;\
1945
specYcenw2 =specYcen;\
1948
spec(specX,specY,specNpix[0],specXcen-specDx,specXcen+specDx,\
1949
specYcen-specDy,specYcen+specDy,PLOTMODE);\
1957
*Unzoom.highlightOnEnter: "true"
1958
*Unzoom.highlightColor: "Black"
1959
*Unzoom.translations: Help
1961
*AutoFitTButton.class: toggleButton
1962
*AutoFitTButton.parent: AliceForm1
1963
*AutoFitTButton.static: true
1964
*AutoFitTButton.name: AutoFitTButton
1965
*AutoFitTButton.x: 514
1966
*AutoFitTButton.y: 47
1967
*AutoFitTButton.width: 20
1968
*AutoFitTButton.height: 23
1969
*AutoFitTButton.background: LabelBackground
1970
*AutoFitTButton.selectColor: SelectColor
1971
*AutoFitTButton.highlightOnEnter: "true"
1972
*AutoFitTButton.translations: HELPTopTab
1973
*AutoFitTButton.foreground: "Black"
1974
*AutoFitTButton.indicatorSize: 13
1975
*AutoFitTButton.ancestorSensitive: "true"
1976
*AutoFitTButton.labelString: ""
1978
*AutoFitLabel.class: label
1979
*AutoFitLabel.parent: AliceForm1
1980
*AutoFitLabel.static: false
1981
*AutoFitLabel.name: AutoFitLabel
1982
*AutoFitLabel.x: 495
1984
*AutoFitLabel.width: 62
1985
*AutoFitLabel.height: 18
1986
*AutoFitLabel.background: LabelBackground
1987
*AutoFitLabel.fontList: TextFont
1988
*AutoFitLabel.labelString: "Auto-fit"
1989
*AutoFitLabel.foreground: TextForeground