author | lukas |
Thu, 05 Jul 2018 12:31:09 +0200 | |
changeset 4145 | 1bc96f1a16f9 |
parent 4025 | 6dec06844424 |
child 4208 | 5c2ffd6cd55b |
permissions | -rw-r--r-- |
2376 | 1 |
" |
2 |
COPYRIGHT (c) 2002 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 |
" |
|
1789 | 12 |
"{ Package: 'stx:libview2' }" |
13 |
||
4025 | 14 |
"{ NameSpace: Smalltalk }" |
15 |
||
249 | 16 |
VisualComponent subclass:#VisualPart |
2678 | 17 |
instanceVariableNames:'container layout name visibilityHolder originHolder extentHolder' |
249 | 18 |
classVariableNames:'' |
19 |
poolDictionaries:'' |
|
1789 | 20 |
category:'Compatibility-ST80-Graphics-Display Objects' |
249 | 21 |
! |
22 |
||
365 | 23 |
!VisualPart class methodsFor:'documentation'! |
265 | 24 |
|
2376 | 25 |
copyright |
26 |
" |
|
27 |
COPYRIGHT (c) 2002 by eXept Software AG |
|
28 |
All Rights Reserved |
|
29 |
||
30 |
This software is furnished under a license and may be used |
|
31 |
only in accordance with the terms of that license and with the |
|
32 |
inclusion of the above copyright notice. This software may not |
|
33 |
be provided or otherwise made available to, or used by, any |
|
34 |
other person. No title to or ownership of the software is |
|
35 |
hereby transferred. |
|
36 |
" |
|
37 |
! |
|
38 |
||
265 | 39 |
documentation |
40 |
" |
|
41 |
abstract superclass for all kinds of visual components, which |
|
42 |
are containers for some other component. |
|
43 |
This class and its subclasses (currently) exist mostly for |
|
44 |
ST-80 compatibility - to provide a home for ported PD classes, |
|
45 |
which depend on the VisualPart hierarchy. |
|
46 |
||
47 |
Notice: |
|
48 |
this class was implemented using protocol information |
|
365 | 49 |
from alpha testers, from reading PD programs and |
50 |
from the Hopkins/Horan book. |
|
265 | 51 |
- it may not be complete or compatible to the corresponding ST-80 class. |
52 |
If you encounter any incompatibilities, please forward a note |
|
53 |
describing the incompatibility verbal (i.e. no code) to the ST/X team. |
|
54 |
This is still being constructed - not yet finished. |
|
55 |
||
56 |
[author:] |
|
57 |
Claus Gittinger |
|
58 |
||
59 |
[see also:] |
|
60 |
GeometricWrapper |
|
61 |
" |
|
62 |
||
63 |
||
64 |
! ! |
|
249 | 65 |
|
66 |
!VisualPart methodsFor:'accessing'! |
|
67 |
||
68 |
container |
|
289
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
69 |
"return my container" |
249 | 70 |
|
71 |
^ container |
|
72 |
||
73 |
"Created: 9.5.1996 / 00:31:41 / cg" |
|
289
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
74 |
"Modified: 5.6.1996 / 01:08:26 / cg" |
249 | 75 |
! |
76 |
||
77 |
container:something |
|
78 |
"set container" |
|
79 |
||
80 |
container := something. |
|
81 |
||
82 |
"Created: 9.5.1996 / 00:31:41 / cg" |
|
83 |
! |
|
84 |
||
2677 | 85 |
extentHolder |
86 |
^ extentHolder |
|
2675 | 87 |
! |
88 |
||
2677 | 89 |
extentHolder:something |
90 |
extentHolder removeDependent:self. |
|
91 |
extentHolder := something. |
|
92 |
extentHolder notNil ifTrue:[ extentHolder addDependent:self]. |
|
2675 | 93 |
! |
94 |
||
249 | 95 |
graphicsContext |
96 |
"return the graphicsContext" |
|
97 |
||
254 | 98 |
^ container graphicsContext |
249 | 99 |
|
100 |
"Created: 9.5.1996 / 00:32:12 / cg" |
|
254 | 101 |
"Modified: 9.5.1996 / 01:37:10 / cg" |
102 |
! |
|
103 |
||
104 |
graphicsDevice |
|
105 |
"return the graphicsContext" |
|
106 |
||
107 |
^ container graphicsDevice |
|
108 |
||
109 |
"Created: 9.5.1996 / 00:32:12 / cg" |
|
110 |
"Modified: 9.5.1996 / 01:37:03 / cg" |
|
111 |
! |
|
112 |
||
2666 | 113 |
name |
114 |
^ name |
|
115 |
! |
|
116 |
||
117 |
name:something |
|
118 |
name := something. |
|
119 |
! |
|
120 |
||
2677 | 121 |
originHolder |
122 |
^ originHolder |
|
2675 | 123 |
! |
124 |
||
2677 | 125 |
originHolder:something |
126 |
originHolder removeDependent:self. |
|
127 |
originHolder := something. |
|
128 |
originHolder notNil ifTrue:[ originHolder addDependent:self]. |
|
2675 | 129 |
! |
130 |
||
254 | 131 |
topComponent |
132 |
"return the top component - typically the topView" |
|
133 |
||
134 |
^ container topComponent |
|
135 |
||
136 |
"Modified: 9.5.1996 / 01:37:10 / cg" |
|
137 |
"Created: 9.5.1996 / 01:39:15 / cg" |
|
289
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
138 |
! |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
139 |
|
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
140 |
view |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
141 |
"return my view" |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
142 |
|
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
143 |
container isNil ifTrue:[^ nil]. |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
144 |
^ container view |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
145 |
|
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
146 |
"Created: 4.6.1996 / 21:32:34 / cg" |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
147 |
"Modified: 5.6.1996 / 01:20:13 / cg" |
2675 | 148 |
! |
149 |
||
4025 | 150 |
visibilityHolder |
151 |
^ visibilityHolder |
|
152 |
! |
|
153 |
||
154 |
visibilityHolder:something |
|
155 |
visibilityHolder removeDependent:self. |
|
156 |
visibilityHolder := something. |
|
157 |
visibilityHolder notNil ifTrue:[ visibilityHolder addDependent:self]. |
|
158 |
! ! |
|
159 |
||
160 |
!VisualPart methodsFor:'accessing-channels'! |
|
161 |
||
2675 | 162 |
visibilityChannel |
2678 | 163 |
"/ self obsoleteMethodWarning. |
164 |
^ self visibilityHolder |
|
2675 | 165 |
! |
166 |
||
167 |
visibilityChannel:something |
|
2678 | 168 |
"/ self obsoleteMethodWarning. |
169 |
self visibilityHolder:something |
|
4025 | 170 |
! ! |
171 |
||
172 |
!VisualPart methodsFor:'accessing-color & font'! |
|
2678 | 173 |
|
4025 | 174 |
backgroundColor |
175 |
^ container backgroundColor |
|
2678 | 176 |
|
4025 | 177 |
"Created: / 18.6.1998 / 15:58:34 / cg" |
289
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
178 |
! ! |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
179 |
|
2666 | 180 |
!VisualPart methodsFor:'accessing-dimensions'! |
181 |
||
182 |
bounds:newBounds |
|
2675 | 183 |
"/ self assert:(newBounds left isInteger). |
184 |
"/ self assert:(newBounds width isInteger). |
|
185 |
"/ self assert:(newBounds top isInteger). |
|
186 |
"/ self assert:(newBounds height isInteger). |
|
2671 | 187 |
|
2675 | 188 |
frame := newBounds rounded. |
2673 | 189 |
! |
190 |
||
191 |
possiblyInvalidate |
|
192 |
container notNil ifTrue:[ |
|
193 |
self computeBoundingBox. |
|
194 |
frame notNil ifTrue:[ |
|
195 |
container invalidate:(frame insetBy:-2). |
|
196 |
] |
|
197 |
]. |
|
2666 | 198 |
! ! |
199 |
||
2675 | 200 |
!VisualPart methodsFor:'change & update'! |
201 |
||
202 |
update:something with:aParameter from:changedObject |
|
203 |
"/ invalidate is always ok - however, it will redraw bg, fg and line |
|
204 |
"/ and therefore may produce flicker (unless double buffering) |
|
205 |
||
2678 | 206 |
(changedObject == originHolder |
207 |
or:[ changedObject == extentHolder ]) ifTrue:[ |
|
2676 | 208 |
"/ invalidate old region |
209 |
self container |
|
210 |
clearRectangle:self frame; |
|
211 |
invalidateRectangle:self frame repairNow:false. |
|
212 |
||
213 |
"/ flush cached frame info. |
|
2675 | 214 |
frame := nil. |
215 |
]. |
|
216 |
self invalidate. |
|
217 |
! ! |
|
218 |
||
294 | 219 |
!VisualPart methodsFor:'view protocol mimicri'! |
289
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
220 |
|
2660 | 221 |
bottomInset |
222 |
^ 0 |
|
223 |
! |
|
224 |
||
2671 | 225 |
computeBoundingBox |
2675 | 226 |
|newBounds newOrigin newExtent delta| |
227 |
||
228 |
container notNil ifTrue:[ |
|
229 |
layout notNil ifTrue:[ |
|
230 |
newBounds := layout |
|
231 |
rectangleRelativeTo:(0@0 extent:container extent "container bounds") |
|
232 |
preferred:self preferredBounds. |
|
233 |
]. |
|
2678 | 234 |
(newExtent := extentHolder value) notNil ifTrue:[ |
2675 | 235 |
newBounds isNil ifTrue:[ |
236 |
newBounds := 0@0 extent:newExtent. |
|
237 |
] ifFalse:[ |
|
238 |
newBounds extent:newExtent |
|
239 |
] |
|
240 |
]. |
|
2678 | 241 |
(newOrigin := originHolder value) notNil ifTrue:[ |
2675 | 242 |
newBounds isNil ifTrue:[ |
243 |
newBounds := newOrigin extent:(self preferredExtent). |
|
244 |
]. |
|
245 |
delta := newOrigin - newBounds origin. |
|
246 |
newBounds origin:newOrigin corner:(newBounds corner + delta). |
|
247 |
]. |
|
248 |
newBounds notNil ifTrue:[ |
|
249 |
self bounds:newBounds. |
|
250 |
]. |
|
2671 | 251 |
]. |
252 |
||
253 |
^ frame |
|
254 |
! |
|
255 |
||
2666 | 256 |
computeCorner |
257 |
^ self corner |
|
258 |
! |
|
259 |
||
2660 | 260 |
computeExtent |
261 |
^ self extent |
|
262 |
! |
|
263 |
||
264 |
computeOrigin |
|
265 |
^ self origin |
|
266 |
! |
|
267 |
||
289
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
268 |
containerChangedSize |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
269 |
"my container changed its size. |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
270 |
The default here is to ignore this, but some wrappers like |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
271 |
to resize when this happens." |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
272 |
|
323 | 273 |
"/Transcript show:'container '; show:container; show:' of '; show:self; |
274 |
"/ show:' changed size to '; showCR:container viewRectangle. |
|
275 |
||
2668 | 276 |
layout notNil ifTrue:[ |
277 |
self bounds:(layout |
|
2670 | 278 |
rectangleRelativeTo:(0@0 extent:container extent "container bounds") |
2666 | 279 |
preferred:self preferredBounds). |
2665 | 280 |
]. |
2666 | 281 |
"/ self invalidate. |
289
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
282 |
|
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
283 |
"Created: 4.6.1996 / 21:27:58 / cg" |
323 | 284 |
"Modified: 19.7.1996 / 21:20:58 / cg" |
962
e6ccfc7fb22e
added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents:
365
diff
changeset
|
285 |
! |
289
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
286 |
|
2660 | 287 |
cornerRule |
288 |
^ nil |
|
289 |
! |
|
290 |
||
289
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
291 |
create |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
292 |
"want myself to be created." |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
293 |
|
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
294 |
container create |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
295 |
|
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
296 |
"Created: 4.6.1996 / 21:30:25 / cg" |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
297 |
! |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
298 |
|
2660 | 299 |
destroy |
300 |
|c| |
|
301 |
||
302 |
(c := container) notNil ifTrue:[ |
|
303 |
container := nil. |
|
2671 | 304 |
frame notNil ifTrue:[ c invalidate:frame ]. |
2660 | 305 |
c removeComponent:self. |
306 |
]. |
|
307 |
! |
|
308 |
||
309 |
device |
|
310 |
^ container device |
|
311 |
! |
|
312 |
||
313 |
extentRule |
|
314 |
^ nil |
|
315 |
! |
|
316 |
||
2666 | 317 |
geometryLayout |
318 |
^ layout |
|
319 |
! |
|
320 |
||
321 |
geometryLayout:newLayoutOrNil |
|
2673 | 322 |
self possiblyInvalidate. |
2671 | 323 |
|
2670 | 324 |
frame := nil. |
2666 | 325 |
layout := newLayoutOrNil. |
2671 | 326 |
|
2673 | 327 |
self possiblyInvalidate. |
2666 | 328 |
! |
329 |
||
962
e6ccfc7fb22e
added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents:
365
diff
changeset
|
330 |
invalidate |
e6ccfc7fb22e
added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents:
365
diff
changeset
|
331 |
container notNil ifTrue:[ |
2672 | 332 |
(layout notNil or:[frame notNil]) ifTrue:[ |
333 |
container invalidate:self bounds |
|
334 |
] |
|
962
e6ccfc7fb22e
added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents:
365
diff
changeset
|
335 |
] |
e6ccfc7fb22e
added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents:
365
diff
changeset
|
336 |
|
e6ccfc7fb22e
added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents:
365
diff
changeset
|
337 |
"Modified: / 18.6.1998 / 16:12:15 / cg" |
e6ccfc7fb22e
added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents:
365
diff
changeset
|
338 |
! |
e6ccfc7fb22e
added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents:
365
diff
changeset
|
339 |
|
2660 | 340 |
isComponentOf:aViewOrComponent |
341 |
"return true, if I am a (direct or indirect) component of aViewOrComponent" |
|
342 |
||
343 |
|sview| |
|
344 |
||
345 |
sview := self. |
|
346 |
||
347 |
[ (sview := sview container) notNil ] whileTrue:[ |
|
348 |
sview == aViewOrComponent ifTrue:[^ true]. |
|
349 |
]. |
|
350 |
^ false |
|
351 |
! |
|
352 |
||
353 |
leftInset |
|
354 |
^ 0 |
|
355 |
! |
|
356 |
||
357 |
originRelativeTo:aContainer |
|
358 |
"return the origin (in pixels) relative to a superView, |
|
359 |
or relative to the rootView (if the aView argument is nil). |
|
360 |
If the receiver is nonNil and not a subview of aView, return nil." |
|
361 |
||
362 |
|currentPart |
|
363 |
bw "{ Class: SmallInteger }" |
|
364 |
sumX "{ Class: SmallInteger }" |
|
365 |
sumY "{ Class: SmallInteger }"| |
|
366 |
||
367 |
currentPart := self. |
|
368 |
sumX := 0. |
|
369 |
sumY := 0. |
|
370 |
[currentPart notNil] whileTrue:[ |
|
371 |
(currentPart == aContainer) ifTrue:[ |
|
372 |
^ (sumX @ sumY) |
|
373 |
]. |
|
374 |
bw := currentPart borderWidth. |
|
375 |
sumX := sumX + (currentPart left) + bw. |
|
376 |
sumY := sumY + (currentPart top) + bw. |
|
377 |
currentPart := currentPart superView |
|
378 |
]. |
|
379 |
||
380 |
(aContainer isNil or:[aContainer == self graphicsDevice rootView]) ifTrue:[ |
|
381 |
"return relative to screen ..." |
|
382 |
^ (sumX @ sumY) |
|
383 |
]. |
|
384 |
^ nil |
|
385 |
! |
|
386 |
||
387 |
originRule |
|
388 |
^ nil |
|
389 |
! |
|
390 |
||
289
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
391 |
realize |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
392 |
"my container realized itself. |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
393 |
The default here is to ignore this, but some wrappers like |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
394 |
to do something when this happens." |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
395 |
|
998 | 396 |
self realizeAllSubViews |
397 |
||
398 |
"Created: / 4.6.1996 / 21:28:31 / cg" |
|
399 |
"Modified: / 6.7.1998 / 18:38:28 / cg" |
|
400 |
! |
|
401 |
||
402 |
realizeAllSubViews |
|
403 |
"realize all my subviews - but not myself." |
|
404 |
||
289
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
405 |
^ self |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
406 |
|
998 | 407 |
"Created: / 6.7.1998 / 18:37:08 / cg" |
962
e6ccfc7fb22e
added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents:
365
diff
changeset
|
408 |
! |
289
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
409 |
|
2660 | 410 |
relativeCorner |
411 |
^ nil |
|
412 |
! |
|
413 |
||
414 |
relativeExtent |
|
415 |
^ nil |
|
416 |
! |
|
417 |
||
418 |
relativeOrigin |
|
419 |
^ nil |
|
420 |
! |
|
421 |
||
422 |
rightInset |
|
423 |
^ 0 |
|
424 |
! |
|
425 |
||
1220
39e5e28042da
protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents:
998
diff
changeset
|
426 |
shown |
39e5e28042da
protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents:
998
diff
changeset
|
427 |
container isNil ifTrue:[^ false]. |
39e5e28042da
protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents:
998
diff
changeset
|
428 |
^ container shown |
39e5e28042da
protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents:
998
diff
changeset
|
429 |
|
39e5e28042da
protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents:
998
diff
changeset
|
430 |
|
39e5e28042da
protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents:
998
diff
changeset
|
431 |
! |
39e5e28042da
protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents:
998
diff
changeset
|
432 |
|
289
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
433 |
subViewChangedSize |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
434 |
^ self |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
435 |
|
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
436 |
"Created: 4.6.1996 / 21:35:57 / cg" |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
437 |
! |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
438 |
|
2668 | 439 |
subViews |
440 |
^ #() |
|
441 |
! |
|
442 |
||
2660 | 443 |
topInset |
444 |
^ 0 |
|
445 |
! |
|
446 |
||
447 |
topView |
|
3413 | 448 |
"return the topView - that's the one with no superview" |
449 |
||
2660 | 450 |
^ container topView |
451 |
! |
|
452 |
||
289
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
453 |
windowGroup |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
454 |
^ container windowGroup |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
455 |
|
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
456 |
"Created: 5.6.1996 / 00:49:19 / cg" |
1220
39e5e28042da
protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents:
998
diff
changeset
|
457 |
! |
39e5e28042da
protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents:
998
diff
changeset
|
458 |
|
39e5e28042da
protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents:
998
diff
changeset
|
459 |
withAllSubViewsDo:aBlock |
39e5e28042da
protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents:
998
diff
changeset
|
460 |
aBlock value:self |
249 | 461 |
! ! |
462 |
||
365 | 463 |
!VisualPart class methodsFor:'documentation'! |
249 | 464 |
|
465 |
version |
|
4025 | 466 |
^ '$Header$' |
249 | 467 |
! ! |
3413 | 468 |