author | Stefan Vogel <sv@exept.de> |
Thu, 24 Oct 2019 17:39:50 +0200 | |
changeset 6719 | 71423e2b6206 |
parent 6591 | 6814850d2fea |
child 6723 | 505155166c8e |
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 |
|
6719 | 330 |
|
331 |
"Modified: / 24-10-2019 / 15:50:12 / Stefan Vogel" |
|
332 |
"Modified (comment): / 24-10-2019 / 17:39:25 / Stefan Vogel" |
|
202 | 333 |
! |
334 |
||
4406 | 335 |
addSubView:newView after:aViewOrNil |
202 | 336 |
"redefined to recompute layout when a subview is added" |
337 |
||
4406 | 338 |
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
|
339 |
self addedView:newView |
c568dfd06f11
recompute & resize to the preferredExtent when views are added
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
340 |
|
4406 | 341 |
"Modified: / 15-07-1996 / 10:15:04 / cg" |
342 |
"Modified (format): / 22-03-2012 / 10:37:42 / cg" |
|
202 | 343 |
! |
344 |
||
4406 | 345 |
addSubView:newView before:aViewOrNil |
202 | 346 |
"redefined to recompute layout when a subview is added" |
347 |
||
4406 | 348 |
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
|
349 |
self addedView:newView |
c568dfd06f11
recompute & resize to the preferredExtent when views are added
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
350 |
|
4406 | 351 |
"Modified: / 15-07-1996 / 10:14:39 / cg" |
352 |
"Modified (format): / 22-03-2012 / 10:37:46 / cg" |
|
202 | 353 |
! |
354 |
||
355 |
removeSubView:aView |
|
356 |
"redefined to recompute layout when a subview is removed" |
|
357 |
||
358 |
super removeSubView:aView. |
|
359 |
aView removeDependent:self. |
|
5536 | 360 |
self isBeingDestroyed ifFalse:[ |
361 |
self layoutChanged |
|
362 |
]. |
|
38 | 363 |
! ! |
0 | 364 |
|
1159 | 365 |
!PanelView methodsFor:'enumerating subviews'! |
366 |
||
367 |
changeSequenceOrderFor:aSubView to:anIndex |
|
3885 | 368 |
"change a subview's position in the subviews collection. |
6346 | 369 |
This affects the arrangement of the views." |
3885 | 370 |
|
1159 | 371 |
|success| |
372 |
||
373 |
success := super changeSequenceOrderFor:aSubView to:anIndex. |
|
374 |
||
375 |
success ifTrue:[ |
|
3885 | 376 |
self layoutChanged. |
1159 | 377 |
]. |
378 |
^ success |
|
1418
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 |
" |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
381 |
|panel comp1 comp2 comp3| |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
382 |
|
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
383 |
panel := HorizontalPanelView new. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
384 |
comp1 := Label label:'one' in:panel. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
385 |
comp2 := Label label:'two' in:panel. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
386 |
comp3 := Label label:'three' in:panel. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
387 |
panel open. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
388 |
Delay waitForSeconds:3. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
389 |
panel changeSequenceOrderFor:comp2 to:3. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
390 |
Delay waitForSeconds:3. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
391 |
panel changeSequenceOrderFor:comp2 to:1. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
392 |
" |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
393 |
|
6346 | 394 |
"Modified: / 17-01-1998 / 00:13:43 / cg" |
395 |
"Modified (comment): / 14-06-2018 / 10:19:15 / Claus Gittinger" |
|
1159 | 396 |
! ! |
397 |
||
2753 | 398 |
!PanelView methodsFor:'event handling'! |
0 | 399 |
|
4415 | 400 |
backgroundColorChanged |
401 |
"called to update the background color" |
|
402 |
||
403 |
|color| |
|
404 |
||
405 |
color := backgroundChannel value. |
|
406 |
self backgroundColor:color. |
|
407 |
! |
|
408 |
||
0 | 409 |
sizeChanged:how |
119 | 410 |
"my size has changed - must rearrange elements" |
411 |
||
0 | 412 |
super sizeChanged:how. |
4945 | 413 |
"/ self layoutChanged - no; leads to recursion |
414 |
realized ifTrue:[ |
|
415 |
self setChildPositions |
|
416 |
] ifFalse:[ |
|
417 |
mustRearrange := true |
|
418 |
]. |
|
125 | 419 |
! |
420 |
||
421 |
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
|
422 |
"an element changed its size" |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
423 |
|
125 | 424 |
something == #sizeOfView ifTrue:[ |
3117
6d0c7aa281f2
#elementsChangeSize: do nothing, if instance var doesn't change
Stefan Vogel <sv@exept.de>
parents:
2753
diff
changeset
|
425 |
elementsChangeSize ifTrue:[ |
2034
2efa727de60f
avoid useless work (ignore updates from changed components sometimes)
Claus Gittinger <cg@exept.de>
parents:
2006
diff
changeset
|
426 |
self layoutChanged. |
2efa727de60f
avoid useless work (ignore updates from changed components sometimes)
Claus Gittinger <cg@exept.de>
parents:
2006
diff
changeset
|
427 |
]. |
2006 | 428 |
^ self |
429 |
]. |
|
2190 | 430 |
"/ something == #preferredExtent ifTrue:[ |
3117
6d0c7aa281f2
#elementsChangeSize: do nothing, if instance var doesn't change
Stefan Vogel <sv@exept.de>
parents:
2753
diff
changeset
|
431 |
"/ elementsChangeSize ifTrue:[ |
2190 | 432 |
"/ self layoutChanged. |
433 |
"/ ]. |
|
434 |
"/ ^ self |
|
435 |
"/ ]. |
|
2006 | 436 |
something == #visibility ifTrue:[ |
3117
6d0c7aa281f2
#elementsChangeSize: do nothing, if instance var doesn't change
Stefan Vogel <sv@exept.de>
parents:
2753
diff
changeset
|
437 |
ignoreInvisibleComponents ifTrue:[ |
2034
2efa727de60f
avoid useless work (ignore updates from changed components sometimes)
Claus Gittinger <cg@exept.de>
parents:
2006
diff
changeset
|
438 |
self layoutChanged. |
2efa727de60f
avoid useless work (ignore updates from changed components sometimes)
Claus Gittinger <cg@exept.de>
parents:
2006
diff
changeset
|
439 |
]. |
2006 | 440 |
^ self |
125 | 441 |
]. |
442 |
^ 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
|
443 |
|
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
444 |
"Modified: 28.1.1997 / 17:52:44 / cg" |
0 | 445 |
! ! |
446 |
||
1821
b57cc9dc2c08
changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents:
1605
diff
changeset
|
447 |
!PanelView methodsFor:'focus handling'! |
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 |
wantsFocusWithButtonPress |
b57cc9dc2c08
changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents:
1605
diff
changeset
|
450 |
"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
|
451 |
|
b57cc9dc2c08
changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents:
1605
diff
changeset
|
452 |
^ false |
b57cc9dc2c08
changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents:
1605
diff
changeset
|
453 |
|
b57cc9dc2c08
changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents:
1605
diff
changeset
|
454 |
|
b57cc9dc2c08
changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents:
1605
diff
changeset
|
455 |
! ! |
b57cc9dc2c08
changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents:
1605
diff
changeset
|
456 |
|
6275 | 457 |
!PanelView methodsFor:'initialization & release'! |
202 | 458 |
|
459 |
initialize |
|
6076 | 460 |
<modifier: #super> "must be called if redefined" |
461 |
||
202 | 462 |
super initialize. |
463 |
||
464 |
hLayout := vLayout := #center. "/ notice, this is ignored in this class |
|
6076 | 465 |
"/ used by subclasses only |
202 | 466 |
verticalSpace := ViewSpacing. |
467 |
horizontalSpace := ViewSpacing. |
|
1418
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
468 |
mustRearrange := elementsChangeSize := false. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
469 |
ignoreInvisibleComponents := true. |
6076 | 470 |
|
471 |
"Modified: / 08-02-2017 / 00:35:19 / cg" |
|
202 | 472 |
! |
473 |
||
5516 | 474 |
mapped |
475 |
mustRearrange ifTrue:[ |
|
476 |
self setChildPositions |
|
477 |
]. |
|
478 |
super mapped |
|
479 |
! |
|
480 |
||
202 | 481 |
realize |
482 |
mustRearrange ifTrue:[ |
|
483 |
self setChildPositions |
|
484 |
]. |
|
485 |
super realize |
|
486 |
! |
|
487 |
||
6275 | 488 |
release |
489 |
backgroundChannel notNil ifTrue:[ |
|
6591 | 490 |
backgroundChannel removeDependentAndRetractInterestsFor:self. |
491 |
backgroundChannel := nil |
|
6275 | 492 |
]. |
493 |
super release |
|
6591 | 494 |
|
495 |
"Modified: / 30-05-2019 / 11:14:40 / Claus Gittinger" |
|
6275 | 496 |
! |
497 |
||
1216
3506a6474c42
setChildPos if extent is set in create->resize->prefExtent
ca
parents:
1159
diff
changeset
|
498 |
resize |
3506a6474c42
setChildPos if extent is set in create->resize->prefExtent
ca
parents:
1159
diff
changeset
|
499 |
super resize. |
3506a6474c42
setChildPos if extent is set in create->resize->prefExtent
ca
parents:
1159
diff
changeset
|
500 |
mustRearrange ifTrue:[ |
1418
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
501 |
self setChildPositions |
1216
3506a6474c42
setChildPos if extent is set in create->resize->prefExtent
ca
parents:
1159
diff
changeset
|
502 |
]. |
3506a6474c42
setChildPos if extent is set in create->resize->prefExtent
ca
parents:
1159
diff
changeset
|
503 |
! |
3506a6474c42
setChildPos if extent is set in create->resize->prefExtent
ca
parents:
1159
diff
changeset
|
504 |
|
202 | 505 |
setChildPositionsIfChanged |
506 |
"set all of my child positions - this is usually delayed, |
|
6165 | 507 |
until the panel is actually shown (since we do not know, if more |
202 | 508 |
elements are to be added) thus avoiding repositioning the elements |
6165 | 509 |
over and over. However, sometimes it is necessary to force positioning |
202 | 510 |
the elements, for example, before querying the relative position of |
6165 | 511 |
an element (modalBoxes do so, to position the OK-button under the mouse |
202 | 512 |
pointer)." |
513 |
||
514 |
mustRearrange ifTrue:[ |
|
5951 | 515 |
self setChildPositions |
202 | 516 |
]. |
6165 | 517 |
|
518 |
"Modified (comment): / 30-05-2017 / 17:36:26 / mawalch" |
|
202 | 519 |
! ! |
520 |
||
1418
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
521 |
!PanelView methodsFor:'layout'! |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
522 |
|
6486 | 523 |
computePreferredExtent |
3861 | 524 |
"return a good extent, one that makes subviews fit. |
525 |
Note that width is considered as given, and compute height here." |
|
526 |
||
527 |
|subViews xpos totalHeight maxHeightInRow first| |
|
528 |
||
529 |
subViews := self subViewsToConsider. |
|
530 |
subViews isEmptyOrNil ifTrue:[ |
|
6486 | 531 |
^ super computePreferredExtent. |
3861 | 532 |
]. |
533 |
||
534 |
xpos := horizontalSpace. |
|
535 |
||
536 |
totalHeight := 0. |
|
537 |
maxHeightInRow := 0. |
|
538 |
first := true. |
|
539 |
||
540 |
subViews do:[:eachChild | |childPreferredExtent| |
|
541 |
childPreferredExtent := eachChild preferredExtent. |
|
542 |
||
543 |
"go to next row, if this subview won't fit" |
|
544 |
first ifFalse: [ |
|
545 |
(xpos + childPreferredExtent x + horizontalSpace) > width |
|
546 |
ifTrue: [ |
|
547 |
xpos := horizontalSpace. |
|
548 |
totalHeight := totalHeight + maxHeightInRow + verticalSpace. |
|
549 |
maxHeightInRow := 0. |
|
550 |
] |
|
551 |
]. |
|
552 |
||
553 |
xpos := xpos + (childPreferredExtent x) + horizontalSpace. |
|
554 |
(maxHeightInRow < (childPreferredExtent y)) ifTrue:[ |
|
555 |
maxHeightInRow := childPreferredExtent y. |
|
556 |
]. |
|
557 |
first := false |
|
558 |
]. |
|
559 |
maxHeightInRow ~= 0 ifTrue:[ |
|
560 |
totalHeight := totalHeight + maxHeightInRow + verticalSpace. |
|
561 |
]. |
|
562 |
||
563 |
^ width @ totalHeight |
|
6486 | 564 |
|
565 |
"Created: / 09-11-2018 / 19:58:50 / Claus Gittinger" |
|
3861 | 566 |
! |
567 |
||
1418
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
568 |
setChildPositions |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
569 |
"(re)compute position of every child. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
570 |
This method is redefined for different layout characteristics - you may |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
571 |
even create subclasses with completely different geometry management." |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
572 |
|
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
573 |
|first xpos ypos maxHeightInRow thisRow subViews ext| |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
574 |
|
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
575 |
subViews := self subViewsToConsider. |
1423 | 576 |
subViews size == 0 ifTrue:[^ self]. |
1418
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
577 |
|
3501 | 578 |
"/ self extentChangedFlag ifTrue:[ |
579 |
"/ ext := self computeExtent. |
|
580 |
"/ width := ext x. |
|
581 |
"/ height := ext y. |
|
582 |
"/ ]. |
|
1418
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
583 |
|
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
584 |
xpos := horizontalSpace. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
585 |
ypos := verticalSpace. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
586 |
|
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
587 |
maxHeightInRow := 0. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
588 |
first := true. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
589 |
thisRow := OrderedCollection new. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
590 |
subViews do:[:child | |
1423 | 591 |
"go to next row, if this subview won't fit" |
592 |
first ifFalse: [ |
|
593 |
(xpos + child widthIncludingBorder + horizontalSpace) > width |
|
594 |
ifTrue: [ |
|
595 |
thisRow notEmpty ifTrue:[ |
|
596 |
thisRow do:[:rowElement | |
|
597 |
rowElement heightIncludingBorder < maxHeightInRow ifTrue:[ |
|
598 |
rowElement top:(rowElement top + (maxHeightInRow - rowElement heightIncludingBorder)) |
|
599 |
] |
|
600 |
] |
|
601 |
]. |
|
602 |
ypos := ypos + verticalSpace + maxHeightInRow. |
|
603 |
xpos := horizontalSpace. |
|
604 |
maxHeightInRow := 0. |
|
605 |
thisRow := OrderedCollection new. |
|
606 |
] |
|
607 |
]. |
|
608 |
thisRow add:child. |
|
609 |
child origin:(xpos@ypos). |
|
610 |
xpos := xpos + (child widthIncludingBorder) + horizontalSpace. |
|
611 |
(maxHeightInRow < (child heightIncludingBorder)) ifTrue:[ |
|
612 |
maxHeightInRow := child heightIncludingBorder |
|
613 |
]. |
|
614 |
first := false |
|
1418
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
615 |
]. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
616 |
thisRow notEmpty ifTrue:[ |
1423 | 617 |
thisRow do:[:rowElement | |
618 |
rowElement heightIncludingBorder < maxHeightInRow ifTrue:[ |
|
619 |
rowElement top:(rowElement top + (maxHeightInRow - rowElement heightIncludingBorder)) |
|
620 |
] |
|
621 |
] |
|
1418
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
622 |
]. |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
623 |
mustRearrange := false |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
624 |
|
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
625 |
"Modified: / 17.1.1998 / 00:17:19 / cg" |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
626 |
! ! |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
627 |
|
0 | 628 |
!PanelView methodsFor:'private'! |
629 |
||
202 | 630 |
addedView:aView |
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
631 |
"added a new element - rearrange components" |
202 | 632 |
|
2006 | 633 |
(elementsChangeSize or:[ignoreInvisibleComponents]) ifTrue:[ |
634 |
aView addDependent:self |
|
787
c568dfd06f11
recompute & resize to the preferredExtent when views are added
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
635 |
]. |
c568dfd06f11
recompute & resize to the preferredExtent when views are added
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
636 |
aView resize. |
788
653fd742b5b0
extent handling when adding views
Claus Gittinger <cg@exept.de>
parents:
787
diff
changeset
|
637 |
"/ explicitExtent ~~ true ifTrue:[ |
653fd742b5b0
extent handling when adding views
Claus Gittinger <cg@exept.de>
parents:
787
diff
changeset
|
638 |
"/ self resize |
653fd742b5b0
extent handling when adding views
Claus Gittinger <cg@exept.de>
parents:
787
diff
changeset
|
639 |
"/ ]. |
202 | 640 |
self layoutChanged |
787
c568dfd06f11
recompute & resize to the preferredExtent when views are added
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
641 |
|
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
642 |
"Modified: 28.1.1997 / 17:45:10 / cg" |
202 | 643 |
! |
644 |
||
0 | 645 |
layoutChanged |
119 | 646 |
"called whenever repositioning is required. If the panel view is |
647 |
already visible, reposition elements right now. Otherwise, remember |
|
648 |
that a repositioning is needed to do so when the view eventually becomes |
|
649 |
visible." |
|
650 |
||
4945 | 651 |
super layoutChanged. |
2198 | 652 |
realized ifTrue:[ |
653 |
self setChildPositions |
|
0 | 654 |
] ifFalse:[ |
2198 | 655 |
mustRearrange := true |
4945 | 656 |
]. |
0 | 657 |
! |
658 |
||
2006 | 659 |
makeMyselfDependentOnSubviews |
2527 | 660 |
subViews notNil ifTrue:[ |
2006 | 661 |
subViews do:[:aView | |
662 |
aView addDependent:self |
|
663 |
] |
|
664 |
] |
|
665 |
! |
|
666 |
||
1418
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
667 |
subViewsToConsider |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
668 |
"return a collection of subviews which are to be considered in |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
669 |
the layout. If ignoreInvisibleComponents is true, only visible |
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
670 |
components are considered; otherwise, all are considered." |
0 | 671 |
|
1418
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
672 |
|subViews| |
1042 | 673 |
|
674 |
subViews := self subViews. |
|
6719 | 675 |
(ignoreInvisibleComponents and:[subViews notEmptyOrNil]) ifTrue:[ |
676 |
subViews := subViews |
|
677 |
select:[:v | |
|
678 |
"/ if I am already realized, only consider realized subViews |
|
679 |
"/ otherwise, consider subViews which will be shown when I am. |
|
680 |
realized |
|
681 |
ifTrue:[v realized] |
|
682 |
ifFalse:[v isHiddenOnRealize not] |
|
683 |
]. |
|
1042 | 684 |
]. |
1418
3397ec6b8419
added ignoreInvisibleComponents stuff
Claus Gittinger <cg@exept.de>
parents:
1216
diff
changeset
|
685 |
^ subViews |
1042 | 686 |
|
6719 | 687 |
"Created: / 17-01-1998 / 00:17:05 / cg" |
688 |
"Modified: / 24-10-2019 / 15:57:35 / Stefan Vogel" |
|
0 | 689 |
! ! |
125 | 690 |
|
3863
eceb130bb92b
UIPainter can now resize subviews of PanelViews
Stefan Vogel <sv@exept.de>
parents:
3861
diff
changeset
|
691 |
!PanelView methodsFor:'queries'! |
eceb130bb92b
UIPainter can now resize subviews of PanelViews
Stefan Vogel <sv@exept.de>
parents:
3861
diff
changeset
|
692 |
|
eceb130bb92b
UIPainter can now resize subviews of PanelViews
Stefan Vogel <sv@exept.de>
parents:
3861
diff
changeset
|
693 |
isLayoutWrapper |
eceb130bb92b
UIPainter can now resize subviews of PanelViews
Stefan Vogel <sv@exept.de>
parents:
3861
diff
changeset
|
694 |
"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
|
695 |
|
eceb130bb92b
UIPainter can now resize subviews of PanelViews
Stefan Vogel <sv@exept.de>
parents:
3861
diff
changeset
|
696 |
^ true |
eceb130bb92b
UIPainter can now resize subviews of PanelViews
Stefan Vogel <sv@exept.de>
parents:
3861
diff
changeset
|
697 |
! ! |
eceb130bb92b
UIPainter can now resize subviews of PanelViews
Stefan Vogel <sv@exept.de>
parents:
3861
diff
changeset
|
698 |
|
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
699 |
!PanelView class methodsFor:'documentation'! |
205 | 700 |
|
701 |
version |
|
5516 | 702 |
^ '$Header$' |
5907 | 703 |
! |
704 |
||
705 |
version_CVS |
|
706 |
^ '$Header$' |
|
205 | 707 |
! ! |
4945 | 708 |