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