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