Debian Codegraph @

gui/XAlice/prj/RebinShell.i

raw
1 ! UIMX ascii 2.0 key: 3544
2
3 *translation.table: ZTab
4 *translation.parent: RebinShell
5 *translation.policy: override
6 *translation.<Key>Delete: delete-previous-character()
7 *translation.<Key>BackSpace: delete-previous-character()
8 *translation.<Key>osfBackSpace: delete-previous-character()
9 *translation. <Key>osfDelete: delete-previous-character()
10
11 *RebinShell.class: topLevelShell
12 *RebinShell.parent: NO_PARENT
13 *RebinShell.static: true
14 *RebinShell.gbldecl: #include <stdio.h>\
15 #include <ExternResources.h>\
16 #include <alice_global.h>\
17
18 *RebinShell.ispecdecl:
19 *RebinShell.funcdecl: swidget create_RebinShell()\
20
21 *RebinShell.funcname: create_RebinShell
22 *RebinShell.funcdef: "swidget", "<create_RebinShell>(%)"
23 *RebinShell.icode:
24 *RebinShell.fcode: return(rtrn);\
25
26 *RebinShell.auxdecl:
27 *RebinShell.name: RebinShell
28 *RebinShell.x: 579
29 *RebinShell.y: 484
30 *RebinShell.width: 306
31 *RebinShell.height: 166
32 *RebinShell.background: WindowBackground
33 *RebinShell.keyboardFocusPolicy: "pointer"
34 *RebinShell.iconName: "Rebin"
35
36 *RebinTopForm.class: form
37 *RebinTopForm.parent: RebinShell
38 *RebinTopForm.static: true
39 *RebinTopForm.name: RebinTopForm
40 *RebinTopForm.resizePolicy: "resize_none"
41 *RebinTopForm.unitType: "pixels"
42 *RebinTopForm.x: -2
43 *RebinTopForm.y: -3
44 *RebinTopForm.width: 306
45 *RebinTopForm.height: 170
46 *RebinTopForm.background: WindowBackground
47
48 *RebinRowColumn.class: rowColumn
49 *RebinRowColumn.parent: RebinTopForm
50 *RebinRowColumn.static: true
51 *RebinRowColumn.name: RebinRowColumn
52 *RebinRowColumn.x: 26
53 *RebinRowColumn.y: 14
54 *RebinRowColumn.width: 130
55 *RebinRowColumn.height: 92
56 *RebinRowColumn.radioBehavior: "true"
57 *RebinRowColumn.background: LabelBackground
58
59 *Rebintb1.class: toggleButton
60 *Rebintb1.parent: RebinRowColumn
61 *Rebintb1.static: true
62 *Rebintb1.name: Rebintb1
63 *Rebintb1.x: 64
64 *Rebintb1.y: 32
65 *Rebintb1.width: 66
66 *Rebintb1.height: 22
67 *Rebintb1.background: LabelBackground
68 *Rebintb1.selectColor: SelectColor
69 *Rebintb1.indicatorOn: "true"
70 *Rebintb1.labelString: " x ` = x / (1+z)"
71 *Rebintb1.armCallback: {\
72 rebinOption= ZOPT;\
73 }
74 *Rebintb1.set: "true"
75 *Rebintb1.createCallback: {\
76 rebinOption = ZOPT;\
77 }
78 *Rebintb1.fontList: TextFont
79 *Rebintb1.foreground: TextForeground
80 *Rebintb1.highlightColor: "Black"
81
82 *Rebintb2.class: toggleButton
83 *Rebintb2.parent: RebinRowColumn
84 *Rebintb2.static: true
85 *Rebintb2.name: Rebintb2
86 *Rebintb2.x: 22
87 *Rebintb2.y: 32
88 *Rebintb2.width: 86
89 *Rebintb2.height: 22
90 *Rebintb2.background: LabelBackground
91 *Rebintb2.selectColor: SelectColor
92 *Rebintb2.indicatorOn: "true"
93 *Rebintb2.labelString: " x ` = log(x)"
94 *Rebintb2.armCallback: {\
95 rebinOption=LOGOPT;\
96 }
97 *Rebintb2.fontList: TextFont
98 *Rebintb2.foreground: TextForeground
99 *Rebintb2.highlightColor: "Black"
100
101 *Rebintb3.class: toggleButton
102 *Rebintb3.parent: RebinRowColumn
103 *Rebintb3.static: true
104 *Rebintb3.name: Rebintb3
105 *Rebintb3.x: 26
106 *Rebintb3.y: 60
107 *Rebintb3.width: 48
108 *Rebintb3.height: 20
109 *Rebintb3.background: LabelBackground
110 *Rebintb3.selectColor: SelectColor
111 *Rebintb3.indicatorOn: "true"
112 *Rebintb3.labelString: " x ` = 1/x"
113 *Rebintb3.armCallback: {\
114 rebinOption = INVOPT;\
115 }
116 *Rebintb3.fontList: TextFont
117 *Rebintb3.foreground: TextForeground
118 *Rebintb3.highlightColor: "Black"
119
120 *ZRebintext.class: text
121 *ZRebintext.parent: RebinTopForm
122 *ZRebintext.static: true
123 *ZRebintext.name: ZRebintext
124 *ZRebintext.x: 198
125 *ZRebintext.y: 12
126 *ZRebintext.width: 96
127 *ZRebintext.height: 32
128 *ZRebintext.background: TextBackground
129 *ZRebintext.fontList: TextFont
130 *ZRebintext.translations: ZTab
131 *ZRebintext.foreground: TextForeground
132 *ZRebintext.highlightColor: "Black"
133 *ZRebintext.topShadowColor: LabelBackground
134 *ZRebintext.marginHeight: 3
135
136 *ZRebinLabel.class: label
137 *ZRebinLabel.parent: RebinTopForm
138 *ZRebinLabel.static: true
139 *ZRebinLabel.name: ZRebinLabel
140 *ZRebinLabel.x: 176
141 *ZRebinLabel.y: 16
142 *ZRebinLabel.width: 24
143 *ZRebinLabel.height: 26
144 *ZRebinLabel.background: LabelBackground
145 *ZRebinLabel.labelString: "z:"
146 *ZRebinLabel.fontList: TextFont
147 *ZRebinLabel.labelType: "string"
148 *ZRebinLabel.foreground: TextForeground
149 *ZRebinLabel.highlightColor: "Black"
150
151 *RebinForm2.class: form
152 *RebinForm2.parent: RebinTopForm
153 *RebinForm2.static: true
154 *RebinForm2.name: RebinForm2
155 *RebinForm2.resizePolicy: "resize_none"
156 *RebinForm2.x: -2
157 *RebinForm2.y: 116
158 *RebinForm2.width: 310
159 *RebinForm2.height: 50
160 *RebinForm2.background: ButtonBackground
161
162 *OkRebin.class: pushButton
163 *OkRebin.parent: RebinForm2
164 *OkRebin.static: false
165 *OkRebin.name: OkRebin
166 *OkRebin.x: 24
167 *OkRebin.y: 10
168 *OkRebin.width: 90
169 *OkRebin.height: 30
170 *OkRebin.background: ButtonBackground
171 *OkRebin.fontList: BoldTextFont
172 *OkRebin.foreground: ButtonForeground
173 *OkRebin.labelString: "Ok"
174 *OkRebin.highlightOnEnter: "true"
175 *OkRebin.activateCallback: {\
176 float z,X[MAXVALUES],Y[MAXVALUES];\
177 int i;\
178 sscanf(UxGetText(UxFindSwidget("ZRebintext")),"%f",&z);\
179 for(i=0;i<specNpix[0] ; i++)\
180 {\
181 X[i] = specX[i];\
182 Y[i] = specY[i]; \
183 }\
184 rebin(rebinOption,X,specX,Y,specY,specNpix[0],z,&specXmin,\
185 &specXmax,&specYmin,&specYmax);\
186 rebinRebin =TRUE;\
187 UxPopdownInterface(UxFindSwidget("RebinShell"));\
188 specYcen = (specYmin+specYmax)/2;\
189 specDy = specYmax - specYcen;\
190 specYcenw2 = specYcen;\
191 specDyw2 = specDy;\
192 specXcen = (specXmin+specXmax)/2;\
193 specDx = specXmax - specXcen;\
194 specDxw2 = specDx;\
195 specXcenw2 = specXcen;\
196 spec(specX,specY,specNpix[0],specXcen-specDx,specXcen+specDx,\
197 specYcen-specDy,specYcen+specDy,PLOTMODE);\
198 load_points();\
199 draw_zoom(); \
200 }
201 *OkRebin.highlightColor: "#000000"
202
203 *CancelRebin.class: pushButton
204 *CancelRebin.parent: RebinForm2
205 *CancelRebin.static: false
206 *CancelRebin.name: CancelRebin
207 *CancelRebin.x: 136
208 *CancelRebin.y: 10
209 *CancelRebin.width: 90
210 *CancelRebin.height: 30
211 *CancelRebin.background: ButtonBackground
212 *CancelRebin.fontList: BoldTextFont
213 *CancelRebin.foreground: CancelForeground
214 *CancelRebin.labelString: "Cancel"
215 *CancelRebin.activateCallback: {\
216 UxPopdownInterface(RebinShell);\
217 }
218 *CancelRebin.highlightOnEnter: "true"
219 *CancelRebin.highlightColor: "#000000"
220
221 *separator4.class: separator
222 *separator4.parent: RebinTopForm
223 *separator4.static: true
224 *separator4.name: separator4
225 *separator4.x: 2
226 *separator4.y: 110
227 *separator4.width: 306
228 *separator4.height: 8
229 *separator4.background: ButtonBackground
230