Debian Codegraph @

gui/XAlice/prj/AliceShell.i

raw
1 ! UIMX ascii 2.0 key: 5708
2 *action.HelpTop1: {\
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);\
42 }
43 *action.clearHelpTop: {UxPutText(UxFindSwidget("help_text_top"),"");\
44 UxPutText(UxFindSwidget("HelpTopLevel"),"");}
45 *action.HelpHelp: DisplayExtendedHelp(UxWidget);
46 *action.HelpTop2: {\
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);\
86 }
87
88 *translation.table: HELPTopTab
89 *translation.parent: AliceShell
90 *translation.policy: override
91 *translation.<EnterWindow>: HelpTop1()
92 *translation.<LeaveWindow>: clearHelpTop()
93
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()
101
102 *translation.table: Help
103 *translation.parent: AliceShell
104 *translation.policy: override
105 *translation.<Btn3Down>: HelpHelp()
106 *translation.<EnterWindow>: HelpTop1()
107 *translation.<LeaveWindow>: clearHelpTop()
108
109 *translation.table: transTable1
110 *translation.parent: AliceShell
111 *translation.policy: override
112 *translation.<EnterWindow>: HelpTop2()
113 *translation.<LeaveWindow>: clearHelpTop()
114
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>\
122 \
123
124 *AliceShell.ispecdecl:
125 *AliceShell.funcdecl: swidget create_AliceShell()\
126
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();\
141 \
142 extern swidget ListPopup;
143 *AliceShell.fcode: create_GaussShell();\
144 create_HelpTopLevel();\
145 ListPopup = create_sh_list1();\
146 create_StatShell();\
147 create_MessageShell();\
148 create_LabelOptions();\
149 create_LabelCursor();\
150 create_Savefiles();\
151 create_Printer();\
152 create_RebinShell();\
153 create_SaveAsShell();\
154 create_OverPlotShell();\
155 init_values();\
156 InitWindows();\
157 return(rtrn);\
158
159 *AliceShell.auxdecl:
160 *AliceShell.name: AliceShell
161 *AliceShell.x: 478
162 *AliceShell.y: 425
163 *AliceShell.width: 561
164 *AliceShell.height: 469
165 *AliceShell.keyboardFocusPolicy: "pointer"
166 *AliceShell.title: "Alice - Spectrum Analysis"
167 *AliceShell.defaultFontList: BoldTextFont
168
169 *AliceWindow.class: mainWindow
170 *AliceWindow.parent: AliceShell
171 *AliceWindow.static: true
172 *AliceWindow.name: AliceWindow
173 *AliceWindow.unitType: "pixels"
174 *AliceWindow.x: 13
175 *AliceWindow.y: 0
176 *AliceWindow.width: 106
177 *AliceWindow.height: 72
178 *AliceWindow.background: WindowBackground
179
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"
188
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
197
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" );\
210 if(!specInputFrame)\
211 {\
212 AppendDialogText("cre/gra 0 1000,400,40,500");\
213 AppendDialogText("SET/GCURSOR ? C_HAIR");\
214 }\
215 specInputFrame = TRUE;\
216 caseList = CASEBDF;\
217 }
218 *ReadItem.fontList: BoldTextFont
219 *ReadItem.foreground: MenuForeground
220
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);\
232 \
233 }
234
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);\
246 save_TMP();\
247 }
248
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
257
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: {\
266 if(specInputFrame)\
267 zoom(MOVE_X2);\
268 else\
269 noframe_error();\
270 }
271 *CutxItem.fontList: BoldTextFont
272 *CutxItem.foreground: MenuForeground
273
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: {\
282 if(specInputFrame)\
283 zoom(MOVE_Y2);\
284 else\
285 noframe_error();\
286 }
287 *CutyItem.fontList: BoldTextFont
288 *CutyItem.foreground: MenuForeground
289
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: {\
298 if(specInputFrame)\
299 {\
300 specXcen = specXcenw2;\
301 specYcen = specYcenw2;\
302 specDx = specDxw2;\
303 specDy = specDyw2;\
304 spec(specX,specY,specNpix[0],specXcen-specDx,specXcen+specDx,\
305 specYcen-specDy,specYcen+specDy,PLOTMODE);\
306 if(OverPlotMode)\
307 plot_over();\
308 }\
309 else\
310 noframe_error();\
311 }
312 *UnzoomItem.fontList: BoldTextFont
313 *UnzoomItem.foreground: MenuForeground
314
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: {\
323 if(specInputFrame)\
324 {\
325 spec(specX,specY,specNpix[0],specXcen-specDx,specXcen+specDx,\
326 specYcen-specDy,specYcen+specDy,PLOTMODE);\
327 if(OverPlotMode)\
328 plot_over();\
329 }\
330 else\
331 noframe_error();\
332 }
333 *RedrawItem.fontList: BoldTextFont
334 *RedrawItem.foreground: MenuForeground
335
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: {\
344 if(specInputFrame)\
345 {\
346 if(XmToggleButtonGetState(UxGetWidget(UxFindSwidget("NormalToggle"))))\
347 print_plot(NORMALPRINT,PrinterName);\
348 else\
349 print_plot(PORTRAITPRINT,PrinterName);\
350 }\
351 else\
352 noframe_error();\
353 }
354 *PrintPane.fontList: BoldTextFont
355 *PrintPane.foreground: MenuForeground
356
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
365
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: {\
374 if(specInputFrame)\
375 {\
376 gaussNumOfFitData=0;\
377 fitPairNum = 0;\
378 add_fit(6);\
379 if(fitMode == POLYFITMODE)\
380 plot_fit(specXaux,specYaux,gaussNumOfFitData-1,fitDegree+1,6);\
381 else\
382 plot_spline(gaussNumOfFitData,6);\
383 }\
384 else\
385 noframe_error();\
386 }
387 *BeginItem.fontList: BoldTextFont
388 *BeginItem.foreground: MenuForeground
389
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: {\
398 if(specInputFrame)\
399 {\
400 add_fit(6);\
401 if(fitMode == POLYFITMODE) \
402 plot_fit(specXaux,specYaux,gaussNumOfFitData-1,fitDegree+1,6);\
403 else\
404 plot_spline(gaussNumOfFitData,6);\
405 }\
406 else\
407 noframe_error();\
408 }
409 *AddItem.fontList: BoldTextFont
410 *AddItem.foreground: MenuForeground
411
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: {\
420 if(specInputFrame)\
421 {\
422 if(fitAddFit)\
423 {\
424 if(fitMode == POLYFITMODE)\
425 plot_fit(specXaux,specYaux,gaussNumOfFitData-1,fitDegree+1,6);\
426 else\
427 plot_spline(gaussNumOfFitData,6);\
428 }\
429 }\
430 else\
431 noframe_error();\
432 }
433 *FitItem.fontList: BoldTextFont
434 *FitItem.foreground: MenuForeground
435
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: {\
446 if(specInputFrame)\
447 {\
448 if(fitAddFit)\
449 {\
450 auto_fit(0);\
451 plot_fit(specXaux,specYaux,gaussNumOfFitData-1,fitDegree+1,6);\
452 }\
453 }\
454 else\
455 noframe_error();\
456 }
457
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
466
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];\
476 int i;\
477 if(specInputFrame)\
478 {\
479 mean_filter(specY,specNpix[0],filterWindWidth,y2);\
480 for(i=0;i<specNpix[0];i++)\
481 specY[i]=y2[i]; \
482 median_filter(specY,specNpix[0],filterWindWidth,y2);\
483 load_points();\
484 draw_zoom();\
485 spec(specX,specY,specNpix[0],specXcen-specDx,specXcen+specDx,\
486 specYcen-specDy,specYcen+specDy,PLOTMODE);\
487 if(OverPlotMode)\
488 plot_over();\
489 XtSetSensitive(UxGetWidget(UxFindSwidget("UndoItem")),1);\
490 }\
491 else\
492 noframe_error();\
493 }
494 *SmoothItem.fontList: BoldTextFont
495 *SmoothItem.foreground: MenuForeground
496
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];\
506 int i;\
507 if(specInputFrame)\
508 {\
509 median_filter(specY,specNpix[0],filterWindWidth,y2);\
510 for(i=0;i<specNpix[0];i++)\
511 specY[i]=y2[i]; \
512 median_filter(specY,specNpix[0],filterWindWidth,y2);\
513 load_points();\
514 draw_zoom();\
515 spec(specX,specY,specNpix[0],specXcen-specDx,specXcen+specDx,\
516 specYcen-specDy,specYcen+specDy,PLOTMODE);\
517 if(OverPlotMode)\
518 plot_over();\
519 XtSetSensitive(UxGetWidget(UxFindSwidget("UndoItem")),1);\
520 }\
521 else\
522 noframe_error();\
523 }
524 *MedianItem.fontList: BoldTextFont
525 *MedianItem.foreground: MenuForeground
526
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: {\
534 if(specInputFrame)\
535 {\
536 read_image(specLastName);\
537 XtSetSensitive(UxGetWidget(UxFindSwidget("UndoItem")),0);\
538 }\
539 else\
540 noframe_error();\
541 }
542 *UndoItem.background: MenuBackground
543 *UndoItem.fontList: BoldTextFont
544 *UndoItem.foreground: MenuForeground
545
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
554
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;\
564 char out[20];\
565 if(specInputFrame)\
566 {\
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); \
574 }\
575 else\
576 noframe_error();\
577 }
578 *AxisItem.fontList: BoldTextFont
579 *AxisItem.foreground: MenuForeground
580
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: {\
589 if(specInputFrame)\
590 UxPopupInterface(UxFindSwidget("LabelCursor"),no_grab);\
591 else\
592 noframe_error();\
593 }
594 *CursorItem.fontList: BoldTextFont
595 *CursorItem.foreground: MenuForeground
596
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;\
607 if(specInputFrame)\
608 {\
609 UxPopupInterface(ListPopup,no_grab);\
610 SetFileList( UxGetWidget(scrolledList1), 1,"*.prg" );\
611 caseList = CASEPRG;\
612 }\
613 else\
614 noframe_error();\
615 }
616 *LoadItem.fontList: BoldTextFont
617 *LoadItem.foreground: MenuForeground
618
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: {\
627 if(specInputFrame)\
628 {\
629 clearLabels();\
630 system("rm -f TMPalice.prg");\
631 spec(specX,specY,specNpix[0],specXcen-specDx,specXcen+specDx,\
632 specYcen-specDy,specYcen+specDy,PLOTMODE);\
633 if(OverPlotMode)\
634 plot_over();\
635 }\
636 else\
637 noframe_error();\
638 }
639 *ClearItem.fontList: BoldTextFont
640 *ClearItem.foreground: MenuForeground
641
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
650
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: {\
659 float x1,y1;\
660 int key;\
661 char output[80];\
662 key = 1;\
663 if(specInputFrame)\
664 {\
665 SCTPUT("\n");\
666 SCTPUT("\t X-axis\t\t Y-axis");\
667 SCTPUT("\t---------------------------");\
668 while(key == 1)\
669 {\
670 vloc(&x1,&y1,&key);\
671 if(key == 1)\
672 {\
673 sprintf(output,"\t%f\t%f",x1,y1);\
674 SCTPUT(output);\
675 }\
676 }\
677 }\
678 else\
679 noframe_error();\
680 }
681 *GetcursorItem.fontList: BoldTextFont
682 *GetcursorItem.foreground: MenuForeground
683
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);\
693 }
694 *SavetmpItem.fontList: BoldTextFont
695 *SavetmpItem.foreground: MenuForeground
696
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);\
705 }
706 *PrinterItem.background: MenuBackground
707 *PrinterItem.fontList: BoldTextFont
708 *PrinterItem.foreground: MenuForeground
709
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"
718
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
728
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
738
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
748
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
757
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);\
772 \
773
774 *PolynomialItem.height: 20
775
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
791
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
800
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
812
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
823
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
831
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"))))\
844 {\
845 AppendDialogText("del/gra 0");\
846 AppendDialogText("cre/gra 0 1000,400,40,500");\
847 AppendDialogText("SET/GCURSOR ? C_HAIR");\
848 }\
849 }
850
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"))))\
862 {\
863 AppendDialogText("del/gra 0");\
864 AppendDialogText("cre/gra 0 500,800,10,80");\
865 AppendDialogText("SET/GCURSOR ? C_HAIR");\
866 }\
867 }
868
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
876
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"));\
885 }
886 *Context.background: MenuBackground
887 *Context.fontList: BoldTextFont
888 *Context.foreground: MenuForeground
889
890 *OnHelp.class: pushButton
891 *OnHelp.parent: HelpPane
892 *OnHelp.static: true
893 *OnHelp.name: OnHelp
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"));\
902 }
903
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
912
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");\
922 exit(0); \
923 }
924 *QuitItem.fontList: BoldTextFont
925 *QuitItem.foreground: MenuForeground
926
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"
938
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"
950
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"
962
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"
974
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"
986
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"
998
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"
1010
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
1021
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"
1033
1034 *AliceForm1.class: form
1035 *AliceForm1.parent: AliceWindow
1036 *AliceForm1.static: true
1037 *AliceForm1.name: AliceForm1
1038 *AliceForm1.background: WindowBackground
1039
1040 *Line.class: label
1041 *Line.parent: AliceForm1
1042 *Line.static: false
1043 *Line.name: Line
1044 *Line.x: 13
1045 *Line.y: 35
1046 *Line.width: 40
1047 *Line.height: 30
1048 *Line.background: LabelBackground
1049 *Line.fontList: TextFont
1050 *Line.foreground: TextForeground
1051 *Line.labelString: "Line :"
1052
1053 *CurrLine.class: text
1054 *CurrLine.parent: AliceForm1
1055 *CurrLine.static: true
1056 *CurrLine.name: CurrLine
1057 *CurrLine.x: 55
1058 *CurrLine.y: 35
1059 *CurrLine.width: 52
1060 *CurrLine.height: 36
1061 *CurrLine.background: TextBackground
1062 *CurrLine.borderColor: "Gray100"
1063 *CurrLine.losingFocusCallback: {\
1064 int aux_specLineNum;\
1065 char out[6];\
1066 if(specInputFrame )\
1067 {\
1068 if( specModLineNum)\
1069 { specModLineNum = FALSE;\
1070 sscanf(UxGetText(CurrLine),"%d",&aux_specLineNum);\
1071 if(aux_specLineNum != specLineNum)\
1072 {\
1073 if(aux_specLineNum > 0 & aux_specLineNum + specLineStep -1 <= specDim)\
1074 {\
1075 specLineNum = aux_specLineNum;\
1076 read_image(specImageName);\
1077 }\
1078 else \
1079 {sprintf(out,"%d",specLineNum);\
1080 XmTextSetString(UxGetWidget(UxFindSwidget("CurrLine")),out);\
1081 out_error("Invalid Line Number");\
1082 }\
1083 }\
1084 } \
1085 }\
1086 else if(specModLineNum)\
1087 noframe_error();\
1088 UxPutText(UxFindSwidget("help_text_top")," ");\
1089 }
1090 *CurrLine.modifyVerifyCallback: {\
1091 if(specInputFrame)\
1092 specModLineNum = TRUE;\
1093 \
1094 }
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);\
1101 }
1102 *CurrLine.fontList: TextFont
1103 *CurrLine.translations: TextTab
1104
1105 *Linestep.class: text
1106 *Linestep.parent: AliceForm1
1107 *Linestep.static: true
1108 *Linestep.name: Linestep
1109 *Linestep.x: 109
1110 *Linestep.y: 35
1111 *Linestep.width: 34
1112 *Linestep.height: 36
1113 *Linestep.background: TextBackground
1114 *Linestep.borderColor: "Gray100"
1115 *Linestep.losingFocusCallback: {\
1116 extern int specModLineStep;\
1117 int aux;\
1118 char out[20];\
1119 if(specInputFrame & specModLineStep)\
1120 {\
1121 if( specModLineStep)\
1122 { specModLineStep = FALSE;\
1123 sscanf(UxGetText(Linestep),"%d",&aux);\
1124 if( aux <= specDim & aux >0)\
1125 {\
1126 specLineStep = aux;\
1127 read_image(specImageName);\
1128 }\
1129 else\
1130 {\
1131 sprintf(out,"%d",specLineStep);\
1132 XmTextSetString(UxGetWidget(UxFindSwidget("Linestep")),out);\
1133 out_error("Invalid Line Step");\
1134 }\
1135 }\
1136 }\
1137 else if(specModLineStep)\
1138 noframe_error();\
1139 UxPutText(UxFindSwidget("help_text_top"),"");\
1140 }
1141 *Linestep.modifyVerifyCallback: {\
1142 extern int specModLineStep;\
1143 if(specInputFrame)\
1144 specModLineStep = TRUE;\
1145 }
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);\
1152 }
1153 *Linestep.fontList: TextFont
1154 *Linestep.translations: TextTab
1155
1156 *arrowButton1.class: arrowButton
1157 *arrowButton1.parent: AliceForm1
1158 *arrowButton1.static: true
1159 *arrowButton1.name: arrowButton1
1160 *arrowButton1.x: 141
1161 *arrowButton1.y: 33
1162 *arrowButton1.width: 30
1163 *arrowButton1.height: 20
1164 *arrowButton1.background: TextBackground
1165 *arrowButton1.foreground: MenuBackground
1166 *arrowButton1.activateCallback: {\
1167 char line[20];\
1168 if(specInputFrame)\
1169 {\
1170 if(specLineNum + specLineStep <= specDim)\
1171 specLineNum+=specLineStep;\
1172 else \
1173 specLineNum = 1;\
1174 sprintf(line,"%d",specLineNum);\
1175 UxPutText(CurrLine,line);\
1176 read_image(specImageName);\
1177 specModLineNum = FALSE;\
1178 specModLineStep = FALSE;\
1179 }\
1180 else\
1181 noframe_error();\
1182 }
1183 *arrowButton1.highlightOnEnter: "true"
1184 *arrowButton1.translations: HELPTopTab
1185 *arrowButton1.highlightColor: "Black"
1186
1187 *arrowButton2.class: arrowButton
1188 *arrowButton2.parent: AliceForm1
1189 *arrowButton2.static: true
1190 *arrowButton2.name: arrowButton2
1191 *arrowButton2.x: 141
1192 *arrowButton2.y: 51
1193 *arrowButton2.width: 30
1194 *arrowButton2.height: 20
1195 *arrowButton2.background: TextBackground
1196 *arrowButton2.foreground: MenuBackground
1197 *arrowButton2.arrowDirection: "arrow_down"
1198 *arrowButton2.activateCallback: {\
1199 char line[20];\
1200 if(specInputFrame)\
1201 {\
1202 if(specLineNum - specLineStep > 0)\
1203 specLineNum-=specLineStep;\
1204 else\
1205 specLineNum = specDim - specLineStep +1;\
1206 sprintf(line,"%d",specLineNum);\
1207 UxPutText(CurrLine,line);\
1208 read_image(specImageName);\
1209 specModLineNum = FALSE;\
1210 specModLineStep = FALSE;\
1211 }\
1212 else\
1213 noframe_error();\
1214 }
1215 *arrowButton2.highlightOnEnter: "true"
1216 *arrowButton2.translations: HELPTopTab
1217 *arrowButton2.highlightColor: "Black"
1218
1219 *Degree.class: label
1220 *Degree.parent: AliceForm1
1221 *Degree.static: false
1222 *Degree.name: Degree
1223 *Degree.x: 343
1224 *Degree.y: 35
1225 *Degree.width: 87
1226 *Degree.height: 30
1227 *Degree.background: LabelBackground
1228 *Degree.fontList: TextFont
1229 *Degree.borderColor: "Gray100"
1230 *Degree.labelString: "Fit Degree :"
1231 *Degree.foreground: TextForeground
1232
1233 *degree_text.class: text
1234 *degree_text.parent: AliceForm1
1235 *degree_text.static: true
1236 *degree_text.name: degree_text
1237 *degree_text.x: 431
1238 *degree_text.y: 33
1239 *degree_text.width: 36
1240 *degree_text.height: 36
1241 *degree_text.background: TextBackground
1242 *degree_text.borderColor: "Gray100"
1243 *degree_text.losingFocusCallback: {\
1244 int aux_fitDegree;\
1245 char out[3];\
1246 if( fitModFitDeg)\
1247 { fitModFitDeg = FALSE;\
1248 sscanf(UxGetText(degree_text),"%d",&aux_fitDegree);\
1249 if(aux_fitDegree >0 && aux_fitDegree < 16)\
1250 fitDegree = aux_fitDegree;\
1251 else\
1252 {\
1253 sprintf(out,"%d",fitDegree);\
1254 XmTextSetString(UxGetWidget(UxFindSwidget("degree_text")),out);\
1255 }\
1256 }\
1257 UxPutText(UxFindSwidget("help_text_top"),"");\
1258 }
1259 *degree_text.modifyVerifyCallback: {\
1260 fitModFitDeg = TRUE;\
1261 }
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);\
1268 }
1269 *degree_text.fontList: TextFont
1270 *degree_text.translations: TextTab
1271
1272 *arrowButton3.class: arrowButton
1273 *arrowButton3.parent: AliceForm1
1274 *arrowButton3.static: true
1275 *arrowButton3.name: arrowButton3
1276 *arrowButton3.x: 464
1277 *arrowButton3.y: 32
1278 *arrowButton3.width: 30
1279 *arrowButton3.height: 20
1280 *arrowButton3.background: TextBackground
1281 *arrowButton3.foreground: MenuBackground
1282 *arrowButton3.activateCallback: {\
1283 char deg[20];\
1284 if(fitDegree < 15)\
1285 fitDegree++;\
1286 else \
1287 fitDegree = 1;\
1288 sprintf(deg,"%d",fitDegree);\
1289 UxPutText(degree_text,deg);\
1290 specModLineNum = FALSE;\
1291 specModLineStep = FALSE;\
1292 }
1293 *arrowButton3.highlightOnEnter: "true"
1294 *arrowButton3.translations: HELPTopTab
1295 *arrowButton3.highlightColor: "Black"
1296
1297 *arrowButton4.class: arrowButton
1298 *arrowButton4.parent: AliceForm1
1299 *arrowButton4.static: true
1300 *arrowButton4.name: arrowButton4
1301 *arrowButton4.x: 464
1302 *arrowButton4.y: 50
1303 *arrowButton4.width: 30
1304 *arrowButton4.height: 20
1305 *arrowButton4.background: TextBackground
1306 *arrowButton4.arrowDirection: "arrow_down"
1307 *arrowButton4.foreground: MenuBackground
1308 *arrowButton4.activateCallback: {\
1309 char deg[20];\
1310 if(fitDegree > 1)\
1311 fitDegree--;\
1312 else \
1313 fitDegree = 15;\
1314 sprintf(deg,"%d",fitDegree);\
1315 UxPutText(degree_text,deg);\
1316 }
1317 *arrowButton4.highlightOnEnter: "true"
1318 *arrowButton4.translations: HELPTopTab
1319 *arrowButton4.highlightColor: "Black"
1320
1321 *AliceForm2.class: form
1322 *AliceForm2.parent: AliceForm1
1323 *AliceForm2.static: true
1324 *AliceForm2.name: AliceForm2
1325 *AliceForm2.resizePolicy: "resize_none"
1326 *AliceForm2.x: -1
1327 *AliceForm2.y: 389
1328 *AliceForm2.width: 565
1329 *AliceForm2.height: 44
1330 *AliceForm2.background: ButtonBackground
1331
1332 *GaussButton.class: pushButton
1333 *GaussButton.parent: AliceForm2
1334 *GaussButton.static: true
1335 *GaussButton.name: GaussButton
1336 *GaussButton.x: 32
1337 *GaussButton.y: 6
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;\
1345 if(specInputFrame)\
1346 UxPopupInterface(UxFindSwidget("GaussShell"),no_grab);\
1347 else\
1348 noframe_error();\
1349 }
1350 *GaussButton.background: ButtonBackground
1351 *GaussButton.helpCallback: {\
1352 UxPutText(UxFindSwidget("help_text_top"),"Help Button");\
1353 }
1354 *GaussButton.highlightOnEnter: "true"
1355 *GaussButton.translations: Help
1356 *GaussButton.highlightColor: "Black"
1357
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: {\
1371 if(specInputFrame)\
1372 integrate();\
1373 else\
1374 noframe_error();\
1375 }
1376 *IntegrateButton.highlightOnEnter: "true"
1377 *IntegrateButton.translations: Help
1378
1379 *RebinButton.class: pushButton
1380 *RebinButton.parent: AliceForm2
1381 *RebinButton.static: true
1382 *RebinButton.name: RebinButton
1383 *RebinButton.x: 152
1384 *RebinButton.y: 6
1385 *RebinButton.width: 90
1386 *RebinButton.height: 30
1387 *RebinButton.fontList: BoldTextFont
1388 *RebinButton.foreground: ButtonForeground
1389 *RebinButton.labelString: "Rebin ..."
1390 *RebinButton.activateCallback: {\
1391 if(specInputFrame)\
1392 UxPopupInterface(UxFindSwidget("RebinShell"),no_grab);\
1393 else\
1394 noframe_error();\
1395 }
1396 *RebinButton.background: ButtonBackground
1397 *RebinButton.helpCallback: {\
1398 UxPutText(UxFindSwidget("help_text_top"),"Help Button");\
1399 }
1400 *RebinButton.highlightOnEnter: "true"
1401 *RebinButton.translations: Help
1402 *RebinButton.highlightColor: "Black"
1403
1404 *RebinButton1.class: pushButton
1405 *RebinButton1.parent: AliceForm2
1406 *RebinButton1.static: true
1407 *RebinButton1.name: RebinButton1
1408 *RebinButton1.x: 263
1409 *RebinButton1.y: 6
1410 *RebinButton1.width: 90
1411 *RebinButton1.height: 30
1412 *RebinButton1.fontList: BoldTextFont
1413 *RebinButton1.foreground: ButtonForeground
1414 *RebinButton1.labelString: "Overplot ..."
1415 *RebinButton1.activateCallback: {\
1416 if(specInputFrame)\
1417 UxPopupInterface(UxFindSwidget("OverPlotShell"),no_grab);\
1418 else\
1419 noframe_error();\
1420 }
1421 *RebinButton1.background: ButtonBackground
1422 *RebinButton1.helpCallback: {\
1423 UxPutText(UxFindSwidget("help_text_top"),"Help Button");\
1424 }
1425 *RebinButton1.highlightOnEnter: "true"
1426 *RebinButton1.translations: Help
1427 *RebinButton1.highlightColor: "Black"
1428
1429 *separator1.class: separator
1430 *separator1.parent: AliceForm1
1431 *separator1.static: true
1432 *separator1.name: separator1
1433 *separator1.x: 1
1434 *separator1.y: 84
1435 *separator1.width: 554
1436 *separator1.height: 5
1437 *separator1.background: LabelBackground
1438 *separator1.foreground: TextForeground
1439
1440 *width_text.class: text
1441 *width_text.parent: AliceForm1
1442 *width_text.static: true
1443 *width_text.name: width_text
1444 *width_text.x: 253
1445 *width_text.y: 34
1446 *width_text.width: 52
1447 *width_text.height: 36
1448 *width_text.background: TextBackground
1449 *width_text.borderColor: "Gray100"
1450 *width_text.losingFocusCallback: {\
1451 int aux_width;\
1452 char out[8];\
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;\
1458 else\
1459 {\
1460 sprintf(out,"%d",filterWindWidth);\
1461 XmTextSetString(UxGetWidget(UxFindSwidget("width_text")),out);\
1462 out_error("Invalid Window Width");\
1463 }\
1464 }\
1465 UxPutText(UxFindSwidget("help_text_top"),"");\
1466 }
1467 *width_text.modifyVerifyCallback: {\
1468 filterModWindWidth = TRUE;\
1469 }
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);\
1476 }
1477 *width_text.fontList: TextFont
1478 *width_text.translations: TextTab
1479
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: {\
1491 char out[20];\
1492 if(filterWindWidth < specNpix[0]/2)\
1493 filterWindWidth++;\
1494 else\
1495 out_error("Invalid Window Width");\
1496 sprintf(out,"%d",filterWindWidth);\
1497 UxPutText(width_text,out);\
1498 specModLineNum = FALSE;\
1499 specModLineStep = FALSE;\
1500 }
1501 *arrowButton11.highlightOnEnter: "true"
1502 *arrowButton11.translations: HELPTopTab
1503 *arrowButton11.highlightColor: "Black"
1504
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: {\
1517 char out[20];\
1518 if(filterWindWidth > 2)\
1519 filterWindWidth--;\
1520 else\
1521 out_error("Invalid Window Width");\
1522 sprintf(out,"%d",filterWindWidth);\
1523 UxPutText(width_text,out);\
1524 }
1525 *arrowButton12.highlightOnEnter: "true"
1526 *arrowButton12.translations: HELPTopTab
1527 *arrowButton12.highlightColor: "Black"
1528
1529 *Line1.class: label
1530 *Line1.parent: AliceForm1
1531 *Line1.static: false
1532 *Line1.name: Line1
1533 *Line1.x: 177
1534 *Line1.y: 34
1535 *Line1.width: 72
1536 *Line1.height: 30
1537 *Line1.background: LabelBackground
1538 *Line1.fontList: TextFont
1539 *Line1.labelString: "Window :"
1540 *Line1.foreground: TextForeground
1541
1542 *Line2.class: label
1543 *Line2.parent: AliceForm1
1544 *Line2.static: false
1545 *Line2.name: Line2
1546 *Line2.x: 71
1547 *Line2.y: 5
1548 *Line2.width: 64
1549 *Line2.height: 18
1550 *Line2.background: LabelBackground
1551 *Line2.fontList: TextFont
1552 *Line2.labelString: "Image"
1553 *Line2.foreground: TextForeground
1554
1555 *Line3.class: label
1556 *Line3.parent: AliceForm1
1557 *Line3.static: false
1558 *Line3.name: Line3
1559 *Line3.x: 221
1560 *Line3.y: 4
1561 *Line3.width: 64
1562 *Line3.height: 18
1563 *Line3.background: LabelBackground
1564 *Line3.fontList: TextFont
1565 *Line3.labelString: "Filter"
1566 *Line3.foreground: TextForeground
1567
1568 *Line4.class: label
1569 *Line4.parent: AliceForm1
1570 *Line4.static: false
1571 *Line4.name: Line4
1572 *Line4.x: 398
1573 *Line4.y: 4
1574 *Line4.width: 86
1575 *Line4.height: 18
1576 *Line4.background: LabelBackground
1577 *Line4.fontList: TextFont
1578 *Line4.labelString: "Continuum"
1579 *Line4.foreground: TextForeground
1580
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
1585 *help_text_top.x: 4
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
1595
1596 *separator3.class: separator
1597 *separator3.parent: AliceForm1
1598 *separator3.static: true
1599 *separator3.name: separator3
1600 *separator3.x: -2
1601 *separator3.y: 382
1602 *separator3.width: 565
1603 *separator3.height: 8
1604 *separator3.background: ButtonBackground
1605 *separator3.foreground: TextForeground
1606
1607 *separator8.class: separator
1608 *separator8.parent: AliceForm1
1609 *separator8.static: true
1610 *separator8.name: separator8
1611 *separator8.x: 13
1612 *separator8.y: 25
1613 *separator8.width: 158
1614 *separator8.height: 10
1615 *separator8.background: LabelBackground
1616 *separator8.foreground: TextForeground
1617
1618 *separator9.class: separator
1619 *separator9.parent: AliceForm1
1620 *separator9.static: true
1621 *separator9.name: separator9
1622 *separator9.x: 185
1623 *separator9.y: 24
1624 *separator9.width: 146
1625 *separator9.height: 10
1626 *separator9.background: LabelBackground
1627 *separator9.foreground: TextForeground
1628
1629 *separator10.class: separator
1630 *separator10.parent: AliceForm1
1631 *separator10.static: true
1632 *separator10.name: separator10
1633 *separator10.x: 348
1634 *separator10.y: 24
1635 *separator10.width: 202
1636 *separator10.height: 10
1637 *separator10.background: LabelBackground
1638 *separator10.foreground: TextForeground
1639
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\
1656 Window window;\
1657 Display *display;\
1658 XSetWindowAttributes attributes;\
1659 \
1660 display = XtDisplay(UxGetWidget(UxFindSwidget("GaussDrawingArea")));\
1661 window = XtWindow(UxGetWidget(UxFindSwidget("GaussDrawingArea")));\
1662 \
1663 attributes.cursor = XCreateFontCursor(display,Cross_cursor);\
1664 XChangeWindowAttributes(display,window,CWCursor,&attributes);\
1665 }
1666 *GaussDrawingArea.exposeCallback: {\
1667 Window window;\
1668 Display *display;\
1669 display = XtDisplay(UxGetWidget(UxFindSwidget("GaussDrawingArea")));\
1670 window = XtWindow(UxGetWidget(UxFindSwidget("GaussDrawingArea")));\
1671 XClearWindow(display,window);\
1672 draw_zoom();\
1673 }
1674
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: {\
1686 if(specInputFrame)\
1687 zoom(STEPDN_X);\
1688 else\
1689 noframe_error();\
1690 }
1691 *arrowButton8.foreground: TextForeground
1692 *arrowButton8.highlightOnEnter: "true"
1693 *arrowButton8.highlightColor: "Black"
1694 *arrowButton8.translations: HELPTopTab
1695
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) \
1708 zoom(STEPDN_Y);\
1709 else\
1710 noframe_error();\
1711 }
1712 *arrowButton6.foreground: TextForeground
1713 *arrowButton6.highlightOnEnter: "true"
1714 *arrowButton6.highlightColor: "Black"
1715 *arrowButton6.translations: HELPTopTab
1716
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: {\
1728 if(specInputFrame)\
1729 zoom(STEPUP_X);\
1730 else\
1731 noframe_error();\
1732 \
1733 }
1734 *arrowButton5.foreground: TextForeground
1735 *arrowButton5.highlightOnEnter: "true"
1736 *arrowButton5.highlightColor: "Black"
1737 *arrowButton5.translations: HELPTopTab
1738
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: {\
1749 if(specInputFrame)\
1750 zoom(STEPUP_Y);\
1751 else\
1752 noframe_error();\
1753 }
1754 *arrowButton7.foreground: TextForeground
1755 *arrowButton7.highlightOnEnter: "true"
1756 *arrowButton7.highlightColor: "Black"
1757 *arrowButton7.translations: HELPTopTab
1758
1759 *Step.class: label
1760 *Step.parent: AliceForm1
1761 *Step.static: false
1762 *Step.name: Step
1763 *Step.x: 437
1764 *Step.y: 293
1765 *Step.width: 50
1766 *Step.height: 30
1767 *Step.fontList: TextFont
1768 *Step.foreground: TextForeground
1769 *Step.background: LabelBackground
1770 *Step.labelString: "Step :"
1771
1772 *step_text.class: text
1773 *step_text.parent: AliceForm1
1774 *step_text.static: false
1775 *step_text.name: step_text
1776 *step_text.x: 487
1777 *step_text.y: 289
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);\
1789 }\
1790 UxPutText(UxFindSwidget("help_text_top"),"");\
1791 }
1792 *step_text.modifyVerifyCallback: {\
1793 filterModStepWin = TRUE;\
1794 }
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);\
1801 }
1802
1803 *Cut_x.class: pushButton
1804 *Cut_x.parent: AliceForm1
1805 *Cut_x.static: false
1806 *Cut_x.name: Cut_x
1807 *Cut_x.x: 443
1808 *Cut_x.y: 94
1809 *Cut_x.width: 90
1810 *Cut_x.height: 30
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: {\
1816 if(specInputFrame)\
1817 zoom(MOVE_X1); \
1818 else\
1819 noframe_error();\
1820 \
1821 }
1822 *Cut_x.highlightOnEnter: "true"
1823 *Cut_x.highlightColor: "Black"
1824 *Cut_x.translations: Help
1825
1826 *Cut_y.class: pushButton
1827 *Cut_y.parent: AliceForm1
1828 *Cut_y.static: false
1829 *Cut_y.name: Cut_y
1830 *Cut_y.x: 443
1831 *Cut_y.y: 124
1832 *Cut_y.width: 90
1833 *Cut_y.height: 30
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: {\
1839 if(specInputFrame)\
1840 zoom(MOVE_Y1);\
1841 else\
1842 noframe_error();\
1843 }
1844 *Cut_y.highlightOnEnter: "true"
1845 *Cut_y.highlightColor: "Black"
1846 *Cut_y.translations: Help
1847
1848 *Move.class: pushButton
1849 *Move.parent: AliceForm1
1850 *Move.static: false
1851 *Move.name: Move
1852 *Move.x: 443
1853 *Move.y: 155
1854 *Move.width: 90
1855 *Move.height: 30
1856 *Move.background: ButtonBackground
1857 *Move.foreground: ButtonForeground
1858 *Move.fontList: BoldTextFont
1859 *Move.activateCallback: {\
1860 if(specInputFrame)\
1861 zoom(MOVE_WIN);\
1862 else\
1863 noframe_error();\
1864 }
1865 *Move.highlightOnEnter: "true"
1866 *Move.highlightColor: "Black"
1867 *Move.translations: Help
1868
1869 *separator11.class: separator
1870 *separator11.parent: AliceForm1
1871 *separator11.static: true
1872 *separator11.name: separator11
1873 *separator11.x: 8
1874 *separator11.y: 316
1875 *separator11.width: 416
1876 *separator11.height: 9
1877 *separator11.background: LabelBackground
1878 *separator11.foreground: TextForeground
1879
1880 *separator12.class: separator
1881 *separator12.parent: AliceForm1
1882 *separator12.static: true
1883 *separator12.name: separator12
1884 *separator12.x: 421
1885 *separator12.y: 102
1886 *separator12.width: 10
1887 *separator12.height: 216
1888 *separator12.orientation: "vertical"
1889 *separator12.background: LabelBackground
1890 *separator12.foreground: TextForeground
1891
1892 *separator13.class: separator
1893 *separator13.parent: AliceForm1
1894 *separator13.static: true
1895 *separator13.name: separator13
1896 *separator13.x: 2
1897 *separator13.y: 104
1898 *separator13.width: 10
1899 *separator13.height: 215
1900 *separator13.orientation: "vertical"
1901 *separator13.background: LabelBackground
1902 *separator13.foreground: TextForeground
1903
1904 *separator14.class: separator
1905 *separator14.parent: AliceForm1
1906 *separator14.static: true
1907 *separator14.name: separator14
1908 *separator14.x: 8
1909 *separator14.y: 99
1910 *separator14.width: 415
1911 *separator14.height: 9
1912 *separator14.background: LabelBackground
1913 *separator14.foreground: TextForeground
1914
1915 *Unzoom.class: pushButton
1916 *Unzoom.parent: AliceForm1
1917 *Unzoom.static: false
1918 *Unzoom.name: Unzoom
1919 *Unzoom.x: 443
1920 *Unzoom.y: 186
1921 *Unzoom.width: 90
1922 *Unzoom.height: 30
1923 *Unzoom.background: ButtonBackground
1924 *Unzoom.foreground: ButtonForeground
1925 *Unzoom.fontList: BoldTextFont
1926 *Unzoom.activateCallback: {\
1927 if(specInputFrame)\
1928 {\
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++)\
1934 {\
1935 if(specY[i] > specYmax)\
1936 specYmax = specY[i];\
1937 if(specY[i] < specYmin)\
1938 specYmin = specY[i];\
1939 }\
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;\
1946 specDxw2 =specDx;\
1947 specDyw2 =specDy;\
1948 spec(specX,specY,specNpix[0],specXcen-specDx,specXcen+specDx,\
1949 specYcen-specDy,specYcen+specDy,PLOTMODE);\
1950 if(OverPlotMode)\
1951 plot_over();\
1952 draw_zoom();\
1953 }\
1954 else\
1955 noframe_error();\
1956 }
1957 *Unzoom.highlightOnEnter: "true"
1958 *Unzoom.highlightColor: "Black"
1959 *Unzoom.translations: Help
1960
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: ""
1977
1978 *AutoFitLabel.class: label
1979 *AutoFitLabel.parent: AliceForm1
1980 *AutoFitLabel.static: false
1981 *AutoFitLabel.name: AutoFitLabel
1982 *AutoFitLabel.x: 495
1983 *AutoFitLabel.y: 33
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
1990