author | Claus Gittinger <cg@exept.de> |
Wed, 15 Nov 2017 11:56:58 +0100 | |
changeset 6227 | ff84138a7915 |
parent 6165 | ff8b7a83327f |
child 6275 | 924ec06de44b |
permissions | -rw-r--r-- |
0 | 1 |
" |
5 | 2 |
COPYRIGHT (c) 1989 by Claus Gittinger |
60 | 3 |
All Rights Reserved |
0 | 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 |
" |
|
2190 | 12 |
"{ Package: 'stx:libwidg' }" |
13 |
||
5516 | 14 |
"{ NameSpace: Smalltalk }" |
15 |
||
119 | 16 |
SimpleView subclass:#PanelView |
585 | 17 |
instanceVariableNames:'hLayout vLayout verticalSpace horizontalSpace mustRearrange |
4415 | 18 |
elementsChangeSize ignoreInvisibleComponents backgroundChannel' |
585 | 19 |
classVariableNames:'' |
20 |
poolDictionaries:'' |
|
21 |
category:'Views-Layout' |
|
0 | 22 |
! |
23 |
||
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
24 |
!PanelView class methodsFor:'documentation'! |
0 | 25 |
|
38 | 26 |
copyright |
27 |
" |
|
28 |
COPYRIGHT (c) 1989 by Claus Gittinger |
|
60 | 29 |
All Rights Reserved |
0 | 30 |
|
38 | 31 |
This software is furnished under a license and may be used |
32 |
only in accordance with the terms of that license and with the |
|
33 |
inclusion of the above copyright notice. This software may not |
|
34 |
be provided or otherwise made available to, or used by, any |
|
35 |
other person. No title to or ownership of the software is |
|
36 |
hereby transferred. |
|
37 |
" |
|
38 |
! |
|
0 | 39 |
|
38 | 40 |
documentation |
41 |
" |
|
127 | 42 |
this is a view for holding subviews. (layout-widget ?) |
38 | 43 |
|
44 |
Instances of PanelView try to get all their subviews into them, |
|
45 |
arranging subviews left-to-right, top-to-bottom. |
|
46 |
||
5951 | 47 |
If you don't like its layout, define a new subclass or use one of |
38 | 48 |
the existing subclasses: HorizontalPanelView and VerticalPanelView. |
60 | 49 |
|
127 | 50 |
The panel assumes, that the elements do not resize themselfes, after it |
51 |
became visible. This is not true for all widgets (buttons or labels may |
|
52 |
like to change). If you have changing elements, tell this to the panel |
|
53 |
with 'aPanel elementsChangeSize:true'. In that case, the panel will react |
|
54 |
to size changes, and reorganize things. |
|
55 |
||
63 | 56 |
PanelViews normally delay the actual positioning/sizing of their elements, |
60 | 57 |
until actually displayed. This is useful, if more elements are to |
58 |
be added, to avoid repeated configuration of the elements. |
|
59 |
||
60 |
If you want to query for the relative position of an element BEFORE |
|
61 |
the view is visible, you have to send #setChildPositionsIfChanged before |
|
63 | 62 |
doing so (otherwise, you may get invalid origins from the subviews). As |
63 |
an example, the modalBoxes do so before showing themselfes to ask for the |
|
64 |
position of the ok-button relative to the top-left box-origin, in order to |
|
65 |
position the ok-button under the mouse-pointer. |
|
66 |
||
585 | 67 |
[Instance variables:] |
63 | 68 |
|
5951 | 69 |
hLayout <Symbol> controls horizontal layout; ignored in this |
70 |
class, but used in Horizontal- and |
|
71 |
VerticalPanelViews. See more info there. |
|
63 | 72 |
|
5951 | 73 |
vLayout <Symbol> controls vertical layout; ignored in this |
74 |
class, but used in Horizontal- and |
|
75 |
VerticalPanelViews. See more info there. |
|
1418
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
76 |
|
5951 | 77 |
horizontalSpace <Integer> number of pixels to use as space between elements |
78 |
defaults to ViewSpacing, which is 1mm |
|
63 | 79 |
|
5951 | 80 |
verticalSpace <Integer> number of pixels to use as space between elements |
81 |
defaults to ViewSpacing, which is 1mm |
|
63 | 82 |
|
5951 | 83 |
mustRearrange <Boolean> internal flag, if rearrangement is needed |
63 | 84 |
|
5951 | 85 |
elementsChangeSize |
86 |
<Boolean> if true, the panel takes care of this situation. |
|
87 |
By default, this is false. |
|
125 | 88 |
|
5951 | 89 |
ignoreInvisibleComponents |
90 |
<Boolean> if true, invisible (i.e. hidden) views |
|
91 |
are not considered in the layout computation. |
|
92 |
If false, they will lead to additional space |
|
93 |
between visible components. |
|
94 |
The default is false. |
|
585 | 95 |
|
96 |
[author:] |
|
5951 | 97 |
Claus Gittinger |
1418
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
98 |
" |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
99 |
! |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
100 |
|
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
101 |
examples |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
102 |
" |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
103 |
The generic panelView simply tries to get its |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
104 |
components arranged for fitting them all into |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
105 |
its area. No special layout is done, except for |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
106 |
horizontal/vertical spacings. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
107 |
The view is filled top-left to bottom-right |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
108 |
with subcomponents. Subcomponents are not resized. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
109 |
|
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
110 |
example: |
1604 | 111 |
[exBegin] |
112 |
|v p b1 b2 b3| |
|
113 |
||
114 |
v := StandardSystemView new. |
|
115 |
v label:'panel'. |
|
1418
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
116 |
|
1604 | 117 |
p := PanelView in:v. |
118 |
p origin:(0.0 @ 0.0) corner:(1.0 @ 1.0). |
|
119 |
b1 := Button label:'button1' in:p. |
|
120 |
b2 := Button label:'button2' in:p. |
|
121 |
b3 := Button label:'button3' in:p. |
|
122 |
v extent:300 @ 100. |
|
123 |
v open |
|
124 |
[exEnd] |
|
125 |
||
126 |
||
127 |
invisible component not considered in layout: |
|
128 |
[exBegin] |
|
129 |
|v p b1 b2 b3| |
|
130 |
||
131 |
v := StandardSystemView new. |
|
132 |
v label:'panel'. |
|
1418
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
133 |
|
1604 | 134 |
p := PanelView in:v. |
135 |
p origin:(0.0 @ 0.0) corner:(1.0 @ 1.0). |
|
136 |
b1 := Button label:'button1' in:p. |
|
137 |
b2 := Button label:'button2' in:p. |
|
138 |
b2 beInvisible. |
|
139 |
b3 := Button label:'button3' in:p. |
|
140 |
v extent:300 @ 100. |
|
141 |
v open |
|
142 |
[exEnd] |
|
143 |
||
144 |
invisible component considered in layout: |
|
145 |
[exBegin] |
|
146 |
|v p b1 b2 b3| |
|
147 |
||
148 |
v := StandardSystemView new. |
|
149 |
v label:'panel'. |
|
150 |
||
151 |
p := PanelView in:v. |
|
152 |
p origin:(0.0 @ 0.0) corner:(1.0 @ 1.0). |
|
153 |
p ignoreInvisibleComponents:false. |
|
154 |
b1 := Button label:'button1' in:p. |
|
155 |
b2 := Button label:'button2' in:p. |
|
156 |
b2 beInvisible. |
|
157 |
b3 := Button label:'button3' in:p. |
|
158 |
v extent:300 @ 100. |
|
159 |
v open |
|
160 |
[exEnd] |
|
38 | 161 |
" |
787
c568dfd06f11
recompute & resize to the preferredExtent when views are added
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
162 |
! ! |
c568dfd06f11
recompute & resize to the preferredExtent when views are added
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
163 |
|
202 | 164 |
!PanelView methodsFor:'accessing'! |
165 |
||
1959 | 166 |
elementsChangeSize |
167 |
"tell the panel if elements are to change their size by themselfes |
|
168 |
(for example, Labels or Buttons may do so if their contents changes). |
|
169 |
Setting this flag will make the panel reorganize the elements whenever |
|
170 |
any element changes its size." |
|
171 |
||
172 |
^ elementsChangeSize |
|
173 |
! |
|
174 |
||
202 | 175 |
elementsChangeSize:aBoolean |
176 |
"tell the panel if elements are to change their size by themselfes |
|
1418
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
177 |
(for example, Labels or Buttons may do so if their contents changes). |
202 | 178 |
Setting this flag will make the panel reorganize the elements whenever |
179 |
any element changes its size." |
|
180 |
||
3117
6d0c7aa281f2
#elementsChangeSize: do nothing, if instance var doesn't change
Stefan Vogel <sv@exept.de>
parents:
2753
diff
changeset
|
181 |
elementsChangeSize ~~ aBoolean ifTrue:[ |
6d0c7aa281f2
#elementsChangeSize: do nothing, if instance var doesn't change
Stefan Vogel <sv@exept.de>
parents:
2753
diff
changeset
|
182 |
elementsChangeSize := aBoolean. |
6d0c7aa281f2
#elementsChangeSize: do nothing, if instance var doesn't change
Stefan Vogel <sv@exept.de>
parents:
2753
diff
changeset
|
183 |
aBoolean ifTrue:[ |
6d0c7aa281f2
#elementsChangeSize: do nothing, if instance var doesn't change
Stefan Vogel <sv@exept.de>
parents:
2753
diff
changeset
|
184 |
self makeMyselfDependentOnSubviews. |
6d0c7aa281f2
#elementsChangeSize: do nothing, if instance var doesn't change
Stefan Vogel <sv@exept.de>
parents:
2753
diff
changeset
|
185 |
]. |
6d0c7aa281f2
#elementsChangeSize: do nothing, if instance var doesn't change
Stefan Vogel <sv@exept.de>
parents:
2753
diff
changeset
|
186 |
]. |
1418
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
187 |
! |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
188 |
|
3843 | 189 |
hierarchicalIndexOfChild:aView |
190 |
^ aView hierarchicalIndexInList:subViews |
|
191 |
! |
|
192 |
||
1036 | 193 |
horizontalLayout |
194 |
"not supported by this view" |
|
195 |
||
196 |
^ nil |
|
197 |
! |
|
198 |
||
199 |
horizontalLayout:aLayoutSymbol |
|
200 |
"not supported by this view" |
|
201 |
||
202 |
! |
|
203 |
||
5905 | 204 |
horizontalLayout:layoutSymbolH verticalLayout:layoutSymbolV |
205 |
self horizontalLayout:layoutSymbolH. |
|
206 |
self verticalLayout:layoutSymbolV |
|
207 |
! |
|
208 |
||
1072 | 209 |
horizontalSpace |
210 |
"return the horizontal space between elements on pixels (default is 1mm)" |
|
211 |
||
212 |
^ horizontalSpace |
|
213 |
! |
|
214 |
||
202 | 215 |
horizontalSpace:numberOfPixels |
216 |
"set the horizontal space between elements on pixels (default is 1mm)" |
|
217 |
||
218 |
horizontalSpace ~= numberOfPixels ifTrue:[ |
|
219 |
horizontalSpace := numberOfPixels. |
|
220 |
self layoutChanged |
|
221 |
] |
|
222 |
! |
|
223 |
||
1423 | 224 |
ignoreInvisibleComponents |
225 |
"return the flag which controls if invisible (unrealized) |
|
226 |
components should be ignored in the layout computation. |
|
227 |
By default, it is false, which means that invisible components will |
|
228 |
lead to a visible space between visible components" |
|
229 |
||
230 |
^ ignoreInvisibleComponents |
|
231 |
! |
|
232 |
||
233 |
ignoreInvisibleComponents:aBoolean |
|
234 |
"set/clears the flag which controls if invisible (unrealized) |
|
235 |
components should be ignored in the layout computation. |
|
236 |
By default, it is false, which means that invisible components will |
|
2006 | 237 |
lead to a visible space between visible components." |
1423 | 238 |
|
1605
6ddd87c04fd5
recompute layout when ignoreInvisible* is changed.
Claus Gittinger <cg@exept.de>
parents:
1604
diff
changeset
|
239 |
(ignoreInvisibleComponents ~~ aBoolean) ifTrue:[ |
2006 | 240 |
aBoolean ifTrue:[ |
241 |
self makeMyselfDependentOnSubviews. |
|
242 |
]. |
|
1605
6ddd87c04fd5
recompute layout when ignoreInvisible* is changed.
Claus Gittinger <cg@exept.de>
parents:
1604
diff
changeset
|
243 |
ignoreInvisibleComponents := aBoolean. |
6ddd87c04fd5
recompute layout when ignoreInvisible* is changed.
Claus Gittinger <cg@exept.de>
parents:
1604
diff
changeset
|
244 |
self layoutChanged |
6ddd87c04fd5
recompute layout when ignoreInvisible* is changed.
Claus Gittinger <cg@exept.de>
parents:
1604
diff
changeset
|
245 |
] |
6ddd87c04fd5
recompute layout when ignoreInvisible* is changed.
Claus Gittinger <cg@exept.de>
parents:
1604
diff
changeset
|
246 |
|
6ddd87c04fd5
recompute layout when ignoreInvisible* is changed.
Claus Gittinger <cg@exept.de>
parents:
1604
diff
changeset
|
247 |
"Modified: / 20.7.1998 / 14:12:38 / cg" |
1423 | 248 |
! |
249 |
||
202 | 250 |
space:numberOfPixels |
251 |
"set the space between elements in pixels (default is 1mm) for both directions" |
|
252 |
||
253 |
(verticalSpace ~= numberOfPixels |
|
254 |
or:[horizontalSpace ~= numberOfPixels]) ifTrue:[ |
|
255 |
horizontalSpace := numberOfPixels. |
|
256 |
verticalSpace := numberOfPixels. |
|
257 |
self layoutChanged |
|
258 |
] |
|
259 |
! |
|
260 |
||
1036 | 261 |
verticalLayout |
262 |
"not supported by this view" |
|
263 |
||
264 |
^ nil |
|
265 |
! |
|
266 |
||
267 |
verticalLayout:aLayoutSymbol |
|
268 |
"not supported by this view" |
|
269 |
||
270 |
! |
|
271 |
||
1072 | 272 |
verticalSpace |
273 |
"return the vertical space between elements on pixels (default is 1mm)" |
|
274 |
||
275 |
^ verticalSpace |
|
276 |
! |
|
277 |
||
202 | 278 |
verticalSpace:numberOfPixels |
279 |
"set the vertical space between elements (in pixels). |
|
280 |
The default is computed for 1mm spacing." |
|
281 |
||
282 |
verticalSpace ~= numberOfPixels ifTrue:[ |
|
283 |
verticalSpace := numberOfPixels. |
|
284 |
self layoutChanged |
|
285 |
] |
|
286 |
! ! |
|
287 |
||
4415 | 288 |
!PanelView methodsFor:'accessing-channels'! |
289 |
||
290 |
backgroundChannel |
|
291 |
"return a valueHolder for background color" |
|
292 |
||
293 |
^ backgroundChannel |
|
294 |
||
295 |
"Modified: / 30.3.1999 / 13:49:28 / stefan" |
|
296 |
"Created: / 30.3.1999 / 13:50:55 / stefan" |
|
297 |
! |
|
298 |
||
299 |
backgroundChannel:aValueHolder |
|
300 |
"set the backgroundChannel - a valueHolder holding a color" |
|
301 |
||
302 |
|prev| |
|
303 |
||
304 |
prev := backgroundChannel. |
|
305 |
backgroundChannel := aValueHolder. |
|
306 |
self setupChannel:aValueHolder for:#backgroundColorChanged withOld:prev |
|
307 |
||
308 |
"Modified: / 31.10.1997 / 14:38:38 / cg" |
|
309 |
"Created: / 30.3.1999 / 13:48:42 / stefan" |
|
310 |
! ! |
|
311 |
||
202 | 312 |
!PanelView methodsFor:'adding & removing subviews'! |
313 |
||
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
314 |
addComponent:aComponent |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
315 |
"redefined to recompute layout when a component is added" |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
316 |
|
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
317 |
super addComponent:aComponent. |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
318 |
self addedView:aComponent |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
319 |
|
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
320 |
"Created: 28.1.1997 / 17:44:18 / cg" |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
321 |
! |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
322 |
|
202 | 323 |
addSubView:aView |
324 |
"redefined to recompute layout when a subview is added" |
|
325 |
||
326 |
super addSubView:aView. |
|
327 |
self addedView:aView |
|
328 |
! |
|
329 |
||
4406 | 330 |
addSubView:newView after:aViewOrNil |
202 | 331 |
"redefined to recompute layout when a subview is added" |
332 |
||
4406 | 333 |
super addSubView:newView after:aViewOrNil. |
787
c568dfd06f11
recompute & resize to the preferredExtent when views are added
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
334 |
self addedView:newView |
c568dfd06f11
recompute & resize to the preferredExtent when views are added
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
335 |
|
4406 | 336 |
"Modified: / 15-07-1996 / 10:15:04 / cg" |
337 |
"Modified (format): / 22-03-2012 / 10:37:42 / cg" |
|
202 | 338 |
! |
339 |
||
4406 | 340 |
addSubView:newView before:aViewOrNil |
202 | 341 |
"redefined to recompute layout when a subview is added" |
342 |
||
4406 | 343 |
super addSubView:newView before:aViewOrNil. |
787
c568dfd06f11
recompute & resize to the preferredExtent when views are added
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
344 |
self addedView:newView |
c568dfd06f11
recompute & resize to the preferredExtent when views are added
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
345 |
|
4406 | 346 |
"Modified: / 15-07-1996 / 10:14:39 / cg" |
347 |
"Modified (format): / 22-03-2012 / 10:37:46 / cg" |
|
202 | 348 |
! |
349 |
||
350 |
removeSubView:aView |
|
351 |
"redefined to recompute layout when a subview is removed" |
|
352 |
||
353 |
super removeSubView:aView. |
|
354 |
aView removeDependent:self. |
|
5536 | 355 |
self isBeingDestroyed ifFalse:[ |
356 |
self layoutChanged |
|
357 |
]. |
|
38 | 358 |
! ! |
0 | 359 |
|
1159 | 360 |
!PanelView methodsFor:'enumerating subviews'! |
361 |
||
362 |
changeSequenceOrderFor:aSubView to:anIndex |
|
3885 | 363 |
"change a subview's position in the subviews collection. |
364 |
This affects the arrangemnt of the views." |
|
365 |
||
1159 | 366 |
|success| |
367 |
||
368 |
success := super changeSequenceOrderFor:aSubView to:anIndex. |
|
369 |
||
370 |
success ifTrue:[ |
|
3885 | 371 |
self layoutChanged. |
1159 | 372 |
]. |
373 |
^ success |
|
1418
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
374 |
|
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
375 |
" |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
376 |
|panel comp1 comp2 comp3| |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
377 |
|
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
378 |
panel := HorizontalPanelView new. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
379 |
comp1 := Label label:'one' in:panel. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
380 |
comp2 := Label label:'two' in:panel. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
381 |
comp3 := Label label:'three' in:panel. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
382 |
panel open. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
383 |
Delay waitForSeconds:3. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
384 |
panel changeSequenceOrderFor:comp2 to:3. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
385 |
Delay waitForSeconds:3. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
386 |
panel changeSequenceOrderFor:comp2 to:1. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
387 |
" |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
388 |
|
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
389 |
"Modified: / 17.1.1998 / 00:13:43 / cg" |
1159 | 390 |
! ! |
391 |
||
2753 | 392 |
!PanelView methodsFor:'event handling'! |
0 | 393 |
|
4415 | 394 |
backgroundColorChanged |
395 |
"called to update the background color" |
|
396 |
||
397 |
|color| |
|
398 |
||
399 |
color := backgroundChannel value. |
|
400 |
self backgroundColor:color. |
|
401 |
! |
|
402 |
||
0 | 403 |
sizeChanged:how |
119 | 404 |
"my size has changed - must rearrange elements" |
405 |
||
0 | 406 |
super sizeChanged:how. |
4945 | 407 |
"/ self layoutChanged - no; leads to recursion |
408 |
realized ifTrue:[ |
|
409 |
self setChildPositions |
|
410 |
] ifFalse:[ |
|
411 |
mustRearrange := true |
|
412 |
]. |
|
125 | 413 |
! |
414 |
||
415 |
update:something with:aParameter from:changedObject |
|
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
416 |
"an element changed its size" |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
417 |
|
125 | 418 |
something == #sizeOfView ifTrue:[ |
3117
6d0c7aa281f2
#elementsChangeSize: do nothing, if instance var doesn't change
Stefan Vogel <sv@exept.de>
parents:
2753
diff
changeset
|
419 |
elementsChangeSize ifTrue:[ |
2034
2efa727de60f
avoid useless work (ignore updates from changed components sometimes)
Claus Gittinger <cg@exept.de>
parents:
2006
diff
changeset
|
420 |
self layoutChanged. |
2efa727de60f
avoid useless work (ignore updates from changed components sometimes)
Claus Gittinger <cg@exept.de>
parents:
2006
diff
changeset
|
421 |
]. |
2006 | 422 |
^ self |
423 |
]. |
|
2190 | 424 |
"/ something == #preferredExtent ifTrue:[ |
3117
6d0c7aa281f2
#elementsChangeSize: do nothing, if instance var doesn't change
Stefan Vogel <sv@exept.de>
parents:
2753
diff
changeset
|
425 |
"/ elementsChangeSize ifTrue:[ |
2190 | 426 |
"/ self layoutChanged. |
427 |
"/ ]. |
|
428 |
"/ ^ self |
|
429 |
"/ ]. |
|
2006 | 430 |
something == #visibility ifTrue:[ |
3117
6d0c7aa281f2
#elementsChangeSize: do nothing, if instance var doesn't change
Stefan Vogel <sv@exept.de>
parents:
2753
diff
changeset
|
431 |
ignoreInvisibleComponents ifTrue:[ |
2034
2efa727de60f
avoid useless work (ignore updates from changed components sometimes)
Claus Gittinger <cg@exept.de>
parents:
2006
diff
changeset
|
432 |
self layoutChanged. |
2efa727de60f
avoid useless work (ignore updates from changed components sometimes)
Claus Gittinger <cg@exept.de>
parents:
2006
diff
changeset
|
433 |
]. |
2006 | 434 |
^ self |
125 | 435 |
]. |
436 |
^ super update:something with:aParameter from:changedObject |
|
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
437 |
|
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
438 |
"Modified: 28.1.1997 / 17:52:44 / cg" |
0 | 439 |
! ! |
440 |
||
1821
b57cc9dc2c08
changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents:
1605
diff
changeset
|
441 |
!PanelView methodsFor:'focus handling'! |
b57cc9dc2c08
changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents:
1605
diff
changeset
|
442 |
|
b57cc9dc2c08
changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents:
1605
diff
changeset
|
443 |
wantsFocusWithButtonPress |
b57cc9dc2c08
changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents:
1605
diff
changeset
|
444 |
"no, do not catch the keyboard focus on button click" |
b57cc9dc2c08
changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents:
1605
diff
changeset
|
445 |
|
b57cc9dc2c08
changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents:
1605
diff
changeset
|
446 |
^ false |
b57cc9dc2c08
changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents:
1605
diff
changeset
|
447 |
|
b57cc9dc2c08
changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents:
1605
diff
changeset
|
448 |
|
b57cc9dc2c08
changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents:
1605
diff
changeset
|
449 |
! ! |
b57cc9dc2c08
changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents:
1605
diff
changeset
|
450 |
|
202 | 451 |
!PanelView methodsFor:'initialization'! |
452 |
||
453 |
initialize |
|
6076 | 454 |
<modifier: #super> "must be called if redefined" |
455 |
||
202 | 456 |
super initialize. |
457 |
||
458 |
hLayout := vLayout := #center. "/ notice, this is ignored in this class |
|
6076 | 459 |
"/ used by subclasses only |
202 | 460 |
verticalSpace := ViewSpacing. |
461 |
horizontalSpace := ViewSpacing. |
|
1418
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
462 |
mustRearrange := elementsChangeSize := false. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
463 |
ignoreInvisibleComponents := true. |
6076 | 464 |
|
465 |
"Modified: / 08-02-2017 / 00:35:19 / cg" |
|
202 | 466 |
! |
467 |
||
5516 | 468 |
mapped |
469 |
mustRearrange ifTrue:[ |
|
470 |
self setChildPositions |
|
471 |
]. |
|
472 |
super mapped |
|
473 |
! |
|
474 |
||
202 | 475 |
realize |
476 |
mustRearrange ifTrue:[ |
|
477 |
self setChildPositions |
|
478 |
]. |
|
479 |
super realize |
|
480 |
! |
|
481 |
||
1216
3506a6474c42
setChildPos if extent is set in create->resize->prefExtent
ca
parents:
1159
diff
changeset
|
482 |
resize |
3506a6474c42
setChildPos if extent is set in create->resize->prefExtent
ca
parents:
1159
diff
changeset
|
483 |
super resize. |
3506a6474c42
setChildPos if extent is set in create->resize->prefExtent
ca
parents:
1159
diff
changeset
|
484 |
mustRearrange ifTrue:[ |
1418
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
485 |
self setChildPositions |
1216
3506a6474c42
setChildPos if extent is set in create->resize->prefExtent
ca
parents:
1159
diff
changeset
|
486 |
]. |
3506a6474c42
setChildPos if extent is set in create->resize->prefExtent
ca
parents:
1159
diff
changeset
|
487 |
! |
3506a6474c42
setChildPos if extent is set in create->resize->prefExtent
ca
parents:
1159
diff
changeset
|
488 |
|
202 | 489 |
setChildPositionsIfChanged |
490 |
"set all of my child positions - this is usually delayed, |
|
6165 | 491 |
until the panel is actually shown (since we do not know, if more |
202 | 492 |
elements are to be added) thus avoiding repositioning the elements |
6165 | 493 |
over and over. However, sometimes it is necessary to force positioning |
202 | 494 |
the elements, for example, before querying the relative position of |
6165 | 495 |
an element (modalBoxes do so, to position the OK-button under the mouse |
202 | 496 |
pointer)." |
497 |
||
498 |
mustRearrange ifTrue:[ |
|
5951 | 499 |
self setChildPositions |
202 | 500 |
]. |
6165 | 501 |
|
502 |
"Modified (comment): / 30-05-2017 / 17:36:26 / mawalch" |
|
202 | 503 |
! ! |
504 |
||
1418
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
505 |
!PanelView methodsFor:'layout'! |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
506 |
|
3861 | 507 |
preferredExtent |
508 |
"return a good extent, one that makes subviews fit. |
|
509 |
Note that width is considered as given, and compute height here." |
|
510 |
||
511 |
|subViews xpos totalHeight maxHeightInRow first| |
|
512 |
||
513 |
"/ If I have an explicit preferredExtent.. |
|
514 |
explicitExtent notNil ifTrue:[ |
|
515 |
^ explicitExtent |
|
516 |
]. |
|
517 |
||
518 |
"/ If I have a cached preferredExtent value.. |
|
519 |
preferredExtent notNil ifTrue:[ |
|
520 |
^ preferredExtent |
|
521 |
]. |
|
522 |
||
523 |
subViews := self subViewsToConsider. |
|
524 |
subViews isEmptyOrNil ifTrue:[ |
|
525 |
^ super preferredExtent. |
|
526 |
]. |
|
527 |
||
528 |
xpos := horizontalSpace. |
|
529 |
||
530 |
totalHeight := 0. |
|
531 |
maxHeightInRow := 0. |
|
532 |
first := true. |
|
533 |
||
534 |
subViews do:[:eachChild | |childPreferredExtent| |
|
535 |
childPreferredExtent := eachChild preferredExtent. |
|
536 |
||
537 |
"go to next row, if this subview won't fit" |
|
538 |
first ifFalse: [ |
|
539 |
(xpos + childPreferredExtent x + horizontalSpace) > width |
|
540 |
ifTrue: [ |
|
541 |
xpos := horizontalSpace. |
|
542 |
totalHeight := totalHeight + maxHeightInRow + verticalSpace. |
|
543 |
maxHeightInRow := 0. |
|
544 |
] |
|
545 |
]. |
|
546 |
||
547 |
xpos := xpos + (childPreferredExtent x) + horizontalSpace. |
|
548 |
(maxHeightInRow < (childPreferredExtent y)) ifTrue:[ |
|
549 |
maxHeightInRow := childPreferredExtent y. |
|
550 |
]. |
|
551 |
first := false |
|
552 |
]. |
|
553 |
maxHeightInRow ~= 0 ifTrue:[ |
|
554 |
totalHeight := totalHeight + maxHeightInRow + verticalSpace. |
|
555 |
]. |
|
556 |
||
557 |
^ width @ totalHeight |
|
558 |
! |
|
559 |
||
1418
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
560 |
setChildPositions |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
561 |
"(re)compute position of every child. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
562 |
This method is redefined for different layout characteristics - you may |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
563 |
even create subclasses with completely different geometry management." |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
564 |
|
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
565 |
|first xpos ypos maxHeightInRow thisRow subViews ext| |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
566 |
|
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
567 |
subViews := self subViewsToConsider. |
1423 | 568 |
subViews size == 0 ifTrue:[^ self]. |
1418
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
569 |
|
3501 | 570 |
"/ self extentChangedFlag ifTrue:[ |
571 |
"/ ext := self computeExtent. |
|
572 |
"/ width := ext x. |
|
573 |
"/ height := ext y. |
|
574 |
"/ ]. |
|
1418
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
575 |
|
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
576 |
xpos := horizontalSpace. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
577 |
ypos := verticalSpace. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
578 |
|
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
579 |
maxHeightInRow := 0. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
580 |
first := true. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
581 |
thisRow := OrderedCollection new. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
582 |
subViews do:[:child | |
1423 | 583 |
"go to next row, if this subview won't fit" |
584 |
first ifFalse: [ |
|
585 |
(xpos + child widthIncludingBorder + horizontalSpace) > width |
|
586 |
ifTrue: [ |
|
587 |
thisRow notEmpty ifTrue:[ |
|
588 |
thisRow do:[:rowElement | |
|
589 |
rowElement heightIncludingBorder < maxHeightInRow ifTrue:[ |
|
590 |
rowElement top:(rowElement top + (maxHeightInRow - rowElement heightIncludingBorder)) |
|
591 |
] |
|
592 |
] |
|
593 |
]. |
|
594 |
ypos := ypos + verticalSpace + maxHeightInRow. |
|
595 |
xpos := horizontalSpace. |
|
596 |
maxHeightInRow := 0. |
|
597 |
thisRow := OrderedCollection new. |
|
598 |
] |
|
599 |
]. |
|
600 |
thisRow add:child. |
|
601 |
child origin:(xpos@ypos). |
|
602 |
xpos := xpos + (child widthIncludingBorder) + horizontalSpace. |
|
603 |
(maxHeightInRow < (child heightIncludingBorder)) ifTrue:[ |
|
604 |
maxHeightInRow := child heightIncludingBorder |
|
605 |
]. |
|
606 |
first := false |
|
1418
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
607 |
]. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
608 |
thisRow notEmpty ifTrue:[ |
1423 | 609 |
thisRow do:[:rowElement | |
610 |
rowElement heightIncludingBorder < maxHeightInRow ifTrue:[ |
|
611 |
rowElement top:(rowElement top + (maxHeightInRow - rowElement heightIncludingBorder)) |
|
612 |
] |
|
613 |
] |
|
1418
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
614 |
]. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
615 |
mustRearrange := false |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
616 |
|
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
617 |
"Modified: / 17.1.1998 / 00:17:19 / cg" |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
618 |
! ! |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
619 |
|
0 | 620 |
!PanelView methodsFor:'private'! |
621 |
||
202 | 622 |
addedView:aView |
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
623 |
"added a new element - rearrange components" |
202 | 624 |
|
2006 | 625 |
(elementsChangeSize or:[ignoreInvisibleComponents]) ifTrue:[ |
626 |
aView addDependent:self |
|
787
c568dfd06f11
recompute & resize to the preferredExtent when views are added
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
627 |
]. |
c568dfd06f11
recompute & resize to the preferredExtent when views are added
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
628 |
aView resize. |
788
653fd742b5b0
extent handling when adding views
Claus Gittinger <cg@exept.de>
parents:
787
diff
changeset
|
629 |
"/ explicitExtent ~~ true ifTrue:[ |
653fd742b5b0
extent handling when adding views
Claus Gittinger <cg@exept.de>
parents:
787
diff
changeset
|
630 |
"/ self resize |
653fd742b5b0
extent handling when adding views
Claus Gittinger <cg@exept.de>
parents:
787
diff
changeset
|
631 |
"/ ]. |
202 | 632 |
self layoutChanged |
787
c568dfd06f11
recompute & resize to the preferredExtent when views are added
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
633 |
|
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
634 |
"Modified: 28.1.1997 / 17:45:10 / cg" |
202 | 635 |
! |
636 |
||
0 | 637 |
layoutChanged |
119 | 638 |
"called whenever repositioning is required. If the panel view is |
639 |
already visible, reposition elements right now. Otherwise, remember |
|
640 |
that a repositioning is needed to do so when the view eventually becomes |
|
641 |
visible." |
|
642 |
||
4945 | 643 |
super layoutChanged. |
2198 | 644 |
realized ifTrue:[ |
645 |
self setChildPositions |
|
0 | 646 |
] ifFalse:[ |
2198 | 647 |
mustRearrange := true |
4945 | 648 |
]. |
0 | 649 |
! |
650 |
||
2006 | 651 |
makeMyselfDependentOnSubviews |
2527 | 652 |
subViews notNil ifTrue:[ |
2006 | 653 |
subViews do:[:aView | |
654 |
aView addDependent:self |
|
655 |
] |
|
656 |
] |
|
657 |
! |
|
658 |
||
1418
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
659 |
subViewsToConsider |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
660 |
"return a collection of subviews which are to be considered in |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
661 |
the layout. If ignoreInvisibleComponents is true, only visible |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
662 |
components are considered; otherwise, all are considered." |
0 | 663 |
|
1418
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
664 |
|subViews| |
1042 | 665 |
|
666 |
subViews := self subViews. |
|
3779 | 667 |
ignoreInvisibleComponents ifTrue:[ |
668 |
subViews size ~~ 0 ifTrue:[ |
|
669 |
subViews := subViews |
|
5907 | 670 |
select:[:v | |
5920 | 671 |
"/ if I am already realized, only consider realized subViews |
672 |
"/ otherwise, consider subViews which will be shown when I am. |
|
673 |
realized |
|
674 |
ifTrue:[v realized] |
|
675 |
ifFalse:[v isHiddenOnRealize not] |
|
3779 | 676 |
]. |
677 |
]. |
|
1042 | 678 |
]. |
1418
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
679 |
^ subViews |
1042 | 680 |
|
1418
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
681 |
"Created: / 17.1.1998 / 00:17:05 / cg" |
0 | 682 |
! ! |
125 | 683 |
|
3863
eceb130bb92b
UIPainter can now resize subviews of PanelViews
Stefan Vogel <sv@exept.de>
parents:
3861
diff
changeset
|
684 |
!PanelView methodsFor:'queries'! |
eceb130bb92b
UIPainter can now resize subviews of PanelViews
Stefan Vogel <sv@exept.de>
parents:
3861
diff
changeset
|
685 |
|
eceb130bb92b
UIPainter can now resize subviews of PanelViews
Stefan Vogel <sv@exept.de>
parents:
3861
diff
changeset
|
686 |
isLayoutWrapper |
eceb130bb92b
UIPainter can now resize subviews of PanelViews
Stefan Vogel <sv@exept.de>
parents:
3861
diff
changeset
|
687 |
"answer true, if this view defines the layout of it's subviews" |
eceb130bb92b
UIPainter can now resize subviews of PanelViews
Stefan Vogel <sv@exept.de>
parents:
3861
diff
changeset
|
688 |
|
eceb130bb92b
UIPainter can now resize subviews of PanelViews
Stefan Vogel <sv@exept.de>
parents:
3861
diff
changeset
|
689 |
^ true |
eceb130bb92b
UIPainter can now resize subviews of PanelViews
Stefan Vogel <sv@exept.de>
parents:
3861
diff
changeset
|
690 |
! ! |
eceb130bb92b
UIPainter can now resize subviews of PanelViews
Stefan Vogel <sv@exept.de>
parents:
3861
diff
changeset
|
691 |
|
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
692 |
!PanelView class methodsFor:'documentation'! |
205 | 693 |
|
694 |
version |
|
5516 | 695 |
^ '$Header$' |
5907 | 696 |
! |
697 |
||
698 |
version_CVS |
|
699 |
^ '$Header$' |
|
205 | 700 |
! ! |
4945 | 701 |