author | Claus Gittinger <cg@exept.de> |
Thu, 09 Dec 1999 12:10:41 +0100 | |
changeset 2073 | 40873b6d96bb |
parent 2064 | e0623ca625d6 |
child 2084 | 5e2d277d82a8 |
permissions | -rw-r--r-- |
295 | 1 |
" |
2 |
COPYRIGHT (c) 1991 by Claus Gittinger |
|
3 |
All Rights Reserved |
|
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 |
||
13 |
SimpleView subclass:#VariablePanel |
|
395
db172e0f3d56
renamed #style: to #handleStyle:
Claus Gittinger <cg@exept.de>
parents:
300
diff
changeset
|
14 |
instanceVariableNames:'barHeight barWidth separatingLine shadowForm lightForm showHandle |
295 | 15 |
handlePosition handleColor handleStyle handleLevel noColor |
1655 | 16 |
trackLine redrawLocked orientation handleLabels knobHeight |
17 |
realRelativeSizes' |
|
395
db172e0f3d56
renamed #style: to #handleStyle:
Claus Gittinger <cg@exept.de>
parents:
300
diff
changeset
|
18 |
classVariableNames:'DefaultShowHandle DefaultHandleStyle DefaultHandlePosition |
295 | 19 |
DefaultTrackingLine DefaultSeparatingLine DefaultHandleColor |
1529
509edab0a08b
allow handleImage to be specified in styleSheet
Claus Gittinger <cg@exept.de>
parents:
1416
diff
changeset
|
20 |
DefaultHandleLevel DefaultVCursor DefaultHCursor |
509edab0a08b
allow handleImage to be specified in styleSheet
Claus Gittinger <cg@exept.de>
parents:
1416
diff
changeset
|
21 |
DefaultHandleImage' |
395
db172e0f3d56
renamed #style: to #handleStyle:
Claus Gittinger <cg@exept.de>
parents:
300
diff
changeset
|
22 |
poolDictionaries:'' |
db172e0f3d56
renamed #style: to #handleStyle:
Claus Gittinger <cg@exept.de>
parents:
300
diff
changeset
|
23 |
category:'Views-Layout' |
295 | 24 |
! |
25 |
||
871 | 26 |
!VariablePanel class methodsFor:'documentation'! |
295 | 27 |
|
28 |
copyright |
|
29 |
" |
|
30 |
COPYRIGHT (c) 1991 by Claus Gittinger |
|
31 |
All Rights Reserved |
|
32 |
||
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 |
! |
|
41 |
||
42 |
documentation |
|
43 |
" |
|
44 |
a View to separate its subviews vertically by a movable bar; |
|
45 |
the size-ratios of the subviews can be changed by moving this bar. |
|
46 |
||
47 |
In order to correctly setup this kind of view, the subviews must |
|
48 |
be created with a relative origin & relative corner. |
|
49 |
The panel does not verify the relative subview bounds; |
|
50 |
therefore, it is your responsibility to set those relative sizes to fit |
|
51 |
according the orientation (see bad example below). |
|
52 |
||
53 |
The bar-handle is either an exposed knob (style == #motif) |
|
54 |
or the form defined in Scroller (style ~~ #motif) |
|
55 |
or nothing. |
|
56 |
||
57 |
Typically creation is done as: |
|
58 |
||
496 | 59 |
p := VariablePanel in:superView. |
60 |
p orientation:#vertical. |
|
295 | 61 |
|
496 | 62 |
v1 := <someViewClass> origin:0.0 @ 0.0 |
63 |
corner:1.0 @ 0.5 |
|
64 |
in:p. |
|
65 |
v2 := <someViewClass> origin:0.0 @ 0.5 |
|
66 |
corner:1.0 @ 0.8 |
|
67 |
in:p. |
|
68 |
v3 := <someViewClass> origin:0.0 @ 0.8 |
|
69 |
corner:1.0 @ 1.0 |
|
70 |
in:p. |
|
71 |
||
72 |
The two subclasses VariableHorizontalPanel and VariableVerticalPanel |
|
73 |
preset the orientation. They are a kept for backward compatibility |
|
74 |
(in previous versions, there used to be no common VariablePanel (super-) class). |
|
295 | 75 |
|
76 |
Notice: if it is required to insert a fixed-size view in the panel, |
|
77 |
use an extra view & insets, and place the subview into that extra view. |
|
1381 | 78 |
See examples. |
496 | 79 |
|
585 | 80 |
[instance Variables:] |
496 | 81 |
|
82 |
barHeight <Integer> the height of the bar (for verticalPanels) |
|
83 |
barWidth <Integer> the width of the bar (for horizontalPanels) |
|
84 |
||
85 |
separatingLine <Boolean> show a separating line (as in motif style) |
|
86 |
||
87 |
shadowForm <Image/Form> form (shadow part) drawn as handle - if nonNil |
|
88 |
||
89 |
lightForm <Image/Form> form (light part) drawn as handle - if nonNil |
|
90 |
||
91 |
showHandle <Boolean> if false, no handle is drawn |
|
92 |
||
93 |
handlePosition <Symbol> where is the handle - one of #left, #center, #right |
|
94 |
||
95 |
handleColor <Color> inside color of handle - defaults to viewBackground |
|
96 |
||
97 |
handleStyle <Symbol> type of handle; one of #next, #motif or nil |
|
98 |
||
99 |
handleLevel <Integer> 3D level of handle (only valid if no form is given) |
|
100 |
||
101 |
trackLine <Boolean> if true, an inverted line is drawn for tracking; |
|
102 |
otherwise, the whole bar is inverted. |
|
103 |
||
104 |
redrawLocked internal - locks redraws while tracking |
|
105 |
||
106 |
orientation <Symbol> one of #horizontal / #vertical |
|
107 |
||
108 |
||
585 | 109 |
[styleSheet values:] |
1381 | 110 |
variablePanel.showHandle true/false - should a handle be shown (default:true) |
496 | 111 |
|
1381 | 112 |
variablePanel.handleStyle #next / #motif / #iris / #full / nil (special handles) |
496 | 113 |
|
1381 | 114 |
variablePanel.handlePosition #left / #center / #right (default:#right) |
496 | 115 |
|
1381 | 116 |
variablePanel.handleLevel 3D level of heandle (default:2) |
496 | 117 |
|
1381 | 118 |
variablePanel.trackingLine when moved, track an inverted line (as in motif) |
496 | 119 |
as opposed to tracking the whole bar (default:false) |
1381 | 120 |
(obsoleted by trackingStyle) |
496 | 121 |
|
1381 | 122 |
variablePanel.trackingStyle #solidRectangle / #solidLine / #dashedLine |
123 |
detailed control over how to draw tracking |
|
124 |
(obsoletes trackingLine above) |
|
496 | 125 |
|
1381 | 126 |
variablePanel.separatingLine draw a separating line in the bar as in motif (default:false) |
496 | 127 |
|
1381 | 128 |
variablePanel.handleColor color of the handle. (default:Black) |
129 |
||
130 |
variablePanel.handleEnteredColor |
|
131 |
color of the handle when the pointer is in the bar (default:nil) |
|
585 | 132 |
|
133 |
[see also:] |
|
134 |
PanelView |
|
135 |
||
136 |
[author:] |
|
137 |
Claus Gittinger |
|
295 | 138 |
" |
139 |
! |
|
140 |
||
141 |
examples |
|
142 |
" |
|
874 | 143 |
example (notice that the subviews MUST have relative bounds): |
593 | 144 |
[exBegin] |
145 |
|top p v1 v2 v3| |
|
295 | 146 |
|
593 | 147 |
top := StandardSystemView new. |
148 |
top extent:300@300. |
|
295 | 149 |
|
593 | 150 |
p := VariablePanel |
151 |
origin:0.0 @ 0.0 |
|
152 |
corner:1.0 @ 1.0 |
|
153 |
in:top. |
|
154 |
p orientation:#vertical. |
|
295 | 155 |
|
593 | 156 |
v1 := View origin:0.0@0.0 corner:1.0@(1/2) in:p. |
157 |
v2 := View origin:0.0@(1/2) corner:1.0@(2/3) in:p. |
|
158 |
v3 := View origin:0.0@(2/3) corner:1.0@1.0 in:p. |
|
295 | 159 |
|
593 | 160 |
v1 viewBackground:(Color red). |
161 |
v2 viewBackground:(Color green). |
|
162 |
v3 viewBackground:(Color yellow). |
|
295 | 163 |
|
593 | 164 |
top open |
165 |
[exEnd] |
|
295 | 166 |
|
167 |
||
168 |
||
876 | 169 |
change the handles level: |
593 | 170 |
[exBegin] |
171 |
|top p v1 v2 v3| |
|
295 | 172 |
|
593 | 173 |
top := StandardSystemView new. |
174 |
top extent:300@300. |
|
295 | 175 |
|
593 | 176 |
p := VariablePanel |
177 |
origin:0.0 @ 0.0 |
|
178 |
corner:1.0 @ 1.0 |
|
179 |
in:top. |
|
180 |
p orientation:#vertical. |
|
181 |
p handleLevel:-1. |
|
295 | 182 |
|
593 | 183 |
v1 := View origin:0.0@0.0 corner:1.0@(1/3) in:p. |
184 |
v2 := View origin:0.0@(1/3) corner:1.0@(2/3) in:p. |
|
185 |
v3 := View origin:0.0@(2/3) corner:1.0@1.0 in:p. |
|
295 | 186 |
|
593 | 187 |
v1 viewBackground:(Color red). |
188 |
v2 viewBackground:(Color green). |
|
189 |
v3 viewBackground:(Color yellow). |
|
295 | 190 |
|
593 | 191 |
top open |
192 |
[exEnd] |
|
295 | 193 |
|
194 |
||
195 |
||
876 | 196 |
change the handles style to nil makes it invisible: |
593 | 197 |
[exBegin] |
198 |
|top p v1 v2 v3| |
|
397 | 199 |
|
593 | 200 |
top := StandardSystemView new. |
201 |
top extent:300@300. |
|
397 | 202 |
|
593 | 203 |
p := VariablePanel |
204 |
origin:0.0 @ 0.0 |
|
205 |
corner:1.0 @ 1.0 |
|
206 |
in:top. |
|
207 |
p orientation:#vertical. |
|
208 |
p handleStyle:nil. |
|
397 | 209 |
|
593 | 210 |
v1 := View origin:0.0@0.0 corner:1.0@(1/3) in:p. |
211 |
v2 := View origin:0.0@(1/3) corner:1.0@(2/3) in:p. |
|
212 |
v3 := View origin:0.0@(2/3) corner:1.0@1.0 in:p. |
|
397 | 213 |
|
593 | 214 |
v1 viewBackground:(Color red). |
215 |
v2 viewBackground:(Color green). |
|
216 |
v3 viewBackground:(Color yellow). |
|
397 | 217 |
|
593 | 218 |
top open |
219 |
[exEnd] |
|
397 | 220 |
|
221 |
||
222 |
||
876 | 223 |
define your own handle (-bitmap): |
224 |
[exBegin] |
|
225 |
|top p v1 v2 v3| |
|
226 |
||
227 |
top := StandardSystemView new. |
|
228 |
top extent:300@300. |
|
229 |
||
230 |
p := VariablePanel |
|
231 |
origin:0.0 @ 0.0 |
|
232 |
corner:1.0 @ 1.0 |
|
233 |
in:top. |
|
234 |
p orientation:#vertical. |
|
235 |
p handleImage:(Image fromFile:'bitmaps/ScrollLt.8.xbm'). |
|
236 |
||
237 |
v1 := View origin:0.0@0.0 corner:1.0@(1/3) in:p. |
|
238 |
v2 := View origin:0.0@(1/3) corner:1.0@(2/3) in:p. |
|
239 |
v3 := View origin:0.0@(2/3) corner:1.0@1.0 in:p. |
|
240 |
||
241 |
v1 viewBackground:(Color red). |
|
242 |
v2 viewBackground:(Color green). |
|
243 |
v3 viewBackground:(Color yellow). |
|
244 |
||
245 |
top open |
|
246 |
[exEnd] |
|
247 |
||
248 |
||
249 |
||
250 |
another handle-bitmap: |
|
251 |
[exBegin] |
|
252 |
|top p v1 v2 v3| |
|
253 |
||
254 |
top := StandardSystemView new. |
|
255 |
top extent:300@300. |
|
256 |
||
257 |
p := VariablePanel |
|
258 |
origin:0.0 @ 0.0 |
|
259 |
corner:1.0 @ 1.0 |
|
260 |
in:top. |
|
261 |
p orientation:#vertical. |
|
262 |
p handleImage:(Form width:9 |
|
263 |
height:11 |
|
264 |
fromArray:#( |
|
265 |
2r00000000 2r00000000 |
|
266 |
2r00001000 2r00000000 |
|
267 |
2r00011100 2r00000000 |
|
268 |
2r00111110 2r00000000 |
|
269 |
2r01111111 2r00000000 |
|
270 |
2r00000000 2r00000000 |
|
271 |
2r01111111 2r00000000 |
|
272 |
2r00111110 2r00000000 |
|
273 |
2r00011100 2r00000000 |
|
274 |
2r00001000 2r00000000 |
|
275 |
2r00000000 2r00000000 |
|
276 |
) |
|
277 |
). |
|
278 |
||
279 |
v1 := View origin:0.0@0.0 corner:1.0@(1/3) in:p. |
|
280 |
v2 := View origin:0.0@(1/3) corner:1.0@(2/3) in:p. |
|
281 |
v3 := View origin:0.0@(2/3) corner:1.0@1.0 in:p. |
|
282 |
||
283 |
v1 viewBackground:(Color red). |
|
284 |
v2 viewBackground:(Color green). |
|
285 |
v3 viewBackground:(Color yellow). |
|
286 |
||
287 |
top open |
|
288 |
[exEnd] |
|
289 |
||
290 |
placing scrolled and unscrolled views into a variablePanel: |
|
593 | 291 |
[exBegin] |
292 |
|top p v1 v2 v3| |
|
295 | 293 |
|
593 | 294 |
top := StandardSystemView new. |
295 |
top extent:300@300. |
|
295 | 296 |
|
593 | 297 |
p := VariablePanel |
298 |
origin:0.0 @ 0.0 |
|
299 |
corner:1.0 @ 1.0 |
|
300 |
in:top. |
|
301 |
p orientation:#vertical. |
|
295 | 302 |
|
593 | 303 |
v1 := ScrollableView for:SelectionInListView in:p. |
304 |
v1 origin:0.0 @ 0.0 corner:1.0 @ 0.5. |
|
305 |
v1 list:(FileDirectory directoryNamed:'/etc') contents. |
|
306 |
v1 action:[:selNr | |
|
307 |
|fullName stream text| |
|
308 |
fullName := '/etc/' , v1 selectionValue. |
|
309 |
stream := fullName asFilename readStream. |
|
310 |
stream notNil ifTrue:[ |
|
311 |
text := stream contents. |
|
312 |
v2 contents:text. |
|
313 |
v3 contents:text |
|
314 |
] |
|
315 |
]. |
|
295 | 316 |
|
593 | 317 |
v2 := TextView origin:0.0 @ 0.5 corner:1.0 @ 0.8 in:p. |
295 | 318 |
|
593 | 319 |
v3 := ScrollableView for:TextView in:p. |
320 |
v3 origin:0.0 @ 0.8 corner:1.0 @ 1.0. |
|
321 |
top open |
|
322 |
[exEnd] |
|
295 | 323 |
|
324 |
||
876 | 325 |
dynamically adding/removing views: |
593 | 326 |
[exBegin] |
327 |
|top p v1 v2 b| |
|
295 | 328 |
|
593 | 329 |
top := StandardSystemView new. |
330 |
top extent:300@300. |
|
295 | 331 |
|
593 | 332 |
b := Toggle label:'show' in:top. |
333 |
b showLamp:false. |
|
334 |
b origin:0.0 @ 0.0 corner:(1.0 @ 40). |
|
335 |
b action:[:state | |
|
336 |
state ifTrue:[ |
|
337 |
b label:'hide'. |
|
338 |
v1 origin:0.0 @ 0.0 corner:1.0 @ 0.5. |
|
339 |
v2 := ScrollableView for:EditTextView. |
|
340 |
v2 origin:0.0 @ 0.5 corner:1.0 @ 1.0. |
|
341 |
v2 contents:'another text'. |
|
342 |
p addSubView:v2. |
|
343 |
v2 realize. |
|
344 |
] ifFalse:[ |
|
345 |
b label:'show'. |
|
346 |
v2 destroy. |
|
347 |
v1 origin:0.0 @ 0.0 corner:1.0 @ 1.0 |
|
348 |
] |
|
349 |
]. |
|
295 | 350 |
|
593 | 351 |
p := VariablePanel |
352 |
origin:0.0 @ 0.0 |
|
353 |
corner:1.0 @ 1.0 |
|
354 |
in:top. |
|
355 |
p orientation:#vertical. |
|
356 |
p topInset:50. |
|
295 | 357 |
|
593 | 358 |
v1 := ScrollableView for:EditTextView in:p. |
359 |
v1 origin:0.0 @ 0.0 corner:1.0 @ 1.0. |
|
360 |
v1 contents:'some text'. |
|
295 | 361 |
|
593 | 362 |
top open |
363 |
[exEnd] |
|
295 | 364 |
|
365 |
||
876 | 366 |
dynamically flipping orientation: |
295 | 367 |
Notice: you have to change the relative bounds of the subviews first. |
593 | 368 |
[exBegin] |
369 |
|top p v1 v2 b| |
|
295 | 370 |
|
593 | 371 |
top := StandardSystemView new. |
372 |
top extent:300@300. |
|
295 | 373 |
|
593 | 374 |
b := Toggle label:'flip' in:top. |
375 |
b showLamp:false. |
|
376 |
b origin:0.0 @ 0.0 corner:(1.0 @ 40). |
|
377 |
b action:[:state | |
|
378 |
state ifTrue:[ |
|
379 |
v1 origin:0.0 @ 0.0 corner:0.5 @ 1.0. |
|
380 |
v2 origin:0.5 @ 0.0 corner:1.0 @ 1.0. |
|
381 |
p orientation:#horizontal. |
|
382 |
] ifFalse:[ |
|
383 |
v1 origin:0.0 @ 0.0 corner:1.0 @ 0.5. |
|
384 |
v2 origin:0.0 @ 0.5 corner:1.0 @ 1.0. |
|
385 |
p orientation:#vertical. |
|
386 |
]. |
|
387 |
]. |
|
295 | 388 |
|
593 | 389 |
p := VariablePanel |
390 |
origin:0.0 @ 0.0 |
|
391 |
corner:1.0 @ 1.0 |
|
392 |
in:top. |
|
393 |
p orientation:#vertical. |
|
394 |
p topInset:50. |
|
295 | 395 |
|
593 | 396 |
v1 := ScrollableView for:EditTextView in:p. |
397 |
v1 origin:0.0 @ 0.0 corner:1.0 @ 0.5. |
|
398 |
v1 contents:'some text'. |
|
295 | 399 |
|
593 | 400 |
v2 := ScrollableView for:EditTextView in:p. |
401 |
v2 origin:0.0 @ 0.5 corner:1.0 @ 1.0. |
|
402 |
v2 contents:'another text'. |
|
295 | 403 |
|
593 | 404 |
top open |
405 |
[exEnd] |
|
295 | 406 |
|
407 |
||
876 | 408 |
combining fix-size with variable size: |
295 | 409 |
(need 3 extra frame-views to place the extra labels into) |
593 | 410 |
[exBegin] |
411 |
|top p v1 l1 v2 l2 v3 l3 f1 f2 f3| |
|
295 | 412 |
|
593 | 413 |
top := StandardSystemView new. |
414 |
top extent:300@300. |
|
295 | 415 |
|
593 | 416 |
p := VariablePanel |
417 |
origin:0.0 @ 0.0 |
|
418 |
corner:1.0 @ 1.0 |
|
419 |
in:top. |
|
295 | 420 |
|
874 | 421 |
p orientation:#vertical. |
422 |
||
423 |
f1 := View origin:0.0@0.0 corner:1.0@0.3 in:p. |
|
424 |
f2 := View origin:0.0@0.3 corner:1.0@0.6 in:p. |
|
425 |
f3 := View origin:0.0@0.6 corner:1.0@1.0 in:p. |
|
295 | 426 |
|
593 | 427 |
v1 := View origin:0.0 @ 0.0 corner:1.0 @ 1.0 in:f1. |
428 |
v2 := View origin:0.0 @ 0.0 corner:1.0 @ 1.0 in:f2. |
|
429 |
v3 := View origin:0.0 @ 0.0 corner:1.0 @ 1.0 in:f3. |
|
295 | 430 |
|
593 | 431 |
l1 := Label label:'sub1' in:f1. |
432 |
l2 := Label label:'sub2' in:f2. |
|
433 |
l3 := Label label:'sub3' in:f3. |
|
295 | 434 |
|
593 | 435 |
l1 origin:0.0 @ 0.0 corner:1.0 @ 0.0 ; |
436 |
bottomInset:(l1 preferredExtent y negated). |
|
437 |
l2 origin:0.0 @ 0.0 corner:1.0 @ 0.0 ; |
|
438 |
bottomInset:(l2 preferredExtent y negated). |
|
439 |
l3 origin:0.0 @ 0.0 corner:1.0 @ 0.0 ; |
|
440 |
bottomInset:(l3 preferredExtent y negated). |
|
295 | 441 |
|
593 | 442 |
v1 topInset:(l1 preferredExtent y); level:-1. |
443 |
v2 topInset:(l2 preferredExtent y); level:-1. |
|
444 |
v3 topInset:(l3 preferredExtent y); level:-1. |
|
295 | 445 |
|
593 | 446 |
v1 viewBackground:(Color red). |
447 |
v2 viewBackground:(Color green). |
|
448 |
v3 viewBackground:(Color yellow). |
|
295 | 449 |
|
874 | 450 |
top open |
451 |
[exEnd] |
|
452 |
||
453 |
VerticalPansels allow a label to be associated with the |
|
454 |
handles; this looks much like the above, but is slightly |
|
455 |
more compact. Notice, no label can be placed above the first |
|
456 |
view - it has no handle. |
|
457 |
[exBegin] |
|
458 |
|top p v1 v2 v3| |
|
459 |
||
460 |
top := StandardSystemView new. |
|
461 |
top extent:300@300. |
|
462 |
||
463 |
p := VariablePanel |
|
464 |
origin:0.0 @ 0.0 |
|
465 |
corner:1.0 @ 1.0 |
|
466 |
in:top. |
|
467 |
||
593 | 468 |
p orientation:#vertical. |
874 | 469 |
p handleLabels:#('ignored' 'sub2' 'sub3'). |
470 |
||
471 |
v1 := View origin:0.0@0.0 corner:1.0@0.3 in:p. |
|
472 |
v2 := View origin:0.0@0.3 corner:1.0@0.6 in:p. |
|
473 |
v3 := View origin:0.0@0.6 corner:1.0@1.0 in:p. |
|
474 |
||
475 |
v1 viewBackground:(Color red). |
|
476 |
v2 viewBackground:(Color green). |
|
477 |
v3 viewBackground:(Color yellow). |
|
478 |
||
593 | 479 |
top open |
480 |
[exEnd] |
|
295 | 481 |
|
874 | 482 |
handle labels can be more than strings .... |
483 |
(however, they should have about the same height, since |
|
484 |
the largest defines heights of all bars; |
|
485 |
retry the example below with a larger bitmap image ...) |
|
486 |
[exBegin] |
|
487 |
|top e p v1 v2 v3| |
|
488 |
||
489 |
top := StandardSystemView new. |
|
490 |
top extent:300@300. |
|
491 |
||
492 |
p := VariablePanel |
|
493 |
origin:0.0 @ 0.0 |
|
494 |
corner:1.0 @ 1.0 |
|
495 |
in:top. |
|
496 |
||
497 |
p orientation:#vertical. |
|
498 |
e := Array with:#bold |
|
499 |
with:#color->Color red. |
|
500 |
||
501 |
p handleLabels:(Array with:nil |
|
502 |
with:('bold and red' asText emphasizeAllWith:e) |
|
503 |
with:(Image fromFile:'ScrollRt.xbm')). |
|
504 |
||
505 |
v1 := View origin:0.0@0.0 corner:1.0@0.3 in:p. |
|
506 |
v2 := View origin:0.0@0.3 corner:1.0@0.6 in:p. |
|
507 |
v3 := View origin:0.0@0.6 corner:1.0@1.0 in:p. |
|
508 |
||
509 |
v1 viewBackground:(Color red). |
|
510 |
v2 viewBackground:(Color green). |
|
511 |
v3 viewBackground:(Color yellow). |
|
512 |
||
513 |
top open |
|
514 |
[exEnd] |
|
515 |
||
516 |
||
295 | 517 |
|
518 |
BAD EXAMPLE (wrong relative sizes - repaired on handle move): |
|
593 | 519 |
[exBegin] |
520 |
|top p v1 v2 v3| |
|
295 | 521 |
|
593 | 522 |
top := StandardSystemView new. |
523 |
top extent:300@300. |
|
295 | 524 |
|
593 | 525 |
p := VariablePanel |
526 |
origin:0.0 @ 0.0 |
|
527 |
corner:1.0 @ 1.0 |
|
528 |
in:top. |
|
529 |
p orientation:#vertical. |
|
295 | 530 |
|
593 | 531 |
v1 := View origin:0.0 @ 0.0 corner:1.0 @ (1/4) in:p. |
532 |
v2 := View origin:0.0 @ (1/2) corner:1.0 @ (3/4) in:p. |
|
533 |
v3 := View origin:0.0 @ (3/4) corner:1.0 @ 1.0 in:p. |
|
295 | 534 |
|
593 | 535 |
v1 viewBackground:(Color red). |
536 |
v2 viewBackground:(Color green). |
|
537 |
v3 viewBackground:(Color yellow). |
|
295 | 538 |
|
593 | 539 |
top open |
540 |
[exEnd] |
|
295 | 541 |
" |
542 |
! ! |
|
543 |
||
871 | 544 |
!VariablePanel class methodsFor:'defaults'! |
295 | 545 |
|
1158
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
546 |
cursorForOrientation:orientation |
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
547 |
"return an appropriate cursor" |
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
548 |
|
1698
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
549 |
^ self cursorForOrientation:orientation onDevice:Display. |
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
550 |
|
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
551 |
"Modified: / 30.9.1998 / 18:21:10 / cg" |
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
552 |
! |
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
553 |
|
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
554 |
cursorForOrientation:orientation onDevice:device |
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
555 |
"return an appropriate cursor" |
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
556 |
|
1158
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
557 |
|cursor| |
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
558 |
|
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
559 |
orientation == #vertical ifTrue:[ |
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
560 |
DefaultVCursor notNil ifTrue:[ |
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
561 |
cursor := DefaultVCursor |
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
562 |
] ifFalse:[ |
1698
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
563 |
device platformName = 'WIN32' ifFalse:[ |
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
564 |
cursor := Cursor |
2073 | 565 |
sourceForm:(Smalltalk imageFromFileNamed:'VVPanel.xbm' forClass:self) |
566 |
maskForm:(Smalltalk imageFromFileNamed:'VVPanel_m.xbm' forClass:self) |
|
1698
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
567 |
hotX:8 |
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
568 |
hotY:8. |
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
569 |
]. |
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
570 |
|
1158
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
571 |
" |
1698
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
572 |
if bitmaps are not available or under Win95, |
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
573 |
use a standard cursor |
1158
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
574 |
" |
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
575 |
cursor isNil ifTrue:[ |
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
576 |
"which one looks better ?" |
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
577 |
cursor := Cursor upDownArrow |
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
578 |
"cursor := Cursor upLimitArrow" |
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
579 |
]. |
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
580 |
DefaultVCursor := cursor |
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
581 |
] |
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
582 |
] ifFalse:[ |
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
583 |
DefaultHCursor notNil ifTrue:[ |
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
584 |
cursor := DefaultHCursor |
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
585 |
] ifFalse:[ |
1698
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
586 |
device platformName = 'WIN32' ifFalse:[ |
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
587 |
cursor := Cursor |
2073 | 588 |
sourceForm:(Smalltalk imageFromFileNamed:'VHPanel.xbm' forClass:self) |
589 |
maskForm:(Smalltalk imageFromFileNamed:'VHPanel_m.xbm' forClass:self) |
|
1698
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
590 |
hotX:8 |
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
591 |
hotY:8. |
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
592 |
]. |
1158
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
593 |
" |
1698
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
594 |
if bitmaps are not available or under Win95, |
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
595 |
use a standard cursor |
1158
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
596 |
" |
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
597 |
cursor isNil ifTrue:[ |
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
598 |
"which one looks better ?" |
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
599 |
cursor := Cursor leftRightArrow |
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
600 |
"cursor := Cursor leftLimitArrow" |
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
601 |
]. |
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
602 |
DefaultHCursor := cursor |
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
603 |
] |
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
604 |
]. |
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
605 |
|
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
606 |
^ cursor |
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
607 |
|
1698
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
608 |
" |
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
609 |
DefaultVCursor := DefaultHCursor := nil. |
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
610 |
" |
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
611 |
|
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
612 |
"Created: / 30.9.1998 / 18:20:41 / cg" |
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
613 |
"Modified: / 30.9.1998 / 18:23:07 / cg" |
1158
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
614 |
! |
225c0d52068d
cursor default is now a class method.
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
615 |
|
295 | 616 |
lightFormOn:aDisplay |
617 |
"use same handle as Scroller" |
|
618 |
||
619 |
^ Scroller handleLightFormOn:aDisplay |
|
620 |
! |
|
621 |
||
622 |
shadowFormOn:aDisplay |
|
623 |
"use same handle as Scroller" |
|
624 |
||
625 |
^ Scroller handleShadowFormOn:aDisplay |
|
626 |
! |
|
627 |
||
628 |
updateStyleCache |
|
441
e170bca66a78
added style resource directive
Claus Gittinger <cg@exept.de>
parents:
397
diff
changeset
|
629 |
"extract values from the styleSheet and cache them in class variables" |
e170bca66a78
added style resource directive
Claus Gittinger <cg@exept.de>
parents:
397
diff
changeset
|
630 |
|
1388 | 631 |
<resource: #style (#'variablePanel.showHandle' |
1529
509edab0a08b
allow handleImage to be specified in styleSheet
Claus Gittinger <cg@exept.de>
parents:
1416
diff
changeset
|
632 |
#'variablePanel.handleStyle' |
509edab0a08b
allow handleImage to be specified in styleSheet
Claus Gittinger <cg@exept.de>
parents:
1416
diff
changeset
|
633 |
#'variablePanel.handleImage' |
509edab0a08b
allow handleImage to be specified in styleSheet
Claus Gittinger <cg@exept.de>
parents:
1416
diff
changeset
|
634 |
#'variablePanel.handlePosition' |
509edab0a08b
allow handleImage to be specified in styleSheet
Claus Gittinger <cg@exept.de>
parents:
1416
diff
changeset
|
635 |
#'variablePanel.handleLevel' |
509edab0a08b
allow handleImage to be specified in styleSheet
Claus Gittinger <cg@exept.de>
parents:
1416
diff
changeset
|
636 |
#'variablePanel.trackingLine' |
509edab0a08b
allow handleImage to be specified in styleSheet
Claus Gittinger <cg@exept.de>
parents:
1416
diff
changeset
|
637 |
#'variablePanel.trackingStyle' |
509edab0a08b
allow handleImage to be specified in styleSheet
Claus Gittinger <cg@exept.de>
parents:
1416
diff
changeset
|
638 |
#'variablePanel.separatingLine' |
509edab0a08b
allow handleImage to be specified in styleSheet
Claus Gittinger <cg@exept.de>
parents:
1416
diff
changeset
|
639 |
#'variablePanel.handleColor')> |
441
e170bca66a78
added style resource directive
Claus Gittinger <cg@exept.de>
parents:
397
diff
changeset
|
640 |
|
1129
17a77892f180
added support for dashed-LineTrack
Claus Gittinger <cg@exept.de>
parents:
1119
diff
changeset
|
641 |
|lineModeBoolean| |
17a77892f180
added support for dashed-LineTrack
Claus Gittinger <cg@exept.de>
parents:
1119
diff
changeset
|
642 |
|
1869 | 643 |
DefaultShowHandle := StyleSheet at:#'variablePanel.showHandle' default:true. |
644 |
DefaultHandleStyle := StyleSheet at:#'variablePanel.handleStyle'. |
|
645 |
DefaultHandlePosition := StyleSheet at:#'variablePanel.handlePosition' "default:#right". |
|
1381 | 646 |
DefaultHandlePosition isNil ifTrue:[ |
647 |
DefaultHandlePosition := ScrollableView defaultScrollBarPosition. |
|
648 |
]. |
|
1869 | 649 |
DefaultHandleLevel := StyleSheet at:#'variablePanel.handleLevel' default:2. |
650 |
DefaultTrackingLine := StyleSheet at:#'variablePanel.trackingStyle'. |
|
1129
17a77892f180
added support for dashed-LineTrack
Claus Gittinger <cg@exept.de>
parents:
1119
diff
changeset
|
651 |
DefaultTrackingLine isNil ifTrue:[ |
1869 | 652 |
lineModeBoolean := StyleSheet at:#'variablePanel.trackingLine' default:false. |
1129
17a77892f180
added support for dashed-LineTrack
Claus Gittinger <cg@exept.de>
parents:
1119
diff
changeset
|
653 |
lineModeBoolean ifTrue:[ |
17a77892f180
added support for dashed-LineTrack
Claus Gittinger <cg@exept.de>
parents:
1119
diff
changeset
|
654 |
DefaultTrackingLine := #solidLine |
17a77892f180
added support for dashed-LineTrack
Claus Gittinger <cg@exept.de>
parents:
1119
diff
changeset
|
655 |
] ifFalse:[ |
17a77892f180
added support for dashed-LineTrack
Claus Gittinger <cg@exept.de>
parents:
1119
diff
changeset
|
656 |
DefaultTrackingLine := #solidRectangle |
17a77892f180
added support for dashed-LineTrack
Claus Gittinger <cg@exept.de>
parents:
1119
diff
changeset
|
657 |
] |
17a77892f180
added support for dashed-LineTrack
Claus Gittinger <cg@exept.de>
parents:
1119
diff
changeset
|
658 |
]. |
17a77892f180
added support for dashed-LineTrack
Claus Gittinger <cg@exept.de>
parents:
1119
diff
changeset
|
659 |
|
1869 | 660 |
DefaultSeparatingLine := StyleSheet at:#'variablePanel.separatingLine' default:false. |
661 |
DefaultHandleColor := StyleSheet colorAt:#'variablePanel.handleColor' default:Black. |
|
441
e170bca66a78
added style resource directive
Claus Gittinger <cg@exept.de>
parents:
397
diff
changeset
|
662 |
|
1869 | 663 |
DefaultHandleImage := StyleSheet at:#'variablePanel.handleImage' |
1529
509edab0a08b
allow handleImage to be specified in styleSheet
Claus Gittinger <cg@exept.de>
parents:
1416
diff
changeset
|
664 |
|
1129
17a77892f180
added support for dashed-LineTrack
Claus Gittinger <cg@exept.de>
parents:
1119
diff
changeset
|
665 |
" |
17a77892f180
added support for dashed-LineTrack
Claus Gittinger <cg@exept.de>
parents:
1119
diff
changeset
|
666 |
VariablePanel updateStyleCache |
17a77892f180
added support for dashed-LineTrack
Claus Gittinger <cg@exept.de>
parents:
1119
diff
changeset
|
667 |
" |
17a77892f180
added support for dashed-LineTrack
Claus Gittinger <cg@exept.de>
parents:
1119
diff
changeset
|
668 |
|
1529
509edab0a08b
allow handleImage to be specified in styleSheet
Claus Gittinger <cg@exept.de>
parents:
1416
diff
changeset
|
669 |
"Modified: / 19.5.1998 / 16:08:54 / cg" |
295 | 670 |
! ! |
671 |
||
672 |
!VariablePanel methodsFor:'accessing'! |
|
673 |
||
674 |
addSubView:aView |
|
395
db172e0f3d56
renamed #style: to #handleStyle:
Claus Gittinger <cg@exept.de>
parents:
300
diff
changeset
|
675 |
"a view is added; adjust other subviews sizes" |
db172e0f3d56
renamed #style: to #handleStyle:
Claus Gittinger <cg@exept.de>
parents:
300
diff
changeset
|
676 |
|
295 | 677 |
super addSubView:aView. |
1043 | 678 |
|
679 |
"/ (aView relativeOrigin isNil |
|
680 |
"/ or:[aView relativeExtent isNil and:[aView relativeCorner isNil]]) ifTrue:[ |
|
681 |
"/ aView geometryLayout:nil. |
|
682 |
"/ aView origin:0.0@0.0. |
|
683 |
"/ aView extent:1.0@0.5. |
|
684 |
"/ self setupSubviews |
|
685 |
"/ ]. |
|
686 |
||
295 | 687 |
realized ifTrue:[ |
1043 | 688 |
self resizeSubviews. |
295 | 689 |
] |
690 |
||
691 |
"Created: 17.1.1996 / 22:41:00 / cg" |
|
395
db172e0f3d56
renamed #style: to #handleStyle:
Claus Gittinger <cg@exept.de>
parents:
300
diff
changeset
|
692 |
"Modified: 24.2.1996 / 19:05:05 / cg" |
295 | 693 |
! |
694 |
||
695 |
orientation |
|
485 | 696 |
"return my orientation; either #horizontal or #vertical" |
697 |
||
295 | 698 |
^ orientation |
485 | 699 |
|
700 |
"Modified: 6.3.1996 / 18:08:45 / cg" |
|
295 | 701 |
! |
702 |
||
703 |
orientation:aSymbol |
|
485 | 704 |
"change my orientation; aSymbol must be one of #horizontal or #vertical. |
705 |
Changing implies a resize of my subViews." |
|
706 |
||
707 |
aSymbol ~~ orientation ifTrue:[ |
|
708 |
orientation := aSymbol. |
|
709 |
self initCursor. |
|
710 |
self anyNonRelativeSubviews ifTrue:[ |
|
711 |
self setupSubviews |
|
712 |
]. |
|
713 |
shown ifTrue:[ |
|
714 |
self cursor:cursor. |
|
715 |
self sizeChanged:nil. |
|
722
3f297a438fec
use #invalidate instead of #redraw
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
716 |
self invalidate. |
485 | 717 |
] |
295 | 718 |
] |
485 | 719 |
|
722
3f297a438fec
use #invalidate instead of #redraw
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
720 |
"Modified: 29.5.1996 / 16:22:35 / cg" |
295 | 721 |
! |
722 |
||
395
db172e0f3d56
renamed #style: to #handleStyle:
Claus Gittinger <cg@exept.de>
parents:
300
diff
changeset
|
723 |
removeSubView:aView |
db172e0f3d56
renamed #style: to #handleStyle:
Claus Gittinger <cg@exept.de>
parents:
300
diff
changeset
|
724 |
"a view is removed; adjust other subviews sizes" |
db172e0f3d56
renamed #style: to #handleStyle:
Claus Gittinger <cg@exept.de>
parents:
300
diff
changeset
|
725 |
|
db172e0f3d56
renamed #style: to #handleStyle:
Claus Gittinger <cg@exept.de>
parents:
300
diff
changeset
|
726 |
super removeSubView:aView. |
db172e0f3d56
renamed #style: to #handleStyle:
Claus Gittinger <cg@exept.de>
parents:
300
diff
changeset
|
727 |
shown ifTrue:[ |
1043 | 728 |
(superView isNil or:[superView shown]) ifTrue:[ |
729 |
self setupSubviews. |
|
730 |
self resizeSubviews. |
|
731 |
] |
|
395
db172e0f3d56
renamed #style: to #handleStyle:
Claus Gittinger <cg@exept.de>
parents:
300
diff
changeset
|
732 |
] |
db172e0f3d56
renamed #style: to #handleStyle:
Claus Gittinger <cg@exept.de>
parents:
300
diff
changeset
|
733 |
! ! |
db172e0f3d56
renamed #style: to #handleStyle:
Claus Gittinger <cg@exept.de>
parents:
300
diff
changeset
|
734 |
|
db172e0f3d56
renamed #style: to #handleStyle:
Claus Gittinger <cg@exept.de>
parents:
300
diff
changeset
|
735 |
!VariablePanel methodsFor:'accessing-look'! |
db172e0f3d56
renamed #style: to #handleStyle:
Claus Gittinger <cg@exept.de>
parents:
300
diff
changeset
|
736 |
|
295 | 737 |
barHeight |
738 |
"return the height of the separating bar" |
|
739 |
||
740 |
^ barHeight |
|
741 |
! |
|
742 |
||
743 |
barHeight:nPixel |
|
744 |
"set the height of the separating bar" |
|
745 |
||
746 |
barHeight := nPixel. |
|
747 |
||
1207 | 748 |
"make certain bar is visible and catchable" |
295 | 749 |
(barHeight < 4) ifTrue:[ |
876 | 750 |
barHeight := 4 |
295 | 751 |
]. |
752 |
||
876 | 753 |
"make it even, so spacing is equally spreadable among subviews" |
295 | 754 |
barHeight odd ifTrue:[ |
876 | 755 |
barHeight := barHeight + 1 |
295 | 756 |
] |
876 | 757 |
|
758 |
"Modified: 7.11.1996 / 20:07:11 / cg" |
|
1207 | 759 |
"Modified: 28.4.1997 / 14:30:33 / dq" |
876 | 760 |
! |
761 |
||
762 |
handleImage:aBitmapOrImage |
|
763 |
"define the handles image" |
|
764 |
||
765 |
shadowForm := aBitmapOrImage. |
|
766 |
lightForm := nil. |
|
767 |
self computeBarHeight. |
|
768 |
||
769 |
"Created: 7.11.1996 / 20:21:10 / cg" |
|
770 |
"Modified: 7.11.1996 / 20:27:22 / cg" |
|
295 | 771 |
! |
772 |
||
871 | 773 |
handleLabels:aCollectionOfLabels |
1981
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
774 |
"define special handle labels - typically a collection of |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
775 |
bitmap images. Notice, that the first handle is not |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
776 |
drawn, that is, the first element if the argument is useless." |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
777 |
|
871 | 778 |
orientation == #horizontal ifTrue:[ |
779 |
self error:'not allowed for horizontal panels' |
|
780 |
]. |
|
781 |
||
782 |
handleLabels := aCollectionOfLabels. |
|
783 |
self computeBarHeight. |
|
784 |
self resizeSubviews. |
|
785 |
||
1981
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
786 |
" |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
787 |
|top panel v1 v2| |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
788 |
|
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
789 |
top := StandardSystemView new. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
790 |
panel := VariableVerticalPanel origin:0.0@0.0 corner:1.0@1.0 in:top. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
791 |
panel add:(EditTextView origin:0.0@0.0 corner:1.0@0.5). |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
792 |
panel add:(EditTextView origin:0.0@0.5 corner:1.0@1.0). |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
793 |
panel handleStyle:nil. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
794 |
panel handleLabels:#('foo' 'bar'). |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
795 |
top open |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
796 |
" |
871 | 797 |
! |
798 |
||
295 | 799 |
handleLevel:aNumber |
800 |
"define the 3D level of the handle (only with some styles). |
|
801 |
Normally, this is defined via styleSheet files, but this entry allows |
|
802 |
individual views to be manipulated." |
|
803 |
||
804 |
handleLevel := aNumber |
|
805 |
! |
|
806 |
||
807 |
handlePosition |
|
808 |
"return the position of the handle" |
|
809 |
||
810 |
^ handlePosition |
|
811 |
! |
|
812 |
||
813 |
handlePosition:aSymbol |
|
814 |
"define the position of the handle; the argument aSymbol |
|
815 |
may be one of #left, #right or #center" |
|
816 |
||
817 |
handlePosition := aSymbol |
|
818 |
! |
|
819 |
||
876 | 820 |
handleShadowImage:shadowImage lightImage:lightImage |
821 |
"define the handles image; both shadow and light parts" |
|
822 |
||
823 |
shadowForm := shadowImage. |
|
824 |
lightForm := lightImage. |
|
825 |
self computeBarHeight. |
|
826 |
||
827 |
"Created: 7.11.1996 / 20:21:51 / cg" |
|
828 |
"Modified: 7.11.1996 / 20:27:26 / cg" |
|
829 |
! |
|
830 |
||
395
db172e0f3d56
renamed #style: to #handleStyle:
Claus Gittinger <cg@exept.de>
parents:
300
diff
changeset
|
831 |
handleStyle:styleSymbol |
db172e0f3d56
renamed #style: to #handleStyle:
Claus Gittinger <cg@exept.de>
parents:
300
diff
changeset
|
832 |
"define the style of the handle; |
db172e0f3d56
renamed #style: to #handleStyle:
Claus Gittinger <cg@exept.de>
parents:
300
diff
changeset
|
833 |
styleSymbol may be #motif to draw a little knob or |
db172e0f3d56
renamed #style: to #handleStyle:
Claus Gittinger <cg@exept.de>
parents:
300
diff
changeset
|
834 |
anything else to draw scrollBars handleForm. |
db172e0f3d56
renamed #style: to #handleStyle:
Claus Gittinger <cg@exept.de>
parents:
300
diff
changeset
|
835 |
Normally, this is defined via styleSheet files, but this entry allows |
db172e0f3d56
renamed #style: to #handleStyle:
Claus Gittinger <cg@exept.de>
parents:
300
diff
changeset
|
836 |
individual views to be manipulated." |
295 | 837 |
|
395
db172e0f3d56
renamed #style: to #handleStyle:
Claus Gittinger <cg@exept.de>
parents:
300
diff
changeset
|
838 |
(styleSymbol ~~ handleStyle) ifTrue:[ |
722
3f297a438fec
use #invalidate instead of #redraw
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
839 |
handleStyle := styleSymbol. |
3f297a438fec
use #invalidate instead of #redraw
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
840 |
handleStyle == #next ifTrue:[ |
3f297a438fec
use #invalidate instead of #redraw
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
841 |
shadowForm := self class shadowFormOn:device. |
3f297a438fec
use #invalidate instead of #redraw
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
842 |
lightForm := self class lightFormOn:device. |
3f297a438fec
use #invalidate instead of #redraw
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
843 |
] ifFalse:[ |
3f297a438fec
use #invalidate instead of #redraw
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
844 |
shadowForm := lightForm := nil |
3f297a438fec
use #invalidate instead of #redraw
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
845 |
]. |
395
db172e0f3d56
renamed #style: to #handleStyle:
Claus Gittinger <cg@exept.de>
parents:
300
diff
changeset
|
846 |
|
722
3f297a438fec
use #invalidate instead of #redraw
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
847 |
shadowForm notNil ifTrue:[ |
3f297a438fec
use #invalidate instead of #redraw
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
848 |
(self is3D and:[handleStyle ~~ #motif]) ifTrue:[ |
3f297a438fec
use #invalidate instead of #redraw
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
849 |
self barHeight:(shadowForm height + 2). |
3f297a438fec
use #invalidate instead of #redraw
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
850 |
barWidth := shadowForm width |
3f297a438fec
use #invalidate instead of #redraw
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
851 |
] |
3f297a438fec
use #invalidate instead of #redraw
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
852 |
]. |
3f297a438fec
use #invalidate instead of #redraw
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
853 |
shown ifTrue:[ |
3f297a438fec
use #invalidate instead of #redraw
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
854 |
self resizeSubviews. |
3f297a438fec
use #invalidate instead of #redraw
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
855 |
self invalidate |
3f297a438fec
use #invalidate instead of #redraw
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
856 |
] |
295 | 857 |
] |
395
db172e0f3d56
renamed #style: to #handleStyle:
Claus Gittinger <cg@exept.de>
parents:
300
diff
changeset
|
858 |
|
db172e0f3d56
renamed #style: to #handleStyle:
Claus Gittinger <cg@exept.de>
parents:
300
diff
changeset
|
859 |
"Created: 24.2.1996 / 19:04:07 / cg" |
722
3f297a438fec
use #invalidate instead of #redraw
Claus Gittinger <cg@exept.de>
parents:
593
diff
changeset
|
860 |
"Modified: 29.5.1996 / 16:22:24 / cg" |
295 | 861 |
! |
862 |
||
1948 | 863 |
setBarHeight:nPixel |
864 |
"set the height of the separating bar" |
|
865 |
||
866 |
barHeight := nPixel. |
|
867 |
||
868 |
! |
|
869 |
||
295 | 870 |
style:styleSymbol |
871 |
"define the style of the handle; |
|
872 |
styleSymbol may be #motif to draw a little knob or |
|
873 |
anything else to draw scrollBars handleForm. |
|
874 |
Normally, this is defined via styleSheet files, but this entry allows |
|
875 |
individual views to be manipulated." |
|
876 |
||
395
db172e0f3d56
renamed #style: to #handleStyle:
Claus Gittinger <cg@exept.de>
parents:
300
diff
changeset
|
877 |
self handleStyle:styleSymbol |
295 | 878 |
|
395
db172e0f3d56
renamed #style: to #handleStyle:
Claus Gittinger <cg@exept.de>
parents:
300
diff
changeset
|
879 |
"Modified: 24.2.1996 / 19:04:19 / cg" |
295 | 880 |
! ! |
881 |
||
882 |
!VariablePanel methodsFor:'drawing'! |
|
883 |
||
871 | 884 |
drawHandle:hIndex atX:hx y:hy |
295 | 885 |
"draw a single handle at hx/hy" |
886 |
||
1628
d5065006e796
fixed / beautified #full handleStyle (used with win95 style)
Claus Gittinger <cg@exept.de>
parents:
1551
diff
changeset
|
887 |
|h w x y m xm ym lbl maxKnob |
1096 | 888 |
mar "{ Class: SmallInteger }" |
889 |
barWidthInt "{ Class: SmallInteger }" |
|
890 |
barHeightInt "{ Class: SmallInteger }" | |
|
295 | 891 |
|
1981
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
892 |
((handleStyle isNil or:[handleStyle == #none]) |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
893 |
and:[handleLabels isNil]) ifTrue:[^ self]. |
396
973d4a9fa32c
setting handleStyle to nil disables handleDrawing
Claus Gittinger <cg@exept.de>
parents:
395
diff
changeset
|
894 |
|
1096 | 895 |
mar := margin. |
896 |
barHeightInt := barHeight. |
|
897 |
barWidthInt := barWidth. |
|
871 | 898 |
|
295 | 899 |
shadowForm notNil ifTrue:[ |
871 | 900 |
h := shadowForm height. |
901 |
w := shadowForm width . |
|
1096 | 902 |
maxKnob := h min:barHeightInt. |
295 | 903 |
] ifFalse:[ |
1096 | 904 |
maxKnob := knobHeight min: barHeightInt. |
876 | 905 |
maxKnob := maxKnob max:4. |
1628
d5065006e796
fixed / beautified #full handleStyle (used with win95 style)
Claus Gittinger <cg@exept.de>
parents:
1551
diff
changeset
|
906 |
handleStyle == #full ifTrue:[ |
d5065006e796
fixed / beautified #full handleStyle (used with win95 style)
Claus Gittinger <cg@exept.de>
parents:
1551
diff
changeset
|
907 |
w := h := maxKnob |
d5065006e796
fixed / beautified #full handleStyle (used with win95 style)
Claus Gittinger <cg@exept.de>
parents:
1551
diff
changeset
|
908 |
] ifFalse:[ |
d5065006e796
fixed / beautified #full handleStyle (used with win95 style)
Claus Gittinger <cg@exept.de>
parents:
1551
diff
changeset
|
909 |
w := h := maxKnob - 4. |
d5065006e796
fixed / beautified #full handleStyle (used with win95 style)
Claus Gittinger <cg@exept.de>
parents:
1551
diff
changeset
|
910 |
] |
295 | 911 |
]. |
912 |
||
913 |
self paint:viewBackground. |
|
1131 | 914 |
self lineStyle:#solid. |
915 |
||
295 | 916 |
orientation == #vertical ifTrue:[ |
1096 | 917 |
self fillRectangleX:mar y:hy |
918 |
width:(width - mar - mar) |
|
919 |
height:barHeightInt. |
|
871 | 920 |
|
1981
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
921 |
(handleStyle isNil |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
922 |
or:[handleStyle == #none]) ifFalse:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
923 |
(handleStyle ~~ #normal |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
924 |
and:[handleStyle ~~ #mswindows]) ifTrue:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
925 |
m := (maxKnob - h) // 2. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
926 |
|
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
927 |
shadowForm isNil ifTrue:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
928 |
|
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
929 |
y := hy + (barHeightInt // 2). "/ center of the bar |
871 | 930 |
|
1981
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
931 |
separatingLine ifTrue:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
932 |
self paint:shadowColor. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
933 |
self displayLineFromX:mar y:y toX:(width - mar) y:y. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
934 |
y := y + 1. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
935 |
self paint:lightColor. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
936 |
self displayLineFromX:mar y:y toX:(width - mar) y:y. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
937 |
self paint:viewBackground. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
938 |
]. |
876 | 939 |
|
1981
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
940 |
self fillRectangleX:(hx - barWidthInt) |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
941 |
y:hy |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
942 |
width:(barWidthInt + barWidthInt) |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
943 |
height:h. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
944 |
|
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
945 |
handleStyle == #line ifTrue:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
946 |
self paint:handleColor. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
947 |
self displayLineFromX:hx - barWidthInt y:y toX:hx + barWidthInt y:y |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
948 |
] ifFalse:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
949 |
y := hy. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
950 |
handleStyle == #st80 ifTrue:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
951 |
y := y - 1 |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
952 |
]. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
953 |
ym := y + m. |
295 | 954 |
|
1981
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
955 |
handleStyle == #full ifTrue:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
956 |
handleLevel ~~ 0 ifTrue:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
957 |
self |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
958 |
drawEdgesForX:0 "/ -(handleLevel abs) |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
959 |
y:ym "/-1 |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
960 |
width:width "/+(handleLevel+handleLevel)abs |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
961 |
height:h-2 |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
962 |
level:handleLevel |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
963 |
shadow:shadowColor |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
964 |
light:lightColor |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
965 |
halfShadow:nil |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
966 |
halfLight:nil |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
967 |
style:nil |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
968 |
] |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
969 |
] ifFalse:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
970 |
handleLevel ~~ 0 ifTrue:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
971 |
self drawEdgesForX:(hx - barWidthInt) |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
972 |
y:ym |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
973 |
width:(barWidthInt + barWidthInt) |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
974 |
height:h |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
975 |
level:handleLevel. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
976 |
]. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
977 |
|
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
978 |
handleStyle == #iris ifTrue:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
979 |
self paint:handleColor. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
980 |
self fillDeviceRectangleX:(hx - barWidthInt + 2) |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
981 |
y:(ym + 2) |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
982 |
width:(barWidthInt + barWidthInt - 4) |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
983 |
height:h - 4 |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
984 |
] |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
985 |
] |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
986 |
]. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
987 |
] ifFalse:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
988 |
y := hy. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
989 |
(shadowForm notNil or:[lightForm notNil]) ifTrue:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
990 |
self drawHandleFormAtX:hx y:(y + m) |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
991 |
] |
871 | 992 |
]. |
1096 | 993 |
|
1981
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
994 |
handleStyle == #st80 ifTrue:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
995 |
y := hy - 1. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
996 |
self paint:lightColor. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
997 |
self displayLineFromX:mar y:y toX:(width - mar - mar - 1) y:y. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
998 |
self displayLineFromX:0 y:hy toX:0 y:(hy + knobHeight - 1). |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
999 |
y := hy + knobHeight - 2. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1000 |
self paint:shadowColor. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1001 |
self displayLineFromX:mar y:y toX:(width - mar) y:y. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1002 |
"uncomment the -1 if you dont like the notch at the right end" |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1003 |
" VVV" |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1004 |
self displayLineFromX:width-1 y:hy" "-1" " toX:width-1 y:(hy + knobHeight - 1 - 1). |
871 | 1005 |
]. |
1006 |
] ifFalse:[ |
|
1981
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1007 |
y := hy + barHeightInt - 1. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1008 |
self paint:handleColor. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1009 |
separatingLine ifTrue:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1010 |
self displayLineFromX:0 y:hy+1 toX:width y:hy+1. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1011 |
self displayLineFromX:0 y:y toX:width y:y. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1012 |
]. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1013 |
self fillRectangleX:hx y:hy width:barWidthInt height:barHeightInt |
871 | 1014 |
]. |
1015 |
]. |
|
1016 |
lbl := self handleLabelAt:hIndex. |
|
1017 |
lbl notNil ifTrue:[ |
|
1018 |
hIndex ~~ 1 ifTrue:[ |
|
1019 |
self paint:Color black. |
|
874 | 1020 |
lbl isImageOrForm ifTrue:[ |
1096 | 1021 |
lbl displayOn:self x:mar y:hy |
874 | 1022 |
] ifFalse:[ |
1096 | 1023 |
lbl displayOn:self x:mar y:hy + font ascent + 1 |
874 | 1024 |
] |
871 | 1025 |
] |
1026 |
]. |
|
1027 |
||
295 | 1028 |
] ifFalse:[ |
1096 | 1029 |
self fillRectangleX:hx y:mar |
1030 |
width:barHeightInt |
|
1031 |
height:(height - mar - mar). |
|
876 | 1032 |
|
1981
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1033 |
(handleStyle isNil |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1034 |
or:[handleStyle == #none]) ifFalse:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1035 |
(handleStyle ~~ #normal |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1036 |
and:[handleStyle ~~ #mswindows]) ifTrue:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1037 |
m := (barHeightInt - w) // 2. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1038 |
m := (maxKnob - w) // 2. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1039 |
shadowForm isNil ifTrue:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1040 |
x := hx + (barHeightInt // 2). |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1041 |
separatingLine ifTrue:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1042 |
self paint:shadowColor. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1043 |
self displayLineFromX:x y:mar toX:x y:(height - mar). |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1044 |
x := x + 1. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1045 |
self paint:lightColor. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1046 |
self displayLineFromX:x y:mar toX:x y:(height - mar). |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1047 |
self paint:viewBackground. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1048 |
]. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1049 |
self fillRectangleX:hx y:(hy - barWidthInt) |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1050 |
width:w |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1051 |
height:(barWidthInt + barWidthInt). |
295 | 1052 |
|
1981
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1053 |
handleStyle == #line ifTrue:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1054 |
self paint:handleColor. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1055 |
self displayLineFromX:x y:hy - barWidthInt toX:x y:hy + barWidthInt. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1056 |
] ifFalse:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1057 |
x := hx. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1058 |
handleStyle == #st80 ifTrue:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1059 |
x := x - 1. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1060 |
]. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1061 |
xm := x + m. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1062 |
handleStyle == #full ifTrue:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1063 |
handleLevel ~~ 0 ifTrue:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1064 |
self |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1065 |
drawEdgesForX:xm "/-1 |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1066 |
y:0 "/ -handleLevel |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1067 |
width:w-2 |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1068 |
height:height "/ +handleLevel+handleLevel |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1069 |
level:handleLevel |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1070 |
shadow:shadowColor |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1071 |
light:lightColor |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1072 |
halfShadow:nil |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1073 |
halfLight:nil |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1074 |
style:nil |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1075 |
] |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1076 |
] ifFalse:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1077 |
handleLevel ~~ 0 ifTrue:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1078 |
self drawEdgesForX:xm |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1079 |
y:(hy - barWidthInt) |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1080 |
width:w |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1081 |
height:(barWidthInt + barWidthInt) |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1082 |
level:handleLevel. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1083 |
]. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1084 |
handleStyle == #iris ifTrue:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1085 |
self paint:handleColor. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1086 |
self fillDeviceRectangleX:(xm + 2) |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1087 |
y:(hy - barWidthInt + 2) |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1088 |
width:w - 4 |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1089 |
height:(barWidthInt + barWidthInt - 4) |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1090 |
]. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1091 |
]. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1092 |
] |
871 | 1093 |
] ifFalse:[ |
1094 |
x := hx. |
|
1981
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1095 |
(shadowForm notNil or:[lightForm notNil]) ifTrue:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1096 |
self drawHandleFormAtX:(x + m) y:hy |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1097 |
] |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1098 |
]. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1099 |
handleStyle == #st80 ifTrue:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1100 |
x := hx - 1. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1101 |
self paint:lightColor. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1102 |
self displayLineFromX:x y:mar toX:x y:(height - mar). |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1103 |
self displayLineFromX:hx y:0 toX:(hx + barHeightInt - 1) y:0. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1104 |
x := hx + barHeightInt - 2. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1105 |
self paint:shadowColor. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1106 |
self displayLineFromX:x y:mar toX:x y:(height - mar). |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1107 |
"uncomment the -1 if you dont like the notch at the bottom end" |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1108 |
" VVV" |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1109 |
self displayLineFromX:hx" "-1" " y:height-1 toX:(hx + barHeightInt - 1) y:height-1. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1110 |
]. |
871 | 1111 |
] ifFalse:[ |
1981
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1112 |
x := hx + barHeightInt - 1. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1113 |
self paint:handleColor. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1114 |
separatingLine ifTrue:[ |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1115 |
self displayLineFromX:hx+1 y:0 toX:hx+1 y:height. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1116 |
self displayLineFromX:x y:0 toX:x y:height. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1117 |
]. |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1118 |
self fillRectangleX:hx y:hy width:barHeightInt height:barWidthInt |
15a646f9e4fb
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
1948
diff
changeset
|
1119 |
] |
871 | 1120 |
] |
295 | 1121 |
]. |
1122 |
||
1628
d5065006e796
fixed / beautified #full handleStyle (used with win95 style)
Claus Gittinger <cg@exept.de>
parents:
1551
diff
changeset
|
1123 |
"Modified: / 29.7.1998 / 22:48:33 / cg" |
295 | 1124 |
! |
1125 |
||
1126 |
drawHandleFormAtX:hx y:hy |
|
1127 |
"draw a handles bitmap at hx/hy" |
|
1128 |
||
876 | 1129 |
shadowForm notNil ifTrue:[ |
1130 |
self paint:shadowColor. |
|
1131 |
self displayForm:shadowForm x:hx y:hy. |
|
1132 |
]. |
|
1133 |
lightForm notNil ifTrue:[ |
|
1134 |
self paint:lightColor. |
|
1135 |
self displayForm:lightForm x:hx y:hy. |
|
1136 |
]. |
|
295 | 1137 |
self paint:viewBackground |
876 | 1138 |
|
1139 |
"Modified: 7.11.1996 / 20:25:33 / cg" |
|
295 | 1140 |
! |
1141 |
||
1142 |
invertHandleBarAtX:hx y:hy |
|
1894 | 1143 |
|doLine oldStyle| |
1628
d5065006e796
fixed / beautified #full handleStyle (used with win95 style)
Claus Gittinger <cg@exept.de>
parents:
1551
diff
changeset
|
1144 |
|
1894 | 1145 |
doLine := (trackLine == #solidLine |
1146 |
or:[trackLine == #dashedLine |
|
1147 |
or:[trackLine == #dottedLine]]). |
|
1628
d5065006e796
fixed / beautified #full handleStyle (used with win95 style)
Claus Gittinger <cg@exept.de>
parents:
1551
diff
changeset
|
1148 |
|
1131 | 1149 |
trackLine == #dashedLine ifTrue:[ |
1894 | 1150 |
oldStyle := lineStyle. |
1131 | 1151 |
self lineStyle:#dashed. |
1894 | 1152 |
] ifFalse:[ |
1153 |
trackLine == #dottedLine ifTrue:[ |
|
1154 |
oldStyle := lineStyle. |
|
1155 |
self lineStyle:#dotted. |
|
1156 |
] |
|
1131 | 1157 |
]. |
1158 |
||
1220 | 1159 |
self clippedByChildren:false. |
1131 | 1160 |
|
295 | 1161 |
self xoring:[ |
1129
17a77892f180
added support for dashed-LineTrack
Claus Gittinger <cg@exept.de>
parents:
1119
diff
changeset
|
1162 |
|yL xL halfHeight| |
17a77892f180
added support for dashed-LineTrack
Claus Gittinger <cg@exept.de>
parents:
1119
diff
changeset
|
1163 |
|
1628
d5065006e796
fixed / beautified #full handleStyle (used with win95 style)
Claus Gittinger <cg@exept.de>
parents:
1551
diff
changeset
|
1164 |
halfHeight := (barHeight // 2) - 1. |
295 | 1165 |
|
1129
17a77892f180
added support for dashed-LineTrack
Claus Gittinger <cg@exept.de>
parents:
1119
diff
changeset
|
1166 |
orientation == #vertical ifTrue:[ |
1894 | 1167 |
yL := hy + halfHeight. |
1628
d5065006e796
fixed / beautified #full handleStyle (used with win95 style)
Claus Gittinger <cg@exept.de>
parents:
1551
diff
changeset
|
1168 |
doLine ifTrue:[ |
1129
17a77892f180
added support for dashed-LineTrack
Claus Gittinger <cg@exept.de>
parents:
1119
diff
changeset
|
1169 |
self displayLineFromX:0 y:yL toX:width y:yL. |
17a77892f180
added support for dashed-LineTrack
Claus Gittinger <cg@exept.de>
parents:
1119
diff
changeset
|
1170 |
] ifFalse:[ |
1130 | 1171 |
self fillRectangleX:0 y:hy width:width height:barHeight |
1129
17a77892f180
added support for dashed-LineTrack
Claus Gittinger <cg@exept.de>
parents:
1119
diff
changeset
|
1172 |
] |
17a77892f180
added support for dashed-LineTrack
Claus Gittinger <cg@exept.de>
parents:
1119
diff
changeset
|
1173 |
] ifFalse:[ |
1894 | 1174 |
xL := hx + halfHeight. |
1628
d5065006e796
fixed / beautified #full handleStyle (used with win95 style)
Claus Gittinger <cg@exept.de>
parents:
1551
diff
changeset
|
1175 |
doLine ifTrue:[ |
1129
17a77892f180
added support for dashed-LineTrack
Claus Gittinger <cg@exept.de>
parents:
1119
diff
changeset
|
1176 |
self displayLineFromX:xL y:0 toX:xL y:height. |
17a77892f180
added support for dashed-LineTrack
Claus Gittinger <cg@exept.de>
parents:
1119
diff
changeset
|
1177 |
] ifFalse:[ |
1130 | 1178 |
self fillRectangleX:hx y:0 width:barHeight height:height |
1129
17a77892f180
added support for dashed-LineTrack
Claus Gittinger <cg@exept.de>
parents:
1119
diff
changeset
|
1179 |
] |
1130 | 1180 |
]. |
295 | 1181 |
]. |
1220 | 1182 |
self clippedByChildren:true. |
1628
d5065006e796
fixed / beautified #full handleStyle (used with win95 style)
Claus Gittinger <cg@exept.de>
parents:
1551
diff
changeset
|
1183 |
|
1894 | 1184 |
oldStyle notNil ifTrue:[ |
1185 |
self lineStyle:oldStyle. |
|
1131 | 1186 |
]. |
1129
17a77892f180
added support for dashed-LineTrack
Claus Gittinger <cg@exept.de>
parents:
1119
diff
changeset
|
1187 |
|
1628
d5065006e796
fixed / beautified #full handleStyle (used with win95 style)
Claus Gittinger <cg@exept.de>
parents:
1551
diff
changeset
|
1188 |
"Modified: / 28.4.1997 / 14:56:26 / dq" |
1894 | 1189 |
"Modified: / 3.5.1999 / 18:49:04 / cg" |
295 | 1190 |
! |
1191 |
||
1192 |
lockRedraw |
|
1193 |
redrawLocked := true |
|
1194 |
! |
|
1195 |
||
1196 |
redraw |
|
1197 |
"redraw all of the handles" |
|
1198 |
||
1199 |
redrawLocked ~~ true ifTrue:[ |
|
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1200 |
self redrawHandlesFrom:1 to:(self subViews size) |
295 | 1201 |
] |
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1202 |
|
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1203 |
"Modified: 28.1.1997 / 17:54:15 / cg" |
295 | 1204 |
! |
1205 |
||
1206 |
redrawHandlesFrom:start to:stop |
|
1207 |
"redraw some handles" |
|
1208 |
||
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1209 |
(self subViews size > 0) ifTrue:[ |
871 | 1210 |
showHandle ifTrue:[ |
1211 |
self handleOriginsWithIndexFrom:start to:stop do:[:hPoint :hIndex | |
|
1212 |
self drawHandle:hIndex atX:(hPoint x) y:(hPoint y) |
|
1213 |
]. |
|
1214 |
] |
|
295 | 1215 |
] |
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1216 |
|
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1217 |
"Modified: 28.1.1997 / 17:54:33 / cg" |
295 | 1218 |
! |
1219 |
||
1220 |
unlockRedraw |
|
1221 |
redrawLocked := false |
|
1222 |
! ! |
|
1223 |
||
1159 | 1224 |
!VariablePanel methodsFor:'enumerating subviews'! |
1225 |
||
1226 |
changeSequenceOrderFor:aSubView to:anIndex |
|
1416 | 1227 |
"change a subview's position in the subviews collection. |
1159 | 1228 |
" |
1229 |
|success| |
|
1230 |
||
1231 |
success := super changeSequenceOrderFor:aSubView to:anIndex. |
|
1232 |
success ifTrue:[ |
|
1233 |
self setupSubviews. |
|
1234 |
self resizeSubviews. |
|
1235 |
]. |
|
1236 |
^ success |
|
1237 |
! ! |
|
1238 |
||
295 | 1239 |
!VariablePanel methodsFor:'event handling'! |
1240 |
||
1241 |
sizeChanged:how |
|
1242 |
"my size has changed; resize my subviews" |
|
1243 |
||
1244 |
shown ifTrue:[ |
|
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1245 |
(how == #smaller) ifTrue:[ |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1246 |
self resizeSubviews |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1247 |
] ifFalse:[ |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1248 |
"/ |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1249 |
"/ do it in reverse order, to avoid some redraws |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1250 |
"/ |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1251 |
self resizeSubviewsFrom:(self subViews size) to:1 |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1252 |
] |
295 | 1253 |
]. |
1254 |
self changed:#sizeOfView with:how. |
|
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1255 |
|
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1256 |
"Modified: 28.1.1997 / 17:56:30 / cg" |
295 | 1257 |
! ! |
1258 |
||
1821
b57cc9dc2c08
changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents:
1698
diff
changeset
|
1259 |
!VariablePanel methodsFor:'focus handling'! |
b57cc9dc2c08
changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents:
1698
diff
changeset
|
1260 |
|
b57cc9dc2c08
changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents:
1698
diff
changeset
|
1261 |
wantsFocusWithButtonPress |
b57cc9dc2c08
changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents:
1698
diff
changeset
|
1262 |
"no, do not catch the keyboard focus on button click" |
b57cc9dc2c08
changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents:
1698
diff
changeset
|
1263 |
|
b57cc9dc2c08
changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents:
1698
diff
changeset
|
1264 |
^ false |
b57cc9dc2c08
changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents:
1698
diff
changeset
|
1265 |
|
b57cc9dc2c08
changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents:
1698
diff
changeset
|
1266 |
|
b57cc9dc2c08
changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents:
1698
diff
changeset
|
1267 |
! ! |
b57cc9dc2c08
changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents:
1698
diff
changeset
|
1268 |
|
295 | 1269 |
!VariablePanel methodsFor:'initializing'! |
1270 |
||
871 | 1271 |
computeBarHeight |
958 | 1272 |
"compute the height if the separating bar from either the |
1273 |
form or an explicit height given in the styleSheet" |
|
1274 |
||
1550 | 1275 |
<resource: #style (#'variablePanel.barHeight' |
1276 |
#'variablePanel.barHeightMM')> |
|
924
81f3ca4512bd
allow barHeight to be set in the styleSheet
Claus Gittinger <cg@exept.de>
parents:
900
diff
changeset
|
1277 |
|
1628
d5065006e796
fixed / beautified #full handleStyle (used with win95 style)
Claus Gittinger <cg@exept.de>
parents:
1551
diff
changeset
|
1278 |
|bH h lvl| |
871 | 1279 |
|
876 | 1280 |
shadowForm notNil ifTrue:[ |
871 | 1281 |
bH := shadowForm height + 2. |
1282 |
] ifFalse:[ |
|
1869 | 1283 |
bH := styleSheet at:#'variablePanel.barHeight'. |
924
81f3ca4512bd
allow barHeight to be set in the styleSheet
Claus Gittinger <cg@exept.de>
parents:
900
diff
changeset
|
1284 |
bH isNil ifTrue:[ |
1869 | 1285 |
h := styleSheet at:#'variablePanel.barHeightMM' default:2. |
924
81f3ca4512bd
allow barHeight to be set in the styleSheet
Claus Gittinger <cg@exept.de>
parents:
900
diff
changeset
|
1286 |
bH := (h * device verticalPixelPerMillimeter) rounded. |
81f3ca4512bd
allow barHeight to be set in the styleSheet
Claus Gittinger <cg@exept.de>
parents:
900
diff
changeset
|
1287 |
]. |
871 | 1288 |
]. |
1869 | 1289 |
lvl := styleSheet at:#'variablePanel.barLevel' default:0. |
1628
d5065006e796
fixed / beautified #full handleStyle (used with win95 style)
Claus Gittinger <cg@exept.de>
parents:
1551
diff
changeset
|
1290 |
lvl ~~ 0 ifTrue:[ |
d5065006e796
fixed / beautified #full handleStyle (used with win95 style)
Claus Gittinger <cg@exept.de>
parents:
1551
diff
changeset
|
1291 |
bH := bH + (lvl abs * 2). |
d5065006e796
fixed / beautified #full handleStyle (used with win95 style)
Claus Gittinger <cg@exept.de>
parents:
1551
diff
changeset
|
1292 |
]. |
d5065006e796
fixed / beautified #full handleStyle (used with win95 style)
Claus Gittinger <cg@exept.de>
parents:
1551
diff
changeset
|
1293 |
|
876 | 1294 |
self barHeight:bH. |
871 | 1295 |
knobHeight := bH. |
1296 |
||
1297 |
handleLabels notNil ifTrue:[ |
|
1987 | 1298 |
font := font onDevice:device. |
871 | 1299 |
bH := handleLabels inject:bH into:[:maxSoFar :thisLabel | |
874 | 1300 |
thisLabel isNil ifTrue:[ |
1301 |
maxSoFar |
|
1302 |
] ifFalse:[ |
|
1303 |
maxSoFar max:(thisLabel heightOn:self) |
|
1304 |
] |
|
1305 |
]. |
|
871 | 1306 |
bH := bH + font descent - 1 |
1307 |
]. |
|
1308 |
||
1309 |
self barHeight:bH. |
|
1310 |
||
1628
d5065006e796
fixed / beautified #full handleStyle (used with win95 style)
Claus Gittinger <cg@exept.de>
parents:
1551
diff
changeset
|
1311 |
"Modified: / 29.7.1998 / 14:47:21 / cg" |
871 | 1312 |
! |
1313 |
||
295 | 1314 |
defaultControllerClass |
1315 |
^ VariablePanelController |
|
1316 |
! |
|
1317 |
||
1318 |
fixSize |
|
1151
94aff1c7b0aa
Fix comments, eliminate common message sends.
Stefan Vogel <sv@exept.de>
parents:
1131
diff
changeset
|
1319 |
super fixSize. |
295 | 1320 |
extentChanged ifTrue:[ |
1151
94aff1c7b0aa
Fix comments, eliminate common message sends.
Stefan Vogel <sv@exept.de>
parents:
1131
diff
changeset
|
1321 |
self resizeSubviews |
94aff1c7b0aa
Fix comments, eliminate common message sends.
Stefan Vogel <sv@exept.de>
parents:
1131
diff
changeset
|
1322 |
]. |
94aff1c7b0aa
Fix comments, eliminate common message sends.
Stefan Vogel <sv@exept.de>
parents:
1131
diff
changeset
|
1323 |
|
94aff1c7b0aa
Fix comments, eliminate common message sends.
Stefan Vogel <sv@exept.de>
parents:
1131
diff
changeset
|
1324 |
"Modified: 22.3.1997 / 01:19:55 / stefan" |
295 | 1325 |
! |
1326 |
||
1327 |
initCursor |
|
1328 |
"set the cursor - a double arrow" |
|
1329 |
||
1698
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
1330 |
cursor := self class |
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
1331 |
cursorForOrientation:orientation |
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
1332 |
onDevice:device |
900 | 1333 |
|
1698
cab69c6081a8
use windows-like cursors if running on windows
Claus Gittinger <cg@exept.de>
parents:
1655
diff
changeset
|
1334 |
"Modified: / 30.9.1998 / 18:20:35 / cg" |
295 | 1335 |
! |
1336 |
||
1337 |
initStyle |
|
966 | 1338 |
"setup viewStyle specifics" |
1339 |
||
871 | 1340 |
|mm| |
295 | 1341 |
|
1342 |
super initStyle. |
|
1343 |
||
1987 | 1344 |
handleColor := DefaultHandleColor onDevice:device. |
295 | 1345 |
|
1346 |
DefaultHandleStyle isNil ifTrue:[ |
|
496 | 1347 |
handleStyle := styleSheet name |
295 | 1348 |
] ifFalse:[ |
496 | 1349 |
handleStyle := DefaultHandleStyle |
295 | 1350 |
]. |
1351 |
||
496 | 1352 |
handleLevel := DefaultHandleLevel. |
1353 |
showHandle := DefaultShowHandle. |
|
295 | 1354 |
handlePosition := DefaultHandlePosition. |
1355 |
trackLine := DefaultTrackingLine. |
|
1356 |
separatingLine := DefaultSeparatingLine. |
|
1357 |
||
1529
509edab0a08b
allow handleImage to be specified in styleSheet
Claus Gittinger <cg@exept.de>
parents:
1416
diff
changeset
|
1358 |
DefaultHandleImage notNil ifTrue:[ |
509edab0a08b
allow handleImage to be specified in styleSheet
Claus Gittinger <cg@exept.de>
parents:
1416
diff
changeset
|
1359 |
shadowForm := DefaultHandleImage onDevice:device. |
496 | 1360 |
barWidth := shadowForm width. |
295 | 1361 |
] ifFalse:[ |
1529
509edab0a08b
allow handleImage to be specified in styleSheet
Claus Gittinger <cg@exept.de>
parents:
1416
diff
changeset
|
1362 |
handleStyle == #next ifTrue:[ |
509edab0a08b
allow handleImage to be specified in styleSheet
Claus Gittinger <cg@exept.de>
parents:
1416
diff
changeset
|
1363 |
DefaultHandleImage notNil ifTrue:[ |
509edab0a08b
allow handleImage to be specified in styleSheet
Claus Gittinger <cg@exept.de>
parents:
1416
diff
changeset
|
1364 |
shadowForm := DefaultHandleImage onDevice:device. |
509edab0a08b
allow handleImage to be specified in styleSheet
Claus Gittinger <cg@exept.de>
parents:
1416
diff
changeset
|
1365 |
] ifFalse:[ |
509edab0a08b
allow handleImage to be specified in styleSheet
Claus Gittinger <cg@exept.de>
parents:
1416
diff
changeset
|
1366 |
shadowForm := self class shadowFormOn:device. |
509edab0a08b
allow handleImage to be specified in styleSheet
Claus Gittinger <cg@exept.de>
parents:
1416
diff
changeset
|
1367 |
lightForm := self class lightFormOn:device. |
509edab0a08b
allow handleImage to be specified in styleSheet
Claus Gittinger <cg@exept.de>
parents:
1416
diff
changeset
|
1368 |
]. |
509edab0a08b
allow handleImage to be specified in styleSheet
Claus Gittinger <cg@exept.de>
parents:
1416
diff
changeset
|
1369 |
barWidth := shadowForm width. |
509edab0a08b
allow handleImage to be specified in styleSheet
Claus Gittinger <cg@exept.de>
parents:
1416
diff
changeset
|
1370 |
] ifFalse:[ |
509edab0a08b
allow handleImage to be specified in styleSheet
Claus Gittinger <cg@exept.de>
parents:
1416
diff
changeset
|
1371 |
shadowForm := lightForm := nil. |
496 | 1372 |
|
1529
509edab0a08b
allow handleImage to be specified in styleSheet
Claus Gittinger <cg@exept.de>
parents:
1416
diff
changeset
|
1373 |
mm := device verticalPixelPerMillimeter. |
509edab0a08b
allow handleImage to be specified in styleSheet
Claus Gittinger <cg@exept.de>
parents:
1416
diff
changeset
|
1374 |
barWidth := (1.5 * mm) rounded. "motif style width" |
509edab0a08b
allow handleImage to be specified in styleSheet
Claus Gittinger <cg@exept.de>
parents:
1416
diff
changeset
|
1375 |
]. |
295 | 1376 |
]. |
871 | 1377 |
self computeBarHeight. |
496 | 1378 |
|
295 | 1379 |
handleStyle == #mswindows ifTrue:[ |
496 | 1380 |
barWidth := (ArrowButton new direction:#up) width + 1 |
295 | 1381 |
]. |
496 | 1382 |
|
1529
509edab0a08b
allow handleImage to be specified in styleSheet
Claus Gittinger <cg@exept.de>
parents:
1416
diff
changeset
|
1383 |
"Modified: / 19.5.1998 / 16:21:02 / cg" |
295 | 1384 |
! |
1385 |
||
1386 |
initialize |
|
496 | 1387 |
orientation isNil ifTrue:[orientation := #vertical]. |
295 | 1388 |
super initialize. |
1628
d5065006e796
fixed / beautified #full handleStyle (used with win95 style)
Claus Gittinger <cg@exept.de>
parents:
1551
diff
changeset
|
1389 |
self bitGravity:nil. |
496 | 1390 |
|
1628
d5065006e796
fixed / beautified #full handleStyle (used with win95 style)
Claus Gittinger <cg@exept.de>
parents:
1551
diff
changeset
|
1391 |
"Modified: / 29.7.1998 / 16:07:23 / cg" |
295 | 1392 |
! ! |
1393 |
||
1394 |
!VariablePanel methodsFor:'private'! |
|
1395 |
||
1396 |
anyNonRelativeSubviews |
|
1397 |
"return true, if any of my subviews has no relative origin/extent" |
|
1398 |
||
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1399 |
self subViews do:[:aComponent | |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1400 |
aComponent relativeCorner isNil ifTrue:[^ true]. |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1401 |
aComponent relativeOrigin isNil ifTrue:[^ true] |
295 | 1402 |
]. |
1403 |
^ false |
|
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1404 |
|
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1405 |
"Modified: 28.1.1997 / 17:57:26 / cg" |
295 | 1406 |
! |
1407 |
||
1655 | 1408 |
expandSubView:expandedView |
1409 |
"expand one of my subviews to full size" |
|
1410 |
||
1411 |
|pos subViews| |
|
1412 |
||
1413 |
realRelativeSizes notNil ifTrue:[ |
|
1414 |
"/ already expanded .. |
|
1415 |
^ self |
|
1416 |
]. |
|
1417 |
||
1418 |
pos := 0.0. |
|
1419 |
subViews := self subViews. |
|
1420 |
||
1421 |
orientation == #vertical ifTrue:[ |
|
1422 |
realRelativeSizes := subViews collect:[:v | v relativeCorner y - v relativeOrigin y]. |
|
1423 |
] ifFalse:[ |
|
1424 |
realRelativeSizes := subViews collect:[:v | v relativeCorner x - v relativeOrigin x]. |
|
1425 |
]. |
|
1426 |
||
1427 |
subViews do:[:aSubView | |
|
1428 |
aSubView == expandedView ifTrue:[ |
|
1429 |
aSubView origin:(0.0 @ 0.0) corner:(1.0 @ 1.0). |
|
1430 |
pos := 1.0 |
|
1431 |
] ifFalse:[ |
|
1432 |
orientation == #vertical ifTrue:[ |
|
1433 |
aSubView origin:(0.0 @ pos) corner:(1.0 @ pos) |
|
1434 |
] ifFalse:[ |
|
1435 |
aSubView origin:(pos @ 0.0) corner:(pos @ 1.0) |
|
1436 |
] |
|
1437 |
] |
|
1438 |
]. |
|
1439 |
self resizeSubviews. |
|
1440 |
||
1441 |
"Modified: 28.1.1997 / 17:56:20 / cg" |
|
1442 |
! |
|
1443 |
||
871 | 1444 |
handleLabelAt:hIndex |
1445 |
handleLabels notNil ifTrue:[ |
|
1446 |
^ handleLabels at:hIndex ifAbsent:nil |
|
1447 |
]. |
|
1448 |
^ nil |
|
1449 |
! |
|
1450 |
||
1451 |
handleOriginsWithIndexDo:aBlock |
|
295 | 1452 |
"evaluate the argument block for every handle-origin" |
1453 |
||
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1454 |
self handleOriginsWithIndexFrom:1 to:(self subViews size) do:aBlock |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1455 |
|
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1456 |
"Modified: 28.1.1997 / 17:53:44 / cg" |
295 | 1457 |
! |
1458 |
||
871 | 1459 |
handleOriginsWithIndexFrom:start to:stop do:aBlock |
295 | 1460 |
"evaluate the argument block for some handle-origins" |
1461 |
||
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1462 |
|x y hw hh hDelta vDelta subViews |
295 | 1463 |
first "{ Class: SmallInteger }" |
1464 |
last "{ Class: SmallInteger }"| |
|
1465 |
||
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1466 |
(subViews := self subViews) notNil ifTrue:[ |
871 | 1467 |
shadowForm notNil ifTrue:[ |
1468 |
hw := shadowForm width. |
|
1469 |
hh := shadowForm height. |
|
1470 |
] ifFalse:[ |
|
1471 |
hw := hh := barWidth |
|
1472 |
]. |
|
295 | 1473 |
|
871 | 1474 |
(handleStyle ~~ #normal and:[handleStyle ~~ #mswindows]) ifTrue:[ |
1475 |
hDelta := barWidth // 2. |
|
1476 |
vDelta := barWidth // 2. |
|
1477 |
] ifFalse:[ |
|
1478 |
hDelta := vDelta := 0 |
|
1479 |
]. |
|
295 | 1480 |
|
871 | 1481 |
(handlePosition == #left) ifTrue:[ |
1482 |
x := hDelta. |
|
1381 | 1483 |
y := vDelta. |
1484 |
||
1485 |
orientation == #vertical ifTrue:[ |
|
1486 |
x := x + barWidth |
|
1487 |
] ifFalse:[ |
|
1488 |
y := y + barWidth |
|
1489 |
]. |
|
1490 |
margin ~~ 0 ifTrue:[ |
|
1491 |
x := x + 2 |
|
1492 |
]. |
|
871 | 1493 |
] ifFalse:[ |
1494 |
(handlePosition == #right) ifTrue:[ |
|
1495 |
x := width - hw - margin - hDelta. |
|
1496 |
y := height - hh - margin - vDelta. |
|
1497 |
] ifFalse:[ |
|
1498 |
x := width - barWidth // 2. |
|
1499 |
y := height - barWidth // 2 |
|
1500 |
] |
|
1501 |
]. |
|
1502 |
first := start + 1. |
|
1503 |
last := stop. |
|
1381 | 1504 |
|
871 | 1505 |
first to:last do:[:index | |
1506 |
|view| |
|
295 | 1507 |
|
871 | 1508 |
view := subViews at:index. |
1509 |
orientation == #vertical ifTrue:[ |
|
1510 |
y := view top "origin y" - barHeight + 1. |
|
1511 |
] ifFalse:[ |
|
1512 |
x := view left "origin x" - barHeight + 1. |
|
1513 |
]. |
|
1514 |
aBlock value:(x @ y) value:index |
|
1515 |
] |
|
295 | 1516 |
] |
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1517 |
|
1381 | 1518 |
"Modified: / 1.11.1997 / 11:53:40 / cg" |
295 | 1519 |
! |
1520 |
||
2026
9876789dfba7
added interface to change the subViews sizes programmatically.
Claus Gittinger <cg@exept.de>
parents:
1987
diff
changeset
|
1521 |
resizeSubViewsTo:relativeSizeList |
9876789dfba7
added interface to change the subViews sizes programmatically.
Claus Gittinger <cg@exept.de>
parents:
1987
diff
changeset
|
1522 |
"change subviews sizes as defined in the argument list |
9876789dfba7
added interface to change the subViews sizes programmatically.
Claus Gittinger <cg@exept.de>
parents:
1987
diff
changeset
|
1523 |
(a collection of relative sizes)" |
9876789dfba7
added interface to change the subViews sizes programmatically.
Claus Gittinger <cg@exept.de>
parents:
1987
diff
changeset
|
1524 |
|
9876789dfba7
added interface to change the subViews sizes programmatically.
Claus Gittinger <cg@exept.de>
parents:
1987
diff
changeset
|
1525 |
|pos subViews| |
9876789dfba7
added interface to change the subViews sizes programmatically.
Claus Gittinger <cg@exept.de>
parents:
1987
diff
changeset
|
1526 |
|
9876789dfba7
added interface to change the subViews sizes programmatically.
Claus Gittinger <cg@exept.de>
parents:
1987
diff
changeset
|
1527 |
subViews := self subViews. |
9876789dfba7
added interface to change the subViews sizes programmatically.
Claus Gittinger <cg@exept.de>
parents:
1987
diff
changeset
|
1528 |
|
9876789dfba7
added interface to change the subViews sizes programmatically.
Claus Gittinger <cg@exept.de>
parents:
1987
diff
changeset
|
1529 |
pos := 0.0. |
9876789dfba7
added interface to change the subViews sizes programmatically.
Claus Gittinger <cg@exept.de>
parents:
1987
diff
changeset
|
1530 |
subViews with:relativeSizeList do:[:aSubView :relSize | |
9876789dfba7
added interface to change the subViews sizes programmatically.
Claus Gittinger <cg@exept.de>
parents:
1987
diff
changeset
|
1531 |
orientation == #vertical ifTrue:[ |
9876789dfba7
added interface to change the subViews sizes programmatically.
Claus Gittinger <cg@exept.de>
parents:
1987
diff
changeset
|
1532 |
aSubView origin:(0.0 @ pos) corner:(1.0 @ (pos + relSize)) |
9876789dfba7
added interface to change the subViews sizes programmatically.
Claus Gittinger <cg@exept.de>
parents:
1987
diff
changeset
|
1533 |
] ifFalse:[ |
9876789dfba7
added interface to change the subViews sizes programmatically.
Claus Gittinger <cg@exept.de>
parents:
1987
diff
changeset
|
1534 |
aSubView origin:(pos @ 0.0) corner:((pos + relSize) @ 1.0) |
9876789dfba7
added interface to change the subViews sizes programmatically.
Claus Gittinger <cg@exept.de>
parents:
1987
diff
changeset
|
1535 |
]. |
9876789dfba7
added interface to change the subViews sizes programmatically.
Claus Gittinger <cg@exept.de>
parents:
1987
diff
changeset
|
1536 |
pos := pos + relSize. |
9876789dfba7
added interface to change the subViews sizes programmatically.
Claus Gittinger <cg@exept.de>
parents:
1987
diff
changeset
|
1537 |
]. |
9876789dfba7
added interface to change the subViews sizes programmatically.
Claus Gittinger <cg@exept.de>
parents:
1987
diff
changeset
|
1538 |
self resizeSubviews. |
9876789dfba7
added interface to change the subViews sizes programmatically.
Claus Gittinger <cg@exept.de>
parents:
1987
diff
changeset
|
1539 |
|
9876789dfba7
added interface to change the subViews sizes programmatically.
Claus Gittinger <cg@exept.de>
parents:
1987
diff
changeset
|
1540 |
! |
9876789dfba7
added interface to change the subViews sizes programmatically.
Claus Gittinger <cg@exept.de>
parents:
1987
diff
changeset
|
1541 |
|
295 | 1542 |
resizeSubviews |
1151
94aff1c7b0aa
Fix comments, eliminate common message sends.
Stefan Vogel <sv@exept.de>
parents:
1131
diff
changeset
|
1543 |
"readjust size of all subviews" |
295 | 1544 |
|
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1545 |
self resizeSubviewsFrom:1 to:(self subViews size) |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1546 |
|
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1547 |
"Modified: 28.1.1997 / 17:54:42 / cg" |
1151
94aff1c7b0aa
Fix comments, eliminate common message sends.
Stefan Vogel <sv@exept.de>
parents:
1131
diff
changeset
|
1548 |
"Modified: 22.3.1997 / 01:01:31 / stefan" |
295 | 1549 |
! |
1550 |
||
1551 |
resizeSubviewsFrom:start to:stop |
|
1552 |
"readjust size of some subviews" |
|
1553 |
||
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1554 |
|step nSubviews subViews| |
295 | 1555 |
|
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1556 |
(subViews := self subViews) size > 0 ifTrue:[ |
871 | 1557 |
(start <= stop) ifTrue:[ |
1558 |
step := 1 |
|
1559 |
] ifFalse:[ |
|
1560 |
step := -1 |
|
1561 |
]. |
|
1562 |
nSubviews := subViews size. |
|
1563 |
start to:stop by:step do:[:index | |
|
2026
9876789dfba7
added interface to change the subViews sizes programmatically.
Claus Gittinger <cg@exept.de>
parents:
1987
diff
changeset
|
1564 |
|bw view o1 o2 newOrg newCorner newExt| |
295 | 1565 |
|
871 | 1566 |
view := subViews at:index. |
1567 |
bw := view borderWidth. |
|
295 | 1568 |
|
871 | 1569 |
index == 1 ifTrue:[ |
1570 |
o1 := 0. |
|
1571 |
] ifFalse:[ |
|
1572 |
o1 := barHeight // 2 - bw |
|
1573 |
]. |
|
1574 |
index == nSubviews ifTrue:[ |
|
1575 |
o2 := 0. |
|
1576 |
] ifFalse:[ |
|
1577 |
o2 := barHeight // 2 - bw |
|
1578 |
]. |
|
295 | 1579 |
|
871 | 1580 |
newOrg := view computeOrigin. |
1581 |
newOrg notNil ifTrue:[ |
|
1582 |
(index ~~ 1) ifTrue:[ |
|
1583 |
orientation == #vertical ifTrue:[ |
|
1584 |
newOrg y:(newOrg y + o1) |
|
1585 |
] ifFalse:[ |
|
1586 |
newOrg x:(newOrg x + o1) |
|
1587 |
] |
|
1588 |
]. |
|
1589 |
]. |
|
1590 |
newExt := view computeExtent. |
|
1591 |
newExt notNil ifTrue:[ |
|
1592 |
orientation == #vertical ifTrue:[ |
|
1593 |
newExt y:(newExt y - o2 - o1) |
|
1594 |
] ifFalse:[ |
|
1595 |
newExt x:(newExt x - o2 - o1) |
|
1596 |
] |
|
1597 |
]. |
|
1598 |
view pixelOrigin:newOrg extent:newExt. |
|
1550 | 1599 |
]. |
1551 | 1600 |
shown ifTrue:[ |
1601 |
"/ must clear, since handles are copied automatically (by bitGravity) |
|
1602 |
self clear. |
|
1603 |
self invalidate. |
|
1604 |
] |
|
295 | 1605 |
] |
873 | 1606 |
|
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1607 |
"Modified: 28.1.1997 / 17:55:03 / cg" |
1151
94aff1c7b0aa
Fix comments, eliminate common message sends.
Stefan Vogel <sv@exept.de>
parents:
1131
diff
changeset
|
1608 |
"Modified: 22.3.1997 / 01:02:21 / stefan" |
295 | 1609 |
! |
1610 |
||
1655 | 1611 |
restoreSubViewRatios |
1612 |
"restore my subviews sizes to the state before the full-expand" |
|
1613 |
||
1614 |
|pos subViews | |
|
1615 |
||
1616 |
realRelativeSizes == nil ifTrue:[ |
|
1617 |
"/ not expanded - ignore |
|
1618 |
^ self |
|
1619 |
]. |
|
1620 |
||
1621 |
pos := 0.0. |
|
1622 |
self subViews with:realRelativeSizes do:[:aSubView :aRelativeSize | |
|
1623 |
orientation == #vertical ifTrue:[ |
|
1624 |
aSubView origin:(0.0 @ pos) corner:(1.0 @ (pos+aRelativeSize)) |
|
1625 |
] ifFalse:[ |
|
1626 |
aSubView origin:(pos @ 0.0) corner:((pos+aRelativeSize) @ 1.0) |
|
1627 |
]. |
|
1628 |
pos := pos + aRelativeSize |
|
1629 |
]. |
|
1630 |
realRelativeSizes := nil. |
|
1631 |
self resizeSubviews. |
|
1632 |
||
1633 |
"Modified: 28.1.1997 / 17:56:20 / cg" |
|
1634 |
! |
|
1635 |
||
295 | 1636 |
setupSubviews |
1637 |
"setup subviews sizes (in case of non-relative sizes)" |
|
1638 |
||
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1639 |
|pos delta subViews nSubViews "{ Class: SmallInteger }"| |
295 | 1640 |
|
300 | 1641 |
"/ setup all subviews to spread evenly ... |
295 | 1642 |
|
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1643 |
subViews := self subViews. |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1644 |
nSubViews := subViews size. |
1043 | 1645 |
nSubViews == 0 ifTrue:[^ self]. |
295 | 1646 |
|
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1647 |
pos := 0.0. |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1648 |
delta := 1.0 / nSubViews. |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1649 |
|
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1650 |
1 to:nSubViews do:[:index | |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1651 |
|view| |
295 | 1652 |
|
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1653 |
view := subViews at:index. |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1654 |
orientation == #vertical ifTrue:[ |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1655 |
index == subViews size ifTrue:[ |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1656 |
view origin:(0.0 @ pos) corner:(1.0 @ 1.0) |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1657 |
] ifFalse:[ |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1658 |
view origin:(0.0 @ pos) corner:(1.0 @ (pos + delta)) |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1659 |
]. |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1660 |
] ifFalse:[ |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1661 |
index == subViews size ifTrue:[ |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1662 |
view origin:(pos @ 0.0) corner:(1.0 @ 1.0) |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1663 |
] ifFalse:[ |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1664 |
view origin:(pos @ 0.0) corner:((pos + delta) @ 1.0) |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1665 |
]. |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1666 |
]. |
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1667 |
pos := pos + delta |
295 | 1668 |
] |
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1669 |
|
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1670 |
"Modified: 28.1.1997 / 17:56:20 / cg" |
295 | 1671 |
! ! |
1672 |
||
299
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1673 |
!VariablePanel methodsFor:'private tableView protocol'! |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1674 |
|
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1675 |
setupSubviewOrigins |
826 | 1676 |
"setup subviews origins |
1677 |
if we only have relative extents |
|
1678 |
(Variable Panels need relative origins and corners!!) (SV 16.1.95)" |
|
299
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1679 |
|
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1680 |
|x y e eX eY subViews n "{ Class: SmallInteger }"| |
299
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1681 |
|
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1682 |
x := y := 0.0. |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1683 |
|
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1684 |
subViews := self subViews. |
299
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1685 |
n := subViews size. |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1686 |
1 to:n do:[:index | |
826 | 1687 |
|view| |
299
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1688 |
|
826 | 1689 |
view := subViews at:index. |
1690 |
e := view relativeExtent. |
|
1691 |
e notNil ifTrue:[ |
|
1692 |
view relativeExtent:nil. |
|
1693 |
eX := e x. |
|
1694 |
eY := e y. |
|
1695 |
index == n ifTrue:[ |
|
1696 |
view origin:(x @ y) corner:(1.0 @ 1.0) |
|
1697 |
] ifFalse:[ |
|
1698 |
orientation == #vertical ifTrue:[ |
|
1699 |
view origin:(x @ y) corner:(1.0 @ (y+eY)) |
|
1700 |
] ifFalse:[ |
|
1701 |
view origin:(x @ y) corner:((x+eX) @ 1.0) |
|
1702 |
]. |
|
1703 |
]. |
|
1704 |
orientation == #vertical ifTrue:[ |
|
1705 |
y := y + eY. |
|
1706 |
] ifFalse:[ |
|
1707 |
x := x + eX. |
|
1708 |
] |
|
1709 |
] ifFalse: [ |
|
1710 |
view origin:(x @ y). |
|
1711 |
orientation == #vertical ifTrue:[ |
|
1712 |
y := view relativeCorner y. |
|
1713 |
] ifFalse:[ |
|
1714 |
x := view relativeCorner x. |
|
1715 |
] |
|
1716 |
]. |
|
1717 |
] |
|
1718 |
||
1719 |
"Modified: 21.8.1996 / 10:01:29 / stefan" |
|
980
6079922a5519
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
966
diff
changeset
|
1720 |
"Modified: 28.1.1997 / 17:55:21 / cg" |
299
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1721 |
! ! |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1722 |
|
871 | 1723 |
!VariablePanel class methodsFor:'documentation'! |
295 | 1724 |
|
1725 |
version |
|
2073 | 1726 |
^ '$Header: /cvs/stx/stx/libwidg/VariablePanel.st,v 1.53 1999-12-09 11:10:41 cg Exp $' |
295 | 1727 |
! ! |