author | ca |
Fri, 21 Feb 1997 20:27:43 +0100 | |
changeset 1036 | 5958cde90d09 |
parent 980 | 6079922a5519 |
child 1042 | 5914ecc423e1 |
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 |
" |
|
12 |
||
119 | 13 |
SimpleView subclass:#PanelView |
585 | 14 |
instanceVariableNames:'hLayout vLayout verticalSpace horizontalSpace mustRearrange |
15 |
elementsChangeSize' |
|
16 |
classVariableNames:'' |
|
17 |
poolDictionaries:'' |
|
18 |
category:'Views-Layout' |
|
0 | 19 |
! |
20 |
||
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
21 |
!PanelView class methodsFor:'documentation'! |
0 | 22 |
|
38 | 23 |
copyright |
24 |
" |
|
25 |
COPYRIGHT (c) 1989 by Claus Gittinger |
|
60 | 26 |
All Rights Reserved |
0 | 27 |
|
38 | 28 |
This software is furnished under a license and may be used |
29 |
only in accordance with the terms of that license and with the |
|
30 |
inclusion of the above copyright notice. This software may not |
|
31 |
be provided or otherwise made available to, or used by, any |
|
32 |
other person. No title to or ownership of the software is |
|
33 |
hereby transferred. |
|
34 |
" |
|
35 |
! |
|
0 | 36 |
|
38 | 37 |
documentation |
38 |
" |
|
127 | 39 |
this is a view for holding subviews. (layout-widget ?) |
38 | 40 |
|
41 |
Instances of PanelView try to get all their subviews into them, |
|
42 |
arranging subviews left-to-right, top-to-bottom. |
|
43 |
||
44 |
If you dont like its layout, define a new subclass or use one of |
|
45 |
the existing subclasses: HorizontalPanelView and VerticalPanelView. |
|
60 | 46 |
|
127 | 47 |
The panel assumes, that the elements do not resize themselfes, after it |
48 |
became visible. This is not true for all widgets (buttons or labels may |
|
49 |
like to change). If you have changing elements, tell this to the panel |
|
50 |
with 'aPanel elementsChangeSize:true'. In that case, the panel will react |
|
51 |
to size changes, and reorganize things. |
|
52 |
||
63 | 53 |
PanelViews normally delay the actual positioning/sizing of their elements, |
60 | 54 |
until actually displayed. This is useful, if more elements are to |
55 |
be added, to avoid repeated configuration of the elements. |
|
56 |
||
57 |
If you want to query for the relative position of an element BEFORE |
|
58 |
the view is visible, you have to send #setChildPositionsIfChanged before |
|
63 | 59 |
doing so (otherwise, you may get invalid origins from the subviews). As |
60 |
an example, the modalBoxes do so before showing themselfes to ask for the |
|
61 |
position of the ok-button relative to the top-left box-origin, in order to |
|
62 |
position the ok-button under the mouse-pointer. |
|
63 |
||
585 | 64 |
[Instance variables:] |
63 | 65 |
|
585 | 66 |
hLayout <Symbol> controls horizontal layout; ignored in this |
67 |
class, but used in Horizontal- and |
|
68 |
VerticalPanelViews. See more info there. |
|
63 | 69 |
|
585 | 70 |
vLayout <Symbol> controls vertical layout; ignored in this |
71 |
class, but used in Horizontal- and |
|
72 |
VerticalPanelViews. See more info there. |
|
63 | 73 |
|
585 | 74 |
horizontalSpace <Integer> number of pixels to use as space between elements |
75 |
defaults to ViewSpacing, which is 1mm |
|
63 | 76 |
|
585 | 77 |
verticalSpace <Integer> number of pixels to use as space between elements |
78 |
defaults to ViewSpacing, which is 1mm |
|
63 | 79 |
|
585 | 80 |
mustRearrange <Boolean> internal flag, if rearrangement is needed |
125 | 81 |
|
585 | 82 |
elementsChangeSize |
83 |
<Boolean> if true, the panel takes care of this situation. |
|
84 |
By default, this is false. |
|
85 |
||
86 |
[author:] |
|
87 |
Claus Gittinger |
|
38 | 88 |
" |
787
c568dfd06f11
recompute & resize to the preferredExtent when views are added
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
89 |
! ! |
c568dfd06f11
recompute & resize to the preferredExtent when views are added
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
90 |
|
202 | 91 |
!PanelView methodsFor:'accessing'! |
92 |
||
93 |
elementsChangeSize:aBoolean |
|
94 |
"tell the panel if elements are to change their size by themselfes |
|
95 |
(for example, Lables or Buttons may do so if their contents changes). |
|
96 |
Setting this flag will make the panel reorganize the elements whenever |
|
97 |
any element changes its size." |
|
98 |
||
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
99 |
|subViews| |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
100 |
|
202 | 101 |
elementsChangeSize := aBoolean. |
102 |
aBoolean ifTrue:[ |
|
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
103 |
(subViews := self subViews) notNil ifTrue:[ |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
104 |
subViews do:[:aView | |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
105 |
aView addDependent:self |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
106 |
] |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
107 |
] |
202 | 108 |
] |
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
109 |
|
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
110 |
"Modified: 28.1.1997 / 17:51:28 / cg" |
202 | 111 |
! |
112 |
||
1036 | 113 |
horizontalLayout |
114 |
"not supported by this view" |
|
115 |
||
116 |
^ nil |
|
117 |
! |
|
118 |
||
119 |
horizontalLayout:aLayoutSymbol |
|
120 |
"not supported by this view" |
|
121 |
||
122 |
! |
|
123 |
||
202 | 124 |
horizontalSpace:numberOfPixels |
125 |
"set the horizontal space between elements on pixels (default is 1mm)" |
|
126 |
||
127 |
horizontalSpace ~= numberOfPixels ifTrue:[ |
|
128 |
horizontalSpace := numberOfPixels. |
|
129 |
self layoutChanged |
|
130 |
] |
|
131 |
! |
|
132 |
||
133 |
space:numberOfPixels |
|
134 |
"set the space between elements in pixels (default is 1mm) for both directions" |
|
135 |
||
136 |
(verticalSpace ~= numberOfPixels |
|
137 |
or:[horizontalSpace ~= numberOfPixels]) ifTrue:[ |
|
138 |
horizontalSpace := numberOfPixels. |
|
139 |
verticalSpace := numberOfPixels. |
|
140 |
self layoutChanged |
|
141 |
] |
|
142 |
! |
|
143 |
||
1036 | 144 |
verticalLayout |
145 |
"not supported by this view" |
|
146 |
||
147 |
^ nil |
|
148 |
! |
|
149 |
||
150 |
verticalLayout:aLayoutSymbol |
|
151 |
"not supported by this view" |
|
152 |
||
153 |
! |
|
154 |
||
202 | 155 |
verticalSpace:numberOfPixels |
156 |
"set the vertical space between elements (in pixels). |
|
157 |
The default is computed for 1mm spacing." |
|
158 |
||
159 |
verticalSpace ~= numberOfPixels ifTrue:[ |
|
160 |
verticalSpace := numberOfPixels. |
|
161 |
self layoutChanged |
|
162 |
] |
|
163 |
! ! |
|
164 |
||
165 |
!PanelView methodsFor:'adding & removing subviews'! |
|
166 |
||
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
167 |
addComponent:aComponent |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
168 |
"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
|
169 |
|
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
170 |
super addComponent:aComponent. |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
171 |
self addedView:aComponent |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
172 |
|
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
173 |
"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
|
174 |
! |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
175 |
|
202 | 176 |
addSubView:aView |
177 |
"redefined to recompute layout when a subview is added" |
|
178 |
||
179 |
super addSubView:aView. |
|
180 |
self addedView:aView |
|
181 |
! |
|
182 |
||
183 |
addSubView:newView after:aView |
|
184 |
"redefined to recompute layout when a subview is added" |
|
185 |
||
186 |
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
|
187 |
self addedView:newView |
c568dfd06f11
recompute & resize to the preferredExtent when views are added
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
188 |
|
c568dfd06f11
recompute & resize to the preferredExtent when views are added
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
189 |
"Modified: 15.7.1996 / 10:15:04 / cg" |
202 | 190 |
! |
191 |
||
192 |
addSubView:newView before:aView |
|
193 |
"redefined to recompute layout when a subview is added" |
|
194 |
||
195 |
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
|
196 |
self addedView:newView |
c568dfd06f11
recompute & resize to the preferredExtent when views are added
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
197 |
|
c568dfd06f11
recompute & resize to the preferredExtent when views are added
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
198 |
"Modified: 15.7.1996 / 10:14:39 / cg" |
202 | 199 |
! |
200 |
||
201 |
removeSubView:aView |
|
202 |
"redefined to recompute layout when a subview is removed" |
|
203 |
||
204 |
super removeSubView:aView. |
|
205 |
aView removeDependent:self. |
|
206 |
self layoutChanged |
|
38 | 207 |
! ! |
0 | 208 |
|
209 |
!PanelView methodsFor:'event processing'! |
|
210 |
||
211 |
sizeChanged:how |
|
119 | 212 |
"my size has changed - must rearrange elements" |
213 |
||
0 | 214 |
super sizeChanged:how. |
60 | 215 |
self layoutChanged |
125 | 216 |
! |
217 |
||
218 |
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
|
219 |
"an element changed its size" |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
220 |
|
125 | 221 |
something == #sizeOfView ifTrue:[ |
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
222 |
self layoutChanged. |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
223 |
^ self |
125 | 224 |
]. |
225 |
^ 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
|
226 |
|
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
227 |
"Modified: 28.1.1997 / 17:52:44 / cg" |
0 | 228 |
! ! |
229 |
||
202 | 230 |
!PanelView methodsFor:'initialization'! |
231 |
||
232 |
initialize |
|
233 |
super initialize. |
|
234 |
||
235 |
hLayout := vLayout := #center. "/ notice, this is ignored in this class |
|
236 |
"/ used by subclasses only |
|
237 |
verticalSpace := ViewSpacing. |
|
238 |
horizontalSpace := ViewSpacing. |
|
239 |
mustRearrange := elementsChangeSize := false |
|
240 |
! |
|
241 |
||
242 |
realize |
|
243 |
mustRearrange ifTrue:[ |
|
244 |
self setChildPositions |
|
245 |
]. |
|
246 |
super realize |
|
247 |
! |
|
248 |
||
249 |
setChildPositionsIfChanged |
|
250 |
"set all of my child positions - this is usually delayed, |
|
251 |
until the panel is actually shown (since we dont know, if more |
|
252 |
elements are to be added) thus avoiding repositioning the elements |
|
253 |
over and over. However, sometimes it is nescessary, to force positioning |
|
254 |
the elements, for example, before querying the relative position of |
|
255 |
an element (modalBoxes do so, to position the ok-button under the mouse |
|
256 |
pointer)." |
|
257 |
||
258 |
mustRearrange ifTrue:[ |
|
259 |
self setChildPositions |
|
260 |
]. |
|
261 |
||
262 |
! ! |
|
263 |
||
0 | 264 |
!PanelView methodsFor:'private'! |
265 |
||
202 | 266 |
addedView:aView |
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
267 |
"added a new element - rearrange components" |
202 | 268 |
|
269 |
elementsChangeSize ifTrue:[ |
|
787
c568dfd06f11
recompute & resize to the preferredExtent when views are added
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
270 |
aView addDependent:self |
c568dfd06f11
recompute & resize to the preferredExtent when views are added
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
271 |
]. |
c568dfd06f11
recompute & resize to the preferredExtent when views are added
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
272 |
aView resize. |
788
653fd742b5b0
extent handling when adding views
Claus Gittinger <cg@exept.de>
parents:
787
diff
changeset
|
273 |
"/ explicitExtent ~~ true ifTrue:[ |
653fd742b5b0
extent handling when adding views
Claus Gittinger <cg@exept.de>
parents:
787
diff
changeset
|
274 |
"/ self resize |
653fd742b5b0
extent handling when adding views
Claus Gittinger <cg@exept.de>
parents:
787
diff
changeset
|
275 |
"/ ]. |
202 | 276 |
self layoutChanged |
787
c568dfd06f11
recompute & resize to the preferredExtent when views are added
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
277 |
|
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
278 |
"Modified: 28.1.1997 / 17:45:10 / cg" |
202 | 279 |
! |
280 |
||
0 | 281 |
layoutChanged |
119 | 282 |
"called whenever repositioning is required. If the panel view is |
283 |
already visible, reposition elements right now. Otherwise, remember |
|
284 |
that a repositioning is needed to do so when the view eventually becomes |
|
285 |
visible." |
|
286 |
||
15 | 287 |
shown ifTrue:[ |
60 | 288 |
self setChildPositions |
0 | 289 |
] ifFalse:[ |
60 | 290 |
mustRearrange := true |
0 | 291 |
] |
292 |
! |
|
293 |
||
294 |
setChildPositions |
|
63 | 295 |
"(re)compute position of every child. |
296 |
This method is redefined for different layout characteristics - you may |
|
297 |
even create subclasses with completely different geometry management." |
|
0 | 298 |
|
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
299 |
|first xpos ypos maxHeightInRow thisRow subViews| |
0 | 300 |
|
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
301 |
(subViews := self subViews) notNil ifTrue:[ |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
302 |
xpos := horizontalSpace. |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
303 |
ypos := verticalSpace. |
0 | 304 |
|
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
305 |
maxHeightInRow := 0. |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
306 |
first := true. |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
307 |
thisRow := OrderedCollection new. |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
308 |
subViews do:[:child | |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
309 |
"go to next row, if this subview won't fit" |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
310 |
first ifFalse: [ |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
311 |
(xpos + child widthIncludingBorder + horizontalSpace) > width |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
312 |
ifTrue: [ |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
313 |
thisRow notEmpty ifTrue:[ |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
314 |
thisRow do:[:rowElement | |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
315 |
rowElement heightIncludingBorder < maxHeightInRow ifTrue:[ |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
316 |
rowElement top:(rowElement top + (maxHeightInRow - rowElement heightIncludingBorder)) |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
317 |
] |
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 |
]. |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
320 |
ypos := ypos + verticalSpace + maxHeightInRow. |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
321 |
xpos := horizontalSpace. |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
322 |
maxHeightInRow := 0. |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
323 |
thisRow := OrderedCollection new. |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
324 |
] |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
325 |
]. |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
326 |
thisRow add:child. |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
327 |
child origin:(xpos@ypos). |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
328 |
xpos := xpos + (child widthIncludingBorder) + horizontalSpace. |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
329 |
(maxHeightInRow < (child heightIncludingBorder)) ifTrue:[ |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
330 |
maxHeightInRow := child heightIncludingBorder |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
331 |
]. |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
332 |
first := false |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
333 |
]. |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
334 |
thisRow notEmpty ifTrue:[ |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
335 |
thisRow do:[:rowElement | |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
336 |
rowElement heightIncludingBorder < maxHeightInRow ifTrue:[ |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
337 |
rowElement top:(rowElement top + (maxHeightInRow - rowElement heightIncludingBorder)) |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
338 |
] |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
339 |
] |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
340 |
]. |
0 | 341 |
]. |
342 |
mustRearrange := false |
|
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
343 |
|
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
344 |
"Modified: 28.1.1997 / 17:51:36 / cg" |
0 | 345 |
! ! |
125 | 346 |
|
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
788
diff
changeset
|
347 |
!PanelView class methodsFor:'documentation'! |
205 | 348 |
|
349 |
version |
|
1036 | 350 |
^ '$Header: /cvs/stx/stx/libwidg/PanelView.st,v 1.20 1997-02-21 19:27:43 ca Exp $' |
205 | 351 |
! ! |