author | Claus Gittinger <cg@exept.de> |
Tue, 18 Mar 1997 10:58:13 +0100 | |
changeset 88 | d6dccf1ad344 |
parent 85 | 23e9aebcbe35 |
child 90 | c18809a425d0 |
permissions | -rw-r--r-- |
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. |
85
23e9aebcbe35
spec derived from specBeingEdited; no longer from currentView
ca
parents:
83
diff
changeset
|
1253 |
slices := specBeingEdited class 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 |
" |
85
23e9aebcbe35
spec derived from specBeingEdited; no longer from currentView
ca
parents:
83
diff
changeset
|
1288 |
|plist specClass| |
56 | 1289 |
|
74 | 1290 |
self modified:false. |
85
23e9aebcbe35
spec derived from specBeingEdited; no longer from currentView
ca
parents:
83
diff
changeset
|
1291 |
|
23e9aebcbe35
spec derived from specBeingEdited; no longer from currentView
ca
parents:
83
diff
changeset
|
1292 |
specClass := specBeingEdited class. |
23e9aebcbe35
spec derived from specBeingEdited; no longer from currentView
ca
parents:
83
diff
changeset
|
1293 |
plist := self propertyList. |
74 | 1294 |
|
1295 |
(plist selection isNil) ifTrue:[ |
|
56 | 1296 |
^ self showSpec:nil |
1297 |
]. |
|
74 | 1298 |
propertySelection := plist selection. |
56 | 1299 |
|
85
23e9aebcbe35
spec derived from specBeingEdited; no longer from currentView
ca
parents:
83
diff
changeset
|
1300 |
specClass slices do:[:slice| |
74 | 1301 |
slice first = propertySelection ifTrue:[ |
85
23e9aebcbe35
spec derived from specBeingEdited; no longer from currentView
ca
parents:
83
diff
changeset
|
1302 |
^ self showSpec:(specClass perform:(slice last)) |
56 | 1303 |
] |
1304 |
]. |
|
74 | 1305 |
^ self showAndFetchLayout "/ layout specifications |
56 | 1306 |
! |
1307 |
||
74 | 1308 |
update:something with:someArgument from:someone |
62 | 1309 |
"any attribute changed its state in the current specification |
1310 |
" |
|
59 | 1311 |
self modified:true |
74 | 1312 |
|
1313 |
||
56 | 1314 |
! ! |
1315 |
||
1316 |
!UIPropertyView methodsFor:'initialization'! |
|
1317 |
||
62 | 1318 |
in:aTopView builder:aBuilderView |
1319 |
"setup property view in topview and that the builder view |
|
1320 |
" |
|
74 | 1321 |
|menu y cancelButton applyButton panel propertyFrame propertyList| |
56 | 1322 |
|
1323 |
super initialize. |
|
62 | 1324 |
self initializeLayoutAspects. |
56 | 1325 |
|
59 | 1326 |
builderView := aBuilderView. |
56 | 1327 |
|
1328 |
menu := PopUpList label:'properties' in:aTopView. |
|
1329 |
menu defaultLabel:'properties'. |
|
1330 |
propertyFrame := View in:aTopView. |
|
1331 |
panel := HorizontalPanelView in:aTopView. |
|
74 | 1332 |
panel horizontalLayout:#fitSpace. |
56 | 1333 |
|
1334 |
cancelButton := Button abortButtonIn:panel. |
|
1335 |
applyButton := Button okButtonIn:panel. |
|
1336 |
||
1337 |
propertyList := SelectionInList new. |
|
1338 |
propertyList list:#( ). |
|
59 | 1339 |
propertyList selectionIndexHolder onChangeSend:#propertySelectionChanged |
1340 |
to:self. |
|
56 | 1341 |
menu model:propertyList. |
1342 |
||
1343 |
y := menu preferredExtent y. |
|
1344 |
menu origin:0.0@0.0 corner:1.0@y. |
|
1345 |
propertyFrame origin:0.0@y corner:1.0@1.0. |
|
1346 |
panel origin:0.0@1.0 corner:1.0@1.0. |
|
1347 |
||
1348 |
y := panel preferredExtent y. |
|
1349 |
propertyFrame bottomInset:y. |
|
1350 |
panel topInset:(y negated). |
|
1351 |
||
74 | 1352 |
builder componentAt:#propertyFrame put:propertyFrame. |
1353 |
builder componentAt:#cancelButton put:cancelButton. |
|
1354 |
builder componentAt:#applyButton put:applyButton. |
|
1355 |
builder componentAt:#propertyList put:propertyList. |
|
56 | 1356 |
|
1357 |
cancelButton action:[ self cancel ]. |
|
59 | 1358 |
applyButton action:[ self apply ]. |
56 | 1359 |
|
1360 |
modified := true. |
|
1361 |
self modified:false. |
|
59 | 1362 |
! |
1363 |
||
62 | 1364 |
initializeLayoutAspects |
1365 |
"initialize all layout aspects |
|
1366 |
" |
|
1367 |
layoutAspects := IdentityDictionary new. |
|
59 | 1368 |
|
1369 |
#( bottomFraction bottomOffset |
|
1370 |
leftFraction leftOffset |
|
1371 |
topFraction topOffset |
|
1372 |
rightFraction rightOffset |
|
1373 |
leftAlignmentFraction topAlignmentFraction |
|
66 | 1374 |
absLeft absTop |
59 | 1375 |
) |
1376 |
do:[:aChannel| |
|
62 | 1377 |
layoutAspects at:aChannel put:(ValueHolder new). |
59 | 1378 |
]. |
1379 |
||
62 | 1380 |
layoutAspects do:[:anAspect | anAspect addDependent:self ]. |
59 | 1381 |
|
62 | 1382 |
layoutAspects at:#layoutType put:( |
1383 |
AspectAdaptor new |
|
1384 |
subject:self; |
|
1385 |
accessWith:#layoutType |
|
1386 |
assignWith:#layoutType: |
|
1387 |
). |
|
66 | 1388 |
|
1389 |
"Modified: 28.2.1997 / 12:57:51 / cg" |
|
56 | 1390 |
! ! |
1391 |
||
74 | 1392 |
!UIPropertyView methodsFor:'layout'! |
56 | 1393 |
|
62 | 1394 |
layoutType |
1395 |
^ layoutType |
|
1396 |
! |
|
59 | 1397 |
|
62 | 1398 |
layoutType:something |
1399 |
|spec| |
|
56 | 1400 |
|
62 | 1401 |
layoutType ~~ something ifTrue:[ |
1402 |
layoutType := something. |
|
56 | 1403 |
|
62 | 1404 |
layoutType notNil ifTrue:[ |
1405 |
self modified:true. |
|
70 | 1406 |
self perform:(('fetch', layoutType asString) asSymbol). |
62 | 1407 |
spec := ('specification', layoutType asString) asSymbol. |
1408 |
spec := self class perform:spec. |
|
1409 |
]. |
|
66 | 1410 |
self showSpec:spec. |
1411 |
self changed:#layoutType. |
|
62 | 1412 |
]. |
1413 |
! |
|
56 | 1414 |
|
62 | 1415 |
layoutTypeList |
1416 |
^ #( #LayoutFrame #AlignmentOrigin #LayoutOrigin #Point #Rectangle ) |
|
56 | 1417 |
|
1418 |
! |
|
1419 |
||
62 | 1420 |
showAndFetchLayout |
1421 |
"fetch and show layout specification assigned to current view |
|
1422 |
" |
|
70 | 1423 |
|type spec| |
59 | 1424 |
|
62 | 1425 |
self modified:false. |
1426 |
modified := true. |
|
74 | 1427 |
type := builderView class layoutType:currentView. |
62 | 1428 |
|
74 | 1429 |
type notNil ifTrue:[ |
1430 |
self perform:(('fetch', type asString) asSymbol). |
|
1431 |
spec := self class perform:(('specification', type asString) asSymbol). |
|
59 | 1432 |
]. |
70 | 1433 |
|
1434 |
type ~~ layoutType ifTrue:[ |
|
1435 |
layoutType := type. |
|
1436 |
self changed:#layoutType |
|
1437 |
]. |
|
1438 |
self showSpec:spec. |
|
62 | 1439 |
modified := false. |
59 | 1440 |
|
64 | 1441 |
! |
1442 |
||
1443 |
updateLayout |
|
1444 |
"layout changed but not selection |
|
1445 |
" |
|
74 | 1446 |
(modified not and:[self isLayoutSpec]) ifTrue:[ |
64 | 1447 |
(builderView class layoutType:currentView) == layoutType ifTrue:[ |
1448 |
modified := true. |
|
1449 |
self perform:(('fetch', layoutType asString) asSymbol). |
|
1450 |
modified := false. |
|
1451 |
] ifFalse:[ |
|
1452 |
self showAndFetchLayout |
|
1453 |
] |
|
1454 |
] |
|
62 | 1455 |
! ! |
1456 |
||
74 | 1457 |
!UIPropertyView methodsFor:'layout fetch/write'! |
62 | 1458 |
|
1459 |
fetchAlignmentOrigin |
|
1460 |
"fetch alignmentOrigin |
|
1461 |
" |
|
70 | 1462 |
|layout type extent| |
1463 |
||
1464 |
type := builderView class layoutType:currentView. |
|
1465 |
layout := currentView geometryLayout. |
|
62 | 1466 |
|
70 | 1467 |
layout isLayout ifTrue:[ |
1468 |
(layoutAspects at:#leftOffset) value:(layout leftOffset). |
|
1469 |
(layoutAspects at:#leftFraction) value:(layout leftFraction). |
|
1470 |
(layoutAspects at:#topOffset) value:(layout topOffset). |
|
1471 |
(layoutAspects at:#topFraction) value:(layout topFraction). |
|
59 | 1472 |
|
70 | 1473 |
type == #AlignmentOrigin ifTrue:[ |
1474 |
(layoutAspects at:#leftAlignmentFraction) value:(layout leftAlignmentFraction). |
|
1475 |
(layoutAspects at:#topAlignmentFraction) value:(layout topAlignmentFraction). |
|
1476 |
^ self |
|
1477 |
] |
|
1478 |
] ifFalse:[ |
|
1479 |
layout := currentView computeOrigin. |
|
64 | 1480 |
|
70 | 1481 |
(layoutAspects at:#leftOffset) value:(layout x). |
1482 |
(layoutAspects at:#leftFraction) value:0. |
|
1483 |
(layoutAspects at:#topOffset) value:(layout y). |
|
1484 |
(layoutAspects at:#topFraction) value:0. |
|
1485 |
]. |
|
1486 |
(layoutAspects at:#leftAlignmentFraction) value:0. |
|
1487 |
(layoutAspects at:#topAlignmentFraction) value:0. |
|
1488 |
||
1489 |
||
62 | 1490 |
! |
1491 |
||
1492 |
fetchExtent |
|
1493 |
|extent| |
|
59 | 1494 |
|
70 | 1495 |
extent := currentView computeExtent. |
62 | 1496 |
(layoutAspects at:#leftOffset) value:(extent x). |
1497 |
(layoutAspects at:#rightOffset) value:(extent y). |
|
1498 |
! |
|
1499 |
||
1500 |
fetchLayoutFrame |
|
1501 |
"fetch layoutFrame |
|
1502 |
" |
|
70 | 1503 |
|layout| |
59 | 1504 |
|
70 | 1505 |
layout := builderView class asLayoutFrameFromView:currentView. |
59 | 1506 |
|
70 | 1507 |
(layoutAspects at:#leftOffset) value:(layout leftOffset). |
1508 |
(layoutAspects at:#leftFraction) value:(layout leftFraction). |
|
1509 |
(layoutAspects at:#topOffset) value:(layout topOffset). |
|
1510 |
(layoutAspects at:#topFraction) value:(layout topFraction). |
|
1511 |
(layoutAspects at:#rightOffset) value:(layout rightOffset). |
|
1512 |
(layoutAspects at:#bottomOffset) value:(layout bottomOffset). |
|
1513 |
(layoutAspects at:#rightFraction) value:(layout rightFraction). |
|
1514 |
(layoutAspects at:#bottomFraction) value:(layout bottomFraction). |
|
62 | 1515 |
! |
59 | 1516 |
|
62 | 1517 |
fetchLayoutOrigin |
1518 |
"fetch layoutOrigin |
|
1519 |
" |
|
70 | 1520 |
|layout| |
59 | 1521 |
|
70 | 1522 |
layout := builderView class asLayoutFrameFromView:currentView. |
62 | 1523 |
|
70 | 1524 |
(layoutAspects at:#leftOffset) value:(layout leftOffset). |
1525 |
(layoutAspects at:#leftFraction) value:(layout leftFraction). |
|
1526 |
(layoutAspects at:#topOffset) value:(layout topOffset). |
|
1527 |
(layoutAspects at:#topFraction) value:(layout topFraction). |
|
64 | 1528 |
|
62 | 1529 |
! |
59 | 1530 |
|
62 | 1531 |
fetchPoint |
1532 |
"fetch point |
|
1533 |
" |
|
70 | 1534 |
|origin| |
62 | 1535 |
|
70 | 1536 |
origin := currentView computeOrigin. |
1537 |
(layoutAspects at:#absLeft) value:(origin x). |
|
1538 |
(layoutAspects at:#absTop) value:(origin y). |
|
56 | 1539 |
! |
1540 |
||
62 | 1541 |
fetchRectangle |
1542 |
"fetch rectangle |
|
1543 |
" |
|
70 | 1544 |
|origin corner| |
62 | 1545 |
|
70 | 1546 |
origin := currentView computeOrigin. |
1547 |
corner := currentView computeCorner. |
|
66 | 1548 |
|
70 | 1549 |
(layoutAspects at:#leftOffset) value:(origin x). |
1550 |
(layoutAspects at:#rightOffset) value:(corner x). |
|
1551 |
(layoutAspects at:#topOffset) value:(origin y). |
|
1552 |
(layoutAspects at:#bottomOffset) value:(corner y). |
|
74 | 1553 |
! |
62 | 1554 |
|
1555 |
writeAlignmentOrigin |
|
1556 |
"write back as alignmentOrigin |
|
1557 |
" |
|
1558 |
|layout| |
|
1559 |
||
1560 |
layout := AlignmentOrigin new. |
|
1561 |
||
1562 |
layout leftOffset:((layoutAspects at:#leftOffset) value) ? 0. |
|
1563 |
layout topOffset:((layoutAspects at:#topOffset) value) ? 0. |
|
1564 |
layout leftFraction:((layoutAspects at:#leftFraction) value) ? 0. |
|
1565 |
layout topFraction:((layoutAspects at:#topFraction) value) ? 0. |
|
1566 |
||
1567 |
layout leftAlignmentFraction:((layoutAspects at:#leftAlignmentFraction) value) ? 0. |
|
1568 |
layout topAlignmentFraction:((layoutAspects at:#topAlignmentFraction) value) ? 0. |
|
1569 |
||
1570 |
builderView setDimension:layout. |
|
59 | 1571 |
! |
56 | 1572 |
|
62 | 1573 |
writeExtent |
1574 |
|extent| |
|
59 | 1575 |
|
62 | 1576 |
extent := Point x:(((layoutAspects at:#leftOffset) value) ? 0) |
1577 |
y:(((layoutAspects at:#rightOffset) value) ? 0). |
|
1578 |
||
1579 |
builderView setExtent:extent |
|
56 | 1580 |
! |
1581 |
||
62 | 1582 |
writeLayoutFrame |
1583 |
"write back as layoutFrame |
|
56 | 1584 |
" |
62 | 1585 |
|layout| |
56 | 1586 |
|
62 | 1587 |
layout := LayoutFrame new. |
56 | 1588 |
|
62 | 1589 |
layout leftOffset:((layoutAspects at:#leftOffset) value) ? 0. |
1590 |
layout rightOffset:((layoutAspects at:#rightOffset) value) ? 0. |
|
1591 |
layout topOffset:((layoutAspects at:#topOffset) value) ? 0. |
|
1592 |
layout bottomOffset:((layoutAspects at:#bottomOffset) value) ? 0. |
|
1593 |
layout leftFraction:((layoutAspects at:#leftFraction) value) ? 0. |
|
1594 |
layout rightFraction:((layoutAspects at:#rightFraction) value) ? 0. |
|
1595 |
layout topFraction:((layoutAspects at:#topFraction) value) ? 0. |
|
1596 |
layout bottomFraction:((layoutAspects at:#bottomFraction) value) ? 0. |
|
56 | 1597 |
|
62 | 1598 |
builderView setDimension:layout |
59 | 1599 |
! |
1600 |
||
62 | 1601 |
writeLayoutOrigin |
1602 |
"write back as layoutOrigin |
|
1603 |
" |
|
1604 |
|layout| |
|
1605 |
||
1606 |
layout := LayoutOrigin new. |
|
1607 |
||
1608 |
layout leftOffset:((layoutAspects at:#leftOffset) value) ? 0. |
|
1609 |
layout topOffset:((layoutAspects at:#topOffset) value) ? 0. |
|
1610 |
layout leftFraction:((layoutAspects at:#leftFraction) value) ? 0. |
|
1611 |
layout topFraction:((layoutAspects at:#topFraction) value) ? 0. |
|
1612 |
||
1613 |
builderView setDimension:layout. |
|
1614 |
||
1615 |
! |
|
59 | 1616 |
|
62 | 1617 |
writePoint |
1618 |
"write back as point |
|
1619 |
" |
|
1620 |
|point| |
|
1621 |
||
66 | 1622 |
"/ point := Point x:(((layoutAspects at:#leftOffset) value) ? 0) |
1623 |
"/ y:(((layoutAspects at:#topOffset) value) ? 0). |
|
1624 |
||
1625 |
point := Point x:(((layoutAspects at:#absLeft) value) ? 0) |
|
1626 |
y:(((layoutAspects at:#absTop) value) ? 0). |
|
62 | 1627 |
|
1628 |
builderView setDimension:point |
|
66 | 1629 |
|
1630 |
"Modified: 28.2.1997 / 13:00:03 / cg" |
|
62 | 1631 |
! |
1632 |
||
1633 |
writeRectangle |
|
1634 |
"write back as rectangle |
|
1635 |
" |
|
1636 |
|rectangle| |
|
1637 |
||
1638 |
rectangle := Rectangle left:(((layoutAspects at:#leftOffset) value) ? 0) |
|
1639 |
top:(((layoutAspects at:#topOffset) value) ? 0) |
|
1640 |
right:(((layoutAspects at:#rightOffset) value) ? 0) |
|
1641 |
bottom:(((layoutAspects at:#bottomOffset) value) ? 0). |
|
1642 |
||
1643 |
builderView setDimension:rectangle |
|
56 | 1644 |
! ! |
1645 |
||
74 | 1646 |
!UIPropertyView methodsFor:'layout relative/absolut'! |
56 | 1647 |
|
68 | 1648 |
makeAlignBottomCenter |
1649 |
self makeAlignLeft:0.5 top:1 |
|
1650 |
||
1651 |
! |
|
1652 |
||
1653 |
makeAlignBottomLeft |
|
1654 |
self makeAlignLeft:0 top:1 |
|
1655 |
||
1656 |
! |
|
1657 |
||
1658 |
makeAlignBottomRight |
|
1659 |
self makeAlignLeft:1 top:1 |
|
1660 |
||
1661 |
! |
|
1662 |
||
1663 |
makeAlignCenter |
|
1664 |
self makeAlignLeft:0.5 top:0.5 |
|
1665 |
||
1666 |
! |
|
1667 |
||
70 | 1668 |
makeAlignLeft:leftAlignmentFraction top:topAlignmentFraction |
1669 |
|lAF tAF lO tO ext| |
|
68 | 1670 |
|
70 | 1671 |
lAF := (layoutAspects at:#leftAlignmentFraction) value ? 0. |
1672 |
tAF := (layoutAspects at:#topAlignmentFraction) value ? 0. |
|
1673 |
ext := currentView computeExtent. |
|
68 | 1674 |
|
70 | 1675 |
(layoutAspects at:#leftAlignmentFraction) value:leftAlignmentFraction. |
1676 |
(layoutAspects at:#topAlignmentFraction) value:topAlignmentFraction. |
|
1677 |
||
1678 |
lO := (layoutAspects at:#leftOffset) value ? 0. |
|
1679 |
tO := (layoutAspects at:#topOffset) value ? 0. |
|
68 | 1680 |
|
70 | 1681 |
lO := lO + (ext x * (leftAlignmentFraction - lAF)). |
1682 |
tO := tO + (ext y * (topAlignmentFraction - tAF)). |
|
68 | 1683 |
|
70 | 1684 |
(layoutAspects at:#leftOffset) value:(lO rounded). |
1685 |
(layoutAspects at:#topOffset) value:(tO rounded). |
|
68 | 1686 |
! |
1687 |
||
1688 |
makeAlignLeftCenter |
|
1689 |
self makeAlignLeft:0 top:0.5 |
|
1690 |
||
1691 |
! |
|
1692 |
||
1693 |
makeAlignRightCenter |
|
1694 |
self makeAlignLeft:1 top:0.5 |
|
1695 |
||
1696 |
! |
|
1697 |
||
1698 |
makeAlignTopCenter |
|
1699 |
self makeAlignLeft:0.5 top:0 |
|
1700 |
||
1701 |
! |
|
1702 |
||
1703 |
makeAlignTopLeft |
|
1704 |
self makeAlignLeft:0 top:0 |
|
1705 |
||
1706 |
! |
|
1707 |
||
1708 |
makeAlignTopRight |
|
1709 |
self makeAlignLeft:1 top:0 |
|
1710 |
||
1711 |
! |
|
1712 |
||
56 | 1713 |
makeLayout:what xOrY:xOrY offset:aBool |
70 | 1714 |
|extent fraction offset fractSymb offsetSymb| |
56 | 1715 |
|
70 | 1716 |
extent := (currentView superView computeExtent) perform:xOrY. |
56 | 1717 |
fractSymb := (what, 'Fraction') asSymbol. |
1718 |
offsetSymb := (what, 'Offset') asSymbol. |
|
1719 |
||
70 | 1720 |
fraction := (layoutAspects at:fractSymb) value. |
1721 |
offset := (layoutAspects at:offsetSymb) value. |
|
56 | 1722 |
|
70 | 1723 |
aBool ifTrue:[ |
1724 |
offset := offset + ((fraction * extent) asInteger). |
|
1725 |
fraction := 0. |
|
1726 |
] ifFalse:[ |
|
1727 |
fraction := (fraction + (offset / extent)) asFloat. |
|
56 | 1728 |
|
70 | 1729 |
(fraction > 1.0) ifTrue:[ fraction := 1.0 ]. |
1730 |
(fraction < 0.0) ifTrue:[ fraction := 0 ]. |
|
1731 |
offset := 0. |
|
1732 |
]. |
|
1733 |
(layoutAspects at:offsetSymb) value:offset. |
|
1734 |
(layoutAspects at:fractSymb) value:fraction. |
|
56 | 1735 |
|
1736 |
||
1737 |
! |
|
1738 |
||
1739 |
makeOffsetAll |
|
1740 |
self makeOffsetLeft. |
|
1741 |
self makeOffsetTop. |
|
1742 |
self makeOffsetRight. |
|
1743 |
self makeOffsetBottom. |
|
1744 |
||
1745 |
! |
|
1746 |
||
1747 |
makeOffsetBottom |
|
1748 |
self makeLayout:'bottom' xOrY:#y offset:true. |
|
1749 |
||
1750 |
! |
|
1751 |
||
1752 |
makeOffsetLeft |
|
1753 |
self makeLayout:'left' xOrY:#x offset:true. |
|
1754 |
||
1755 |
! |
|
1756 |
||
62 | 1757 |
makeOffsetLeftTop |
1758 |
self makeOffsetLeft. |
|
1759 |
self makeOffsetTop. |
|
1760 |
! |
|
1761 |
||
56 | 1762 |
makeOffsetRight |
1763 |
self makeLayout:'right' xOrY:#x offset:true. |
|
1764 |
||
1765 |
! |
|
1766 |
||
1767 |
makeOffsetTop |
|
1768 |
self makeLayout:'top' xOrY:#y offset:true. |
|
1769 |
||
1770 |
! |
|
1771 |
||
1772 |
makeRelativeAll |
|
1773 |
self makeRelativeLeft. |
|
1774 |
self makeRelativeTop. |
|
1775 |
self makeRelativeRight. |
|
1776 |
self makeRelativeBottom. |
|
1777 |
||
1778 |
! |
|
1779 |
||
1780 |
makeRelativeBottom |
|
1781 |
self makeLayout:'bottom' xOrY:#y offset:false. |
|
1782 |
||
1783 |
! |
|
1784 |
||
1785 |
makeRelativeLeft |
|
1786 |
self makeLayout:'left' xOrY:#x offset:false. |
|
1787 |
||
1788 |
! |
|
1789 |
||
62 | 1790 |
makeRelativeLeftTop |
1791 |
self makeRelativeLeft. |
|
1792 |
self makeRelativeTop. |
|
1793 |
! |
|
1794 |
||
56 | 1795 |
makeRelativeRight |
1796 |
self makeLayout:'right' xOrY:#x offset:false. |
|
1797 |
||
1798 |
! |
|
1799 |
||
1800 |
makeRelativeTop |
|
1801 |
self makeLayout:'top' xOrY:#y offset:false. |
|
1802 |
||
1803 |
! ! |
|
1804 |
||
74 | 1805 |
!UIPropertyView methodsFor:'private'! |
1806 |
||
1807 |
apply |
|
1808 |
"apply current changes and write back to current view |
|
1809 |
" |
|
1810 |
modified ifTrue:[ |
|
1811 |
self modified:false. |
|
1812 |
||
1813 |
self isSingleSelection ifTrue:[ |
|
1814 |
self isLayoutSpec ifFalse:[ |
|
1815 |
builderView updateFromSpec:specBeingEdited |
|
1816 |
] ifTrue:[ |
|
1817 |
layoutType notNil ifTrue:[ |
|
1818 |
self perform:(('write', layoutType asString) asSymbol) |
|
1819 |
] |
|
1820 |
] |
|
1821 |
] |
|
1822 |
] |
|
1823 |
||
1824 |
! |
|
1825 |
||
1826 |
aspectFor:aKey |
|
1827 |
"returns aspect for a key |
|
1828 |
" |
|
1829 |
|aspect| |
|
1830 |
||
1831 |
propertyAspects notNil ifTrue:[ |
|
1832 |
aspect := propertyAspects at:aKey ifAbsent:nil. |
|
1833 |
aspect notNil ifTrue:[ |
|
1834 |
^ aspect |
|
1835 |
] |
|
1836 |
]. |
|
1837 |
||
1838 |
^ layoutAspects at:aKey ifAbsent:[super aspectFor:aKey] |
|
1839 |
! |
|
1840 |
||
1841 |
cancel |
|
1842 |
"cancel all changes and read back attributes from current view |
|
1843 |
" |
|
1844 |
modified ifTrue:[ |
|
78 | 1845 |
specBeingEdited := builderView specFor:currentView. |
74 | 1846 |
self reload |
1847 |
]. |
|
1848 |
! |
|
1849 |
||
1850 |
propertyList |
|
1851 |
"returns property list |
|
1852 |
" |
|
1853 |
^ builder componentAt:#propertyList |
|
1854 |
! |
|
1855 |
||
1856 |
propertyList:aList |
|
1857 |
"property list changed |
|
1858 |
" |
|
1859 |
|sel list plist| |
|
1860 |
||
1861 |
aList notNil ifTrue:[ |
|
1862 |
sel := propertySelection. |
|
1863 |
list := aList |
|
1864 |
] ifFalse:[ |
|
1865 |
list := #() |
|
1866 |
]. |
|
1867 |
||
1868 |
plist := self propertyList. |
|
1869 |
plist list:list. |
|
1870 |
plist selection:sel. |
|
1871 |
self modified:false. |
|
1872 |
||
1873 |
! |
|
1874 |
||
1875 |
reload |
|
1876 |
"relaod all attributes from current specification and update values |
|
1877 |
" |
|
1878 |
self modified:false. |
|
1879 |
||
1880 |
self isSingleSelection ifTrue:[ |
|
1881 |
modified := true. "/ disable notifications" |
|
1882 |
specChannel value:specBeingEdited. |
|
1883 |
||
1884 |
self isLayoutSpec ifTrue:[ |
|
1885 |
self showAndFetchLayout. |
|
1886 |
]. |
|
1887 |
modified := false. "/ enable notifications |
|
1888 |
]. |
|
1889 |
||
1890 |
! |
|
1891 |
||
1892 |
showSpec:aSpec |
|
1893 |
"switch to specification |
|
1894 |
" |
|
1895 |
|frame| |
|
1896 |
||
1897 |
shownSpec ~= aSpec ifTrue:[ |
|
1898 |
frame := builder componentAt:#propertyFrame. |
|
1899 |
frame destroySubViews. |
|
1900 |
||
1901 |
aSpec notNil ifTrue:[ |
|
1902 |
builder buildFromSpec:aSpec in:frame. |
|
1903 |
frame realizeAllSubViews |
|
1904 |
] |
|
1905 |
]. |
|
1906 |
shownSpec := aSpec. |
|
1907 |
! ! |
|
1908 |
||
59 | 1909 |
!UIPropertyView methodsFor:'queries'! |
1910 |
||
1911 |
isLayoutSpec |
|
62 | 1912 |
"returns true if current menu is a layout specification |
59 | 1913 |
" |
74 | 1914 |
|selection| |
1915 |
||
1916 |
self isSingleSelection ifTrue:[ |
|
1917 |
^ propertySelection == self class titleOfLayoutMenu |
|
1918 |
]. |
|
1919 |
^ false |
|
72 | 1920 |
! |
1921 |
||
1922 |
isMultiSelection |
|
1923 |
"returns true in case of a multiple selection |
|
1924 |
" |
|
74 | 1925 |
^ (currentView isNil and:[builderView numberOfSelections > 1]) |
72 | 1926 |
! |
1927 |
||
1928 |
isSingleSelection |
|
1929 |
"returns true in case of a single selection |
|
1930 |
" |
|
1931 |
^ currentView notNil |
|
59 | 1932 |
! ! |
1933 |
||
56 | 1934 |
!UIPropertyView class methodsFor:'documentation'! |
1935 |
||
1936 |
version |
|
1937 |
^ '$Header$' |
|
1938 |
! ! |