56
|
1 |
ApplicationModel subclass:#UIPropertyView
|
59
|
2 |
instanceVariableNames:'builderView modified propertyFrame propertyList propertySpecs
|
62
|
3 |
currentView currentSpec propertyAspects layoutAspects layoutType
|
59
|
4 |
specBeingEdited userSelectedProperty currentSpecChannel'
|
56
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
|
7 |
category:'Interface-UIPainter'
|
|
8 |
!
|
|
9 |
|
|
10 |
|
|
11 |
!UIPropertyView class methodsFor:'instance creation'!
|
|
12 |
|
62
|
13 |
in:aTopView builder:aBuilderView
|
56
|
14 |
|application|
|
|
15 |
|
|
16 |
application := self new.
|
62
|
17 |
application in:aTopView builder:aBuilderView.
|
56
|
18 |
^ application
|
|
19 |
! !
|
|
20 |
|
59
|
21 |
!UIPropertyView class methodsFor:'constants'!
|
|
22 |
|
|
23 |
titleOfLayoutMenu
|
|
24 |
^ 'Dimension'
|
|
25 |
! !
|
|
26 |
|
62
|
27 |
!UIPropertyView class methodsFor:'interface specs'!
|
56
|
28 |
|
|
29 |
specificationAlignmentOrigin
|
62
|
30 |
"this window spec was automatically generated by the ST/X UIPainter"
|
|
31 |
|
|
32 |
"do not manually edit this - the painter/builder may not be able to
|
|
33 |
handle the specification if its corrupted."
|
|
34 |
|
56
|
35 |
"
|
62
|
36 |
UIPainter new openOnClass:UIPropertyView andSelector:#specificationAlignmentOrigin
|
|
37 |
UIPropertyView new openInterface:#specificationAlignmentOrigin
|
56
|
38 |
"
|
62
|
39 |
|
56
|
40 |
<resource: #canvas>
|
|
41 |
|
|
42 |
^
|
62
|
43 |
|
56
|
44 |
#(#FullSpec
|
62
|
45 |
#'name:' 'uIPainterView'
|
|
46 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
47 |
#'isOpaque:' true
|
56
|
48 |
#'window:'
|
|
49 |
#(#WindowSpec
|
62
|
50 |
#'name:' 'uIPainterView'
|
56
|
51 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
62
|
52 |
#'isOpaque:' true
|
56
|
53 |
#'label:' 'unnamed'
|
|
54 |
#'bounds:' #(#Rectangle 0 0 248 304)
|
|
55 |
)
|
|
56 |
#'component:'
|
|
57 |
#(#SpecCollection
|
|
58 |
#'collection:'
|
|
59 |
#(
|
|
60 |
#(#LabelSpec
|
62
|
61 |
#'name:' 'label9'
|
|
62 |
#'layout:' #(#LayoutFrame 5 0 7 0 48 0 30 0)
|
|
63 |
#'isOpaque:' true
|
|
64 |
#'label:' 'Layout:'
|
|
65 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
66 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
67 |
#'initiallyInvisible:' false
|
|
68 |
#'level:' 0
|
|
69 |
#'adjust:' #center
|
|
70 |
#'hasCharacterOrientedLabel:' true
|
|
71 |
)
|
|
72 |
#(#PopUpListSpec
|
|
73 |
#'name:' 'popUpList1'
|
|
74 |
#'layout:' #(#LayoutFrame 58 0.0 7 0 -12 1.0 30 0)
|
|
75 |
#'isOpaque:' true
|
|
76 |
#'label:' 'popup'
|
|
77 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
78 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
79 |
#'initiallyInvisible:' false
|
|
80 |
#'model:' #layoutType
|
|
81 |
#'menu:' #layoutTypeList
|
56
|
82 |
)
|
|
83 |
#(#LabelSpec
|
|
84 |
#'name:' 'label2'
|
62
|
85 |
#'layout:' #(#LayoutFrame 5 0 103 0 48 0 121 0)
|
|
86 |
#'isOpaque:' true
|
56
|
87 |
#'label:' 'top'
|
62
|
88 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
89 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
90 |
#'initiallyInvisible:' false
|
|
91 |
#'level:' 0
|
|
92 |
#'adjust:' #center
|
|
93 |
#'hasCharacterOrientedLabel:' true
|
56
|
94 |
)
|
|
95 |
#(#LabelSpec
|
|
96 |
#'name:' 'label3'
|
62
|
97 |
#'layout:' #(#LayoutFrame 58 0 48 0 104 0 65 0)
|
|
98 |
#'isOpaque:' true
|
56
|
99 |
#'label:' 'relative'
|
62
|
100 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
101 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
102 |
#'initiallyInvisible:' false
|
|
103 |
#'level:' 0
|
|
104 |
#'adjust:' #center
|
|
105 |
#'hasCharacterOrientedLabel:' true
|
56
|
106 |
)
|
|
107 |
#(#LabelSpec
|
|
108 |
#'name:' 'label4'
|
62
|
109 |
#'layout:' #(#LayoutFrame 154 0 49 0 190 0 66 0)
|
|
110 |
#'isOpaque:' true
|
56
|
111 |
#'label:' 'offset'
|
62
|
112 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
113 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
114 |
#'initiallyInvisible:' false
|
|
115 |
#'level:' 0
|
|
116 |
#'adjust:' #center
|
|
117 |
#'hasCharacterOrientedLabel:' true
|
56
|
118 |
)
|
|
119 |
#(#LabelSpec
|
|
120 |
#'name:' 'label5'
|
62
|
121 |
#'layout:' #(#LayoutFrame 5 0 167 0 48 0 185 0)
|
|
122 |
#'isOpaque:' true
|
56
|
123 |
#'label:' 'align H'
|
62
|
124 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
125 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
126 |
#'initiallyInvisible:' false
|
|
127 |
#'level:' 0
|
|
128 |
#'adjust:' #center
|
|
129 |
#'hasCharacterOrientedLabel:' true
|
56
|
130 |
)
|
|
131 |
#(#LabelSpec
|
|
132 |
#'name:' 'label6'
|
62
|
133 |
#'layout:' #(#LayoutFrame 5 0 193 0 48 0 211 0)
|
|
134 |
#'isOpaque:' true
|
56
|
135 |
#'label:' 'align V'
|
62
|
136 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
137 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
138 |
#'initiallyInvisible:' false
|
|
139 |
#'level:' 0
|
|
140 |
#'adjust:' #center
|
|
141 |
#'hasCharacterOrientedLabel:' true
|
56
|
142 |
)
|
|
143 |
#(#InputFieldSpec
|
|
144 |
#'name:' 'editField1'
|
62
|
145 |
#'layout:' #(#LayoutFrame 58 0 76 0 115 0 94 0)
|
|
146 |
#'isOpaque:' true
|
|
147 |
#'initiallyDisabled:' false
|
|
148 |
#'initiallyInvisible:' false
|
|
149 |
#'model:' #leftFraction
|
|
150 |
#'isReadOnly:' false
|
|
151 |
#'tabable:' true
|
56
|
152 |
#'type:' #numberOrNil
|
59
|
153 |
#'immediateAccept:' false
|
62
|
154 |
#'acceptOnLeave:' true
|
59
|
155 |
#'acceptOnReturn:' true
|
|
156 |
#'acceptOnTab:' true
|
62
|
157 |
#'acceptOnLostFocus:' true
|
|
158 |
#'hasBorder:' false
|
56
|
159 |
)
|
|
160 |
#(#InputFieldSpec
|
|
161 |
#'name:' 'editField2'
|
62
|
162 |
#'layout:' #(#LayoutFrame 58 0 103 0 115 0 121 0)
|
|
163 |
#'isOpaque:' true
|
|
164 |
#'initiallyDisabled:' false
|
|
165 |
#'initiallyInvisible:' false
|
|
166 |
#'model:' #topFraction
|
|
167 |
#'isReadOnly:' false
|
|
168 |
#'tabable:' true
|
56
|
169 |
#'type:' #numberOrNil
|
59
|
170 |
#'immediateAccept:' false
|
62
|
171 |
#'acceptOnLeave:' true
|
59
|
172 |
#'acceptOnReturn:' true
|
|
173 |
#'acceptOnTab:' true
|
62
|
174 |
#'acceptOnLostFocus:' true
|
|
175 |
#'hasBorder:' false
|
56
|
176 |
)
|
|
177 |
#(#InputFieldSpec
|
|
178 |
#'name:' 'editField5'
|
62
|
179 |
#'layout:' #(#LayoutFrame 58 0 167 0 115 0 185 0)
|
|
180 |
#'isOpaque:' true
|
|
181 |
#'initiallyDisabled:' false
|
|
182 |
#'initiallyInvisible:' false
|
|
183 |
#'model:' #leftAlignmentFraction
|
|
184 |
#'isReadOnly:' false
|
|
185 |
#'tabable:' true
|
56
|
186 |
#'type:' #numberOrNil
|
59
|
187 |
#'immediateAccept:' false
|
62
|
188 |
#'acceptOnLeave:' true
|
59
|
189 |
#'acceptOnReturn:' true
|
|
190 |
#'acceptOnTab:' true
|
62
|
191 |
#'acceptOnLostFocus:' true
|
|
192 |
#'hasBorder:' false
|
56
|
193 |
)
|
|
194 |
#(#InputFieldSpec
|
|
195 |
#'name:' 'editField6'
|
62
|
196 |
#'layout:' #(#LayoutFrame 58 0 193 0 115 0 211 0)
|
|
197 |
#'isOpaque:' true
|
|
198 |
#'initiallyDisabled:' false
|
|
199 |
#'initiallyInvisible:' false
|
|
200 |
#'model:' #topAlignmentFraction
|
|
201 |
#'isReadOnly:' false
|
|
202 |
#'tabable:' true
|
56
|
203 |
#'type:' #numberOrNil
|
59
|
204 |
#'immediateAccept:' false
|
62
|
205 |
#'acceptOnLeave:' true
|
59
|
206 |
#'acceptOnReturn:' true
|
|
207 |
#'acceptOnTab:' true
|
62
|
208 |
#'acceptOnLostFocus:' true
|
|
209 |
#'hasBorder:' false
|
56
|
210 |
)
|
|
211 |
#(#InputFieldSpec
|
|
212 |
#'name:' 'editField3'
|
62
|
213 |
#'layout:' #(#LayoutFrame 154 0 76 0 212 0 94 0)
|
|
214 |
#'isOpaque:' true
|
|
215 |
#'initiallyDisabled:' false
|
|
216 |
#'initiallyInvisible:' false
|
|
217 |
#'model:' #leftOffset
|
|
218 |
#'isReadOnly:' false
|
|
219 |
#'tabable:' true
|
56
|
220 |
#'type:' #numberOrNil
|
59
|
221 |
#'immediateAccept:' false
|
62
|
222 |
#'acceptOnLeave:' true
|
59
|
223 |
#'acceptOnReturn:' true
|
|
224 |
#'acceptOnTab:' true
|
62
|
225 |
#'acceptOnLostFocus:' true
|
|
226 |
#'hasBorder:' false
|
56
|
227 |
)
|
|
228 |
#(#InputFieldSpec
|
|
229 |
#'name:' 'editField4'
|
62
|
230 |
#'layout:' #(#LayoutFrame 154 0 103 0 212 0 121 0)
|
|
231 |
#'isOpaque:' true
|
|
232 |
#'initiallyDisabled:' false
|
|
233 |
#'initiallyInvisible:' false
|
|
234 |
#'model:' #topOffset
|
|
235 |
#'isReadOnly:' false
|
|
236 |
#'tabable:' true
|
56
|
237 |
#'type:' #numberOrNil
|
59
|
238 |
#'immediateAccept:' false
|
62
|
239 |
#'acceptOnLeave:' true
|
59
|
240 |
#'acceptOnReturn:' true
|
|
241 |
#'acceptOnTab:' true
|
62
|
242 |
#'acceptOnLostFocus:' true
|
|
243 |
#'hasBorder:' false
|
56
|
244 |
)
|
|
245 |
#(#ActionButtonSpec
|
|
246 |
#'name:' 'button1'
|
62
|
247 |
#'layout:' #(#LayoutFrame 119 0 76 0 138 0 94 0)
|
|
248 |
#'isOpaque:' true
|
56
|
249 |
#'label:' ''
|
62
|
250 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
251 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
252 |
#'initiallyInvisible:' false
|
|
253 |
#'tabable:' false
|
|
254 |
#'isDefault:' false
|
|
255 |
#'defaultable:' false
|
56
|
256 |
#'model:' #makeRelativeLeft
|
62
|
257 |
#'hasCharacterOrientedLabel:' true
|
|
258 |
#'isDecorated:' false
|
|
259 |
#'initiallyDisabled:' false
|
56
|
260 |
)
|
|
261 |
#(#ActionButtonSpec
|
|
262 |
#'name:' 'button2'
|
62
|
263 |
#'layout:' #(#LayoutFrame 119 0 103 0 138 0 121 0)
|
|
264 |
#'isOpaque:' true
|
56
|
265 |
#'label:' ''
|
62
|
266 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
267 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
268 |
#'initiallyInvisible:' false
|
|
269 |
#'tabable:' false
|
|
270 |
#'isDefault:' false
|
|
271 |
#'defaultable:' false
|
56
|
272 |
#'model:' #makeRelativeTop
|
62
|
273 |
#'hasCharacterOrientedLabel:' true
|
|
274 |
#'isDecorated:' false
|
|
275 |
#'initiallyDisabled:' false
|
56
|
276 |
)
|
|
277 |
#(#ActionButtonSpec
|
|
278 |
#'name:' 'button3'
|
62
|
279 |
#'layout:' #(#LayoutFrame 217 0 76 0 236 0 94 0)
|
|
280 |
#'isOpaque:' true
|
56
|
281 |
#'label:' ''
|
62
|
282 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
283 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
284 |
#'initiallyInvisible:' false
|
|
285 |
#'tabable:' false
|
|
286 |
#'isDefault:' false
|
|
287 |
#'defaultable:' false
|
56
|
288 |
#'model:' #makeOffsetLeft
|
62
|
289 |
#'hasCharacterOrientedLabel:' true
|
|
290 |
#'isDecorated:' false
|
|
291 |
#'initiallyDisabled:' false
|
56
|
292 |
)
|
|
293 |
#(#ActionButtonSpec
|
|
294 |
#'name:' 'button4'
|
62
|
295 |
#'layout:' #(#LayoutFrame 217 0 103 0 236 0 121 0)
|
|
296 |
#'isOpaque:' true
|
56
|
297 |
#'label:' ''
|
62
|
298 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
299 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
300 |
#'initiallyInvisible:' false
|
|
301 |
#'tabable:' false
|
|
302 |
#'isDefault:' false
|
|
303 |
#'defaultable:' false
|
56
|
304 |
#'model:' #makeOffsetTop
|
62
|
305 |
#'hasCharacterOrientedLabel:' true
|
|
306 |
#'isDecorated:' false
|
|
307 |
#'initiallyDisabled:' false
|
56
|
308 |
)
|
62
|
309 |
#(#ActionButtonSpec
|
|
310 |
#'name:' 'button8'
|
|
311 |
#'layout:' #(#LayoutFrame 119 0 129 0 138 0 147 0)
|
|
312 |
#'isOpaque:' true
|
|
313 |
#'label:' ''
|
|
314 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
315 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
316 |
#'initiallyInvisible:' false
|
|
317 |
#'tabable:' false
|
|
318 |
#'isDefault:' false
|
|
319 |
#'defaultable:' false
|
|
320 |
#'model:' #makeRelativeLeftTop
|
|
321 |
#'hasCharacterOrientedLabel:' true
|
|
322 |
#'isDecorated:' false
|
|
323 |
#'initiallyDisabled:' false
|
56
|
324 |
)
|
62
|
325 |
#(#ActionButtonSpec
|
|
326 |
#'name:' 'button9'
|
|
327 |
#'layout:' #(#LayoutFrame 217 0 129 0 236 0 147 0)
|
|
328 |
#'isOpaque:' true
|
|
329 |
#'label:' ''
|
|
330 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
331 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
332 |
#'initiallyInvisible:' false
|
|
333 |
#'tabable:' false
|
|
334 |
#'isDefault:' false
|
|
335 |
#'defaultable:' false
|
|
336 |
#'model:' #makeOffsetLeftTop
|
|
337 |
#'hasCharacterOrientedLabel:' true
|
|
338 |
#'isDecorated:' false
|
|
339 |
#'initiallyDisabled:' false
|
56
|
340 |
)
|
62
|
341 |
#(#LabelSpec
|
|
342 |
#'name:' 'label7'
|
|
343 |
#'layout:' #(#LayoutFrame 5 0 129 0 48 0 147 0)
|
|
344 |
#'isOpaque:' true
|
|
345 |
#'label:' 'all'
|
|
346 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
347 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
348 |
#'initiallyInvisible:' false
|
|
349 |
#'level:' 0
|
|
350 |
#'adjust:' #center
|
|
351 |
#'hasCharacterOrientedLabel:' true
|
56
|
352 |
)
|
62
|
353 |
#(#LabelSpec
|
|
354 |
#'name:' 'label1'
|
|
355 |
#'layout:' #(#LayoutFrame 5 0 76 0 48 0 94 0)
|
|
356 |
#'isOpaque:' true
|
|
357 |
#'label:' 'left'
|
|
358 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
359 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
360 |
#'initiallyInvisible:' false
|
|
361 |
#'level:' 0
|
|
362 |
#'adjust:' #center
|
|
363 |
#'hasCharacterOrientedLabel:' true
|
|
364 |
)
|
56
|
365 |
)
|
|
366 |
)
|
|
367 |
)
|
|
368 |
!
|
|
369 |
|
62
|
370 |
specificationExtent
|
|
371 |
"this window spec was automatically generated by the ST/X UIPainter"
|
|
372 |
|
|
373 |
"do not manually edit this - the painter/builder may not be able to
|
|
374 |
handle the specification if its corrupted."
|
|
375 |
|
56
|
376 |
"
|
62
|
377 |
UIPainter new openOnClass:UIPropertyView andSelector:#specificationExtent
|
|
378 |
UIPropertyView new openInterface:#specificationExtent
|
56
|
379 |
"
|
62
|
380 |
|
56
|
381 |
<resource: #canvas>
|
|
382 |
|
|
383 |
^
|
62
|
384 |
|
56
|
385 |
#(#FullSpec
|
62
|
386 |
#'name:' 'uIPainterView'
|
|
387 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
388 |
#'isOpaque:' true
|
56
|
389 |
#'window:'
|
|
390 |
#(#WindowSpec
|
62
|
391 |
#'name:' 'uIPainterView'
|
56
|
392 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
62
|
393 |
#'isOpaque:' true
|
56
|
394 |
#'label:' 'unnamed'
|
62
|
395 |
#'bounds:' #(#Rectangle 0 0 238 303)
|
56
|
396 |
)
|
|
397 |
#'component:'
|
|
398 |
#(#SpecCollection
|
|
399 |
#'collection:'
|
|
400 |
#(
|
|
401 |
#(#LabelSpec
|
|
402 |
#'name:' 'label1'
|
62
|
403 |
#'layout:' #(#LayoutFrame 16 0 62 0 79 0 79 0)
|
|
404 |
#'isOpaque:' true
|
|
405 |
#'label:' 'horizontal:'
|
|
406 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
407 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
408 |
#'initiallyInvisible:' false
|
|
409 |
#'level:' 0
|
|
410 |
#'adjust:' #left
|
|
411 |
#'hasCharacterOrientedLabel:' true
|
56
|
412 |
)
|
|
413 |
#(#LabelSpec
|
|
414 |
#'name:' 'label2'
|
62
|
415 |
#'layout:' #(#LayoutFrame 16 0 89 0 79 0 107 0)
|
|
416 |
#'isOpaque:' true
|
|
417 |
#'label:' 'vertical:'
|
|
418 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
419 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
420 |
#'initiallyInvisible:' false
|
|
421 |
#'level:' 0
|
|
422 |
#'adjust:' #left
|
|
423 |
#'hasCharacterOrientedLabel:' true
|
56
|
424 |
)
|
|
425 |
#(#InputFieldSpec
|
|
426 |
#'name:' 'editField1'
|
62
|
427 |
#'layout:' #(#LayoutFrame 86 0 62 0 179 0 80 0)
|
|
428 |
#'isOpaque:' true
|
|
429 |
#'initiallyDisabled:' false
|
|
430 |
#'initiallyInvisible:' false
|
|
431 |
#'model:' #leftOffset
|
|
432 |
#'isReadOnly:' false
|
|
433 |
#'tabable:' true
|
56
|
434 |
#'type:' #numberOrNil
|
59
|
435 |
#'immediateAccept:' false
|
62
|
436 |
#'acceptOnLeave:' true
|
59
|
437 |
#'acceptOnReturn:' true
|
|
438 |
#'acceptOnTab:' true
|
62
|
439 |
#'acceptOnLostFocus:' true
|
|
440 |
#'hasBorder:' false
|
56
|
441 |
)
|
|
442 |
#(#InputFieldSpec
|
|
443 |
#'name:' 'editField2'
|
62
|
444 |
#'layout:' #(#LayoutFrame 86 0 89 0 179 0 107 0)
|
|
445 |
#'isOpaque:' true
|
|
446 |
#'initiallyDisabled:' false
|
|
447 |
#'initiallyInvisible:' false
|
|
448 |
#'model:' #rightOffset
|
|
449 |
#'isReadOnly:' false
|
|
450 |
#'tabable:' true
|
56
|
451 |
#'type:' #numberOrNil
|
62
|
452 |
#'immediateAccept:' false
|
|
453 |
#'acceptOnLeave:' true
|
|
454 |
#'acceptOnReturn:' true
|
|
455 |
#'acceptOnTab:' true
|
|
456 |
#'acceptOnLostFocus:' true
|
|
457 |
#'hasBorder:' false
|
|
458 |
)
|
|
459 |
#(#LabelSpec
|
|
460 |
#'name:' 'label0'
|
|
461 |
#'layout:' #(#LayoutFrame 16 0 15 0 79 0 32 0)
|
|
462 |
#'isOpaque:' true
|
|
463 |
#'label:' 'Extent:'
|
|
464 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
465 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
466 |
#'initiallyInvisible:' false
|
|
467 |
#'level:' 0
|
|
468 |
#'adjust:' #left
|
|
469 |
#'hasCharacterOrientedLabel:' true
|
|
470 |
)
|
|
471 |
)
|
|
472 |
)
|
|
473 |
)
|
|
474 |
!
|
|
475 |
|
|
476 |
specificationLayoutFrame
|
|
477 |
"this window spec was automatically generated by the ST/X UIPainter"
|
|
478 |
|
|
479 |
"do not manually edit this - the painter/builder may not be able to
|
|
480 |
handle the specification if its corrupted."
|
|
481 |
|
|
482 |
"
|
|
483 |
UIPainter new openOnClass:UIPropertyView andSelector:#specificationLayoutFrame
|
|
484 |
UIPropertyView new openInterface:#specificationLayoutFrame
|
|
485 |
"
|
|
486 |
|
|
487 |
<resource: #canvas>
|
|
488 |
|
|
489 |
^
|
|
490 |
|
|
491 |
#(#FullSpec
|
|
492 |
#'name:' 'uIPainterView'
|
|
493 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
494 |
#'isOpaque:' true
|
|
495 |
#'window:'
|
|
496 |
#(#WindowSpec
|
|
497 |
#'name:' 'uIPainterView'
|
|
498 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
499 |
#'isOpaque:' true
|
|
500 |
#'label:' 'unnamed'
|
|
501 |
#'bounds:' #(#Rectangle 0 0 238 291)
|
|
502 |
)
|
|
503 |
#'component:'
|
|
504 |
#(#SpecCollection
|
|
505 |
#'collection:'
|
|
506 |
#(
|
|
507 |
#(#LabelSpec
|
|
508 |
#'name:' 'label0'
|
|
509 |
#'layout:' #(#LayoutFrame 5 0 7 0 48 0 30 0)
|
|
510 |
#'isOpaque:' true
|
|
511 |
#'label:' 'Layout:'
|
|
512 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
513 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
514 |
#'initiallyInvisible:' false
|
|
515 |
#'level:' 0
|
|
516 |
#'adjust:' #center
|
|
517 |
#'hasCharacterOrientedLabel:' true
|
|
518 |
)
|
|
519 |
#(#PopUpListSpec
|
|
520 |
#'name:' 'popUpList1'
|
|
521 |
#'layout:' #(#LayoutFrame 58 0.0 7 0 -12 1.0 30 0)
|
|
522 |
#'isOpaque:' true
|
|
523 |
#'label:' 'popup'
|
|
524 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
525 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
526 |
#'initiallyInvisible:' false
|
|
527 |
#'model:' #layoutType
|
|
528 |
#'menu:' #layoutTypeList
|
|
529 |
)
|
|
530 |
|
|
531 |
#(#LabelSpec
|
|
532 |
#'name:' 'label left'
|
|
533 |
#'layout:' #(#LayoutFrame 12 0 79 0 53 0 97 0)
|
|
534 |
#'isOpaque:' true
|
|
535 |
#'label:' 'left'
|
|
536 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
537 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
538 |
#'initiallyInvisible:' false
|
|
539 |
#'level:' 0
|
|
540 |
#'adjust:' #center
|
|
541 |
#'hasCharacterOrientedLabel:' true
|
|
542 |
)
|
|
543 |
#(#LabelSpec
|
|
544 |
#'name:' 'label top'
|
|
545 |
#'layout:' #(#LayoutFrame 12 0 107 0 53 0 125 0)
|
|
546 |
#'isOpaque:' true
|
|
547 |
#'label:' 'top'
|
|
548 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
549 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
550 |
#'initiallyInvisible:' false
|
|
551 |
#'level:' 0
|
|
552 |
#'adjust:' #center
|
|
553 |
#'hasCharacterOrientedLabel:' true
|
|
554 |
)
|
|
555 |
#(#LabelSpec
|
|
556 |
#'name:' 'label right'
|
|
557 |
#'layout:' #(#LayoutFrame 12 0 135 0 53 0 153 0)
|
|
558 |
#'isOpaque:' true
|
|
559 |
#'label:' 'right'
|
|
560 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
561 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
562 |
#'initiallyInvisible:' false
|
|
563 |
#'level:' 0
|
|
564 |
#'adjust:' #center
|
|
565 |
#'hasCharacterOrientedLabel:' true
|
|
566 |
)
|
|
567 |
#(#LabelSpec
|
|
568 |
#'name:' 'label bottom'
|
|
569 |
#'layout:' #(#LayoutFrame 12 0 163 0 53 0 181 0)
|
|
570 |
#'isOpaque:' true
|
|
571 |
#'label:' 'bottom'
|
|
572 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
573 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
574 |
#'initiallyInvisible:' false
|
|
575 |
#'level:' 0
|
|
576 |
#'adjust:' #center
|
|
577 |
#'hasCharacterOrientedLabel:' true
|
|
578 |
)
|
|
579 |
#(#LabelSpec
|
|
580 |
#'name:' 'label relative'
|
|
581 |
#'layout:' #(#LayoutFrame 65 0 50 0 110 0 68 0)
|
|
582 |
#'isOpaque:' true
|
|
583 |
#'label:' 'relative'
|
|
584 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
585 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
586 |
#'initiallyInvisible:' false
|
|
587 |
#'level:' 0
|
|
588 |
#'adjust:' #center
|
|
589 |
#'hasCharacterOrientedLabel:' true
|
|
590 |
)
|
|
591 |
#(#LabelSpec
|
|
592 |
#'name:' 'label offset'
|
|
593 |
#'layout:' #(#LayoutFrame 159 0 50 0 190 0 68 0)
|
|
594 |
#'isOpaque:' true
|
|
595 |
#'label:' 'offset'
|
|
596 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
597 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
598 |
#'initiallyInvisible:' false
|
|
599 |
#'level:' 0
|
|
600 |
#'adjust:' #center
|
|
601 |
#'hasCharacterOrientedLabel:' true
|
|
602 |
)
|
|
603 |
#(#LabelSpec
|
|
604 |
#'name:' 'label all relative'
|
|
605 |
#'layout:' #(#LayoutFrame 12 0 197 0 53 0 215 0)
|
|
606 |
#'isOpaque:' true
|
|
607 |
#'label:' 'all'
|
|
608 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
609 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
610 |
#'initiallyInvisible:' false
|
|
611 |
#'level:' 0
|
|
612 |
#'adjust:' #center
|
|
613 |
#'hasCharacterOrientedLabel:' true
|
|
614 |
)
|
|
615 |
#(#LabelSpec
|
|
616 |
#'name:' 'label all absolute'
|
|
617 |
#'layout:' #(#LayoutFrame 159 0 197 0 210 0 215 0)
|
|
618 |
#'isOpaque:' true
|
|
619 |
#'label:' 'all'
|
|
620 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
621 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
622 |
#'initiallyInvisible:' false
|
|
623 |
#'level:' 0
|
|
624 |
#'adjust:' #center
|
|
625 |
#'hasCharacterOrientedLabel:' true
|
|
626 |
)
|
|
627 |
#(#InputFieldSpec
|
|
628 |
#'name:' 'relative E1'
|
|
629 |
#'layout:' #(#LayoutFrame 65 0 79 0 113 0 97 0)
|
|
630 |
#'isOpaque:' true
|
|
631 |
#'initiallyDisabled:' false
|
|
632 |
#'initiallyInvisible:' false
|
|
633 |
#'model:' #leftFraction
|
|
634 |
#'isReadOnly:' false
|
|
635 |
#'tabable:' false
|
|
636 |
#'type:' #numberOrNil
|
|
637 |
#'immediateAccept:' false
|
|
638 |
#'acceptOnLeave:' true
|
|
639 |
#'acceptOnReturn:' true
|
|
640 |
#'acceptOnTab:' true
|
|
641 |
#'acceptOnLostFocus:' true
|
|
642 |
#'hasBorder:' false
|
|
643 |
)
|
|
644 |
#(#InputFieldSpec
|
|
645 |
#'name:' 'relative E2'
|
|
646 |
#'layout:' #(#LayoutFrame 65 0 107 0 113 0 125 0)
|
|
647 |
#'isOpaque:' true
|
|
648 |
#'initiallyDisabled:' false
|
|
649 |
#'initiallyInvisible:' false
|
56
|
650 |
#'model:' #topFraction
|
62
|
651 |
#'isReadOnly:' false
|
|
652 |
#'tabable:' false
|
|
653 |
#'type:' #numberOrNil
|
59
|
654 |
#'immediateAccept:' false
|
62
|
655 |
#'acceptOnLeave:' true
|
|
656 |
#'acceptOnReturn:' true
|
|
657 |
#'acceptOnTab:' true
|
|
658 |
#'acceptOnLostFocus:' true
|
|
659 |
#'hasBorder:' false
|
|
660 |
)
|
|
661 |
#(#InputFieldSpec
|
|
662 |
#'name:' 'relative E3'
|
|
663 |
#'layout:' #(#LayoutFrame 65 0 135 0 113 0 153 0)
|
|
664 |
#'isOpaque:' true
|
|
665 |
#'initiallyDisabled:' false
|
|
666 |
#'initiallyInvisible:' false
|
|
667 |
#'model:' #rightFraction
|
|
668 |
#'isReadOnly:' false
|
|
669 |
#'tabable:' false
|
|
670 |
#'type:' #numberOrNil
|
|
671 |
#'immediateAccept:' false
|
|
672 |
#'acceptOnLeave:' true
|
|
673 |
#'acceptOnReturn:' true
|
|
674 |
#'acceptOnTab:' true
|
|
675 |
#'acceptOnLostFocus:' true
|
|
676 |
#'hasBorder:' false
|
|
677 |
)
|
|
678 |
#(#InputFieldSpec
|
|
679 |
#'name:' 'relative E4'
|
|
680 |
#'layout:' #(#LayoutFrame 65 0 163 0 113 0 181 0)
|
|
681 |
#'isOpaque:' true
|
|
682 |
#'initiallyDisabled:' false
|
|
683 |
#'initiallyInvisible:' false
|
|
684 |
#'model:' #bottomFraction
|
|
685 |
#'isReadOnly:' false
|
|
686 |
#'tabable:' false
|
|
687 |
#'type:' #numberOrNil
|
|
688 |
#'immediateAccept:' false
|
|
689 |
#'acceptOnLeave:' true
|
|
690 |
#'acceptOnReturn:' true
|
|
691 |
#'acceptOnTab:' true
|
|
692 |
#'acceptOnLostFocus:' true
|
|
693 |
#'hasBorder:' false
|
|
694 |
)
|
|
695 |
#(#InputFieldSpec
|
|
696 |
#'name:' 'offset E1'
|
|
697 |
#'layout:' #(#LayoutFrame 159 0 79 0 210 0 97 0)
|
|
698 |
#'isOpaque:' true
|
|
699 |
#'initiallyDisabled:' false
|
|
700 |
#'initiallyInvisible:' false
|
|
701 |
#'model:' #leftOffset
|
|
702 |
#'isReadOnly:' false
|
|
703 |
#'tabable:' false
|
|
704 |
#'type:' #numberOrNil
|
|
705 |
#'immediateAccept:' false
|
|
706 |
#'acceptOnLeave:' true
|
|
707 |
#'acceptOnReturn:' true
|
|
708 |
#'acceptOnTab:' true
|
|
709 |
#'acceptOnLostFocus:' true
|
|
710 |
#'hasBorder:' false
|
|
711 |
)
|
|
712 |
#(#InputFieldSpec
|
|
713 |
#'name:' 'offset E2'
|
|
714 |
#'layout:' #(#LayoutFrame 159 0 107 0 210 0 125 0)
|
|
715 |
#'isOpaque:' true
|
|
716 |
#'initiallyDisabled:' false
|
|
717 |
#'initiallyInvisible:' false
|
|
718 |
#'model:' #topOffset
|
|
719 |
#'isReadOnly:' false
|
|
720 |
#'tabable:' false
|
|
721 |
#'type:' #numberOrNil
|
|
722 |
#'immediateAccept:' false
|
|
723 |
#'acceptOnLeave:' true
|
|
724 |
#'acceptOnReturn:' true
|
|
725 |
#'acceptOnTab:' true
|
|
726 |
#'acceptOnLostFocus:' true
|
|
727 |
#'hasBorder:' false
|
|
728 |
)
|
|
729 |
#(#InputFieldSpec
|
|
730 |
#'name:' 'offset E3'
|
|
731 |
#'layout:' #(#LayoutFrame 159 0 135 0 210 0 153 0)
|
|
732 |
#'isOpaque:' true
|
|
733 |
#'initiallyDisabled:' false
|
|
734 |
#'initiallyInvisible:' false
|
|
735 |
#'model:' #rightOffset
|
|
736 |
#'isReadOnly:' false
|
|
737 |
#'tabable:' false
|
|
738 |
#'type:' #numberOrNil
|
|
739 |
#'immediateAccept:' false
|
|
740 |
#'acceptOnLeave:' true
|
59
|
741 |
#'acceptOnReturn:' true
|
|
742 |
#'acceptOnTab:' true
|
62
|
743 |
#'acceptOnLostFocus:' true
|
|
744 |
#'hasBorder:' false
|
|
745 |
)
|
|
746 |
#(#InputFieldSpec
|
|
747 |
#'name:' 'offset E4'
|
|
748 |
#'layout:' #(#LayoutFrame 159 0 163 0 210 0 181 0)
|
|
749 |
#'isOpaque:' true
|
|
750 |
#'initiallyDisabled:' false
|
|
751 |
#'initiallyInvisible:' false
|
|
752 |
#'model:' #bottomOffset
|
|
753 |
#'isReadOnly:' false
|
|
754 |
#'tabable:' false
|
|
755 |
#'type:' #numberOrNil
|
|
756 |
#'immediateAccept:' false
|
|
757 |
#'acceptOnLeave:' true
|
|
758 |
#'acceptOnReturn:' true
|
|
759 |
#'acceptOnTab:' true
|
|
760 |
#'acceptOnLostFocus:' true
|
|
761 |
#'hasBorder:' false
|
|
762 |
)
|
|
763 |
#(#ActionButtonSpec
|
|
764 |
#'name:' 'relative B1'
|
|
765 |
#'layout:' #(#LayoutFrame 117 0 79 0 136 0 97 0)
|
|
766 |
#'isOpaque:' true
|
|
767 |
#'label:' ' '
|
|
768 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
769 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
770 |
#'initiallyInvisible:' false
|
|
771 |
#'tabable:' false
|
|
772 |
#'isDefault:' false
|
|
773 |
#'defaultable:' false
|
|
774 |
#'model:' #makeRelativeLeft
|
|
775 |
#'hasCharacterOrientedLabel:' true
|
|
776 |
#'isDecorated:' false
|
|
777 |
#'initiallyDisabled:' false
|
|
778 |
)
|
|
779 |
#(#ActionButtonSpec
|
|
780 |
#'name:' 'relative B2'
|
|
781 |
#'layout:' #(#LayoutFrame 117 0 107 0 136 0 125 0)
|
|
782 |
#'isOpaque:' true
|
|
783 |
#'label:' ' '
|
|
784 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
785 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
786 |
#'initiallyInvisible:' false
|
|
787 |
#'tabable:' false
|
|
788 |
#'isDefault:' false
|
|
789 |
#'defaultable:' false
|
|
790 |
#'model:' #makeRelativeTop
|
|
791 |
#'hasCharacterOrientedLabel:' true
|
|
792 |
#'isDecorated:' false
|
|
793 |
#'initiallyDisabled:' false
|
|
794 |
)
|
|
795 |
#(#ActionButtonSpec
|
|
796 |
#'name:' 'relative B3'
|
|
797 |
#'layout:' #(#LayoutFrame 117 0 135 0 136 0 153 0)
|
|
798 |
#'isOpaque:' true
|
|
799 |
#'label:' ' '
|
|
800 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
801 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
802 |
#'initiallyInvisible:' false
|
|
803 |
#'tabable:' false
|
|
804 |
#'isDefault:' false
|
|
805 |
#'defaultable:' false
|
|
806 |
#'model:' #makeRelativeRight
|
|
807 |
#'hasCharacterOrientedLabel:' true
|
|
808 |
#'isDecorated:' false
|
|
809 |
#'initiallyDisabled:' false
|
|
810 |
)
|
|
811 |
#(#ActionButtonSpec
|
|
812 |
#'name:' 'relative B4'
|
|
813 |
#'layout:' #(#LayoutFrame 117 0 163 0 136 0 181 0)
|
|
814 |
#'isOpaque:' true
|
|
815 |
#'label:' ' '
|
|
816 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
817 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
818 |
#'initiallyInvisible:' false
|
|
819 |
#'tabable:' false
|
|
820 |
#'isDefault:' false
|
|
821 |
#'defaultable:' false
|
|
822 |
#'model:' #makeRelativeBottom
|
|
823 |
#'hasCharacterOrientedLabel:' true
|
|
824 |
#'isDecorated:' false
|
|
825 |
#'initiallyDisabled:' false
|
|
826 |
)
|
|
827 |
#(#ActionButtonSpec
|
|
828 |
#'name:' 'relative BAll'
|
|
829 |
#'layout:' #(#LayoutFrame 117 0 197 0 136 0 215 0)
|
|
830 |
#'isOpaque:' true
|
|
831 |
#'label:' ' '
|
|
832 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
833 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
834 |
#'initiallyInvisible:' false
|
|
835 |
#'tabable:' false
|
|
836 |
#'isDefault:' false
|
|
837 |
#'defaultable:' false
|
|
838 |
#'model:' #makeRelativeAll
|
|
839 |
#'hasCharacterOrientedLabel:' true
|
|
840 |
#'isDecorated:' false
|
|
841 |
#'initiallyDisabled:' false
|
|
842 |
)
|
|
843 |
#(#ActionButtonSpec
|
|
844 |
#'name:' 'offset B1'
|
|
845 |
#'layout:' #(#LayoutFrame 214 0 79 0 233 0 97 0)
|
|
846 |
#'isOpaque:' true
|
|
847 |
#'label:' ''
|
|
848 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
849 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
850 |
#'initiallyInvisible:' false
|
|
851 |
#'tabable:' false
|
|
852 |
#'isDefault:' false
|
|
853 |
#'defaultable:' false
|
|
854 |
#'model:' #makeOffsetLeft
|
|
855 |
#'hasCharacterOrientedLabel:' true
|
|
856 |
#'isDecorated:' false
|
|
857 |
#'initiallyDisabled:' false
|
|
858 |
)
|
|
859 |
#(#ActionButtonSpec
|
|
860 |
#'name:' 'offset B2'
|
|
861 |
#'layout:' #(#LayoutFrame 214 0 107 0 233 0 125 0)
|
|
862 |
#'isOpaque:' true
|
|
863 |
#'label:' ''
|
|
864 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
865 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
866 |
#'initiallyInvisible:' false
|
|
867 |
#'tabable:' false
|
|
868 |
#'isDefault:' false
|
|
869 |
#'defaultable:' false
|
|
870 |
#'model:' #makeOffsetTop
|
|
871 |
#'hasCharacterOrientedLabel:' true
|
|
872 |
#'isDecorated:' false
|
|
873 |
#'initiallyDisabled:' false
|
|
874 |
)
|
|
875 |
#(#ActionButtonSpec
|
|
876 |
#'name:' 'offset B3'
|
|
877 |
#'layout:' #(#LayoutFrame 214 0 135 0 233 0 153 0)
|
|
878 |
#'isOpaque:' true
|
|
879 |
#'label:' ''
|
|
880 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
881 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
882 |
#'initiallyInvisible:' false
|
|
883 |
#'tabable:' false
|
|
884 |
#'isDefault:' false
|
|
885 |
#'defaultable:' false
|
|
886 |
#'model:' #makeOffsetRight
|
|
887 |
#'hasCharacterOrientedLabel:' true
|
|
888 |
#'isDecorated:' false
|
|
889 |
#'initiallyDisabled:' false
|
|
890 |
)
|
|
891 |
#(#ActionButtonSpec
|
|
892 |
#'name:' 'offset B4'
|
|
893 |
#'layout:' #(#LayoutFrame 214 0 163 0 233 0 181 0)
|
|
894 |
#'isOpaque:' true
|
|
895 |
#'label:' ''
|
|
896 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
897 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
898 |
#'initiallyInvisible:' false
|
|
899 |
#'tabable:' false
|
|
900 |
#'isDefault:' false
|
|
901 |
#'defaultable:' false
|
|
902 |
#'model:' #makeOffsetBottom
|
|
903 |
#'hasCharacterOrientedLabel:' true
|
|
904 |
#'isDecorated:' false
|
|
905 |
#'initiallyDisabled:' false
|
|
906 |
)
|
|
907 |
#(#ActionButtonSpec
|
|
908 |
#'name:' 'offset BAll'
|
|
909 |
#'layout:' #(#LayoutFrame 214 0 197 0 233 0 215 0)
|
|
910 |
#'isOpaque:' true
|
|
911 |
#'label:' ' '
|
|
912 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
913 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
914 |
#'initiallyInvisible:' false
|
|
915 |
#'tabable:' false
|
|
916 |
#'isDefault:' false
|
|
917 |
#'defaultable:' false
|
|
918 |
#'model:' #makeOffsetAll
|
|
919 |
#'hasCharacterOrientedLabel:' true
|
|
920 |
#'isDecorated:' false
|
|
921 |
#'initiallyDisabled:' false
|
|
922 |
)
|
|
923 |
)
|
|
924 |
)
|
|
925 |
)
|
|
926 |
!
|
|
927 |
|
|
928 |
specificationLayoutOrigin
|
|
929 |
"this window spec was automatically generated by the ST/X UIPainter"
|
|
930 |
|
|
931 |
"do not manually edit this - the painter/builder may not be able to
|
|
932 |
handle the specification if its corrupted."
|
|
933 |
|
|
934 |
"
|
|
935 |
UIPainter new openOnClass:UIPropertyView andSelector:#specificationLayoutOrigin
|
|
936 |
UIPropertyView new openInterface:#specificationLayoutOrigin
|
|
937 |
"
|
|
938 |
|
|
939 |
<resource: #canvas>
|
|
940 |
|
|
941 |
^
|
|
942 |
|
|
943 |
#(#FullSpec
|
|
944 |
#'name:' 'uIPainterView'
|
|
945 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
946 |
#'isOpaque:' true
|
|
947 |
#'window:'
|
|
948 |
#(#WindowSpec
|
|
949 |
#'name:' 'uIPainterView'
|
|
950 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
951 |
#'isOpaque:' true
|
|
952 |
#'label:' 'unnamed'
|
|
953 |
#'bounds:' #(#Rectangle 0 0 238 303)
|
|
954 |
)
|
|
955 |
#'component:'
|
|
956 |
#(#SpecCollection
|
|
957 |
#'collection:'
|
|
958 |
#(
|
|
959 |
#(#LabelSpec
|
|
960 |
#'name:' 'label0'
|
|
961 |
#'layout:' #(#LayoutFrame 5 0 7 0 48 0 30 0)
|
|
962 |
#'isOpaque:' true
|
|
963 |
#'label:' 'Layout:'
|
|
964 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
965 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
966 |
#'initiallyInvisible:' false
|
|
967 |
#'level:' 0
|
|
968 |
#'adjust:' #center
|
|
969 |
#'hasCharacterOrientedLabel:' true
|
|
970 |
)
|
|
971 |
#(#PopUpListSpec
|
|
972 |
#'name:' 'popUpList1'
|
|
973 |
#'layout:' #(#LayoutFrame 58 0.0 7 0 -12 1.0 30 0)
|
|
974 |
#'isOpaque:' true
|
|
975 |
#'label:' 'popup'
|
|
976 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
977 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
978 |
#'initiallyInvisible:' false
|
|
979 |
#'model:' #layoutType
|
|
980 |
#'menu:' #layoutTypeList
|
|
981 |
)
|
|
982 |
|
|
983 |
#(#LabelSpec
|
|
984 |
#'name:' 'label1'
|
|
985 |
#'layout:' #(#LayoutFrame 16 0 82 0 44 0 100 0)
|
|
986 |
#'isOpaque:' true
|
|
987 |
#'label:' 'left'
|
|
988 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
989 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
990 |
#'initiallyInvisible:' false
|
|
991 |
#'level:' 0
|
|
992 |
#'adjust:' #center
|
|
993 |
#'hasCharacterOrientedLabel:' true
|
|
994 |
)
|
|
995 |
#(#LabelSpec
|
|
996 |
#'name:' 'label2'
|
|
997 |
#'layout:' #(#LayoutFrame 16 0 109 0 44 0 127 0)
|
|
998 |
#'isOpaque:' true
|
|
999 |
#'label:' 'top'
|
|
1000 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
1001 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
1002 |
#'initiallyInvisible:' false
|
|
1003 |
#'level:' 0
|
|
1004 |
#'adjust:' #center
|
|
1005 |
#'hasCharacterOrientedLabel:' true
|
|
1006 |
)
|
|
1007 |
#(#LabelSpec
|
|
1008 |
#'name:' 'label3'
|
|
1009 |
#'layout:' #(#LayoutFrame 57 0 50 0 103 0 67 0)
|
|
1010 |
#'isOpaque:' true
|
|
1011 |
#'label:' 'relative'
|
|
1012 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
1013 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
1014 |
#'initiallyInvisible:' false
|
|
1015 |
#'level:' 0
|
|
1016 |
#'adjust:' #center
|
|
1017 |
#'hasCharacterOrientedLabel:' true
|
|
1018 |
)
|
|
1019 |
#(#LabelSpec
|
|
1020 |
#'name:' 'label4'
|
|
1021 |
#'layout:' #(#LayoutFrame 154 0 51 0 190 0 68 0)
|
|
1022 |
#'isOpaque:' true
|
|
1023 |
#'label:' 'offset'
|
|
1024 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
1025 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
1026 |
#'initiallyInvisible:' false
|
|
1027 |
#'level:' 0
|
|
1028 |
#'adjust:' #center
|
|
1029 |
#'hasCharacterOrientedLabel:' true
|
|
1030 |
)
|
|
1031 |
#(#InputFieldSpec
|
|
1032 |
#'name:' 'editField1'
|
|
1033 |
#'layout:' #(#LayoutFrame 57 0 82 0 114 0 100 0)
|
|
1034 |
#'isOpaque:' true
|
|
1035 |
#'initiallyDisabled:' false
|
|
1036 |
#'initiallyInvisible:' false
|
|
1037 |
#'model:' #leftFraction
|
|
1038 |
#'isReadOnly:' false
|
|
1039 |
#'tabable:' true
|
|
1040 |
#'type:' #numberOrNil
|
|
1041 |
#'immediateAccept:' false
|
|
1042 |
#'acceptOnLeave:' true
|
|
1043 |
#'acceptOnReturn:' true
|
|
1044 |
#'acceptOnTab:' true
|
|
1045 |
#'acceptOnLostFocus:' true
|
|
1046 |
#'hasBorder:' false
|
|
1047 |
)
|
|
1048 |
#(#InputFieldSpec
|
|
1049 |
#'name:' 'editField2'
|
|
1050 |
#'layout:' #(#LayoutFrame 57 0 109 0 114 0 127 0)
|
|
1051 |
#'isOpaque:' true
|
|
1052 |
#'initiallyDisabled:' false
|
|
1053 |
#'initiallyInvisible:' false
|
|
1054 |
#'model:' #topFraction
|
|
1055 |
#'isReadOnly:' false
|
|
1056 |
#'tabable:' true
|
|
1057 |
#'type:' #numberOrNil
|
|
1058 |
#'immediateAccept:' false
|
|
1059 |
#'acceptOnLeave:' true
|
|
1060 |
#'acceptOnReturn:' true
|
|
1061 |
#'acceptOnTab:' true
|
|
1062 |
#'acceptOnLostFocus:' true
|
|
1063 |
#'hasBorder:' false
|
56
|
1064 |
)
|
|
1065 |
#(#InputFieldSpec
|
|
1066 |
#'name:' 'editField3'
|
62
|
1067 |
#'layout:' #(#LayoutFrame 154 0 82 0 212 0 100 0)
|
|
1068 |
#'isOpaque:' true
|
|
1069 |
#'initiallyDisabled:' false
|
|
1070 |
#'initiallyInvisible:' false
|
|
1071 |
#'model:' #leftOffset
|
|
1072 |
#'isReadOnly:' false
|
|
1073 |
#'tabable:' true
|
56
|
1074 |
#'type:' #numberOrNil
|
59
|
1075 |
#'immediateAccept:' false
|
62
|
1076 |
#'acceptOnLeave:' true
|
59
|
1077 |
#'acceptOnReturn:' true
|
|
1078 |
#'acceptOnTab:' true
|
62
|
1079 |
#'acceptOnLostFocus:' true
|
|
1080 |
#'hasBorder:' false
|
56
|
1081 |
)
|
|
1082 |
#(#InputFieldSpec
|
|
1083 |
#'name:' 'editField4'
|
62
|
1084 |
#'layout:' #(#LayoutFrame 154 0 109 0 212 0 127 0)
|
|
1085 |
#'isOpaque:' true
|
|
1086 |
#'initiallyDisabled:' false
|
|
1087 |
#'initiallyInvisible:' false
|
|
1088 |
#'model:' #topOffset
|
|
1089 |
#'isReadOnly:' false
|
|
1090 |
#'tabable:' true
|
56
|
1091 |
#'type:' #numberOrNil
|
59
|
1092 |
#'immediateAccept:' false
|
62
|
1093 |
#'acceptOnLeave:' true
|
59
|
1094 |
#'acceptOnReturn:' true
|
|
1095 |
#'acceptOnTab:' true
|
62
|
1096 |
#'acceptOnLostFocus:' true
|
|
1097 |
#'hasBorder:' false
|
56
|
1098 |
)
|
|
1099 |
#(#ActionButtonSpec
|
|
1100 |
#'name:' 'button1'
|
62
|
1101 |
#'layout:' #(#LayoutFrame 119 0 82 0 138 0 100 0)
|
|
1102 |
#'isOpaque:' true
|
56
|
1103 |
#'label:' ''
|
62
|
1104 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
1105 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
1106 |
#'initiallyInvisible:' false
|
|
1107 |
#'tabable:' false
|
|
1108 |
#'isDefault:' false
|
|
1109 |
#'defaultable:' false
|
56
|
1110 |
#'model:' #makeRelativeLeft
|
62
|
1111 |
#'hasCharacterOrientedLabel:' true
|
|
1112 |
#'isDecorated:' false
|
|
1113 |
#'initiallyDisabled:' false
|
56
|
1114 |
)
|
|
1115 |
#(#ActionButtonSpec
|
|
1116 |
#'name:' 'button2'
|
62
|
1117 |
#'layout:' #(#LayoutFrame 119 0 109 0 138 0 127 0)
|
|
1118 |
#'isOpaque:' true
|
56
|
1119 |
#'label:' ''
|
62
|
1120 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
1121 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
1122 |
#'initiallyInvisible:' false
|
|
1123 |
#'tabable:' false
|
|
1124 |
#'isDefault:' false
|
|
1125 |
#'defaultable:' false
|
56
|
1126 |
#'model:' #makeRelativeTop
|
62
|
1127 |
#'hasCharacterOrientedLabel:' true
|
|
1128 |
#'isDecorated:' false
|
|
1129 |
#'initiallyDisabled:' false
|
56
|
1130 |
)
|
|
1131 |
#(#ActionButtonSpec
|
|
1132 |
#'name:' 'button3'
|
62
|
1133 |
#'layout:' #(#LayoutFrame 216 0 82 0 235 0 100 0)
|
|
1134 |
#'isOpaque:' true
|
56
|
1135 |
#'label:' ''
|
62
|
1136 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
1137 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
1138 |
#'initiallyInvisible:' false
|
|
1139 |
#'tabable:' false
|
|
1140 |
#'isDefault:' false
|
|
1141 |
#'defaultable:' false
|
56
|
1142 |
#'model:' #makeOffsetLeft
|
62
|
1143 |
#'hasCharacterOrientedLabel:' true
|
|
1144 |
#'isDecorated:' false
|
|
1145 |
#'initiallyDisabled:' false
|
56
|
1146 |
)
|
|
1147 |
#(#ActionButtonSpec
|
|
1148 |
#'name:' 'button4'
|
62
|
1149 |
#'layout:' #(#LayoutFrame 216 0 109 0 235 0 127 0)
|
|
1150 |
#'isOpaque:' true
|
56
|
1151 |
#'label:' ''
|
62
|
1152 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
1153 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
1154 |
#'initiallyInvisible:' false
|
|
1155 |
#'tabable:' false
|
|
1156 |
#'isDefault:' false
|
|
1157 |
#'defaultable:' false
|
56
|
1158 |
#'model:' #makeOffsetTop
|
62
|
1159 |
#'hasCharacterOrientedLabel:' true
|
|
1160 |
#'isDecorated:' false
|
|
1161 |
#'initiallyDisabled:' false
|
56
|
1162 |
)
|
62
|
1163 |
#(#ActionButtonSpec
|
|
1164 |
#'name:' 'button8'
|
|
1165 |
#'layout:' #(#LayoutFrame 119 0 135 0 138 0 153 0)
|
|
1166 |
#'isOpaque:' true
|
|
1167 |
#'label:' ''
|
|
1168 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
1169 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
1170 |
#'initiallyInvisible:' false
|
|
1171 |
#'tabable:' false
|
|
1172 |
#'isDefault:' false
|
|
1173 |
#'defaultable:' false
|
|
1174 |
#'model:' #makeRelativeLeftTop
|
|
1175 |
#'hasCharacterOrientedLabel:' true
|
|
1176 |
#'isDecorated:' false
|
|
1177 |
#'initiallyDisabled:' false
|
|
1178 |
)
|
|
1179 |
#(#ActionButtonSpec
|
|
1180 |
#'name:' 'button9'
|
|
1181 |
#'layout:' #(#LayoutFrame 216 0 135 0 235 0 153 0)
|
|
1182 |
#'isOpaque:' true
|
|
1183 |
#'label:' ''
|
|
1184 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
1185 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
1186 |
#'initiallyInvisible:' false
|
|
1187 |
#'tabable:' false
|
|
1188 |
#'isDefault:' false
|
|
1189 |
#'defaultable:' false
|
|
1190 |
#'model:' #makeOffsetLeftTop
|
|
1191 |
#'hasCharacterOrientedLabel:' true
|
|
1192 |
#'isDecorated:' false
|
|
1193 |
#'initiallyDisabled:' false
|
|
1194 |
)
|
|
1195 |
#(#LabelSpec
|
|
1196 |
#'name:' 'label5'
|
|
1197 |
#'layout:' #(#LayoutFrame 16 0 135 0 44 0 153 0)
|
|
1198 |
#'isOpaque:' true
|
|
1199 |
#'label:' 'all'
|
|
1200 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
1201 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
1202 |
#'initiallyInvisible:' false
|
|
1203 |
#'level:' 0
|
|
1204 |
#'adjust:' #center
|
|
1205 |
#'hasCharacterOrientedLabel:' true
|
56
|
1206 |
)
|
62
|
1207 |
)
|
|
1208 |
)
|
|
1209 |
)
|
|
1210 |
!
|
|
1211 |
|
|
1212 |
specificationPoint
|
|
1213 |
"this window spec was automatically generated by the ST/X UIPainter"
|
|
1214 |
|
|
1215 |
"do not manually edit this - the painter/builder may not be able to
|
|
1216 |
handle the specification if its corrupted."
|
|
1217 |
|
|
1218 |
"
|
|
1219 |
UIPainter new openOnClass:UIPropertyView andSelector:#specificationPoint
|
|
1220 |
UIPropertyView new openInterface:#specificationPoint
|
|
1221 |
"
|
|
1222 |
|
|
1223 |
<resource: #canvas>
|
|
1224 |
|
|
1225 |
^
|
|
1226 |
|
|
1227 |
#(#FullSpec
|
|
1228 |
#'name:' 'uIPainterView'
|
|
1229 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
1230 |
#'isOpaque:' true
|
|
1231 |
#'window:'
|
|
1232 |
#(#WindowSpec
|
|
1233 |
#'name:' 'uIPainterView'
|
|
1234 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
1235 |
#'isOpaque:' true
|
|
1236 |
#'label:' 'unnamed'
|
|
1237 |
#'bounds:' #(#Rectangle 0 0 238 303)
|
|
1238 |
)
|
|
1239 |
#'component:'
|
|
1240 |
#(#SpecCollection
|
|
1241 |
#'collection:'
|
|
1242 |
#(
|
|
1243 |
#(#LabelSpec
|
|
1244 |
#'name:' 'label0'
|
|
1245 |
#'layout:' #(#LayoutFrame 16 0 7 0 67 0 30 0)
|
|
1246 |
#'isOpaque:' true
|
|
1247 |
#'label:' 'Layout:'
|
|
1248 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
1249 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
1250 |
#'initiallyInvisible:' false
|
|
1251 |
#'level:' 0
|
|
1252 |
#'adjust:' #center
|
|
1253 |
#'hasCharacterOrientedLabel:' true
|
|
1254 |
)
|
|
1255 |
#(#PopUpListSpec
|
|
1256 |
#'name:' 'popUpList1'
|
|
1257 |
#'layout:' #(#LayoutFrame 77 0.0 7 0 -68 1.0 30 0)
|
|
1258 |
#'isOpaque:' true
|
|
1259 |
#'label:' 'popup'
|
|
1260 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
1261 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
1262 |
#'initiallyInvisible:' false
|
|
1263 |
#'model:' #layoutType
|
|
1264 |
#'menu:' #layoutTypeList
|
56
|
1265 |
)
|
62
|
1266 |
#(#LabelSpec
|
|
1267 |
#'name:' 'label1'
|
|
1268 |
#'layout:' #(#LayoutFrame 16 0 62 0 67 0 79 0)
|
|
1269 |
#'isOpaque:' true
|
|
1270 |
#'label:' 'origin x:'
|
|
1271 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
1272 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
1273 |
#'initiallyInvisible:' false
|
|
1274 |
#'level:' 0
|
|
1275 |
#'adjust:' #center
|
|
1276 |
#'hasCharacterOrientedLabel:' true
|
|
1277 |
)
|
|
1278 |
#(#LabelSpec
|
|
1279 |
#'name:' 'label2'
|
|
1280 |
#'layout:' #(#LayoutFrame 16 0 89 0 67 0 107 0)
|
|
1281 |
#'isOpaque:' true
|
|
1282 |
#'label:' 'origin y:'
|
|
1283 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
1284 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
1285 |
#'initiallyInvisible:' false
|
|
1286 |
#'level:' 0
|
|
1287 |
#'adjust:' #center
|
|
1288 |
#'hasCharacterOrientedLabel:' true
|
56
|
1289 |
)
|
62
|
1290 |
#(#InputFieldSpec
|
|
1291 |
#'name:' 'editField1'
|
|
1292 |
#'layout:' #(#LayoutFrame 77 0 62 0 170 0 80 0)
|
|
1293 |
#'isOpaque:' true
|
|
1294 |
#'initiallyDisabled:' false
|
|
1295 |
#'initiallyInvisible:' false
|
|
1296 |
#'model:' #leftOffset
|
|
1297 |
#'isReadOnly:' false
|
|
1298 |
#'tabable:' true
|
|
1299 |
#'type:' #numberOrNil
|
|
1300 |
#'immediateAccept:' false
|
|
1301 |
#'acceptOnLeave:' true
|
|
1302 |
#'acceptOnReturn:' true
|
|
1303 |
#'acceptOnTab:' true
|
|
1304 |
#'acceptOnLostFocus:' true
|
|
1305 |
#'hasBorder:' false
|
|
1306 |
)
|
|
1307 |
#(#InputFieldSpec
|
|
1308 |
#'name:' 'editField2'
|
|
1309 |
#'layout:' #(#LayoutFrame 77 0 89 0 170 0 107 0)
|
|
1310 |
#'isOpaque:' true
|
|
1311 |
#'initiallyDisabled:' false
|
|
1312 |
#'initiallyInvisible:' false
|
|
1313 |
#'model:' #topOffset
|
|
1314 |
#'isReadOnly:' false
|
|
1315 |
#'tabable:' true
|
|
1316 |
#'type:' #numberOrNil
|
|
1317 |
#'immediateAccept:' false
|
|
1318 |
#'acceptOnLeave:' true
|
|
1319 |
#'acceptOnReturn:' true
|
|
1320 |
#'acceptOnTab:' true
|
|
1321 |
#'acceptOnLostFocus:' true
|
|
1322 |
#'hasBorder:' false
|
|
1323 |
)
|
56
|
1324 |
)
|
|
1325 |
)
|
|
1326 |
)
|
62
|
1327 |
!
|
56
|
1328 |
|
62
|
1329 |
specificationRectangle
|
|
1330 |
"this window spec was automatically generated by the ST/X UIPainter"
|
|
1331 |
|
|
1332 |
"do not manually edit this - the painter/builder may not be able to
|
|
1333 |
handle the specification if its corrupted."
|
|
1334 |
|
|
1335 |
"
|
|
1336 |
UIPainter new openOnClass:UIPropertyView andSelector:#specificationRectangle
|
|
1337 |
UIPropertyView new openInterface:#specificationRectangle
|
|
1338 |
"
|
|
1339 |
|
|
1340 |
<resource: #canvas>
|
56
|
1341 |
|
62
|
1342 |
^
|
|
1343 |
|
|
1344 |
#(#FullSpec
|
|
1345 |
#'name:' 'uIPainterView'
|
|
1346 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
1347 |
#'isOpaque:' true
|
|
1348 |
#'window:'
|
|
1349 |
#(#WindowSpec
|
|
1350 |
#'name:' 'uIPainterView'
|
|
1351 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
1352 |
#'isOpaque:' true
|
|
1353 |
#'label:' 'unnamed'
|
|
1354 |
#'bounds:' #(#Rectangle 0 0 238 303)
|
|
1355 |
)
|
|
1356 |
#'component:'
|
|
1357 |
#(#SpecCollection
|
|
1358 |
#'collection:'
|
|
1359 |
#(
|
|
1360 |
#(#LabelSpec
|
|
1361 |
#'name:' 'label0'
|
|
1362 |
#'layout:' #(#LayoutFrame 16 0 7 0 67 0 30 0)
|
|
1363 |
#'isOpaque:' true
|
|
1364 |
#'label:' 'Layout:'
|
|
1365 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
1366 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
1367 |
#'initiallyInvisible:' false
|
|
1368 |
#'level:' 0
|
|
1369 |
#'adjust:' #center
|
|
1370 |
#'hasCharacterOrientedLabel:' true
|
|
1371 |
)
|
|
1372 |
#(#PopUpListSpec
|
|
1373 |
#'name:' 'popUpList1'
|
|
1374 |
#'layout:' #(#LayoutFrame 77 0.0 7 0 -83 1.0 30 0)
|
|
1375 |
#'isOpaque:' true
|
|
1376 |
#'label:' 'popup'
|
|
1377 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
1378 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
1379 |
#'initiallyInvisible:' false
|
|
1380 |
#'model:' #layoutType
|
|
1381 |
#'menu:' #layoutTypeList
|
|
1382 |
)
|
|
1383 |
#(#LabelSpec
|
|
1384 |
#'name:' 'label1'
|
|
1385 |
#'layout:' #(#LayoutFrame 16 0 62 0 74 0 80 0)
|
|
1386 |
#'isOpaque:' true
|
|
1387 |
#'label:' 'origin x:'
|
|
1388 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
1389 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
1390 |
#'initiallyInvisible:' false
|
|
1391 |
#'level:' 0
|
|
1392 |
#'adjust:' #left
|
|
1393 |
#'hasCharacterOrientedLabel:' true
|
|
1394 |
)
|
|
1395 |
#(#LabelSpec
|
|
1396 |
#'name:' 'label2'
|
|
1397 |
#'layout:' #(#LayoutFrame 16 0 89 0 74 0 107 0)
|
|
1398 |
#'isOpaque:' true
|
|
1399 |
#'label:' 'origin y:'
|
|
1400 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
1401 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
1402 |
#'initiallyInvisible:' false
|
|
1403 |
#'level:' 0
|
|
1404 |
#'adjust:' #left
|
|
1405 |
#'hasCharacterOrientedLabel:' true
|
|
1406 |
)
|
|
1407 |
#(#InputFieldSpec
|
|
1408 |
#'name:' 'editField1'
|
|
1409 |
#'layout:' #(#LayoutFrame 81 0 62 0 174 0 80 0)
|
|
1410 |
#'isOpaque:' true
|
|
1411 |
#'initiallyDisabled:' false
|
|
1412 |
#'initiallyInvisible:' false
|
|
1413 |
#'model:' #leftOffset
|
|
1414 |
#'isReadOnly:' false
|
|
1415 |
#'tabable:' true
|
|
1416 |
#'type:' #numberOrNil
|
|
1417 |
#'immediateAccept:' false
|
|
1418 |
#'acceptOnLeave:' true
|
|
1419 |
#'acceptOnReturn:' true
|
|
1420 |
#'acceptOnTab:' true
|
|
1421 |
#'acceptOnLostFocus:' true
|
|
1422 |
#'hasBorder:' false
|
|
1423 |
)
|
|
1424 |
#(#InputFieldSpec
|
|
1425 |
#'name:' 'editField2'
|
|
1426 |
#'layout:' #(#LayoutFrame 81 0 89 0 174 0 107 0)
|
|
1427 |
#'isOpaque:' true
|
|
1428 |
#'initiallyDisabled:' false
|
|
1429 |
#'initiallyInvisible:' false
|
|
1430 |
#'model:' #topOffset
|
|
1431 |
#'isReadOnly:' false
|
|
1432 |
#'tabable:' true
|
|
1433 |
#'type:' #numberOrNil
|
|
1434 |
#'immediateAccept:' false
|
|
1435 |
#'acceptOnLeave:' true
|
|
1436 |
#'acceptOnReturn:' true
|
|
1437 |
#'acceptOnTab:' true
|
|
1438 |
#'acceptOnLostFocus:' true
|
|
1439 |
#'hasBorder:' false
|
|
1440 |
)
|
|
1441 |
#(#LabelSpec
|
|
1442 |
#'name:' 'label4'
|
|
1443 |
#'layout:' #(#LayoutFrame 16 0 117 0 74 0 135 0)
|
|
1444 |
#'isOpaque:' true
|
|
1445 |
#'label:' 'corner x:'
|
|
1446 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
1447 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
1448 |
#'initiallyInvisible:' false
|
|
1449 |
#'level:' 0
|
|
1450 |
#'adjust:' #left
|
|
1451 |
#'hasCharacterOrientedLabel:' true
|
|
1452 |
)
|
|
1453 |
#(#LabelSpec
|
|
1454 |
#'name:' 'label5'
|
|
1455 |
#'layout:' #(#LayoutFrame 16 0 144 0 74 0 162 0)
|
|
1456 |
#'isOpaque:' true
|
|
1457 |
#'label:' 'corner y:'
|
|
1458 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0)
|
|
1459 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
|
|
1460 |
#'initiallyInvisible:' false
|
|
1461 |
#'level:' 0
|
|
1462 |
#'adjust:' #left
|
|
1463 |
#'hasCharacterOrientedLabel:' true
|
|
1464 |
)
|
|
1465 |
#(#InputFieldSpec
|
|
1466 |
#'name:' 'editField3'
|
|
1467 |
#'layout:' #(#LayoutFrame 81 0 117 0 174 0 135 0)
|
|
1468 |
#'isOpaque:' true
|
|
1469 |
#'initiallyDisabled:' false
|
|
1470 |
#'initiallyInvisible:' false
|
|
1471 |
#'model:' #rightOffset
|
|
1472 |
#'isReadOnly:' false
|
|
1473 |
#'tabable:' true
|
|
1474 |
#'type:' #numberOrNil
|
|
1475 |
#'immediateAccept:' false
|
|
1476 |
#'acceptOnLeave:' true
|
|
1477 |
#'acceptOnReturn:' true
|
|
1478 |
#'acceptOnTab:' true
|
|
1479 |
#'acceptOnLostFocus:' true
|
|
1480 |
#'hasBorder:' false
|
|
1481 |
)
|
|
1482 |
#(#InputFieldSpec
|
|
1483 |
#'name:' 'editField4'
|
|
1484 |
#'layout:' #(#LayoutFrame 81 0 144 0 174 0 162 0)
|
|
1485 |
#'isOpaque:' true
|
|
1486 |
#'initiallyDisabled:' false
|
|
1487 |
#'initiallyInvisible:' false
|
|
1488 |
#'model:' #bottomOffset
|
|
1489 |
#'isReadOnly:' false
|
|
1490 |
#'tabable:' true
|
|
1491 |
#'type:' #numberOrNil
|
|
1492 |
#'immediateAccept:' false
|
|
1493 |
#'acceptOnLeave:' true
|
|
1494 |
#'acceptOnReturn:' true
|
|
1495 |
#'acceptOnTab:' true
|
|
1496 |
#'acceptOnLostFocus:' true
|
|
1497 |
#'hasBorder:' false
|
|
1498 |
)
|
|
1499 |
)
|
|
1500 |
)
|
|
1501 |
)
|
56
|
1502 |
! !
|
|
1503 |
|
62
|
1504 |
!UIPropertyView methodsFor:'event handling'!
|
56
|
1505 |
|
62
|
1506 |
builderViewChanged:what
|
|
1507 |
"something changed in the builder view
|
|
1508 |
"
|
|
1509 |
|slices list prevSpecClass|
|
59
|
1510 |
|
62
|
1511 |
(what == #selection or:[what == #tree]) ifFalse:[
|
64
|
1512 |
what == #layout ifTrue:[
|
|
1513 |
self updateLayout
|
59
|
1514 |
].
|
|
1515 |
^ self
|
|
1516 |
].
|
62
|
1517 |
currentView := builderView singleSelection.
|
59
|
1518 |
propertyAspects := nil.
|
|
1519 |
|
|
1520 |
currentView isNil ifTrue:[
|
|
1521 |
propertyList selectionIndex:nil.
|
|
1522 |
currentSpecChannel := nil.
|
|
1523 |
propertyList list:#().
|
|
1524 |
propertySpecs := nil.
|
|
1525 |
|
|
1526 |
"/ must setup for a WindowSpec (to allow entry of min- maxSize etc).
|
62
|
1527 |
"/ propertyList list:#('Basics' 'Detail').
|
|
1528 |
^ self modified:false.
|
59
|
1529 |
].
|
|
1530 |
|
62
|
1531 |
prevSpecClass := specBeingEdited class.
|
59
|
1532 |
specBeingEdited := (builderView generateSpecFor:currentView) first.
|
|
1533 |
|
62
|
1534 |
( (specBeingEdited class == prevSpecClass)
|
|
1535 |
and:[currentSpecChannel notNil]
|
|
1536 |
) ifTrue:[
|
|
1537 |
"can keep current specifications plus current property selection
|
|
1538 |
"
|
|
1539 |
self reload.
|
|
1540 |
^ self.
|
|
1541 |
].
|
59
|
1542 |
|
62
|
1543 |
propertyList selectionIndex:nil.
|
|
1544 |
propertyAspects := IdentityDictionary new.
|
|
1545 |
propertySpecs := OrderedCollection new.
|
|
1546 |
slices := currentView specClass slices.
|
59
|
1547 |
|
62
|
1548 |
list := slices collect:[:slice|
|
|
1549 |
propertySpecs add:(slice last).
|
|
1550 |
slice first asString
|
|
1551 |
].
|
|
1552 |
list := list, (Array with:(self class titleOfLayoutMenu)).
|
59
|
1553 |
|
62
|
1554 |
currentSpecChannel := specBeingEdited asValue.
|
|
1555 |
specBeingEdited class addBindingsTo:propertyAspects
|
|
1556 |
for:specBeingEdited
|
|
1557 |
channel:currentSpecChannel.
|
|
1558 |
propertyAspects do:[:anAspect | anAspect addDependent:self ].
|
|
1559 |
propertyList list:list.
|
|
1560 |
propertyList selection:userSelectedProperty.
|
|
1561 |
self modified:false.
|
59
|
1562 |
|
|
1563 |
|
|
1564 |
|
62
|
1565 |
!
|
56
|
1566 |
|
|
1567 |
modified:aState
|
|
1568 |
"change state of modification flag
|
|
1569 |
"
|
|
1570 |
aState ~~ modified ifTrue:[
|
|
1571 |
(modified := aState) ifTrue:[
|
|
1572 |
(builder componentAt:#cancelButton) enable.
|
|
1573 |
(builder componentAt:#applyButton) enable.
|
|
1574 |
] ifFalse:[
|
|
1575 |
(builder componentAt:#cancelButton) disable.
|
|
1576 |
(builder componentAt:#applyButton) disable.
|
|
1577 |
].
|
|
1578 |
]
|
|
1579 |
!
|
|
1580 |
|
|
1581 |
propertySelectionChanged
|
62
|
1582 |
"property selection changed; switch to new property selection
|
56
|
1583 |
"
|
|
1584 |
|spec index sel|
|
|
1585 |
|
|
1586 |
sel := propertyList selection.
|
62
|
1587 |
self modified:false.
|
56
|
1588 |
|
|
1589 |
(currentView isNil or:[sel isNil]) ifTrue:[
|
59
|
1590 |
"/ must setup for a WindowSpec for workView (to allow entry of min- maxSize etc).
|
|
1591 |
"/ currentView isNil ifTrue:[
|
|
1592 |
"/ currentView := receiver
|
|
1593 |
"/ ].
|
56
|
1594 |
^ self showSpec:nil
|
|
1595 |
].
|
|
1596 |
index := propertyList selectionIndex.
|
|
1597 |
userSelectedProperty := sel.
|
|
1598 |
|
|
1599 |
index > propertySpecs size ifTrue:[ "/ one of my specifications
|
59
|
1600 |
(sel == self class titleOfLayoutMenu) ifTrue:[
|
62
|
1601 |
^ self showAndFetchLayout
|
56
|
1602 |
]
|
|
1603 |
] ifFalse:[
|
|
1604 |
spec := currentView specClass perform:(propertySpecs at:index).
|
|
1605 |
].
|
|
1606 |
self showSpec:spec.
|
|
1607 |
!
|
|
1608 |
|
|
1609 |
update:something with:aParameter from:changedObject
|
62
|
1610 |
"any attribute changed its state in the current specification
|
|
1611 |
"
|
59
|
1612 |
self modified:true
|
56
|
1613 |
! !
|
|
1614 |
|
|
1615 |
!UIPropertyView methodsFor:'initialization'!
|
|
1616 |
|
62
|
1617 |
in:aTopView builder:aBuilderView
|
|
1618 |
"setup property view in topview and that the builder view
|
|
1619 |
"
|
56
|
1620 |
|menu y cancelButton applyButton panel|
|
|
1621 |
|
|
1622 |
super initialize.
|
62
|
1623 |
self initializeLayoutAspects.
|
56
|
1624 |
|
59
|
1625 |
builderView := aBuilderView.
|
56
|
1626 |
|
|
1627 |
menu := PopUpList label:'properties' in:aTopView.
|
|
1628 |
menu defaultLabel:'properties'.
|
|
1629 |
propertyFrame := View in:aTopView.
|
|
1630 |
panel := HorizontalPanelView in:aTopView.
|
|
1631 |
|
|
1632 |
cancelButton := Button abortButtonIn:panel.
|
|
1633 |
applyButton := Button okButtonIn:panel.
|
|
1634 |
|
|
1635 |
propertyList := SelectionInList new.
|
|
1636 |
propertyList list:#( ).
|
59
|
1637 |
propertyList selectionIndexHolder onChangeSend:#propertySelectionChanged
|
|
1638 |
to:self.
|
56
|
1639 |
menu model:propertyList.
|
|
1640 |
|
|
1641 |
y := menu preferredExtent y.
|
|
1642 |
menu origin:0.0@0.0 corner:1.0@y.
|
|
1643 |
propertyFrame origin:0.0@y corner:1.0@1.0.
|
|
1644 |
panel origin:0.0@1.0 corner:1.0@1.0.
|
|
1645 |
|
|
1646 |
y := panel preferredExtent y.
|
|
1647 |
propertyFrame bottomInset:y.
|
|
1648 |
panel topInset:(y negated).
|
|
1649 |
|
|
1650 |
builder componentAt:#cancelButton put:cancelButton.
|
|
1651 |
builder componentAt:#applyButton put:applyButton.
|
|
1652 |
|
|
1653 |
cancelButton action:[ self cancel ].
|
59
|
1654 |
applyButton action:[ self apply ].
|
56
|
1655 |
|
|
1656 |
modified := true.
|
|
1657 |
self modified:false.
|
59
|
1658 |
!
|
|
1659 |
|
62
|
1660 |
initializeLayoutAspects
|
|
1661 |
"initialize all layout aspects
|
|
1662 |
"
|
|
1663 |
layoutAspects := IdentityDictionary new.
|
59
|
1664 |
|
|
1665 |
#( bottomFraction bottomOffset
|
|
1666 |
leftFraction leftOffset
|
|
1667 |
topFraction topOffset
|
|
1668 |
rightFraction rightOffset
|
|
1669 |
leftAlignmentFraction topAlignmentFraction
|
|
1670 |
)
|
|
1671 |
do:[:aChannel|
|
62
|
1672 |
layoutAspects at:aChannel put:(ValueHolder new).
|
59
|
1673 |
].
|
|
1674 |
|
62
|
1675 |
layoutAspects do:[:anAspect | anAspect addDependent:self ].
|
59
|
1676 |
|
62
|
1677 |
layoutAspects at:#layoutType put:(
|
|
1678 |
AspectAdaptor new
|
|
1679 |
subject:self;
|
|
1680 |
accessWith:#layoutType
|
|
1681 |
assignWith:#layoutType:
|
|
1682 |
).
|
56
|
1683 |
! !
|
|
1684 |
|
|
1685 |
!UIPropertyView methodsFor:'private'!
|
|
1686 |
|
|
1687 |
aspectFor:aKey
|
62
|
1688 |
"returns aspect for a key
|
|
1689 |
"
|
59
|
1690 |
|aspect|
|
56
|
1691 |
|
59
|
1692 |
propertyAspects notNil ifTrue:[
|
|
1693 |
aspect := propertyAspects at:aKey ifAbsent:nil.
|
|
1694 |
aspect notNil ifTrue:[
|
|
1695 |
^ aspect
|
|
1696 |
]
|
|
1697 |
].
|
|
1698 |
|
62
|
1699 |
^ layoutAspects at:aKey ifAbsent:[super aspectFor:aKey]
|
56
|
1700 |
!
|
|
1701 |
|
|
1702 |
showSpec:aSpec
|
62
|
1703 |
"switch to specification
|
56
|
1704 |
"
|
|
1705 |
currentSpec ~= aSpec ifTrue:[
|
|
1706 |
propertyFrame destroySubViews.
|
|
1707 |
|
|
1708 |
aSpec notNil ifTrue:[
|
|
1709 |
builder buildFromSpec:aSpec in:propertyFrame.
|
|
1710 |
propertyFrame realizeAllSubViews
|
|
1711 |
]
|
|
1712 |
].
|
|
1713 |
currentSpec := aSpec.
|
59
|
1714 |
! !
|
|
1715 |
|
|
1716 |
!UIPropertyView methodsFor:'private actions'!
|
|
1717 |
|
|
1718 |
apply
|
62
|
1719 |
"apply current changes and write back to current view
|
|
1720 |
"
|
59
|
1721 |
modified ifTrue:[
|
|
1722 |
self modified:false.
|
|
1723 |
|
|
1724 |
self isLayoutSpec ifFalse:[
|
|
1725 |
builderView updateFromSpec:specBeingEdited
|
|
1726 |
] ifTrue:[
|
62
|
1727 |
layoutType notNil ifTrue:[
|
|
1728 |
self perform:(('write', layoutType asString) asSymbol)
|
|
1729 |
]
|
59
|
1730 |
]
|
|
1731 |
]
|
|
1732 |
|
|
1733 |
!
|
|
1734 |
|
|
1735 |
cancel
|
62
|
1736 |
"cancel all changes and read back attributes from current view
|
|
1737 |
"
|
59
|
1738 |
modified ifTrue:[
|
62
|
1739 |
specBeingEdited := (builderView generateSpecFor:currentView) first.
|
|
1740 |
self reload
|
|
1741 |
].
|
|
1742 |
!
|
59
|
1743 |
|
62
|
1744 |
reload
|
|
1745 |
"relaod all attributes from current specification and update values
|
|
1746 |
"
|
|
1747 |
|spec oldMod|
|
|
1748 |
|
|
1749 |
self modified:false.
|
|
1750 |
modified := true. "supress notifications"
|
|
1751 |
|
|
1752 |
currentSpecChannel notNil ifTrue:[
|
|
1753 |
currentSpecChannel value:specBeingEdited.
|
|
1754 |
|
|
1755 |
self isLayoutSpec ifTrue:[
|
|
1756 |
self showAndFetchLayout.
|
59
|
1757 |
]
|
62
|
1758 |
].
|
|
1759 |
modified := false.
|
56
|
1760 |
|
|
1761 |
! !
|
|
1762 |
|
|
1763 |
!UIPropertyView methodsFor:'private layout'!
|
|
1764 |
|
62
|
1765 |
layoutType
|
|
1766 |
^ layoutType
|
|
1767 |
!
|
59
|
1768 |
|
62
|
1769 |
layoutType:something
|
|
1770 |
|spec|
|
56
|
1771 |
|
62
|
1772 |
layoutType ~~ something ifTrue:[
|
|
1773 |
layoutType := something.
|
56
|
1774 |
|
62
|
1775 |
layoutType notNil ifTrue:[
|
|
1776 |
self modified:true.
|
|
1777 |
spec := ('specification', layoutType asString) asSymbol.
|
|
1778 |
spec := self class perform:spec.
|
|
1779 |
].
|
|
1780 |
self showSpec:spec
|
|
1781 |
].
|
|
1782 |
!
|
56
|
1783 |
|
62
|
1784 |
layoutTypeList
|
|
1785 |
^ #( #LayoutFrame #AlignmentOrigin #LayoutOrigin #Point #Rectangle )
|
56
|
1786 |
|
|
1787 |
!
|
|
1788 |
|
62
|
1789 |
selectedLayoutType
|
|
1790 |
^ layoutType
|
|
1791 |
!
|
|
1792 |
|
|
1793 |
showAndFetchLayout
|
|
1794 |
"fetch and show layout specification assigned to current view
|
|
1795 |
"
|
|
1796 |
|type|
|
59
|
1797 |
|
62
|
1798 |
self modified:false.
|
|
1799 |
modified := true.
|
|
1800 |
|
|
1801 |
currentView notNil ifTrue:[
|
|
1802 |
type := builderView class layoutType:currentView.
|
|
1803 |
|
|
1804 |
type notNil ifTrue:[
|
|
1805 |
layoutAspects do:[:aValue| aValue value:nil ].
|
|
1806 |
self perform:(('fetch', type asString) asSymbol)
|
|
1807 |
]
|
59
|
1808 |
].
|
62
|
1809 |
self layoutType:type.
|
|
1810 |
modified := false.
|
59
|
1811 |
|
64
|
1812 |
!
|
|
1813 |
|
|
1814 |
updateLayout
|
|
1815 |
"layout changed but not selection
|
|
1816 |
"
|
|
1817 |
(currentView notNil and:[modified not and:[self isLayoutSpec]]) ifTrue:[
|
|
1818 |
(builderView class layoutType:currentView) == layoutType ifTrue:[
|
|
1819 |
modified := true.
|
|
1820 |
self perform:(('fetch', layoutType asString) asSymbol).
|
|
1821 |
modified := false.
|
|
1822 |
] ifFalse:[
|
|
1823 |
self showAndFetchLayout
|
|
1824 |
]
|
|
1825 |
]
|
62
|
1826 |
! !
|
|
1827 |
|
|
1828 |
!UIPropertyView methodsFor:'private layout fetch'!
|
|
1829 |
|
|
1830 |
fetchAlignmentOrigin
|
|
1831 |
"fetch alignmentOrigin
|
|
1832 |
"
|
|
1833 |
|aLayout|
|
|
1834 |
|
|
1835 |
aLayout := currentView geometryLayout.
|
59
|
1836 |
|
62
|
1837 |
(layoutAspects at:#leftAlignmentFraction) value:(aLayout leftAlignmentFraction).
|
|
1838 |
(layoutAspects at:#topAlignmentFraction) value:(aLayout topAlignmentFraction).
|
64
|
1839 |
|
|
1840 |
self fetchLayoutOrigin
|
62
|
1841 |
!
|
|
1842 |
|
|
1843 |
fetchExtent
|
|
1844 |
|extent|
|
59
|
1845 |
|
62
|
1846 |
extent := currentView extent.
|
|
1847 |
(layoutAspects at:#leftOffset) value:(extent x).
|
|
1848 |
(layoutAspects at:#rightOffset) value:(extent y).
|
|
1849 |
!
|
|
1850 |
|
|
1851 |
fetchLayoutFrame
|
|
1852 |
"fetch layoutFrame
|
|
1853 |
"
|
|
1854 |
|aLayout|
|
59
|
1855 |
|
62
|
1856 |
aLayout := currentView geometryLayout.
|
59
|
1857 |
|
62
|
1858 |
(layoutAspects at:#leftOffset) value:(aLayout leftOffset).
|
|
1859 |
(layoutAspects at:#leftFraction) value:(aLayout leftFraction).
|
|
1860 |
(layoutAspects at:#topOffset) value:(aLayout topOffset).
|
|
1861 |
(layoutAspects at:#topFraction) value:(aLayout topFraction).
|
|
1862 |
(layoutAspects at:#rightOffset) value:(aLayout rightOffset).
|
|
1863 |
(layoutAspects at:#bottomOffset) value:(aLayout bottomOffset).
|
|
1864 |
(layoutAspects at:#rightFraction) value:(aLayout rightFraction).
|
|
1865 |
(layoutAspects at:#bottomFraction) value:(aLayout bottomFraction).
|
|
1866 |
!
|
59
|
1867 |
|
62
|
1868 |
fetchLayoutOrigin
|
|
1869 |
"fetch layoutOrigin
|
|
1870 |
"
|
64
|
1871 |
|extent aLayout leftFraction topFraction leftOffset topOffset|
|
59
|
1872 |
|
64
|
1873 |
extent := currentView extent.
|
62
|
1874 |
aLayout := currentView geometryLayout.
|
|
1875 |
|
64
|
1876 |
leftFraction := aLayout leftFraction.
|
|
1877 |
topFraction := aLayout topFraction.
|
|
1878 |
leftOffset := aLayout leftOffset.
|
|
1879 |
topOffset := aLayout topOffset.
|
|
1880 |
|
|
1881 |
(layoutAspects at:#leftOffset) value:leftOffset.
|
|
1882 |
(layoutAspects at:#leftFraction) value:leftFraction.
|
|
1883 |
(layoutAspects at:#topOffset) value:topOffset.
|
|
1884 |
(layoutAspects at:#topFraction) value:topFraction.
|
|
1885 |
|
|
1886 |
(layoutAspects at:#rightFraction) value:leftFraction.
|
|
1887 |
(layoutAspects at:#rightOffset) value:(leftOffset + extent x).
|
|
1888 |
(layoutAspects at:#bottomFraction) value:topFraction.
|
|
1889 |
(layoutAspects at:#bottomOffset) value:(topOffset + extent y).
|
|
1890 |
|
62
|
1891 |
!
|
59
|
1892 |
|
62
|
1893 |
fetchPoint
|
|
1894 |
"fetch point
|
|
1895 |
"
|
|
1896 |
|e x y p|
|
59
|
1897 |
|
62
|
1898 |
p := currentView geometryLayout.
|
|
1899 |
x := p x.
|
|
1900 |
y := p y.
|
64
|
1901 |
e := currentView computeExtent.
|
62
|
1902 |
|
|
1903 |
(layoutAspects at:#leftOffset) value:x.
|
|
1904 |
(layoutAspects at:#topOffset) value:y.
|
|
1905 |
(layoutAspects at:#rightOffset) value:(x + e x).
|
|
1906 |
(layoutAspects at:#bottomOffset) value:(y + e y).
|
59
|
1907 |
|
56
|
1908 |
!
|
|
1909 |
|
62
|
1910 |
fetchRectangle
|
|
1911 |
"fetch rectangle
|
|
1912 |
"
|
|
1913 |
|aRectangle|
|
|
1914 |
|
|
1915 |
aRectangle := currentView geometryLayout.
|
|
1916 |
|
|
1917 |
(layoutAspects at:#leftOffset) value:(aRectangle left).
|
|
1918 |
(layoutAspects at:#rightOffset) value:(aRectangle right).
|
|
1919 |
(layoutAspects at:#topOffset) value:(aRectangle top).
|
|
1920 |
(layoutAspects at:#bottomOffset) value:(aRectangle bottom).
|
|
1921 |
! !
|
|
1922 |
|
|
1923 |
!UIPropertyView methodsFor:'private layout write'!
|
|
1924 |
|
|
1925 |
writeAlignmentOrigin
|
|
1926 |
"write back as alignmentOrigin
|
|
1927 |
"
|
|
1928 |
|layout|
|
|
1929 |
|
|
1930 |
layout := AlignmentOrigin new.
|
|
1931 |
|
|
1932 |
layout leftOffset:((layoutAspects at:#leftOffset) value) ? 0.
|
|
1933 |
layout topOffset:((layoutAspects at:#topOffset) value) ? 0.
|
|
1934 |
layout leftFraction:((layoutAspects at:#leftFraction) value) ? 0.
|
|
1935 |
layout topFraction:((layoutAspects at:#topFraction) value) ? 0.
|
|
1936 |
|
|
1937 |
layout leftAlignmentFraction:((layoutAspects at:#leftAlignmentFraction) value) ? 0.
|
|
1938 |
layout topAlignmentFraction:((layoutAspects at:#topAlignmentFraction) value) ? 0.
|
|
1939 |
|
|
1940 |
builderView setDimension:layout.
|
59
|
1941 |
!
|
56
|
1942 |
|
62
|
1943 |
writeExtent
|
|
1944 |
|extent|
|
59
|
1945 |
|
62
|
1946 |
extent := Point x:(((layoutAspects at:#leftOffset) value) ? 0)
|
|
1947 |
y:(((layoutAspects at:#rightOffset) value) ? 0).
|
|
1948 |
|
|
1949 |
builderView setExtent:extent
|
56
|
1950 |
!
|
|
1951 |
|
62
|
1952 |
writeLayoutFrame
|
|
1953 |
"write back as layoutFrame
|
56
|
1954 |
"
|
62
|
1955 |
|layout|
|
56
|
1956 |
|
62
|
1957 |
layout := LayoutFrame new.
|
56
|
1958 |
|
62
|
1959 |
layout leftOffset:((layoutAspects at:#leftOffset) value) ? 0.
|
|
1960 |
layout rightOffset:((layoutAspects at:#rightOffset) value) ? 0.
|
|
1961 |
layout topOffset:((layoutAspects at:#topOffset) value) ? 0.
|
|
1962 |
layout bottomOffset:((layoutAspects at:#bottomOffset) value) ? 0.
|
|
1963 |
layout leftFraction:((layoutAspects at:#leftFraction) value) ? 0.
|
|
1964 |
layout rightFraction:((layoutAspects at:#rightFraction) value) ? 0.
|
|
1965 |
layout topFraction:((layoutAspects at:#topFraction) value) ? 0.
|
|
1966 |
layout bottomFraction:((layoutAspects at:#bottomFraction) value) ? 0.
|
56
|
1967 |
|
62
|
1968 |
builderView setDimension:layout
|
59
|
1969 |
!
|
|
1970 |
|
62
|
1971 |
writeLayoutOrigin
|
|
1972 |
"write back as layoutOrigin
|
|
1973 |
"
|
|
1974 |
|layout|
|
|
1975 |
|
|
1976 |
layout := LayoutOrigin new.
|
|
1977 |
|
|
1978 |
layout leftOffset:((layoutAspects at:#leftOffset) value) ? 0.
|
|
1979 |
layout topOffset:((layoutAspects at:#topOffset) value) ? 0.
|
|
1980 |
layout leftFraction:((layoutAspects at:#leftFraction) value) ? 0.
|
|
1981 |
layout topFraction:((layoutAspects at:#topFraction) value) ? 0.
|
|
1982 |
|
|
1983 |
builderView setDimension:layout.
|
|
1984 |
|
|
1985 |
!
|
59
|
1986 |
|
62
|
1987 |
writePoint
|
|
1988 |
"write back as point
|
|
1989 |
"
|
|
1990 |
|point|
|
|
1991 |
|
|
1992 |
point := Point x:(((layoutAspects at:#leftOffset) value) ? 0)
|
|
1993 |
y:(((layoutAspects at:#topOffset) value) ? 0).
|
|
1994 |
|
|
1995 |
builderView setDimension:point
|
|
1996 |
!
|
|
1997 |
|
|
1998 |
writeRectangle
|
|
1999 |
"write back as rectangle
|
|
2000 |
"
|
|
2001 |
|rectangle|
|
|
2002 |
|
|
2003 |
rectangle := Rectangle left:(((layoutAspects at:#leftOffset) value) ? 0)
|
|
2004 |
top:(((layoutAspects at:#topOffset) value) ? 0)
|
|
2005 |
right:(((layoutAspects at:#rightOffset) value) ? 0)
|
|
2006 |
bottom:(((layoutAspects at:#bottomOffset) value) ? 0).
|
|
2007 |
|
|
2008 |
builderView setDimension:rectangle
|
56
|
2009 |
! !
|
|
2010 |
|
|
2011 |
!UIPropertyView methodsFor:'private make layout'!
|
|
2012 |
|
|
2013 |
makeLayout:what xOrY:xOrY offset:aBool
|
|
2014 |
|layout extent fraction offset fractSymb offsetSymb|
|
|
2015 |
|
|
2016 |
currentView isNil ifTrue:[
|
|
2017 |
^ self
|
|
2018 |
].
|
|
2019 |
layout := currentView geometryLayout.
|
|
2020 |
|
|
2021 |
layout isLayout ifFalse:[
|
|
2022 |
^ self
|
|
2023 |
].
|
|
2024 |
fractSymb := (what, 'Fraction') asSymbol.
|
|
2025 |
offsetSymb := (what, 'Offset') asSymbol.
|
|
2026 |
|
|
2027 |
( (layout respondsTo:fractSymb)
|
|
2028 |
and:[layout respondsTo:offsetSymb]
|
|
2029 |
) ifTrue:[
|
|
2030 |
|
|
2031 |
fraction := layout perform:fractSymb.
|
|
2032 |
offset := layout perform:offsetSymb.
|
|
2033 |
extent := (currentView superView computeExtent) perform:xOrY.
|
|
2034 |
|
|
2035 |
aBool ifTrue:[
|
|
2036 |
offset := offset + ((fraction * extent) asInteger).
|
62
|
2037 |
(layoutAspects at:offsetSymb) value:offset.
|
|
2038 |
(layoutAspects at:fractSymb) value:0.
|
56
|
2039 |
] ifFalse:[
|
|
2040 |
fraction := (fraction + (offset / extent)) asFloat.
|
|
2041 |
|
|
2042 |
(fraction > 1.0) ifTrue:[ fraction := 1.0 ].
|
|
2043 |
(fraction < 0.0) ifTrue:[ fraction := 0.0 ].
|
|
2044 |
|
62
|
2045 |
(layoutAspects at:offsetSymb) value:0.
|
|
2046 |
(layoutAspects at:fractSymb) value:fraction.
|
56
|
2047 |
]
|
|
2048 |
]
|
|
2049 |
|
|
2050 |
|
|
2051 |
!
|
|
2052 |
|
|
2053 |
makeOffsetAll
|
|
2054 |
self makeOffsetLeft.
|
|
2055 |
self makeOffsetTop.
|
|
2056 |
self makeOffsetRight.
|
|
2057 |
self makeOffsetBottom.
|
|
2058 |
|
|
2059 |
!
|
|
2060 |
|
|
2061 |
makeOffsetBottom
|
|
2062 |
self makeLayout:'bottom' xOrY:#y offset:true.
|
|
2063 |
|
|
2064 |
!
|
|
2065 |
|
|
2066 |
makeOffsetLeft
|
|
2067 |
self makeLayout:'left' xOrY:#x offset:true.
|
|
2068 |
|
|
2069 |
!
|
|
2070 |
|
62
|
2071 |
makeOffsetLeftTop
|
|
2072 |
self makeOffsetLeft.
|
|
2073 |
self makeOffsetTop.
|
|
2074 |
!
|
|
2075 |
|
56
|
2076 |
makeOffsetRight
|
|
2077 |
self makeLayout:'right' xOrY:#x offset:true.
|
|
2078 |
|
|
2079 |
!
|
|
2080 |
|
|
2081 |
makeOffsetTop
|
|
2082 |
self makeLayout:'top' xOrY:#y offset:true.
|
|
2083 |
|
|
2084 |
!
|
|
2085 |
|
|
2086 |
makeRelativeAll
|
|
2087 |
self makeRelativeLeft.
|
|
2088 |
self makeRelativeTop.
|
|
2089 |
self makeRelativeRight.
|
|
2090 |
self makeRelativeBottom.
|
|
2091 |
|
|
2092 |
!
|
|
2093 |
|
|
2094 |
makeRelativeBottom
|
|
2095 |
self makeLayout:'bottom' xOrY:#y offset:false.
|
|
2096 |
|
|
2097 |
!
|
|
2098 |
|
|
2099 |
makeRelativeLeft
|
|
2100 |
self makeLayout:'left' xOrY:#x offset:false.
|
|
2101 |
|
|
2102 |
!
|
|
2103 |
|
62
|
2104 |
makeRelativeLeftTop
|
|
2105 |
self makeRelativeLeft.
|
|
2106 |
self makeRelativeTop.
|
|
2107 |
!
|
|
2108 |
|
56
|
2109 |
makeRelativeRight
|
|
2110 |
self makeLayout:'right' xOrY:#x offset:false.
|
|
2111 |
|
|
2112 |
!
|
|
2113 |
|
|
2114 |
makeRelativeTop
|
|
2115 |
self makeLayout:'top' xOrY:#y offset:false.
|
|
2116 |
|
|
2117 |
! !
|
|
2118 |
|
59
|
2119 |
!UIPropertyView methodsFor:'queries'!
|
|
2120 |
|
|
2121 |
isLayoutSpec
|
62
|
2122 |
"returns true if current menu is a layout specification
|
59
|
2123 |
"
|
|
2124 |
^ propertyList selection == self class titleOfLayoutMenu
|
|
2125 |
! !
|
|
2126 |
|
56
|
2127 |
!UIPropertyView class methodsFor:'documentation'!
|
|
2128 |
|
|
2129 |
version
|
|
2130 |
^ '$Header$'
|
|
2131 |
! !
|