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