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