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