163
|
1 |
"
|
|
2 |
COPYRIGHT (c) 1995 by eXept Software AG
|
|
3 |
All Rights Reserved
|
|
4 |
|
|
5 |
This software is furnished under a license and may be used
|
|
6 |
only in accordance with the terms of that license and with the
|
|
7 |
inclusion of the above copyright notice. This software may not
|
|
8 |
be provided or otherwise made available to, or used by, any
|
|
9 |
other person. No title to or ownership of the software is
|
|
10 |
hereby transferred.
|
|
11 |
"
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
ApplicationModel subclass:#UILayoutTool
|
221
|
17 |
instanceVariableNames:'modifiedHolder aspects selection layoutView tabList'
|
163
|
18 |
classVariableNames:''
|
|
19 |
poolDictionaries:''
|
|
20 |
category:'Interface-UIPainter'
|
|
21 |
!
|
|
22 |
|
184
|
23 |
ApplicationModel subclass:#AlignmentOrigin
|
163
|
24 |
instanceVariableNames:''
|
|
25 |
classVariableNames:''
|
|
26 |
poolDictionaries:''
|
|
27 |
privateIn:UILayoutTool
|
|
28 |
!
|
|
29 |
|
184
|
30 |
ApplicationModel subclass:#Extent
|
|
31 |
instanceVariableNames:''
|
|
32 |
classVariableNames:''
|
|
33 |
poolDictionaries:''
|
|
34 |
privateIn:UILayoutTool
|
|
35 |
!
|
|
36 |
|
|
37 |
ApplicationModel subclass:#LayoutFrame
|
|
38 |
instanceVariableNames:''
|
|
39 |
classVariableNames:''
|
|
40 |
poolDictionaries:''
|
|
41 |
privateIn:UILayoutTool
|
|
42 |
!
|
|
43 |
|
|
44 |
ApplicationModel subclass:#LayoutOrigin
|
163
|
45 |
instanceVariableNames:''
|
|
46 |
classVariableNames:''
|
|
47 |
poolDictionaries:''
|
|
48 |
privateIn:UILayoutTool
|
|
49 |
!
|
|
50 |
|
|
51 |
ApplicationModel subclass:#Point
|
|
52 |
instanceVariableNames:''
|
|
53 |
classVariableNames:''
|
|
54 |
poolDictionaries:''
|
|
55 |
privateIn:UILayoutTool
|
|
56 |
!
|
|
57 |
|
184
|
58 |
ApplicationModel subclass:#Rectangle
|
163
|
59 |
instanceVariableNames:''
|
|
60 |
classVariableNames:''
|
|
61 |
poolDictionaries:''
|
|
62 |
privateIn:UILayoutTool
|
|
63 |
!
|
|
64 |
|
|
65 |
!UILayoutTool class methodsFor:'documentation'!
|
|
66 |
|
|
67 |
copyright
|
|
68 |
"
|
|
69 |
COPYRIGHT (c) 1995 by eXept Software AG
|
|
70 |
All Rights Reserved
|
|
71 |
|
|
72 |
This software is furnished under a license and may be used
|
|
73 |
only in accordance with the terms of that license and with the
|
|
74 |
inclusion of the above copyright notice. This software may not
|
|
75 |
be provided or otherwise made available to, or used by, any
|
|
76 |
other person. No title to or ownership of the software is
|
|
77 |
hereby transferred.
|
|
78 |
"
|
|
79 |
|
|
80 |
|
|
81 |
|
|
82 |
!
|
|
83 |
|
|
84 |
documentation
|
|
85 |
"
|
|
86 |
used by the UIPainter to manipulate the layout of the selected component
|
|
87 |
|
|
88 |
[author:]
|
|
89 |
Claus Atzkern
|
|
90 |
|
|
91 |
[see also:]
|
|
92 |
UIPainter
|
|
93 |
UIHelpTool
|
|
94 |
UISpecificationTool
|
|
95 |
"
|
|
96 |
|
|
97 |
|
|
98 |
! !
|
|
99 |
|
|
100 |
!UILayoutTool class methodsFor:'constants'!
|
|
101 |
|
|
102 |
label
|
|
103 |
^ 'Layout'
|
|
104 |
! !
|
|
105 |
|
184
|
106 |
!UILayoutTool class methodsFor:'help specs'!
|
|
107 |
|
|
108 |
helpSpec
|
741
|
109 |
"This resource specification was automatically generated
|
|
110 |
by the UIHelpTool of ST/X."
|
|
111 |
|
|
112 |
"Do not manually edit this!! If it is corrupted,
|
|
113 |
the UIHelpTool may not be able to read the specification."
|
293
|
114 |
|
184
|
115 |
"
|
741
|
116 |
UIHelpTool openOnClass:UILayoutTool
|
293
|
117 |
"
|
|
118 |
|
741
|
119 |
<resource: #help>
|
|
120 |
|
|
121 |
^super helpSpec addPairsFrom:#(
|
|
122 |
|
|
123 |
#cornerX
|
|
124 |
'Absolute corner x of the selected widget.'
|
|
125 |
|
|
126 |
#cornerY
|
|
127 |
'Absolute corner y of the selected widget.'
|
|
128 |
|
|
129 |
#layoutTool
|
|
130 |
'Tool to set the layout of the selected widget.'
|
184
|
131 |
|
|
132 |
#leftAbsolute
|
714
|
133 |
'Offset of the left edge; positive is to the right, negative to the left.'
|
184
|
134 |
|
741
|
135 |
#leftRelative
|
|
136 |
'Relative origin x of the selected widget.'
|
201
|
137 |
|
|
138 |
#makeLeftAbsolute
|
714
|
139 |
'Computes current left offset and relative origin x to an absolute origin x.'
|
201
|
140 |
|
741
|
141 |
#makeLeftRelative
|
|
142 |
'Compute current relative origin x and offset of the left edge to a relative origin x.'
|
|
143 |
|
|
144 |
#makeTopAbsolute
|
|
145 |
'Computes current top offset and relative origin y to an absolute origin y.'
|
|
146 |
|
|
147 |
#makeTopRelative
|
|
148 |
'Computes current relative origin y and offset of the top edge to a relative origin y.'
|
|
149 |
|
|
150 |
#originX
|
|
151 |
'Absolute origin x of the selected widget.'
|
|
152 |
|
|
153 |
#originY
|
|
154 |
'Absolute origin y of the selected widget.'
|
|
155 |
|
184
|
156 |
#topAbsolute
|
714
|
157 |
'Offset of the top edge; positive is to the bottom, negative to the top.'
|
184
|
158 |
|
201
|
159 |
#topRelative
|
714
|
160 |
'Relative origin y of the selected widget.'
|
201
|
161 |
|
184
|
162 |
)
|
|
163 |
! !
|
|
164 |
|
163
|
165 |
!UILayoutTool class methodsFor:'interface specs'!
|
|
166 |
|
184
|
167 |
layoutOriginSpec
|
741
|
168 |
"This resource specification was automatically generated
|
|
169 |
by the UIPainter of ST/X."
|
184
|
170 |
|
741
|
171 |
"Do not manually edit this!! If it is corrupted,
|
|
172 |
the UIPainter may not be able to read the specification."
|
184
|
173 |
|
|
174 |
"
|
259
|
175 |
UIPainter new openOnClass:UILayoutTool andSelector:#layoutOriginSpec
|
|
176 |
UILayoutTool new openInterface:#layoutOriginSpec
|
184
|
177 |
"
|
|
178 |
|
|
179 |
<resource: #canvas>
|
|
180 |
|
|
181 |
^
|
259
|
182 |
|
184
|
183 |
#(#FullSpec
|
690
|
184 |
#window:
|
184
|
185 |
#(#WindowSpec
|
741
|
186 |
#name: 'UILayoutTool'
|
|
187 |
#layout: #(#LayoutFrame 509 0 293 0 771 0 395 0)
|
|
188 |
#label: 'UILayoutTool'
|
690
|
189 |
#min: #(#Point 10 10)
|
|
190 |
#max: #(#Point 1152 900)
|
741
|
191 |
#bounds: #(#Rectangle 509 293 772 396)
|
690
|
192 |
#usePreferredExtent: false
|
184
|
193 |
)
|
690
|
194 |
#component:
|
184
|
195 |
#(#SpecCollection
|
690
|
196 |
#collection:
|
184
|
197 |
#(
|
|
198 |
#(#LabelSpec
|
690
|
199 |
#name: 'labelRelative'
|
|
200 |
#layout: #(#Point 80 12)
|
|
201 |
#label: 'Relative:'
|
184
|
202 |
)
|
|
203 |
#(#LabelSpec
|
690
|
204 |
#name: 'labelAbsolute'
|
|
205 |
#layout: #(#Point 177 13)
|
|
206 |
#label: 'Offset:'
|
184
|
207 |
)
|
|
208 |
#(#LabelSpec
|
690
|
209 |
#name: 'labelLeft'
|
|
210 |
#layout: #(#AlignmentOrigin 78 0 39 0 1 0)
|
|
211 |
#label: 'Left:'
|
184
|
212 |
)
|
|
213 |
#(#InputFieldSpec
|
690
|
214 |
#name: 'fieldLeftFraction'
|
|
215 |
#layout: #(#LayoutFrame 80 0 36 0 137 0 58 0)
|
|
216 |
#activeHelpKey: #leftRelative
|
|
217 |
#tabable: true
|
|
218 |
#model: #leftFraction
|
|
219 |
#type: #numberOrNil
|
184
|
220 |
)
|
|
221 |
#(#ActionButtonSpec
|
690
|
222 |
#name: 'actionRelativeLeft'
|
|
223 |
#layout: #(#LayoutFrame 142 0 36 0 161 0 54 0)
|
|
224 |
#activeHelpKey: #makeLeftRelative
|
|
225 |
#model: #relativeLeft
|
184
|
226 |
)
|
|
227 |
#(#InputFieldSpec
|
690
|
228 |
#name: 'fieldLeftOffset'
|
|
229 |
#layout: #(#LayoutFrame 177 0 36 0 235 0 58 0)
|
|
230 |
#activeHelpKey: #leftAbsolute
|
|
231 |
#tabable: true
|
|
232 |
#model: #leftOffset
|
|
233 |
#type: #numberOrNil
|
184
|
234 |
)
|
|
235 |
#(#ActionButtonSpec
|
690
|
236 |
#name: 'actionAbsoluteLeft'
|
|
237 |
#layout: #(#LayoutFrame 239 0 36 0 258 0 54 0)
|
|
238 |
#activeHelpKey: #makeLeftAbsolute
|
|
239 |
#model: #absoluteLeft
|
184
|
240 |
)
|
|
241 |
#(#LabelSpec
|
690
|
242 |
#name: 'labelTop'
|
|
243 |
#layout: #(#AlignmentOrigin 78 0 66 0 1 0)
|
|
244 |
#label: 'Top:'
|
184
|
245 |
)
|
|
246 |
#(#InputFieldSpec
|
690
|
247 |
#name: 'fieldTopFraction'
|
|
248 |
#layout: #(#LayoutFrame 80 0 63 0 137 0 85 0)
|
|
249 |
#activeHelpKey: #topRelative
|
|
250 |
#tabable: true
|
|
251 |
#model: #topFraction
|
|
252 |
#type: #numberOrNil
|
184
|
253 |
)
|
|
254 |
#(#ActionButtonSpec
|
690
|
255 |
#name: 'actionRelativeTop'
|
|
256 |
#layout: #(#LayoutFrame 142 0 63 0 161 0 81 0)
|
|
257 |
#activeHelpKey: #makeTopRelative
|
|
258 |
#model: #relativeTop
|
184
|
259 |
)
|
|
260 |
#(#InputFieldSpec
|
690
|
261 |
#name: 'fieldTopOffset'
|
|
262 |
#layout: #(#LayoutFrame 177 0 63 0 235 0 85 0)
|
|
263 |
#activeHelpKey: #topAbsolute
|
|
264 |
#tabable: true
|
|
265 |
#model: #topOffset
|
|
266 |
#type: #numberOrNil
|
184
|
267 |
)
|
|
268 |
#(#ActionButtonSpec
|
690
|
269 |
#name: 'actionAbsoluteTop'
|
|
270 |
#layout: #(#LayoutFrame 239 0 63 0 258 0 81 0)
|
|
271 |
#activeHelpKey: #makeTopAbsolute
|
|
272 |
#model: #absoluteTop
|
184
|
273 |
)
|
|
274 |
)
|
|
275 |
)
|
|
276 |
)
|
|
277 |
!
|
|
278 |
|
|
279 |
layoutPointSpec
|
741
|
280 |
"This resource specification was automatically generated
|
|
281 |
by the UIPainter of ST/X."
|
184
|
282 |
|
741
|
283 |
"Do not manually edit this!! If it is corrupted,
|
|
284 |
the UIPainter may not be able to read the specification."
|
184
|
285 |
|
|
286 |
"
|
259
|
287 |
UIPainter new openOnClass:UILayoutTool andSelector:#layoutPointSpec
|
|
288 |
UILayoutTool new openInterface:#layoutPointSpec
|
184
|
289 |
"
|
259
|
290 |
|
184
|
291 |
<resource: #canvas>
|
|
292 |
|
|
293 |
^
|
259
|
294 |
|
184
|
295 |
#(#FullSpec
|
690
|
296 |
#window:
|
184
|
297 |
#(#WindowSpec
|
741
|
298 |
#name: 'UILayoutTool'
|
|
299 |
#layout: #(#LayoutFrame 565 0 276 0 754 0 352 0)
|
|
300 |
#label: 'UILayoutTool'
|
690
|
301 |
#min: #(#Point 10 10)
|
|
302 |
#max: #(#Point 1152 900)
|
741
|
303 |
#bounds: #(#Rectangle 565 276 755 353)
|
690
|
304 |
#usePreferredExtent: false
|
184
|
305 |
)
|
690
|
306 |
#component:
|
184
|
307 |
#(#SpecCollection
|
690
|
308 |
#collection:
|
184
|
309 |
#(
|
|
310 |
#(#LabelSpec
|
690
|
311 |
#name: 'labelOriginX'
|
|
312 |
#layout: #(#AlignmentOrigin 78 0 23 0 1 0)
|
|
313 |
#label: 'Origin x:'
|
184
|
314 |
)
|
|
315 |
#(#InputFieldSpec
|
690
|
316 |
#name: 'fieldOriginX'
|
|
317 |
#layout: #(#LayoutFrame 80 0 20 0 173 0 42 0)
|
|
318 |
#activeHelpKey: #originX
|
|
319 |
#tabable: true
|
|
320 |
#model: #leftOffset
|
|
321 |
#type: #numberOrNil
|
184
|
322 |
)
|
|
323 |
#(#LabelSpec
|
690
|
324 |
#name: 'labelOriginY'
|
|
325 |
#layout: #(#AlignmentOrigin 78 0 50 0 1 0)
|
|
326 |
#label: 'Origin y:'
|
184
|
327 |
)
|
|
328 |
#(#InputFieldSpec
|
690
|
329 |
#name: 'fieldOriginY'
|
|
330 |
#layout: #(#LayoutFrame 80 0 47 0 173 0 69 0)
|
|
331 |
#activeHelpKey: #originY
|
|
332 |
#tabable: true
|
|
333 |
#model: #topOffset
|
|
334 |
#type: #numberOrNil
|
184
|
335 |
)
|
|
336 |
)
|
|
337 |
)
|
|
338 |
)
|
|
339 |
!
|
|
340 |
|
163
|
341 |
slices
|
|
342 |
^ #(
|
|
343 |
( 'Frame' LayoutFrame)
|
|
344 |
( 'Origin' LayoutOrigin)
|
|
345 |
( 'Alig.Origin' AlignmentOrigin)
|
|
346 |
( 'Point' Point)
|
|
347 |
( 'Rectangle' Rectangle)
|
|
348 |
( 'Extent' Extent)
|
|
349 |
)
|
|
350 |
|
|
351 |
!
|
|
352 |
|
|
353 |
windowSpec
|
741
|
354 |
"This resource specification was automatically generated
|
|
355 |
by the UIPainter of ST/X."
|
163
|
356 |
|
741
|
357 |
"Do not manually edit this!! If it is corrupted,
|
|
358 |
the UIPainter may not be able to read the specification."
|
163
|
359 |
|
|
360 |
"
|
|
361 |
UIPainter new openOnClass:UILayoutTool andSelector:#windowSpec
|
|
362 |
UILayoutTool new openInterface:#windowSpec
|
741
|
363 |
UILayoutTool open
|
163
|
364 |
"
|
|
365 |
|
|
366 |
<resource: #canvas>
|
|
367 |
|
|
368 |
^
|
|
369 |
|
|
370 |
#(#FullSpec
|
741
|
371 |
#window:
|
163
|
372 |
#(#WindowSpec
|
741
|
373 |
#name: 'UILayoutTool'
|
|
374 |
#layout: #(#LayoutFrame 571 0 290 0 870 0 589 0)
|
|
375 |
#label: 'UILayoutTool'
|
|
376 |
#min: #(#Point 10 10)
|
|
377 |
#max: #(#Point 1152 900)
|
|
378 |
#bounds: #(#Rectangle 571 290 871 590)
|
|
379 |
#usePreferredExtent: false
|
163
|
380 |
)
|
741
|
381 |
#component:
|
163
|
382 |
#(#SpecCollection
|
741
|
383 |
#collection:
|
163
|
384 |
#(
|
|
385 |
#(#NoteBookViewSpec
|
741
|
386 |
#name: 'NoteBook'
|
|
387 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
388 |
#activeHelpKey: #layoutTool
|
|
389 |
#enableChannel: #enableChannel
|
|
390 |
#tabable: true
|
|
391 |
#model: #noteBookModel
|
|
392 |
#menu: #noteBookList
|
|
393 |
#style: #(#FontDescription #helvetica #medium #roman #'10')
|
|
394 |
#direction: #bottom
|
|
395 |
#canvas: #noteBookView
|
163
|
396 |
)
|
|
397 |
)
|
|
398 |
)
|
|
399 |
)
|
|
400 |
! !
|
|
401 |
|
|
402 |
!UILayoutTool methodsFor:'accessing'!
|
|
403 |
|
|
404 |
layout
|
|
405 |
"returns configued layout or nil
|
|
406 |
"
|
|
407 |
|appl|
|
|
408 |
|
|
409 |
(appl := self noteBookView application) notNil ifTrue:[
|
|
410 |
^ appl layout
|
|
411 |
].
|
|
412 |
^ nil
|
|
413 |
!
|
|
414 |
|
|
415 |
layoutType
|
|
416 |
"returns current layout type or nil
|
|
417 |
"
|
|
418 |
|slice|
|
|
419 |
|
|
420 |
(slice := self selectedSlice) notNil ifTrue:[
|
|
421 |
^ slice last
|
|
422 |
].
|
|
423 |
^ nil
|
|
424 |
!
|
|
425 |
|
|
426 |
layoutView
|
|
427 |
"returns current edited view
|
|
428 |
"
|
|
429 |
^ layoutView
|
|
430 |
!
|
|
431 |
|
|
432 |
layoutView:aView
|
|
433 |
"change current edited view
|
|
434 |
"
|
283
|
435 |
self layoutView:aView type:nil
|
|
436 |
!
|
|
437 |
|
|
438 |
layoutView:aView type:aTypeOrNil
|
|
439 |
"change current edited view
|
|
440 |
"
|
163
|
441 |
|type name list|
|
|
442 |
|
|
443 |
layoutView := aView.
|
|
444 |
|
283
|
445 |
aTypeOrNil notNil ifTrue:[
|
163
|
446 |
self class slices findFirst:[:e|
|
283
|
447 |
e last == aTypeOrNil ifTrue:[name := e first. true]
|
163
|
448 |
].
|
283
|
449 |
list := Array with:name
|
|
450 |
] ifFalse:[
|
|
451 |
(type := UIPainterView layoutType:layoutView) notNil ifTrue:[
|
|
452 |
self class slices findFirst:[:e|
|
|
453 |
e last == type ifTrue:[name := e first. true]
|
|
454 |
].
|
|
455 |
list := tabList.
|
235
|
456 |
|
283
|
457 |
type == #Extent ifTrue:[
|
|
458 |
aView superView specClass isLayoutContainer ifTrue:[
|
|
459 |
list := Array with:name
|
|
460 |
] ifFalse:[
|
|
461 |
list := list copyWith:name
|
|
462 |
]
|
235
|
463 |
]
|
|
464 |
]
|
163
|
465 |
].
|
|
466 |
self noteBookList value:list.
|
|
467 |
self noteBookModel value:name.
|
|
468 |
self update.
|
|
469 |
!
|
|
470 |
|
|
471 |
modifiedHolder:aValueHolder
|
|
472 |
"set the value holder set to true in case of modifying attributes
|
|
473 |
"
|
|
474 |
modifiedHolder notNil ifTrue:[
|
|
475 |
modifiedHolder removeDependent:self.
|
|
476 |
].
|
|
477 |
|
|
478 |
(modifiedHolder := aValueHolder) notNil ifTrue:[
|
|
479 |
modifiedHolder addDependent:self.
|
|
480 |
].
|
|
481 |
|
|
482 |
!
|
|
483 |
|
|
484 |
update
|
|
485 |
"update from view
|
|
486 |
"
|
|
487 |
|view appl|
|
|
488 |
|
|
489 |
selection notNil ifTrue:[
|
|
490 |
(view := self layoutView) notNil ifTrue:[
|
|
491 |
(appl := self noteBookView application) notNil ifTrue:[
|
|
492 |
appl fetch:view
|
|
493 |
]
|
|
494 |
]
|
|
495 |
].
|
|
496 |
|
|
497 |
! !
|
|
498 |
|
|
499 |
!UILayoutTool methodsFor:'aspects'!
|
|
500 |
|
|
501 |
aspectFor:aKey
|
|
502 |
"returns aspect for a key or nil
|
|
503 |
"
|
|
504 |
^ aspects at:aKey ifAbsent:[ super aspectFor:aKey ]
|
|
505 |
|
|
506 |
|
|
507 |
!
|
|
508 |
|
|
509 |
noteBookList
|
|
510 |
"returns list of tab labels
|
|
511 |
"
|
|
512 |
|holder|
|
|
513 |
|
|
514 |
(holder := builder bindingAt:#noteBookList) isNil ifTrue:[
|
|
515 |
holder := nil asValue.
|
|
516 |
builder aspectAt:#noteBookList put:holder
|
|
517 |
].
|
|
518 |
^ holder
|
|
519 |
!
|
|
520 |
|
|
521 |
noteBookModel
|
|
522 |
"automatically generated by UIPainter ..."
|
|
523 |
|
|
524 |
|holder|
|
|
525 |
|
|
526 |
(holder := builder bindingAt:#noteBookModel) isNil ifTrue:[
|
|
527 |
holder := AspectAdaptor new subject:self; forAspect:#selection.
|
|
528 |
builder aspectAt:#noteBookModel put:holder.
|
|
529 |
].
|
|
530 |
^ holder
|
|
531 |
!
|
|
532 |
|
|
533 |
noteBookView
|
|
534 |
"automatically generated by UIPainter ...
|
|
535 |
"
|
|
536 |
|holder|
|
|
537 |
|
|
538 |
(holder := builder bindingAt:#noteBookView) isNil ifTrue:[
|
|
539 |
holder := SubCanvas new.
|
|
540 |
builder aspectAt:#noteBookView put:holder
|
|
541 |
].
|
|
542 |
^ holder
|
|
543 |
! !
|
|
544 |
|
|
545 |
!UILayoutTool methodsFor:'change & update'!
|
|
546 |
|
|
547 |
update:something with:aParameter from:changedObject
|
|
548 |
"one of my models changed its value
|
|
549 |
"
|
|
550 |
changedObject ~~ modifiedHolder ifTrue:[
|
|
551 |
modifiedHolder value ~~ true ifTrue:[
|
|
552 |
modifiedHolder isNil ifFalse:[
|
|
553 |
modifiedHolder value:true
|
|
554 |
]
|
|
555 |
]
|
|
556 |
]
|
|
557 |
|
|
558 |
! !
|
|
559 |
|
|
560 |
!UILayoutTool methodsFor:'converting absolute'!
|
|
561 |
|
|
562 |
absolute:what xOrY:xOrY
|
|
563 |
|extent fraction offset fractSymb offsetSymb|
|
|
564 |
|
|
565 |
extent := (self layoutView superView computeExtent) perform:xOrY.
|
|
566 |
fractSymb := (what, 'Fraction') asSymbol.
|
|
567 |
offsetSymb := (what, 'Offset') asSymbol.
|
|
568 |
fraction := (self aspectFor:fractSymb) value.
|
|
569 |
offset := (self aspectFor:offsetSymb) value.
|
|
570 |
offset := offset + ((fraction * extent) asInteger).
|
|
571 |
|
|
572 |
(self aspectFor:offsetSymb) value:offset.
|
|
573 |
(self aspectFor:fractSymb) value:0.
|
|
574 |
|
|
575 |
|
|
576 |
|
|
577 |
!
|
|
578 |
|
|
579 |
absoluteBottom
|
|
580 |
self absolute:'bottom' xOrY:#y
|
|
581 |
|
|
582 |
!
|
|
583 |
|
|
584 |
absoluteLeft
|
|
585 |
self absolute:'left' xOrY:#x
|
|
586 |
|
|
587 |
!
|
|
588 |
|
|
589 |
absoluteRight
|
|
590 |
self absolute:'right' xOrY:#x
|
|
591 |
|
|
592 |
!
|
|
593 |
|
|
594 |
absoluteTop
|
|
595 |
self absolute:'top' xOrY:#y
|
|
596 |
|
|
597 |
! !
|
|
598 |
|
|
599 |
!UILayoutTool methodsFor:'converting relative'!
|
|
600 |
|
|
601 |
relative:what xOrY:xOrY
|
|
602 |
|extent fraction offset fractSymb offsetSymb|
|
|
603 |
|
|
604 |
extent := (self layoutView superView computeExtent) perform:xOrY.
|
|
605 |
fractSymb := (what, 'Fraction') asSymbol.
|
|
606 |
offsetSymb := (what, 'Offset') asSymbol.
|
|
607 |
fraction := (self aspectFor:fractSymb) value.
|
|
608 |
offset := (self aspectFor:offsetSymb) value.
|
|
609 |
fraction := (fraction + (offset / extent)) asFloat.
|
|
610 |
|
|
611 |
(fraction > 1.0) ifTrue:[ fraction := 1.0 ].
|
|
612 |
(fraction < 0.0) ifTrue:[ fraction := 0 ].
|
|
613 |
|
|
614 |
(self aspectFor:offsetSymb) value:0.
|
|
615 |
(self aspectFor:fractSymb) value:fraction.
|
|
616 |
|
|
617 |
|
|
618 |
|
|
619 |
!
|
|
620 |
|
|
621 |
relativeBottom
|
|
622 |
self relative:'bottom' xOrY:#y
|
|
623 |
|
|
624 |
|
|
625 |
!
|
|
626 |
|
|
627 |
relativeLeft
|
|
628 |
self relative:'left' xOrY:#x
|
|
629 |
|
|
630 |
!
|
|
631 |
|
|
632 |
relativeRight
|
|
633 |
self relative:'right' xOrY:#x
|
|
634 |
|
|
635 |
!
|
|
636 |
|
|
637 |
relativeTop
|
|
638 |
self relative:'top' xOrY:#y
|
|
639 |
|
|
640 |
! !
|
|
641 |
|
|
642 |
!UILayoutTool methodsFor:'initialization'!
|
|
643 |
|
|
644 |
initialize
|
|
645 |
"initialize channels
|
|
646 |
"
|
221
|
647 |
|slices size|
|
|
648 |
|
163
|
649 |
super initialize.
|
|
650 |
|
|
651 |
aspects := IdentityDictionary new.
|
|
652 |
|
|
653 |
#( bottomFraction bottomOffset
|
|
654 |
leftFraction leftOffset
|
|
655 |
topFraction topOffset
|
|
656 |
rightFraction rightOffset
|
|
657 |
leftAlignmentFraction topAlignmentFraction
|
|
658 |
)
|
|
659 |
|
|
660 |
do:[:aKey||holder|
|
|
661 |
holder := ValueHolder new.
|
|
662 |
holder addDependent:self.
|
|
663 |
aspects at:aKey put:holder.
|
|
664 |
].
|
|
665 |
|
221
|
666 |
slices := self class slices.
|
|
667 |
size := slices size - 1.
|
|
668 |
tabList := Array new:size.
|
163
|
669 |
|
221
|
670 |
1 to:size do:[:i| tabList at:i put:((slices at:i) first) ].
|
163
|
671 |
|
|
672 |
|
|
673 |
! !
|
|
674 |
|
|
675 |
!UILayoutTool methodsFor:'selection'!
|
|
676 |
|
|
677 |
selectedSlice
|
|
678 |
"returns slice assigned to selection or nil
|
|
679 |
"
|
|
680 |
selection notNil ifTrue:[
|
|
681 |
self class slices do:[:aSlice|
|
|
682 |
aSlice first = selection ifTrue:[
|
|
683 |
^ aSlice
|
|
684 |
]
|
|
685 |
]
|
|
686 |
].
|
|
687 |
^ nil
|
|
688 |
|
|
689 |
!
|
|
690 |
|
|
691 |
selection
|
|
692 |
^ selection
|
|
693 |
!
|
|
694 |
|
|
695 |
selection:aSelection
|
296
|
696 |
|appl slice sel noteBook|
|
163
|
697 |
|
293
|
698 |
aSelection isNumber ifTrue:[
|
|
699 |
aSelection ~~ 0 ifTrue:[sel := tabList at:aSelection]
|
|
700 |
] ifFalse:[
|
|
701 |
sel := aSelection
|
|
702 |
].
|
|
703 |
selection = sel ifFalse:[
|
|
704 |
(selection := sel) notNil ifTrue:[
|
163
|
705 |
slice := self selectedSlice.
|
|
706 |
appl := slice last asString.
|
|
707 |
appl := Smalltalk classNamed:(self class name asString, '::', appl).
|
|
708 |
appl := appl new.
|
|
709 |
appl masterApplication:self.
|
184
|
710 |
modifiedHolder value:true.
|
163
|
711 |
].
|
296
|
712 |
noteBook := self noteBookView.
|
|
713 |
noteBook client:appl.
|
|
714 |
|
|
715 |
appl notNil ifTrue:[
|
|
716 |
noteBook scrolledView allViewBackground:(noteBook viewBackground).
|
741
|
717 |
masterApplication updateFonts
|
296
|
718 |
]
|
163
|
719 |
].
|
|
720 |
self update
|
293
|
721 |
|
163
|
722 |
! !
|
|
723 |
|
184
|
724 |
!UILayoutTool::AlignmentOrigin class methodsFor:'help specs'!
|
163
|
725 |
|
184
|
726 |
helpSpec
|
741
|
727 |
"This resource specification was automatically generated
|
|
728 |
by the UIHelpTool of ST/X."
|
|
729 |
|
|
730 |
"Do not manually edit this!! If it is corrupted,
|
|
731 |
the UIHelpTool may not be able to read the specification."
|
293
|
732 |
|
163
|
733 |
"
|
741
|
734 |
UIHelpTool openOnClass:UILayoutTool::AlignmentOrigin
|
293
|
735 |
"
|
|
736 |
|
741
|
737 |
<resource: #help>
|
|
738 |
|
|
739 |
^super helpSpec addPairsFrom:#(
|
|
740 |
|
|
741 |
#alignBottomCenter
|
|
742 |
'Aligns the selected widget bottomCenter to location.'
|
|
743 |
|
|
744 |
#alignBottomLeft
|
|
745 |
'Aligns the selected widget bottomLeft to location.'
|
|
746 |
|
|
747 |
#alignBottomRight
|
|
748 |
'Aligns the selected widget bottomRight to location.'
|
|
749 |
|
|
750 |
#alignCenter
|
|
751 |
'Aligns the selected widget center to location.'
|
|
752 |
|
|
753 |
#alignHorizontal
|
|
754 |
'Horizontal inset to the location point of the selected widget.'
|
163
|
755 |
|
293
|
756 |
#alignLeftCenter
|
714
|
757 |
'Aligns the selected widget leftCenter to location.'
|
293
|
758 |
|
741
|
759 |
#alignRightCenter
|
|
760 |
'Aligns the selected widget rightCenter to location.'
|
293
|
761 |
|
|
762 |
#alignTopCenter
|
714
|
763 |
'Aligns the selected widget topCenter to location.'
|
163
|
764 |
|
293
|
765 |
#alignTopLeft
|
714
|
766 |
'Aligns the selected widget topLeft to location.'
|
293
|
767 |
|
|
768 |
#alignTopRight
|
714
|
769 |
'Aligns the selected widget topRight to location.'
|
293
|
770 |
|
|
771 |
#alignVertical
|
714
|
772 |
'Vertical inset to the location point of the widget.'
|
293
|
773 |
|
184
|
774 |
)
|
163
|
775 |
! !
|
|
776 |
|
|
777 |
!UILayoutTool::AlignmentOrigin class methodsFor:'interface specs'!
|
|
778 |
|
|
779 |
windowSpec
|
741
|
780 |
"This resource specification was automatically generated
|
|
781 |
by the UIPainter of ST/X."
|
163
|
782 |
|
741
|
783 |
"Do not manually edit this!! If it is corrupted,
|
|
784 |
the UIPainter may not be able to read the specification."
|
163
|
785 |
|
|
786 |
"
|
|
787 |
UIPainter new openOnClass:UILayoutTool::AlignmentOrigin andSelector:#windowSpec
|
|
788 |
UILayoutTool::AlignmentOrigin new openInterface:#windowSpec
|
741
|
789 |
UILayoutTool::AlignmentOrigin open
|
163
|
790 |
"
|
|
791 |
|
|
792 |
<resource: #canvas>
|
|
793 |
|
|
794 |
^
|
|
795 |
|
|
796 |
#(#FullSpec
|
690
|
797 |
#window:
|
163
|
798 |
#(#WindowSpec
|
741
|
799 |
#name: 'UILayoutTool-AlignmentOrigin'
|
|
800 |
#layout: #(#LayoutFrame 206 0 285 0 473 0 489 0)
|
|
801 |
#label: 'UILayoutTool-AlignmentOrigin'
|
690
|
802 |
#min: #(#Point 10 10)
|
|
803 |
#max: #(#Point 1152 900)
|
741
|
804 |
#bounds: #(#Rectangle 206 285 474 490)
|
690
|
805 |
#usePreferredExtent: false
|
163
|
806 |
)
|
690
|
807 |
#component:
|
163
|
808 |
#(#SpecCollection
|
690
|
809 |
#collection:
|
163
|
810 |
#(
|
|
811 |
#(#UISubSpecification
|
741
|
812 |
#name: 'subSpec'
|
690
|
813 |
#layout: #(#LayoutOrigin 0 0 0 0)
|
|
814 |
#majorKey: #UILayoutTool
|
|
815 |
#minorKey: #layoutOriginSpec
|
163
|
816 |
)
|
|
817 |
#(#LabelSpec
|
741
|
818 |
#name: 'alignHLabel'
|
690
|
819 |
#layout: #(#AlignmentOrigin 78 0 102 0 1 0)
|
|
820 |
#label: 'Align H:'
|
|
821 |
#adjust: #right
|
163
|
822 |
)
|
|
823 |
#(#LabelSpec
|
741
|
824 |
#name: 'alignVLabel'
|
690
|
825 |
#layout: #(#AlignmentOrigin 78 0 128 0 1 0)
|
|
826 |
#label: 'Align V:'
|
|
827 |
#adjust: #right
|
163
|
828 |
)
|
|
829 |
#(#InputFieldSpec
|
741
|
830 |
#name: 'leftAlignmentFractionField'
|
690
|
831 |
#layout: #(#LayoutFrame 80 0 99 0 137 0 121 0)
|
|
832 |
#activeHelpKey: #alignHorizontal
|
|
833 |
#tabable: true
|
|
834 |
#model: #leftAlignmentFraction
|
|
835 |
#type: #numberOrNil
|
163
|
836 |
)
|
|
837 |
#(#InputFieldSpec
|
741
|
838 |
#name: 'topAlignmentFractionField'
|
690
|
839 |
#layout: #(#LayoutFrame 80 0 125 0 137 0 147 0)
|
|
840 |
#activeHelpKey: #alignVertical
|
|
841 |
#tabable: true
|
|
842 |
#model: #topAlignmentFraction
|
|
843 |
#type: #numberOrNil
|
163
|
844 |
)
|
|
845 |
#(#DividerSpec
|
690
|
846 |
#name: 'separator1'
|
|
847 |
#layout: #(#Rectangle 166 103 215 106)
|
|
848 |
#orientation: #horizontal
|
163
|
849 |
)
|
|
850 |
#(#DividerSpec
|
690
|
851 |
#name: 'separator2'
|
|
852 |
#layout: #(#Rectangle 166 133 215 136)
|
|
853 |
#orientation: #horizontal
|
163
|
854 |
)
|
|
855 |
#(#DividerSpec
|
690
|
856 |
#name: 'separator3'
|
|
857 |
#layout: #(#Rectangle 161 111 164 132)
|
|
858 |
#orientation: #vertical
|
163
|
859 |
)
|
|
860 |
#(#DividerSpec
|
690
|
861 |
#name: 'separator4'
|
|
862 |
#layout: #(#Rectangle 217 111 220 132)
|
|
863 |
#orientation: #vertical
|
163
|
864 |
)
|
|
865 |
#(#ActionButtonSpec
|
690
|
866 |
#name: 'alignBottomRight'
|
|
867 |
#layout: #(#Rectangle 213 131 225 143)
|
|
868 |
#activeHelpKey: #alignBottomRight
|
|
869 |
#model: #alignBottomRight
|
163
|
870 |
)
|
|
871 |
#(#ActionButtonSpec
|
690
|
872 |
#name: 'alignTopLeft'
|
|
873 |
#layout: #(#Rectangle 157 100 169 112)
|
|
874 |
#activeHelpKey: #alignTopLeft
|
|
875 |
#model: #alignTopLeft
|
163
|
876 |
)
|
|
877 |
#(#ActionButtonSpec
|
690
|
878 |
#name: 'alignTopRight'
|
|
879 |
#layout: #(#Rectangle 213 100 225 112)
|
|
880 |
#activeHelpKey: #alignTopRight
|
|
881 |
#model: #alignTopRight
|
163
|
882 |
)
|
|
883 |
#(#ActionButtonSpec
|
690
|
884 |
#name: 'alignBottomLeft'
|
|
885 |
#layout: #(#Rectangle 157 130 169 142)
|
|
886 |
#activeHelpKey: #alignBottomLeft
|
|
887 |
#model: #alignBottomLeft
|
163
|
888 |
)
|
|
889 |
#(#ActionButtonSpec
|
690
|
890 |
#name: 'alignTopCenter'
|
|
891 |
#layout: #(#Rectangle 185 100 197 112)
|
|
892 |
#activeHelpKey: #alignTopCenter
|
|
893 |
#model: #alignTopCenter
|
163
|
894 |
)
|
|
895 |
#(#ActionButtonSpec
|
690
|
896 |
#name: 'alignBottomCenter'
|
|
897 |
#layout: #(#Rectangle 185 131 197 143)
|
|
898 |
#activeHelpKey: #alignBottomCenter
|
|
899 |
#model: #alignBottomCenter
|
163
|
900 |
)
|
|
901 |
#(#ActionButtonSpec
|
690
|
902 |
#name: 'alignLeftCenter'
|
|
903 |
#layout: #(#Rectangle 157 115 169 127)
|
|
904 |
#activeHelpKey: #alignLeftCenter
|
|
905 |
#model: #alignLeftCenter
|
163
|
906 |
)
|
|
907 |
#(#ActionButtonSpec
|
690
|
908 |
#name: 'alignRightCenter'
|
|
909 |
#layout: #(#Rectangle 213 115 225 127)
|
|
910 |
#activeHelpKey: #alignRightCenter
|
|
911 |
#model: #alignRightCenter
|
163
|
912 |
)
|
|
913 |
#(#ActionButtonSpec
|
690
|
914 |
#name: 'alignCenter'
|
|
915 |
#layout: #(#Rectangle 185 115 197 127)
|
|
916 |
#activeHelpKey: #alignCenter
|
|
917 |
#model: #alignCenter
|
163
|
918 |
)
|
|
919 |
)
|
|
920 |
)
|
|
921 |
)
|
|
922 |
! !
|
|
923 |
|
|
924 |
!UILayoutTool::AlignmentOrigin methodsFor:'accessing'!
|
|
925 |
|
|
926 |
fetch:aView
|
|
927 |
"fetch alignmentOrigin
|
|
928 |
"
|
252
|
929 |
|layout type|
|
163
|
930 |
|
|
931 |
type := UIPainterView layoutType:aView.
|
|
932 |
layout := aView geometryLayout.
|
|
933 |
|
|
934 |
layout isLayout ifTrue:[
|
|
935 |
(self aspectFor:#leftOffset) value:(layout leftOffset).
|
|
936 |
(self aspectFor:#leftFraction) value:(layout leftFraction).
|
|
937 |
(self aspectFor:#topOffset) value:(layout topOffset).
|
|
938 |
(self aspectFor:#topFraction) value:(layout topFraction).
|
|
939 |
|
|
940 |
type == #AlignmentOrigin ifTrue:[
|
|
941 |
(self aspectFor:#leftAlignmentFraction) value:(layout leftAlignmentFraction).
|
|
942 |
(self aspectFor:#topAlignmentFraction) value:(layout topAlignmentFraction).
|
|
943 |
^ self
|
|
944 |
]
|
|
945 |
] ifFalse:[
|
|
946 |
layout := aView computeOrigin.
|
|
947 |
|
|
948 |
(self aspectFor:#leftOffset) value:(layout x).
|
|
949 |
(self aspectFor:#leftFraction) value:0.
|
|
950 |
(self aspectFor:#topOffset) value:(layout y).
|
|
951 |
(self aspectFor:#topFraction) value:0.
|
|
952 |
].
|
|
953 |
(self aspectFor:#leftAlignmentFraction) value:0.
|
|
954 |
(self aspectFor:#topAlignmentFraction) value:0.
|
|
955 |
|
|
956 |
|
|
957 |
!
|
|
958 |
|
|
959 |
layout
|
|
960 |
"returns current layout as alignmentOrigin
|
|
961 |
"
|
|
962 |
|layout|
|
|
963 |
|
|
964 |
layout := Smalltalk::AlignmentOrigin new.
|
|
965 |
|
|
966 |
layout leftOffset:((self aspectFor:#leftOffset) value) ? 0.
|
|
967 |
layout topOffset:((self aspectFor:#topOffset) value) ? 0.
|
|
968 |
layout leftFraction:((self aspectFor:#leftFraction) value) ? 0.
|
|
969 |
layout topFraction:((self aspectFor:#topFraction) value) ? 0.
|
|
970 |
|
|
971 |
layout leftAlignmentFraction:((self aspectFor:#leftAlignmentFraction) value) ? 0.
|
|
972 |
layout topAlignmentFraction:((self aspectFor:#topAlignmentFraction) value) ? 0.
|
|
973 |
|
|
974 |
^ layout
|
|
975 |
! !
|
|
976 |
|
|
977 |
!UILayoutTool::AlignmentOrigin methodsFor:'alignment'!
|
|
978 |
|
|
979 |
alignBottomCenter
|
|
980 |
self makeAlignLeft:0.5 top:1
|
|
981 |
|
|
982 |
|
|
983 |
!
|
|
984 |
|
|
985 |
alignBottomLeft
|
|
986 |
self makeAlignLeft:0 top:1
|
|
987 |
|
|
988 |
|
|
989 |
!
|
|
990 |
|
|
991 |
alignBottomRight
|
|
992 |
self makeAlignLeft:1 top:1
|
|
993 |
|
|
994 |
|
|
995 |
!
|
|
996 |
|
|
997 |
alignCenter
|
|
998 |
self makeAlignLeft:0.5 top:0.5
|
|
999 |
|
|
1000 |
|
|
1001 |
!
|
|
1002 |
|
|
1003 |
alignLeftCenter
|
|
1004 |
self makeAlignLeft:0 top:0.5
|
|
1005 |
|
|
1006 |
|
|
1007 |
!
|
|
1008 |
|
|
1009 |
alignRightCenter
|
|
1010 |
self makeAlignLeft:1 top:0.5
|
|
1011 |
|
|
1012 |
|
|
1013 |
!
|
|
1014 |
|
|
1015 |
alignTopCenter
|
|
1016 |
self makeAlignLeft:0.5 top:0
|
|
1017 |
|
|
1018 |
|
|
1019 |
!
|
|
1020 |
|
|
1021 |
alignTopLeft
|
|
1022 |
self makeAlignLeft:0 top:0
|
|
1023 |
|
|
1024 |
|
|
1025 |
!
|
|
1026 |
|
|
1027 |
alignTopRight
|
|
1028 |
self makeAlignLeft:1 top:0
|
|
1029 |
|
|
1030 |
|
|
1031 |
!
|
|
1032 |
|
|
1033 |
makeAlignLeft:leftAlignmentFraction top:topAlignmentFraction
|
|
1034 |
|lAF tAF lO tO ext|
|
|
1035 |
|
|
1036 |
lAF := (self aspectFor:#leftAlignmentFraction) value ? 0.
|
|
1037 |
tAF := (self aspectFor:#topAlignmentFraction) value ? 0.
|
|
1038 |
ext := (self aspectFor:#layoutView) computeExtent.
|
|
1039 |
|
|
1040 |
(self aspectFor:#leftAlignmentFraction) value:leftAlignmentFraction.
|
|
1041 |
(self aspectFor:#topAlignmentFraction) value:topAlignmentFraction.
|
|
1042 |
|
|
1043 |
lO := (self aspectFor:#leftOffset) value ? 0.
|
|
1044 |
tO := (self aspectFor:#topOffset) value ? 0.
|
|
1045 |
|
|
1046 |
lO := lO + (ext x * (leftAlignmentFraction - lAF)).
|
|
1047 |
tO := tO + (ext y * (topAlignmentFraction - tAF)).
|
|
1048 |
|
|
1049 |
(self aspectFor:#leftOffset) value:(lO rounded).
|
|
1050 |
(self aspectFor:#topOffset) value:(tO rounded).
|
|
1051 |
|
|
1052 |
!
|
|
1053 |
|
|
1054 |
makeAlignTopRight
|
|
1055 |
self makeAlignLeft:1 top:0
|
|
1056 |
|
|
1057 |
|
|
1058 |
! !
|
|
1059 |
|
184
|
1060 |
!UILayoutTool::Extent class methodsFor:'help specs'!
|
|
1061 |
|
|
1062 |
helpSpec
|
741
|
1063 |
"This resource specification was automatically generated
|
|
1064 |
by the UIHelpTool of ST/X."
|
|
1065 |
|
|
1066 |
"Do not manually edit this!! If it is corrupted,
|
|
1067 |
the UIHelpTool may not be able to read the specification."
|
293
|
1068 |
|
184
|
1069 |
"
|
741
|
1070 |
UIHelpTool openOnClass:UILayoutTool::Extent
|
293
|
1071 |
"
|
|
1072 |
|
741
|
1073 |
<resource: #help>
|
|
1074 |
|
|
1075 |
^super helpSpec addPairsFrom:#(
|
|
1076 |
|
|
1077 |
#hrzExtent
|
|
1078 |
'Horizontal extent of the selected widget.'
|
184
|
1079 |
|
293
|
1080 |
#vrtExtent
|
714
|
1081 |
'Vertical extent of the selected widget.'
|
293
|
1082 |
|
184
|
1083 |
)
|
|
1084 |
! !
|
|
1085 |
|
163
|
1086 |
!UILayoutTool::Extent class methodsFor:'interface specs'!
|
|
1087 |
|
|
1088 |
windowSpec
|
|
1089 |
"this window spec was automatically generated by the ST/X UIPainter"
|
|
1090 |
|
|
1091 |
"do not manually edit this - the painter/builder may not be able to
|
|
1092 |
handle the specification if its corrupted."
|
|
1093 |
|
|
1094 |
"
|
|
1095 |
UIPainter new openOnClass:UILayoutTool::Extent andSelector:#windowSpec
|
|
1096 |
UILayoutTool::Extent new openInterface:#windowSpec
|
|
1097 |
"
|
|
1098 |
"UILayoutTool::Extent open"
|
|
1099 |
|
|
1100 |
<resource: #canvas>
|
|
1101 |
|
|
1102 |
^
|
|
1103 |
|
|
1104 |
#(#FullSpec
|
690
|
1105 |
#window:
|
163
|
1106 |
#(#WindowSpec
|
741
|
1107 |
#name: 'UILayoutTool-Extent'
|
690
|
1108 |
#layout: #(#LayoutFrame 31 0 423 0 256 0 508 0)
|
741
|
1109 |
#label: 'UILayoutTool-Extent'
|
690
|
1110 |
#min: #(#Point 10 10)
|
|
1111 |
#max: #(#Point 1152 900)
|
|
1112 |
#bounds: #(#Rectangle 31 423 257 509)
|
|
1113 |
#usePreferredExtent: false
|
163
|
1114 |
)
|
690
|
1115 |
#component:
|
163
|
1116 |
#(#SpecCollection
|
690
|
1117 |
#collection:
|
163
|
1118 |
#(
|
|
1119 |
#(#LabelSpec
|
690
|
1120 |
#name: 'labelWidth'
|
|
1121 |
#layout: #(#AlignmentOrigin 79 0 31 0 1 0.5)
|
|
1122 |
#label: 'Width:'
|
|
1123 |
#adjust: #right
|
163
|
1124 |
)
|
|
1125 |
#(#InputFieldSpec
|
690
|
1126 |
#name: 'fieldLeftOffset'
|
|
1127 |
#layout: #(#LayoutFrame 80 0 20 0 173 0 42 0)
|
|
1128 |
#activeHelpKey: #hrzExtent
|
|
1129 |
#tabable: true
|
|
1130 |
#model: #leftOffset
|
|
1131 |
#type: #numberOrNil
|
163
|
1132 |
)
|
|
1133 |
#(#LabelSpec
|
690
|
1134 |
#name: 'labelHeight'
|
|
1135 |
#layout: #(#AlignmentOrigin 79 0 58 0 1 0.5)
|
|
1136 |
#label: 'Height:'
|
|
1137 |
#adjust: #right
|
163
|
1138 |
)
|
|
1139 |
#(#InputFieldSpec
|
690
|
1140 |
#name: 'fieldRightOffset'
|
|
1141 |
#layout: #(#LayoutFrame 80 0 47 0 173 0 69 0)
|
|
1142 |
#activeHelpKey: #vrtExtent
|
|
1143 |
#tabable: true
|
|
1144 |
#model: #rightOffset
|
|
1145 |
#type: #numberOrNil
|
163
|
1146 |
)
|
|
1147 |
)
|
|
1148 |
)
|
|
1149 |
)
|
|
1150 |
! !
|
|
1151 |
|
|
1152 |
!UILayoutTool::Extent methodsFor:'accessing'!
|
|
1153 |
|
|
1154 |
fetch:aView
|
|
1155 |
"fetch extent
|
|
1156 |
"
|
|
1157 |
|extent|
|
|
1158 |
|
|
1159 |
extent := aView computeExtent.
|
|
1160 |
|
|
1161 |
(self aspectFor:#leftOffset) value:(extent x).
|
|
1162 |
(self aspectFor:#rightOffset) value:(extent y).
|
|
1163 |
|
|
1164 |
|
|
1165 |
!
|
|
1166 |
|
|
1167 |
layout
|
|
1168 |
"returns current extent
|
|
1169 |
"
|
|
1170 |
^ Smalltalk::Point x:(((self aspectFor:#leftOffset) value) ? 0)
|
|
1171 |
y:(((self aspectFor:#rightOffset) value) ? 0)
|
|
1172 |
|
|
1173 |
! !
|
|
1174 |
|
184
|
1175 |
!UILayoutTool::LayoutFrame class methodsFor:'help specs'!
|
|
1176 |
|
|
1177 |
helpSpec
|
741
|
1178 |
"This resource specification was automatically generated
|
|
1179 |
by the UIHelpTool of ST/X."
|
|
1180 |
|
|
1181 |
"Do not manually edit this!! If it is corrupted,
|
|
1182 |
the UIHelpTool may not be able to read the specification."
|
293
|
1183 |
|
184
|
1184 |
"
|
741
|
1185 |
UIHelpTool openOnClass:UILayoutTool::LayoutFrame
|
293
|
1186 |
"
|
|
1187 |
|
741
|
1188 |
<resource: #help>
|
184
|
1189 |
|
741
|
1190 |
^super helpSpec addPairsFrom:#(
|
293
|
1191 |
|
|
1192 |
#bottomAbsolute
|
714
|
1193 |
'Offset of the bottom edge; positive is to the bottom, negative to the top.'
|
293
|
1194 |
|
741
|
1195 |
#bottomRelative
|
|
1196 |
'Relative corner y of the selected widget.'
|
|
1197 |
|
|
1198 |
#makeBottomAbsolute
|
|
1199 |
'Computes current bottom offset and relative corner y to an absolute corner y.'
|
184
|
1200 |
|
|
1201 |
#makeBottomRelative
|
714
|
1202 |
'Computes current relative corner y and offset of the bottom edge to a relative corner y.'
|
184
|
1203 |
|
|
1204 |
#makeRightAbsolute
|
714
|
1205 |
'Computes current right offset and relative corner x to an absolute corner x.'
|
184
|
1206 |
|
741
|
1207 |
#makeRightRelative
|
|
1208 |
'Computes current relative corner x and offset of the right edge to a relative corner x.'
|
184
|
1209 |
|
|
1210 |
#rightAbsolute
|
714
|
1211 |
'Offset of the right edge; positive is to the right, negative to the left.'
|
184
|
1212 |
|
741
|
1213 |
#rightRelative
|
|
1214 |
'Relative corner x of the selected widget.'
|
|
1215 |
|
184
|
1216 |
)
|
|
1217 |
! !
|
|
1218 |
|
|
1219 |
!UILayoutTool::LayoutFrame class methodsFor:'interface specs'!
|
|
1220 |
|
|
1221 |
windowSpec
|
|
1222 |
"this window spec was automatically generated by the ST/X UIPainter"
|
|
1223 |
|
|
1224 |
"do not manually edit this - the painter/builder may not be able to
|
|
1225 |
handle the specification if its corrupted."
|
|
1226 |
|
|
1227 |
"
|
|
1228 |
UIPainter new openOnClass:UILayoutTool::LayoutFrame andSelector:#windowSpec
|
|
1229 |
UILayoutTool::LayoutFrame new openInterface:#windowSpec
|
|
1230 |
"
|
|
1231 |
"UILayoutTool::LayoutFrame open"
|
|
1232 |
|
|
1233 |
<resource: #canvas>
|
|
1234 |
|
|
1235 |
^
|
|
1236 |
|
|
1237 |
#(#FullSpec
|
690
|
1238 |
#window:
|
184
|
1239 |
#(#WindowSpec
|
741
|
1240 |
#name: 'UILayoutTool-LayoutFrame'
|
690
|
1241 |
#layout: #(#LayoutFrame 31 0 423 0 280 0 615 0)
|
741
|
1242 |
#label: 'UILayoutTool-LayoutFrame'
|
690
|
1243 |
#min: #(#Point 10 10)
|
|
1244 |
#max: #(#Point 1152 900)
|
|
1245 |
#bounds: #(#Rectangle 31 423 281 616)
|
|
1246 |
#usePreferredExtent: false
|
184
|
1247 |
)
|
690
|
1248 |
#component:
|
184
|
1249 |
#(#SpecCollection
|
690
|
1250 |
#collection:
|
184
|
1251 |
#(
|
|
1252 |
#(#UISubSpecification
|
690
|
1253 |
#name: 'subLayoutSpec'
|
|
1254 |
#layout: #(#LayoutOrigin 0 0 0 0)
|
|
1255 |
#majorKey: #UILayoutTool
|
|
1256 |
#minorKey: #layoutOriginSpec
|
184
|
1257 |
)
|
|
1258 |
#(#LabelSpec
|
690
|
1259 |
#name: 'labelRight'
|
|
1260 |
#layout: #(#AlignmentOrigin 78 0 101 0 1 0)
|
|
1261 |
#label: 'Right:'
|
184
|
1262 |
)
|
|
1263 |
#(#InputFieldSpec
|
690
|
1264 |
#name: 'fieldRightFraction'
|
|
1265 |
#layout: #(#LayoutFrame 80 0 98 0 137 0 120 0)
|
|
1266 |
#activeHelpKey: #rightRelative
|
|
1267 |
#model: #rightFraction
|
|
1268 |
#type: #numberOrNil
|
184
|
1269 |
)
|
|
1270 |
#(#ActionButtonSpec
|
690
|
1271 |
#name: 'actionRelativeRight'
|
|
1272 |
#layout: #(#LayoutFrame 142 0 98 0 161 0 116 0)
|
|
1273 |
#activeHelpKey: #makeRightRelative
|
|
1274 |
#model: #relativeRight
|
184
|
1275 |
)
|
|
1276 |
#(#InputFieldSpec
|
690
|
1277 |
#name: 'fieldRightOffset'
|
|
1278 |
#layout: #(#LayoutFrame 177 0 98 0 235 0 120 0)
|
|
1279 |
#activeHelpKey: #rightAbsolute
|
|
1280 |
#model: #rightOffset
|
|
1281 |
#type: #numberOrNil
|
184
|
1282 |
)
|
|
1283 |
#(#ActionButtonSpec
|
690
|
1284 |
#name: 'actionAbsoluteRight'
|
|
1285 |
#layout: #(#LayoutFrame 239 0 98 0 258 0 116 0)
|
|
1286 |
#activeHelpKey: #makeRightAbsolute
|
|
1287 |
#model: #absoluteRight
|
184
|
1288 |
)
|
|
1289 |
#(#LabelSpec
|
690
|
1290 |
#name: 'labelBottom'
|
|
1291 |
#layout: #(#AlignmentOrigin 78 0 129 0 1 0)
|
|
1292 |
#label: 'Bottom:'
|
184
|
1293 |
)
|
|
1294 |
#(#InputFieldSpec
|
690
|
1295 |
#name: 'fieldBottomFraction'
|
|
1296 |
#layout: #(#LayoutFrame 80 0 126 0 137 0 148 0)
|
|
1297 |
#activeHelpKey: #bottomRelative
|
|
1298 |
#model: #bottomFraction
|
|
1299 |
#type: #numberOrNil
|
184
|
1300 |
)
|
|
1301 |
#(#ActionButtonSpec
|
690
|
1302 |
#name: 'actionRelativeBottom'
|
|
1303 |
#layout: #(#LayoutFrame 142 0 126 0 161 0 144 0)
|
|
1304 |
#activeHelpKey: #makeBottomRelative
|
|
1305 |
#model: #relativeBottom
|
184
|
1306 |
)
|
|
1307 |
#(#InputFieldSpec
|
690
|
1308 |
#name: 'fieldBottomOffset'
|
|
1309 |
#layout: #(#LayoutFrame 177 0 126 0 234 0 148 0)
|
|
1310 |
#activeHelpKey: #bottomAbsolute
|
|
1311 |
#model: #bottomOffset
|
|
1312 |
#type: #numberOrNil
|
184
|
1313 |
)
|
|
1314 |
#(#ActionButtonSpec
|
690
|
1315 |
#name: 'actionAbsoluteBottom'
|
|
1316 |
#layout: #(#LayoutFrame 239 0 126 0 258 0 144 0)
|
|
1317 |
#activeHelpKey: #makeBottomAbsolute
|
|
1318 |
#model: #absoluteBottom
|
184
|
1319 |
)
|
|
1320 |
)
|
|
1321 |
)
|
|
1322 |
)
|
|
1323 |
! !
|
|
1324 |
|
|
1325 |
!UILayoutTool::LayoutFrame methodsFor:'accessing'!
|
|
1326 |
|
|
1327 |
fetch:aView
|
|
1328 |
|layout|
|
|
1329 |
|
|
1330 |
layout := UIPainterView asLayoutFrameFromView:aView.
|
|
1331 |
|
|
1332 |
(self aspectFor:#leftOffset) value:(layout leftOffset).
|
|
1333 |
(self aspectFor:#leftFraction) value:(layout leftFraction).
|
|
1334 |
(self aspectFor:#topOffset) value:(layout topOffset).
|
|
1335 |
(self aspectFor:#topFraction) value:(layout topFraction).
|
|
1336 |
(self aspectFor:#rightOffset) value:(layout rightOffset).
|
|
1337 |
(self aspectFor:#bottomOffset) value:(layout bottomOffset).
|
|
1338 |
(self aspectFor:#rightFraction) value:(layout rightFraction).
|
|
1339 |
(self aspectFor:#bottomFraction) value:(layout bottomFraction).
|
|
1340 |
|
|
1341 |
!
|
|
1342 |
|
|
1343 |
layout
|
|
1344 |
"returns current layout as layoutFrame
|
|
1345 |
"
|
|
1346 |
|layout|
|
|
1347 |
|
|
1348 |
layout := Smalltalk::LayoutFrame new.
|
|
1349 |
|
|
1350 |
layout leftOffset:((self aspectFor:#leftOffset) value) ? 0.
|
|
1351 |
layout rightOffset:((self aspectFor:#rightOffset) value) ? 0.
|
|
1352 |
layout topOffset:((self aspectFor:#topOffset) value) ? 0.
|
|
1353 |
layout bottomOffset:((self aspectFor:#bottomOffset) value) ? 0.
|
|
1354 |
layout leftFraction:((self aspectFor:#leftFraction) value) ? 0.
|
|
1355 |
layout rightFraction:((self aspectFor:#rightFraction) value) ? 0.
|
|
1356 |
layout topFraction:((self aspectFor:#topFraction) value) ? 0.
|
|
1357 |
layout bottomFraction:((self aspectFor:#bottomFraction) value) ? 0.
|
|
1358 |
|
|
1359 |
^ layout
|
|
1360 |
|
|
1361 |
! !
|
|
1362 |
|
|
1363 |
!UILayoutTool::LayoutOrigin class methodsFor:'interface specs'!
|
|
1364 |
|
|
1365 |
windowSpec
|
741
|
1366 |
"This resource specification was automatically generated
|
|
1367 |
by the UIPainter of ST/X."
|
184
|
1368 |
|
741
|
1369 |
"Do not manually edit this!! If it is corrupted,
|
|
1370 |
the UIPainter may not be able to read the specification."
|
184
|
1371 |
|
|
1372 |
"
|
|
1373 |
UIPainter new openOnClass:UILayoutTool::LayoutOrigin andSelector:#windowSpec
|
|
1374 |
UILayoutTool::LayoutOrigin new openInterface:#windowSpec
|
741
|
1375 |
UILayoutTool::LayoutOrigin open
|
184
|
1376 |
"
|
|
1377 |
|
|
1378 |
<resource: #canvas>
|
|
1379 |
|
|
1380 |
^
|
|
1381 |
|
|
1382 |
#(#FullSpec
|
741
|
1383 |
#window:
|
184
|
1384 |
#(#WindowSpec
|
741
|
1385 |
#name: 'UILayoutTool-LayoutOrigin'
|
|
1386 |
#layout: #(#LayoutFrame 417 0 298 0 674 0 390 0)
|
|
1387 |
#label: 'UILayoutTool-LayoutOrigin'
|
|
1388 |
#min: #(#Point 10 10)
|
|
1389 |
#max: #(#Point 1152 900)
|
|
1390 |
#bounds: #(#Rectangle 417 298 675 391)
|
|
1391 |
#usePreferredExtent: false
|
184
|
1392 |
)
|
741
|
1393 |
#component:
|
184
|
1394 |
#(#SpecCollection
|
741
|
1395 |
#collection:
|
184
|
1396 |
#(
|
|
1397 |
#(#UISubSpecification
|
741
|
1398 |
#name: 'subSpec'
|
|
1399 |
#layout: #(#LayoutOrigin 0 0 0 0)
|
|
1400 |
#majorKey: #UILayoutTool
|
|
1401 |
#minorKey: #layoutOriginSpec
|
184
|
1402 |
)
|
|
1403 |
)
|
|
1404 |
)
|
|
1405 |
)
|
|
1406 |
! !
|
|
1407 |
|
|
1408 |
!UILayoutTool::LayoutOrigin methodsFor:'accessing'!
|
|
1409 |
|
|
1410 |
fetch:aView
|
|
1411 |
"fetch layoutOrigin
|
|
1412 |
"
|
|
1413 |
|layout|
|
|
1414 |
|
|
1415 |
layout := UIPainterView asLayoutFrameFromView:aView.
|
|
1416 |
|
|
1417 |
(self aspectFor:#leftOffset) value:(layout leftOffset).
|
|
1418 |
(self aspectFor:#leftFraction) value:(layout leftFraction).
|
|
1419 |
(self aspectFor:#topOffset) value:(layout topOffset).
|
|
1420 |
(self aspectFor:#topFraction) value:(layout topFraction).
|
|
1421 |
|
|
1422 |
|
|
1423 |
!
|
|
1424 |
|
|
1425 |
layout
|
|
1426 |
"returns current layout as layoutOrigin
|
|
1427 |
"
|
|
1428 |
|layout|
|
|
1429 |
|
|
1430 |
layout := Smalltalk::LayoutOrigin new.
|
|
1431 |
|
|
1432 |
layout leftOffset:((self aspectFor:#leftOffset) value) ? 0.
|
|
1433 |
layout topOffset:((self aspectFor:#topOffset) value) ? 0.
|
|
1434 |
layout leftFraction:((self aspectFor:#leftFraction) value) ? 0.
|
|
1435 |
layout topFraction:((self aspectFor:#topFraction) value) ? 0.
|
|
1436 |
|
|
1437 |
^ layout
|
|
1438 |
|
|
1439 |
! !
|
|
1440 |
|
|
1441 |
!UILayoutTool::Point class methodsFor:'interface specs'!
|
|
1442 |
|
|
1443 |
windowSpec
|
741
|
1444 |
"This resource specification was automatically generated
|
|
1445 |
by the UIPainter of ST/X."
|
184
|
1446 |
|
741
|
1447 |
"Do not manually edit this!! If it is corrupted,
|
|
1448 |
the UIPainter may not be able to read the specification."
|
184
|
1449 |
|
|
1450 |
"
|
|
1451 |
UIPainter new openOnClass:UILayoutTool::Point andSelector:#windowSpec
|
|
1452 |
UILayoutTool::Point new openInterface:#windowSpec
|
741
|
1453 |
UILayoutTool::Point open
|
184
|
1454 |
"
|
|
1455 |
|
|
1456 |
<resource: #canvas>
|
|
1457 |
|
|
1458 |
^
|
|
1459 |
|
|
1460 |
#(#FullSpec
|
741
|
1461 |
#window:
|
184
|
1462 |
#(#WindowSpec
|
741
|
1463 |
#name: 'UILayoutTool-Point'
|
|
1464 |
#layout: #(#LayoutFrame 427 0 336 0 635 0 423 0)
|
|
1465 |
#label: 'UILayoutTool-Point'
|
|
1466 |
#min: #(#Point 10 10)
|
|
1467 |
#max: #(#Point 1152 900)
|
|
1468 |
#bounds: #(#Rectangle 427 336 636 424)
|
|
1469 |
#usePreferredExtent: false
|
184
|
1470 |
)
|
741
|
1471 |
#component:
|
184
|
1472 |
#(#SpecCollection
|
741
|
1473 |
#collection:
|
184
|
1474 |
#(
|
|
1475 |
#(#UISubSpecification
|
741
|
1476 |
#name: 'subSpec'
|
|
1477 |
#layout: #(#LayoutOrigin 0 0 0 0)
|
|
1478 |
#majorKey: #UILayoutTool
|
|
1479 |
#minorKey: #layoutPointSpec
|
184
|
1480 |
)
|
|
1481 |
)
|
|
1482 |
)
|
|
1483 |
)
|
|
1484 |
! !
|
|
1485 |
|
|
1486 |
!UILayoutTool::Point methodsFor:'accessing'!
|
|
1487 |
|
|
1488 |
fetch:aView
|
|
1489 |
"fetch point
|
|
1490 |
"
|
|
1491 |
|origin|
|
|
1492 |
|
|
1493 |
origin := aView computeOrigin.
|
|
1494 |
|
|
1495 |
(self aspectFor:#leftOffset) value:(origin x).
|
|
1496 |
(self aspectFor:#topOffset) value:(origin y).
|
|
1497 |
|
|
1498 |
|
|
1499 |
!
|
|
1500 |
|
|
1501 |
layout
|
|
1502 |
"returns current layout as point
|
|
1503 |
"
|
|
1504 |
^ Smalltalk::Point x:(((self aspectFor:#leftOffset) value) ? 0)
|
|
1505 |
y:(((self aspectFor:#topOffset) value) ? 0)
|
|
1506 |
|
|
1507 |
! !
|
|
1508 |
|
|
1509 |
!UILayoutTool::Rectangle class methodsFor:'interface specs'!
|
|
1510 |
|
|
1511 |
windowSpec
|
741
|
1512 |
"This resource specification was automatically generated
|
|
1513 |
by the UIPainter of ST/X."
|
184
|
1514 |
|
741
|
1515 |
"Do not manually edit this!! If it is corrupted,
|
|
1516 |
the UIPainter may not be able to read the specification."
|
184
|
1517 |
|
|
1518 |
"
|
|
1519 |
UIPainter new openOnClass:UILayoutTool::Rectangle andSelector:#windowSpec
|
|
1520 |
UILayoutTool::Rectangle new openInterface:#windowSpec
|
741
|
1521 |
UILayoutTool::Rectangle open
|
184
|
1522 |
"
|
|
1523 |
|
|
1524 |
<resource: #canvas>
|
|
1525 |
|
|
1526 |
^
|
|
1527 |
|
|
1528 |
#(#FullSpec
|
690
|
1529 |
#window:
|
184
|
1530 |
#(#WindowSpec
|
741
|
1531 |
#name: 'UILayoutTool-Rectangle'
|
|
1532 |
#layout: #(#LayoutFrame 357 0 349 0 580 0 494 0)
|
|
1533 |
#label: 'UILayoutTool-Rectangle'
|
690
|
1534 |
#min: #(#Point 10 10)
|
|
1535 |
#max: #(#Point 1152 900)
|
741
|
1536 |
#bounds: #(#Rectangle 357 349 581 495)
|
690
|
1537 |
#usePreferredExtent: false
|
184
|
1538 |
)
|
690
|
1539 |
#component:
|
184
|
1540 |
#(#SpecCollection
|
690
|
1541 |
#collection:
|
184
|
1542 |
#(
|
|
1543 |
#(#UISubSpecification
|
690
|
1544 |
#name: 'subSpecification'
|
|
1545 |
#layout: #(#LayoutOrigin 0 0 0 0)
|
|
1546 |
#majorKey: #UILayoutTool
|
|
1547 |
#minorKey: #layoutPointSpec
|
184
|
1548 |
)
|
|
1549 |
#(#LabelSpec
|
690
|
1550 |
#name: 'labelCornerX'
|
|
1551 |
#layout: #(#AlignmentOrigin 78 0 77 0 1 0)
|
|
1552 |
#label: 'Corner x:'
|
|
1553 |
#adjust: #left
|
184
|
1554 |
)
|
|
1555 |
#(#InputFieldSpec
|
690
|
1556 |
#name: 'fieldCornerX'
|
|
1557 |
#layout: #(#LayoutFrame 80 0 74 0 173 0 96 0)
|
|
1558 |
#activeHelpKey: #cornerX
|
|
1559 |
#tabable: true
|
|
1560 |
#model: #rightOffset
|
|
1561 |
#type: #numberOrNil
|
184
|
1562 |
)
|
|
1563 |
#(#LabelSpec
|
690
|
1564 |
#name: 'labelCornerY'
|
|
1565 |
#layout: #(#AlignmentOrigin 78 0 104 0 1 0)
|
|
1566 |
#label: 'Corner y:'
|
|
1567 |
#adjust: #left
|
184
|
1568 |
)
|
|
1569 |
#(#InputFieldSpec
|
690
|
1570 |
#name: 'fieldCornerY'
|
|
1571 |
#layout: #(#LayoutFrame 80 0 101 0 173 0 123 0)
|
|
1572 |
#activeHelpKey: #cornerY
|
|
1573 |
#tabable: true
|
|
1574 |
#model: #bottomOffset
|
|
1575 |
#type: #numberOrNil
|
184
|
1576 |
)
|
|
1577 |
)
|
|
1578 |
)
|
|
1579 |
)
|
|
1580 |
! !
|
|
1581 |
|
|
1582 |
!UILayoutTool::Rectangle methodsFor:'accessing'!
|
|
1583 |
|
|
1584 |
fetch:aView
|
|
1585 |
"fetch rectangle
|
|
1586 |
"
|
|
1587 |
|origin corner|
|
|
1588 |
|
|
1589 |
origin := aView computeOrigin.
|
|
1590 |
corner := aView computeCorner.
|
|
1591 |
|
|
1592 |
(self aspectFor:#leftOffset) value:(origin x).
|
|
1593 |
(self aspectFor:#rightOffset) value:(corner x).
|
|
1594 |
(self aspectFor:#topOffset) value:(origin y).
|
|
1595 |
(self aspectFor:#bottomOffset) value:(corner y).
|
|
1596 |
|
|
1597 |
|
|
1598 |
!
|
|
1599 |
|
|
1600 |
layout
|
|
1601 |
"returns current layout as rectangle
|
|
1602 |
"
|
|
1603 |
^ Smalltalk::Rectangle left:(((self aspectFor:#leftOffset) value) ? 0)
|
|
1604 |
top:(((self aspectFor:#topOffset) value) ? 0)
|
|
1605 |
right:(((self aspectFor:#rightOffset) value) ? 0)
|
|
1606 |
bottom:(((self aspectFor:#bottomOffset) value) ? 0)
|
|
1607 |
|
|
1608 |
|
|
1609 |
! !
|
|
1610 |
|
163
|
1611 |
!UILayoutTool class methodsFor:'documentation'!
|
|
1612 |
|
|
1613 |
version
|
|
1614 |
^ '$Header$'
|
|
1615 |
! !
|