author | Claus Gittinger <cg@exept.de> |
Wed, 13 May 2009 18:11:36 +0200 | |
changeset 2677 | 9bc1f9a75f63 |
parent 2676 | 131b8d5bd5ef |
child 2678 | 84910a54e71e |
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 |
2677 | 15 |
instanceVariableNames:'container layout name visibilityChannel 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 |
|
155 |
^ visibilityChannel |
|
156 |
! |
|
157 |
||
158 |
visibilityChannel:something |
|
159 |
visibilityChannel removeDependent:self. |
|
160 |
visibilityChannel := something. |
|
161 |
visibilityChannel notNil ifTrue:[ visibilityChannel addDependent:self]. |
|
289
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 |
|
2666 | 164 |
!VisualPart methodsFor:'accessing-dimensions'! |
165 |
||
166 |
bounds:newBounds |
|
2675 | 167 |
"/ self assert:(newBounds left isInteger). |
168 |
"/ self assert:(newBounds width isInteger). |
|
169 |
"/ self assert:(newBounds top isInteger). |
|
170 |
"/ self assert:(newBounds height isInteger). |
|
2671 | 171 |
|
2675 | 172 |
frame := newBounds rounded. |
2673 | 173 |
! |
174 |
||
175 |
possiblyInvalidate |
|
176 |
container notNil ifTrue:[ |
|
177 |
self computeBoundingBox. |
|
178 |
frame notNil ifTrue:[ |
|
179 |
container invalidate:(frame insetBy:-2). |
|
180 |
] |
|
181 |
]. |
|
2666 | 182 |
! ! |
183 |
||
2675 | 184 |
!VisualPart methodsFor:'change & update'! |
185 |
||
186 |
update:something with:aParameter from:changedObject |
|
187 |
"/ invalidate is always ok - however, it will redraw bg, fg and line |
|
188 |
"/ and therefore may produce flicker (unless double buffering) |
|
189 |
||
190 |
(changedObject == originChannel |
|
191 |
or:[ changedObject == extentChannel ]) ifTrue:[ |
|
2676 | 192 |
"/ invalidate old region |
193 |
self container |
|
194 |
clearRectangle:self frame; |
|
195 |
invalidateRectangle:self frame repairNow:false. |
|
196 |
||
197 |
"/ flush cached frame info. |
|
2675 | 198 |
frame := nil. |
199 |
]. |
|
200 |
self invalidate. |
|
201 |
! ! |
|
202 |
||
294 | 203 |
!VisualPart methodsFor:'view protocol mimicri'! |
289
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
204 |
|
2660 | 205 |
bottomInset |
206 |
^ 0 |
|
207 |
! |
|
208 |
||
2671 | 209 |
computeBoundingBox |
2675 | 210 |
|newBounds newOrigin newExtent delta| |
211 |
||
212 |
container notNil ifTrue:[ |
|
213 |
layout notNil ifTrue:[ |
|
214 |
newBounds := layout |
|
215 |
rectangleRelativeTo:(0@0 extent:container extent "container bounds") |
|
216 |
preferred:self preferredBounds. |
|
217 |
]. |
|
218 |
(newExtent := extentChannel value) notNil ifTrue:[ |
|
219 |
newBounds isNil ifTrue:[ |
|
220 |
newBounds := 0@0 extent:newExtent. |
|
221 |
] ifFalse:[ |
|
222 |
newBounds extent:newExtent |
|
223 |
] |
|
224 |
]. |
|
225 |
(newOrigin := originChannel value) notNil ifTrue:[ |
|
226 |
newBounds isNil ifTrue:[ |
|
227 |
newBounds := newOrigin extent:(self preferredExtent). |
|
228 |
]. |
|
229 |
delta := newOrigin - newBounds origin. |
|
230 |
newBounds origin:newOrigin corner:(newBounds corner + delta). |
|
231 |
]. |
|
232 |
newBounds notNil ifTrue:[ |
|
233 |
self bounds:newBounds. |
|
234 |
]. |
|
2671 | 235 |
]. |
236 |
||
237 |
^ frame |
|
238 |
! |
|
239 |
||
2666 | 240 |
computeCorner |
241 |
^ self corner |
|
242 |
! |
|
243 |
||
2660 | 244 |
computeExtent |
245 |
^ self extent |
|
246 |
! |
|
247 |
||
248 |
computeOrigin |
|
249 |
^ self origin |
|
250 |
! |
|
251 |
||
289
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
252 |
containerChangedSize |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
253 |
"my container changed its size. |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
254 |
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
|
255 |
to resize when this happens." |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
256 |
|
323 | 257 |
"/Transcript show:'container '; show:container; show:' of '; show:self; |
258 |
"/ show:' changed size to '; showCR:container viewRectangle. |
|
259 |
||
2668 | 260 |
layout notNil ifTrue:[ |
261 |
self bounds:(layout |
|
2670 | 262 |
rectangleRelativeTo:(0@0 extent:container extent "container bounds") |
2666 | 263 |
preferred:self preferredBounds). |
2665 | 264 |
]. |
2666 | 265 |
"/ self invalidate. |
289
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
266 |
|
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
267 |
"Created: 4.6.1996 / 21:27:58 / cg" |
323 | 268 |
"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
|
269 |
! |
289
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
270 |
|
2660 | 271 |
cornerRule |
272 |
^ nil |
|
273 |
! |
|
274 |
||
289
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
275 |
create |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
276 |
"want myself to be created." |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
277 |
|
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
278 |
container create |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
279 |
|
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
280 |
"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
|
281 |
! |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
282 |
|
2660 | 283 |
destroy |
284 |
|c| |
|
285 |
||
286 |
(c := container) notNil ifTrue:[ |
|
287 |
container := nil. |
|
2671 | 288 |
frame notNil ifTrue:[ c invalidate:frame ]. |
2660 | 289 |
c removeComponent:self. |
290 |
]. |
|
291 |
! |
|
292 |
||
293 |
device |
|
294 |
^ container device |
|
295 |
! |
|
296 |
||
297 |
extentRule |
|
298 |
^ nil |
|
299 |
! |
|
300 |
||
2666 | 301 |
geometryLayout |
302 |
^ layout |
|
303 |
! |
|
304 |
||
305 |
geometryLayout:newLayoutOrNil |
|
2673 | 306 |
self possiblyInvalidate. |
2671 | 307 |
|
2670 | 308 |
frame := nil. |
2666 | 309 |
layout := newLayoutOrNil. |
2671 | 310 |
|
2673 | 311 |
self possiblyInvalidate. |
2666 | 312 |
! |
313 |
||
962
e6ccfc7fb22e
added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents:
365
diff
changeset
|
314 |
invalidate |
e6ccfc7fb22e
added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents:
365
diff
changeset
|
315 |
container notNil ifTrue:[ |
2672 | 316 |
(layout notNil or:[frame notNil]) ifTrue:[ |
317 |
container invalidate:self bounds |
|
318 |
] |
|
962
e6ccfc7fb22e
added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents:
365
diff
changeset
|
319 |
] |
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 |
"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
|
322 |
! |
e6ccfc7fb22e
added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents:
365
diff
changeset
|
323 |
|
2660 | 324 |
isComponentOf:aViewOrComponent |
325 |
"return true, if I am a (direct or indirect) component of aViewOrComponent" |
|
326 |
||
327 |
|sview| |
|
328 |
||
329 |
sview := self. |
|
330 |
||
331 |
[ (sview := sview container) notNil ] whileTrue:[ |
|
332 |
sview == aViewOrComponent ifTrue:[^ true]. |
|
333 |
]. |
|
334 |
^ false |
|
335 |
! |
|
336 |
||
337 |
leftInset |
|
338 |
^ 0 |
|
339 |
! |
|
340 |
||
341 |
originRelativeTo:aContainer |
|
342 |
"return the origin (in pixels) relative to a superView, |
|
343 |
or relative to the rootView (if the aView argument is nil). |
|
344 |
If the receiver is nonNil and not a subview of aView, return nil." |
|
345 |
||
346 |
|currentPart |
|
347 |
bw "{ Class: SmallInteger }" |
|
348 |
sumX "{ Class: SmallInteger }" |
|
349 |
sumY "{ Class: SmallInteger }"| |
|
350 |
||
351 |
currentPart := self. |
|
352 |
sumX := 0. |
|
353 |
sumY := 0. |
|
354 |
[currentPart notNil] whileTrue:[ |
|
355 |
(currentPart == aContainer) ifTrue:[ |
|
356 |
^ (sumX @ sumY) |
|
357 |
]. |
|
358 |
bw := currentPart borderWidth. |
|
359 |
sumX := sumX + (currentPart left) + bw. |
|
360 |
sumY := sumY + (currentPart top) + bw. |
|
361 |
currentPart := currentPart superView |
|
362 |
]. |
|
363 |
||
364 |
(aContainer isNil or:[aContainer == self graphicsDevice rootView]) ifTrue:[ |
|
365 |
"return relative to screen ..." |
|
366 |
^ (sumX @ sumY) |
|
367 |
]. |
|
368 |
^ nil |
|
369 |
! |
|
370 |
||
371 |
originRule |
|
372 |
^ nil |
|
373 |
! |
|
374 |
||
289
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
375 |
realize |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
376 |
"my container realized itself. |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
377 |
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
|
378 |
to do something when this happens." |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
379 |
|
998 | 380 |
self realizeAllSubViews |
381 |
||
382 |
"Created: / 4.6.1996 / 21:28:31 / cg" |
|
383 |
"Modified: / 6.7.1998 / 18:38:28 / cg" |
|
384 |
! |
|
385 |
||
386 |
realizeAllSubViews |
|
387 |
"realize all my subviews - but not myself." |
|
388 |
||
289
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
389 |
^ self |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
390 |
|
998 | 391 |
"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
|
392 |
! |
289
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
393 |
|
2660 | 394 |
relativeCorner |
395 |
^ nil |
|
396 |
! |
|
397 |
||
398 |
relativeExtent |
|
399 |
^ nil |
|
400 |
! |
|
401 |
||
402 |
relativeOrigin |
|
403 |
^ nil |
|
404 |
! |
|
405 |
||
406 |
rightInset |
|
407 |
^ 0 |
|
408 |
! |
|
409 |
||
1220
39e5e28042da
protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents:
998
diff
changeset
|
410 |
shown |
39e5e28042da
protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents:
998
diff
changeset
|
411 |
container isNil ifTrue:[^ false]. |
39e5e28042da
protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents:
998
diff
changeset
|
412 |
^ container shown |
39e5e28042da
protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents:
998
diff
changeset
|
413 |
|
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 |
|
289
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
417 |
subViewChangedSize |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
418 |
^ self |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
419 |
|
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
420 |
"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
|
421 |
! |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
422 |
|
2668 | 423 |
subViews |
424 |
^ #() |
|
425 |
! |
|
426 |
||
2660 | 427 |
topInset |
428 |
^ 0 |
|
429 |
! |
|
430 |
||
431 |
topView |
|
432 |
^ container topView |
|
433 |
! |
|
434 |
||
289
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
435 |
windowGroup |
5620dcc0c5f6
prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents:
265
diff
changeset
|
436 |
^ container windowGroup |
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 |
"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
|
439 |
! |
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 |
withAllSubViewsDo:aBlock |
39e5e28042da
protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents:
998
diff
changeset
|
442 |
aBlock value:self |
249 | 443 |
! ! |
444 |
||
365 | 445 |
!VisualPart class methodsFor:'documentation'! |
249 | 446 |
|
447 |
version |
|
2677 | 448 |
^ '$Header: /cvs/stx/stx/libview2/VisualPart.st,v 1.24 2009-05-13 16:11:36 cg Exp $' |
249 | 449 |
! ! |