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