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