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