author | ah |
Wed, 24 Jan 1996 16:29:41 +0100 | |
changeset 300 | 0823ef38e629 |
parent 299 | d2f955840ad5 |
child 395 | db172e0f3d56 |
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 |
|
14 |
instanceVariableNames:'barHeight barWidth separatingLine shadowForm lightForm showHandle |
|
15 |
handlePosition handleColor handleStyle handleLevel noColor |
|
16 |
trackLine redrawLocked orientation' |
|
17 |
classVariableNames:'DefaultShowHandle DefaultHandleStyle DefaultHandlePosition |
|
18 |
DefaultTrackingLine DefaultSeparatingLine DefaultHandleColor |
|
19 |
DefaultHandleLevel DefaultVCursor DefaultHCursor' |
|
20 |
poolDictionaries:'' |
|
21 |
category:'Views-Layout' |
|
22 |
! |
|
23 |
||
24 |
!VariablePanel class methodsFor:'documentation'! |
|
25 |
||
26 |
copyright |
|
27 |
" |
|
28 |
COPYRIGHT (c) 1991 by Claus Gittinger |
|
29 |
All Rights Reserved |
|
30 |
||
31 |
This software is furnished under a license and may be used |
|
32 |
only in accordance with the terms of that license and with the |
|
33 |
inclusion of the above copyright notice. This software may not |
|
34 |
be provided or otherwise made available to, or used by, any |
|
35 |
other person. No title to or ownership of the software is |
|
36 |
hereby transferred. |
|
37 |
" |
|
38 |
! |
|
39 |
||
40 |
documentation |
|
41 |
" |
|
42 |
a View to separate its subviews vertically by a movable bar; |
|
43 |
the size-ratios of the subviews can be changed by moving this bar. |
|
44 |
||
45 |
In order to correctly setup this kind of view, the subviews must |
|
46 |
be created with a relative origin & relative corner. |
|
47 |
The panel does not verify the relative subview bounds; |
|
48 |
therefore, it is your responsibility to set those relative sizes to fit |
|
49 |
according the orientation (see bad example below). |
|
50 |
||
51 |
The bar-handle is either an exposed knob (style == #motif) |
|
52 |
or the form defined in Scroller (style ~~ #motif) |
|
53 |
or nothing. |
|
54 |
||
55 |
Typically creation is done as: |
|
56 |
||
57 |
p := VariablePanel in:superView. |
|
58 |
p orientation:#vertical. |
|
59 |
||
60 |
v1 := <someViewClass> origin:0.0 @ 0.0 |
|
61 |
corner:1.0 @ 0.5 |
|
62 |
in:p. |
|
63 |
v2 := <someViewClass> origin:0.0 @ 0.5 |
|
64 |
corner:1.0 @ 0.8 |
|
65 |
in:p. |
|
66 |
v3 := <someViewClass> origin:0.0 @ 0.8 |
|
67 |
corner:1.0 @ 1.0 |
|
68 |
in:p. |
|
69 |
||
70 |
Notice: if it is required to insert a fixed-size view in the panel, |
|
71 |
use an extra view & insets, and place the subview into that extra view. |
|
72 |
||
73 |
see examples. |
|
74 |
" |
|
75 |
! |
|
76 |
||
77 |
examples |
|
78 |
" |
|
79 |
example (setting the orientation later makes it equally space its views): |
|
80 |
||
81 |
|top p v1 v2 v3| |
|
82 |
||
83 |
top := StandardSystemView new. |
|
84 |
top extent:300@300. |
|
85 |
||
86 |
p := VariablePanel |
|
87 |
origin:0.0 @ 0.0 |
|
88 |
corner:1.0 @ 1.0 |
|
89 |
in:top. |
|
90 |
||
91 |
v1 := View in:p. |
|
92 |
v2 := View in:p. |
|
93 |
v3 := View in:p. |
|
94 |
||
95 |
v1 viewBackground:(Color red). |
|
96 |
v2 viewBackground:(Color green). |
|
97 |
v3 viewBackground:(Color yellow). |
|
98 |
||
99 |
p orientation:#vertical. |
|
100 |
top open. |
|
101 |
||
102 |
||
103 |
example (setting orientation first, req's that subviews have relative bounds): |
|
104 |
||
105 |
|top p v1 v2 v3| |
|
106 |
||
107 |
top := StandardSystemView new. |
|
108 |
top extent:300@300. |
|
109 |
||
110 |
p := VariablePanel |
|
111 |
origin:0.0 @ 0.0 |
|
112 |
corner:1.0 @ 1.0 |
|
113 |
in:top. |
|
114 |
p orientation:#vertical. |
|
115 |
||
116 |
v1 := View origin:0.0@0.0 corner:1.0@(1/2) in:p. |
|
117 |
v2 := View origin:0.0@(1/2) corner:1.0@(2/3) in:p. |
|
118 |
v3 := View origin:0.0@(2/3) corner:1.0@1.0 in:p. |
|
119 |
||
120 |
v1 viewBackground:(Color red). |
|
121 |
v2 viewBackground:(Color green). |
|
122 |
v3 viewBackground:(Color yellow). |
|
123 |
||
124 |
top open |
|
125 |
||
126 |
||
127 |
||
128 |
example (change the handles level): |
|
129 |
||
130 |
|top p v1 v2 v3| |
|
131 |
||
132 |
top := StandardSystemView new. |
|
133 |
top extent:300@300. |
|
134 |
||
135 |
p := VariablePanel |
|
136 |
origin:0.0 @ 0.0 |
|
137 |
corner:1.0 @ 1.0 |
|
138 |
in:top. |
|
139 |
p orientation:#vertical. |
|
140 |
p handleLevel:-1. |
|
141 |
||
142 |
v1 := View origin:0.0@0.0 corner:1.0@(1/3) in:p. |
|
143 |
v2 := View origin:0.0@(1/3) corner:1.0@(2/3) in:p. |
|
144 |
v3 := View origin:0.0@(2/3) corner:1.0@1.0 in:p. |
|
145 |
||
146 |
v1 viewBackground:(Color red). |
|
147 |
v2 viewBackground:(Color green). |
|
148 |
v3 viewBackground:(Color yellow). |
|
149 |
||
150 |
top open |
|
151 |
||
152 |
||
153 |
||
154 |
example (placing scrolled and unscrolled views into a variablePanel): |
|
155 |
||
156 |
|top p v1 v2 v3| |
|
157 |
||
158 |
top := StandardSystemView new. |
|
159 |
top extent:300@300. |
|
160 |
||
161 |
p := VariablePanel |
|
162 |
origin:0.0 @ 0.0 |
|
163 |
corner:1.0 @ 1.0 |
|
164 |
in:top. |
|
165 |
p orientation:#vertical. |
|
166 |
||
167 |
v1 := ScrollableView for:SelectionInListView in:p. |
|
168 |
v1 origin:0.0 @ 0.0 corner:1.0 @ 0.5. |
|
169 |
v1 list:(FileDirectory directoryNamed:'/etc') contents. |
|
170 |
v1 action:[:selNr | |
|
171 |
|fullName stream text| |
|
172 |
fullName := '/etc/' , v1 selectionValue. |
|
173 |
stream := fullName asFilename readStream. |
|
174 |
stream notNil ifTrue:[ |
|
175 |
text := stream contents. |
|
176 |
v2 contents:text. |
|
177 |
v3 contents:text |
|
178 |
] |
|
179 |
]. |
|
180 |
||
181 |
v2 := TextView origin:0.0 @ 0.5 corner:1.0 @ 0.8 in:p. |
|
182 |
||
183 |
v3 := ScrollableView for:TextView in:p. |
|
184 |
v3 origin:0.0 @ 0.8 corner:1.0 @ 1.0. |
|
185 |
top open |
|
186 |
||
187 |
||
188 |
example: (dynamically adding/removing views): |
|
189 |
||
190 |
|top p v1 v2 b| |
|
191 |
||
192 |
top := StandardSystemView new. |
|
193 |
top extent:300@300. |
|
194 |
||
195 |
b := Toggle label:'show' in:top. |
|
196 |
b showLamp:false. |
|
197 |
b origin:0.0 @ 0.0 corner:(1.0 @ 40). |
|
198 |
b action:[:state | |
|
199 |
state ifTrue:[ |
|
200 |
b label:'hide'. |
|
201 |
v1 origin:0.0 @ 0.0 corner:1.0 @ 0.5. |
|
202 |
v2 := ScrollableView for:EditTextView. |
|
203 |
v2 origin:0.0 @ 0.5 corner:1.0 @ 1.0. |
|
204 |
v2 contents:'another text'. |
|
205 |
p addSubView:v2. |
|
300 | 206 |
v2 realize. |
295 | 207 |
] ifFalse:[ |
208 |
b label:'show'. |
|
209 |
v2 destroy. |
|
210 |
v1 origin:0.0 @ 0.0 corner:1.0 @ 1.0 |
|
211 |
] |
|
212 |
]. |
|
213 |
||
214 |
p := VariablePanel |
|
215 |
origin:0.0 @ 0.0 |
|
216 |
corner:1.0 @ 1.0 |
|
217 |
in:top. |
|
218 |
p orientation:#vertical. |
|
219 |
p topInset:50. |
|
220 |
||
221 |
v1 := ScrollableView for:EditTextView in:p. |
|
222 |
v1 origin:0.0 @ 0.0 corner:1.0 @ 1.0. |
|
223 |
v1 contents:'some text'. |
|
224 |
||
225 |
top open |
|
226 |
||
227 |
||
228 |
example: (dynamically flipping orientation): |
|
229 |
Notice: you have to change the relative bounds of the subviews first. |
|
230 |
||
231 |
|top p v1 v2 b| |
|
232 |
||
233 |
top := StandardSystemView new. |
|
234 |
top extent:300@300. |
|
235 |
||
236 |
b := Toggle label:'flip' in:top. |
|
237 |
b showLamp:false. |
|
238 |
b origin:0.0 @ 0.0 corner:(1.0 @ 40). |
|
239 |
b action:[:state | |
|
240 |
state ifTrue:[ |
|
241 |
v1 origin:0.0 @ 0.0 corner:0.5 @ 1.0. |
|
242 |
v2 origin:0.5 @ 0.0 corner:1.0 @ 1.0. |
|
243 |
p orientation:#horizontal. |
|
244 |
] ifFalse:[ |
|
245 |
v1 origin:0.0 @ 0.0 corner:1.0 @ 0.5. |
|
246 |
v2 origin:0.0 @ 0.5 corner:1.0 @ 1.0. |
|
247 |
p orientation:#vertical. |
|
248 |
]. |
|
249 |
]. |
|
250 |
||
251 |
p := VariablePanel |
|
252 |
origin:0.0 @ 0.0 |
|
253 |
corner:1.0 @ 1.0 |
|
254 |
in:top. |
|
255 |
p orientation:#vertical. |
|
256 |
p topInset:50. |
|
257 |
||
258 |
v1 := ScrollableView for:EditTextView in:p. |
|
259 |
v1 origin:0.0 @ 0.0 corner:1.0 @ 0.5. |
|
260 |
v1 contents:'some text'. |
|
261 |
||
262 |
v2 := ScrollableView for:EditTextView in:p. |
|
263 |
v2 origin:0.0 @ 0.5 corner:1.0 @ 1.0. |
|
264 |
v2 contents:'another text'. |
|
265 |
||
266 |
top open |
|
267 |
||
268 |
||
269 |
example (combining fix-size with variable size): |
|
270 |
(need 3 extra frame-views to place the extra labels into) |
|
271 |
||
272 |
|top p v1 l1 v2 l2 v3 l3 f1 f2 f3| |
|
273 |
||
274 |
top := StandardSystemView new. |
|
275 |
top extent:300@300. |
|
276 |
||
277 |
p := VariablePanel |
|
278 |
origin:0.0 @ 0.0 |
|
279 |
corner:1.0 @ 1.0 |
|
280 |
in:top. |
|
281 |
||
282 |
f1 := View in:p. |
|
283 |
f2 := View in:p. |
|
284 |
f3 := View in:p. |
|
285 |
||
286 |
v1 := View origin:0.0 @ 0.0 corner:1.0 @ 1.0 in:f1. |
|
287 |
v2 := View origin:0.0 @ 0.0 corner:1.0 @ 1.0 in:f2. |
|
288 |
v3 := View origin:0.0 @ 0.0 corner:1.0 @ 1.0 in:f3. |
|
289 |
||
290 |
l1 := Label label:'sub1' in:f1. |
|
291 |
l2 := Label label:'sub2' in:f2. |
|
292 |
l3 := Label label:'sub3' in:f3. |
|
293 |
||
294 |
l1 origin:0.0 @ 0.0 corner:1.0 @ 0.0 ; |
|
295 |
bottomInset:(l1 preferredExtent y negated). |
|
296 |
l2 origin:0.0 @ 0.0 corner:1.0 @ 0.0 ; |
|
297 |
bottomInset:(l2 preferredExtent y negated). |
|
298 |
l3 origin:0.0 @ 0.0 corner:1.0 @ 0.0 ; |
|
299 |
bottomInset:(l3 preferredExtent y negated). |
|
300 |
||
301 |
v1 topInset:(l1 preferredExtent y); level:-1. |
|
302 |
v2 topInset:(l2 preferredExtent y); level:-1. |
|
303 |
v3 topInset:(l3 preferredExtent y); level:-1. |
|
304 |
||
305 |
v1 viewBackground:(Color red). |
|
306 |
v2 viewBackground:(Color green). |
|
307 |
v3 viewBackground:(Color yellow). |
|
308 |
||
309 |
p orientation:#vertical. |
|
310 |
top open |
|
311 |
||
312 |
||
313 |
BAD EXAMPLE (wrong relative sizes - repaired on handle move): |
|
314 |
||
315 |
|top p v1 v2 v3| |
|
316 |
||
317 |
top := StandardSystemView new. |
|
318 |
top extent:300@300. |
|
319 |
||
320 |
p := VariablePanel |
|
321 |
origin:0.0 @ 0.0 |
|
322 |
corner:1.0 @ 1.0 |
|
323 |
in:top. |
|
324 |
p orientation:#vertical. |
|
325 |
||
326 |
v1 := View origin:0.0 @ 0.0 corner:1.0 @ (1/4) in:p. |
|
327 |
v2 := View origin:0.0 @ (1/2) corner:1.0 @ (3/4) in:p. |
|
328 |
v3 := View origin:0.0 @ (3/4) corner:1.0 @ 1.0 in:p. |
|
329 |
||
330 |
v1 viewBackground:(Color red). |
|
331 |
v2 viewBackground:(Color green). |
|
332 |
v3 viewBackground:(Color yellow). |
|
333 |
||
334 |
top open |
|
335 |
" |
|
336 |
! ! |
|
337 |
||
338 |
!VariablePanel class methodsFor:'defaults'! |
|
339 |
||
340 |
lightFormOn:aDisplay |
|
341 |
"use same handle as Scroller" |
|
342 |
||
343 |
^ Scroller handleLightFormOn:aDisplay |
|
344 |
! |
|
345 |
||
346 |
shadowFormOn:aDisplay |
|
347 |
"use same handle as Scroller" |
|
348 |
||
349 |
^ Scroller handleShadowFormOn:aDisplay |
|
350 |
! |
|
351 |
||
352 |
updateStyleCache |
|
353 |
DefaultShowHandle := StyleSheet at:'variablePanelShowHandle' default:true. |
|
354 |
DefaultHandleStyle := StyleSheet at:'variablePanelHandleStyle'. |
|
355 |
DefaultHandlePosition := StyleSheet at:'variablePanelHandlePosition' default:#right. |
|
356 |
DefaultHandleLevel := StyleSheet at:'variablePanelHandleLevel' default:2. |
|
357 |
DefaultTrackingLine := StyleSheet at:'variablePanelTrackingLine' default:false. |
|
358 |
DefaultSeparatingLine := StyleSheet at:'variablePanelSeparatingLine' default:false. |
|
359 |
DefaultHandleColor := StyleSheet colorAt:'variablePanelHandleColor' default:Black. |
|
360 |
! ! |
|
361 |
||
362 |
!VariablePanel methodsFor:'accessing'! |
|
363 |
||
364 |
addSubView:aView |
|
365 |
super addSubView:aView. |
|
366 |
realized ifTrue:[ |
|
367 |
self resizeSubviews. |
|
368 |
] |
|
369 |
||
370 |
"Created: 17.1.1996 / 22:41:00 / cg" |
|
371 |
! |
|
372 |
||
373 |
orientation |
|
374 |
^ orientation |
|
375 |
! |
|
376 |
||
377 |
orientation:aSymbol |
|
378 |
orientation := aSymbol. |
|
379 |
self initCursor. |
|
380 |
self anyNonRelativeSubviews ifTrue:[ |
|
381 |
self setupSubviews |
|
382 |
]. |
|
383 |
shown ifTrue:[ |
|
384 |
self cursor:cursor. |
|
385 |
self sizeChanged:nil. |
|
386 |
self redraw. |
|
387 |
] |
|
388 |
! |
|
389 |
||
390 |
barHeight |
|
391 |
"return the height of the separating bar" |
|
392 |
||
393 |
^ barHeight |
|
394 |
! |
|
395 |
||
396 |
barHeight:nPixel |
|
397 |
"set the height of the separating bar" |
|
398 |
||
399 |
barHeight := nPixel. |
|
400 |
||
401 |
"if screen is very low-res, make certain bar is visible and catchable" |
|
402 |
(barHeight < 4) ifTrue:[ |
|
403 |
barHeight := 4 |
|
404 |
]. |
|
405 |
||
406 |
"make it even so spacing is equally spreadable among subviews" |
|
407 |
barHeight odd ifTrue:[ |
|
408 |
barHeight := barHeight + 1 |
|
409 |
] |
|
410 |
! |
|
411 |
||
412 |
handleLevel:aNumber |
|
413 |
"define the 3D level of the handle (only with some styles). |
|
414 |
Normally, this is defined via styleSheet files, but this entry allows |
|
415 |
individual views to be manipulated." |
|
416 |
||
417 |
handleLevel := aNumber |
|
418 |
! |
|
419 |
||
420 |
handlePosition |
|
421 |
"return the position of the handle" |
|
422 |
||
423 |
^ handlePosition |
|
424 |
! |
|
425 |
||
426 |
handlePosition:aSymbol |
|
427 |
"define the position of the handle; the argument aSymbol |
|
428 |
may be one of #left, #right or #center" |
|
429 |
||
430 |
handlePosition := aSymbol |
|
431 |
! |
|
432 |
||
433 |
removeSubView:aView |
|
434 |
"a view is removed; adjust other subviews sizes" |
|
435 |
||
436 |
super removeSubView:aView. |
|
437 |
shown ifTrue:[ |
|
438 |
(superView isNil or:[superView shown]) ifTrue:[ |
|
439 |
self setupSubviews |
|
440 |
] |
|
441 |
] |
|
442 |
! |
|
443 |
||
444 |
style:styleSymbol |
|
445 |
"define the style of the handle; |
|
446 |
styleSymbol may be #motif to draw a little knob or |
|
447 |
anything else to draw scrollBars handleForm. |
|
448 |
Normally, this is defined via styleSheet files, but this entry allows |
|
449 |
individual views to be manipulated." |
|
450 |
||
451 |
(styleSymbol ~~ handleStyle) ifTrue:[ |
|
452 |
handleStyle := styleSymbol. |
|
453 |
handleStyle == #next ifTrue:[ |
|
454 |
shadowForm := self class shadowFormOn:device. |
|
455 |
lightForm := self class lightFormOn:device. |
|
456 |
] ifFalse:[ |
|
457 |
shadowForm := lightForm := nil |
|
458 |
]. |
|
459 |
||
460 |
shadowForm notNil ifTrue:[ |
|
461 |
(self is3D and:[handleStyle ~~ #motif]) ifTrue:[ |
|
462 |
self barHeight:(shadowForm height + 2). |
|
463 |
barWidth := shadowForm width |
|
464 |
] |
|
465 |
]. |
|
466 |
shown ifTrue:[ |
|
467 |
self resizeSubviews. |
|
468 |
self redraw |
|
469 |
] |
|
470 |
] |
|
471 |
! ! |
|
472 |
||
473 |
!VariablePanel methodsFor:'drawing'! |
|
474 |
||
475 |
drawHandleAtX:hx y:hy |
|
476 |
"draw a single handle at hx/hy" |
|
477 |
||
478 |
|h w x y m| |
|
479 |
||
480 |
shadowForm notNil ifTrue:[ |
|
481 |
h := shadowForm height. |
|
482 |
w := shadowForm width . |
|
483 |
] ifFalse:[ |
|
484 |
h := w := barHeight - 4. |
|
485 |
]. |
|
486 |
||
487 |
self paint:viewBackground. |
|
488 |
orientation == #vertical ifTrue:[ |
|
489 |
self fillRectangleX:margin y:hy |
|
490 |
width:(width - margin - margin) |
|
491 |
height:barHeight. |
|
492 |
||
493 |
(handleStyle ~~ #normal and:[handleStyle ~~ #mswindows]) ifTrue:[ |
|
494 |
m := (barHeight - h) // 2. |
|
495 |
||
496 |
shadowForm isNil ifTrue:[ |
|
497 |
y := hy + (barHeight // 2). |
|
498 |
||
499 |
separatingLine ifTrue:[ |
|
500 |
self paint:shadowColor. |
|
501 |
self displayLineFromX:margin y:y toX:(width - margin) y:y. |
|
502 |
y := y + 1. |
|
503 |
self paint:lightColor. |
|
504 |
self displayLineFromX:margin y:y toX:(width - margin) y:y. |
|
505 |
]. |
|
506 |
self paint:viewBackground. |
|
507 |
self fillRectangleX:(hx - barWidth) y:hy |
|
508 |
width:(barWidth + barWidth) |
|
509 |
height:h. |
|
510 |
||
511 |
handleStyle == #line ifTrue:[ |
|
512 |
self paint:handleColor. |
|
513 |
self displayLineFromX:hx - barWidth y:y toX:hx + barWidth y:y |
|
514 |
] ifFalse:[ |
|
515 |
y := hy. |
|
516 |
handleStyle == #st80 ifTrue:[ |
|
517 |
y := y - 1 |
|
518 |
]. |
|
519 |
self drawEdgesForX:(hx - barWidth) |
|
520 |
y:(y + m) |
|
521 |
width:(barWidth + barWidth) |
|
522 |
height:h |
|
523 |
level:handleLevel. |
|
524 |
||
525 |
handleStyle == #iris ifTrue:[ |
|
526 |
self paint:handleColor. |
|
527 |
self fillDeviceRectangleX:(hx - barWidth + 2) |
|
528 |
y:(y + m + 2) |
|
529 |
width:(barWidth + barWidth - 4) |
|
530 |
height:h - 4 |
|
531 |
] |
|
532 |
]. |
|
533 |
] ifFalse:[ |
|
534 |
y := hy. |
|
535 |
self drawHandleFormAtX:hx y:(y + m) |
|
536 |
]. |
|
537 |
handleStyle == #st80 ifTrue:[ |
|
538 |
y := hy - 1. |
|
539 |
self paint:lightColor. |
|
540 |
self displayLineFromX:margin y:y toX:(width - margin - margin - 1) y:y. |
|
541 |
self displayLineFromX:0 y:hy toX:0 y:(hy + barHeight - 1). |
|
542 |
y := hy + barHeight - 2. |
|
543 |
self paint:shadowColor. |
|
544 |
self displayLineFromX:margin y:y toX:(width - margin) y:y. |
|
545 |
"uncomment the -1 if you dont like the notch at the right end" |
|
546 |
" VVV" |
|
547 |
self displayLineFromX:width-1 y:hy" "-1" " toX:width-1 y:(hy + barHeight - 1). |
|
548 |
]. |
|
549 |
] ifFalse:[ |
|
550 |
y := hy + barHeight - 1. |
|
551 |
self paint:handleColor. |
|
552 |
separatingLine ifTrue:[ |
|
553 |
self displayLineFromX:0 y:hy+1 toX:width y:hy+1. |
|
554 |
self displayLineFromX:0 y:y toX:width y:y. |
|
555 |
]. |
|
556 |
self fillRectangleX:hx y:hy width:barWidth height:barHeight |
|
557 |
] |
|
558 |
] ifFalse:[ |
|
559 |
self fillRectangleX:hx y:margin |
|
560 |
width:barHeight |
|
561 |
height:(height - margin - margin). |
|
562 |
(handleStyle ~~ #normal and:[handleStyle ~~ #mswindows]) ifTrue:[ |
|
563 |
m := (barHeight - w) // 2. |
|
564 |
shadowForm isNil ifTrue:[ |
|
565 |
x := hx + (barHeight // 2). |
|
566 |
separatingLine ifTrue:[ |
|
567 |
self paint:shadowColor. |
|
568 |
self displayLineFromX:x y:margin toX:x y:(height - margin). |
|
569 |
x := x + 1. |
|
570 |
self paint:lightColor. |
|
571 |
self displayLineFromX:x y:margin toX:x y:(height - margin). |
|
572 |
]. |
|
573 |
self paint:viewBackground. |
|
574 |
self fillRectangleX:hx y:(hy - barWidth) |
|
575 |
width:w |
|
576 |
height:(barWidth + barWidth). |
|
577 |
||
578 |
handleStyle == #line ifTrue:[ |
|
579 |
self paint:handleColor. |
|
580 |
self displayLineFromX:x y:hy - barWidth toX:x y:hy + barWidth. |
|
581 |
] ifFalse:[ |
|
582 |
x := hx. |
|
583 |
handleStyle == #st80 ifTrue:[ |
|
584 |
x := x - 1. |
|
585 |
]. |
|
586 |
self drawEdgesForX:(x + m) |
|
587 |
y:(hy - barWidth) |
|
588 |
width:w |
|
589 |
height:(barWidth + barWidth) |
|
590 |
level:handleLevel. |
|
591 |
handleStyle == #iris ifTrue:[ |
|
592 |
self paint:handleColor. |
|
593 |
self fillDeviceRectangleX:(x + m + 2) |
|
594 |
y:(hy - barWidth + 2) |
|
595 |
width:w - 4 |
|
596 |
height:(barWidth + barWidth - 4) |
|
597 |
]. |
|
598 |
] |
|
599 |
] ifFalse:[ |
|
600 |
x := hx. |
|
601 |
self drawHandleFormAtX:(x + m) y:hy |
|
602 |
]. |
|
603 |
handleStyle == #st80 ifTrue:[ |
|
604 |
x := hx - 1. |
|
605 |
self paint:lightColor. |
|
606 |
self displayLineFromX:x y:margin toX:x y:(height - margin). |
|
607 |
self displayLineFromX:hx y:0 toX:(hx + barHeight - 1) y:0. |
|
608 |
x := hx + barHeight - 2. |
|
609 |
self paint:shadowColor. |
|
610 |
self displayLineFromX:x y:margin toX:x y:(height - margin). |
|
611 |
"uncomment the -1 if you dont like the notch at the bottom end" |
|
612 |
" VVV" |
|
613 |
self displayLineFromX:hx" "-1" " y:height-1 toX:(hx + barHeight - 1) y:height-1. |
|
614 |
]. |
|
615 |
] ifFalse:[ |
|
616 |
x := hx + barHeight - 1. |
|
617 |
self paint:handleColor. |
|
618 |
separatingLine ifTrue:[ |
|
619 |
self displayLineFromX:hx+1 y:0 toX:hx+1 y:height. |
|
620 |
self displayLineFromX:x y:0 toX:x y:height. |
|
621 |
]. |
|
622 |
self fillRectangleX:hx y:hy width:barHeight height:barWidth |
|
623 |
] |
|
624 |
]. |
|
625 |
||
626 |
"Modified: 14.11.1995 / 20:31:02 / cg" |
|
627 |
! |
|
628 |
||
629 |
drawHandleFormAtX:hx y:hy |
|
630 |
"draw a handles bitmap at hx/hy" |
|
631 |
||
632 |
self paint:shadowColor. |
|
633 |
self displayForm:shadowForm x:hx y:hy. |
|
634 |
self paint:lightColor. |
|
635 |
self displayForm:lightForm x:hx y:hy. |
|
636 |
self paint:viewBackground |
|
637 |
! |
|
638 |
||
639 |
invertHandleBarAtX:hx y:hy |
|
640 |
self noClipByChildren. |
|
641 |
self xoring:[ |
|
642 |
|y x| |
|
643 |
||
644 |
orientation == #vertical ifTrue:[ |
|
645 |
trackLine ifTrue:[ |
|
646 |
y := hy + (barHeight // 2). |
|
647 |
self displayLineFromX:0 y:y toX:width y:y. |
|
648 |
] ifFalse:[ |
|
649 |
self fillRectangleX:0 y:hy width:width height:barHeight |
|
650 |
] |
|
651 |
] ifFalse:[ |
|
652 |
trackLine ifTrue:[ |
|
653 |
x := hx + (barHeight // 2). |
|
654 |
self displayLineFromX:x y:0 toX:x y:height. |
|
655 |
] ifFalse:[ |
|
656 |
self fillRectangleX:hx y:0 width:barHeight height:height |
|
657 |
] |
|
658 |
] |
|
659 |
]. |
|
660 |
self clipByChildren. |
|
661 |
! |
|
662 |
||
663 |
lockRedraw |
|
664 |
redrawLocked := true |
|
665 |
! |
|
666 |
||
667 |
redraw |
|
668 |
"redraw all of the handles" |
|
669 |
||
670 |
redrawLocked ~~ true ifTrue:[ |
|
671 |
self redrawHandlesFrom:1 to:(subViews size) |
|
672 |
] |
|
673 |
! |
|
674 |
||
675 |
redrawHandlesFrom:start to:stop |
|
676 |
"redraw some handles" |
|
677 |
||
678 |
subViews notNil ifTrue:[ |
|
679 |
showHandle ifTrue:[ |
|
680 |
self handleOriginsFrom:start to:stop do:[:hPoint | |
|
681 |
self drawHandleAtX:(hPoint x) y:(hPoint y) |
|
682 |
]. |
|
683 |
] |
|
684 |
] |
|
685 |
! |
|
686 |
||
687 |
unlockRedraw |
|
688 |
redrawLocked := false |
|
689 |
! ! |
|
690 |
||
691 |
!VariablePanel methodsFor:'event handling'! |
|
692 |
||
693 |
sizeChanged:how |
|
694 |
"my size has changed; resize my subviews" |
|
695 |
||
696 |
shown ifTrue:[ |
|
697 |
(how == #smaller) ifTrue:[ |
|
698 |
self resizeSubviews |
|
699 |
] ifFalse:[ |
|
700 |
"/ |
|
701 |
"/ do it in reverse order, to avoid some redraws |
|
702 |
"/ |
|
703 |
self resizeSubviewsFrom:(subViews size) to:1 |
|
704 |
] |
|
705 |
]. |
|
706 |
self changed:#sizeOfView with:how. |
|
707 |
! ! |
|
708 |
||
709 |
!VariablePanel methodsFor:'initializing'! |
|
710 |
||
711 |
defaultControllerClass |
|
712 |
^ VariablePanelController |
|
713 |
! |
|
714 |
||
715 |
fixSize |
|
716 |
extentChanged ifTrue:[ |
|
717 |
super fixSize. |
|
718 |
self resizeSubviews |
|
719 |
] ifFalse:[ |
|
720 |
super fixSize |
|
721 |
] |
|
722 |
! |
|
723 |
||
724 |
initCursor |
|
725 |
"set the cursor - a double arrow" |
|
726 |
||
727 |
orientation == #vertical ifTrue:[ |
|
728 |
DefaultVCursor notNil ifTrue:[ |
|
729 |
cursor := DefaultVCursor |
|
730 |
] ifFalse:[ |
|
731 |
cursor := Cursor sourceForm:(Form fromFile:'VVPanel.xbm') |
|
732 |
maskForm:(Form fromFile:'VVPanel_m.xbm') |
|
733 |
hotX:8 |
|
734 |
hotY:8. |
|
735 |
" |
|
736 |
if bitmaps are not available, use a standard cursor |
|
737 |
" |
|
738 |
cursor isNil ifTrue:[ |
|
739 |
"which one looks better ?" |
|
740 |
cursor := Cursor upDownArrow |
|
741 |
"cursor := Cursor upLimitArrow" |
|
742 |
]. |
|
743 |
DefaultVCursor := cursor |
|
744 |
] |
|
745 |
] ifFalse:[ |
|
746 |
DefaultHCursor notNil ifTrue:[ |
|
747 |
cursor := DefaultHCursor |
|
748 |
] ifFalse:[ |
|
749 |
cursor := Cursor sourceForm:(Form fromFile:'VHPanel.xbm') |
|
750 |
maskForm:(Form fromFile:'VHPanel_m.xbm') |
|
751 |
hotX:8 |
|
752 |
hotY:8. |
|
753 |
" |
|
754 |
if bitmaps are not available, use a standard cursor |
|
755 |
" |
|
756 |
cursor isNil ifTrue:[ |
|
757 |
"which one looks better ?" |
|
758 |
cursor := Cursor leftRightArrow |
|
759 |
"cursor := Cursor leftLimitArrow" |
|
760 |
]. |
|
761 |
DefaultHCursor := cursor |
|
762 |
] |
|
763 |
] |
|
764 |
! |
|
765 |
||
766 |
initStyle |
|
767 |
|mm| |
|
768 |
||
769 |
super initStyle. |
|
770 |
||
771 |
handleColor := DefaultHandleColor on:device. |
|
772 |
handleLevel := DefaultHandleLevel. |
|
773 |
||
774 |
showHandle := DefaultShowHandle. |
|
775 |
||
776 |
DefaultHandleStyle isNil ifTrue:[ |
|
777 |
handleStyle := styleSheet name |
|
778 |
] ifFalse:[ |
|
779 |
handleStyle := DefaultHandleStyle |
|
780 |
]. |
|
781 |
handleStyle == #next ifTrue:[ |
|
782 |
shadowForm := self class shadowFormOn:device. |
|
783 |
lightForm := self class lightFormOn:device. |
|
784 |
||
785 |
self barHeight:(shadowForm height + 2). |
|
786 |
barWidth := shadowForm width. |
|
787 |
] ifFalse:[ |
|
788 |
shadowForm := lightForm := nil. |
|
789 |
]. |
|
790 |
||
791 |
handlePosition := DefaultHandlePosition. |
|
792 |
trackLine := DefaultTrackingLine. |
|
793 |
separatingLine := DefaultSeparatingLine. |
|
794 |
||
795 |
mm := device verticalPixelPerMillimeter. |
|
796 |
self is3D ifTrue:[ |
|
797 |
self barHeight:(3 * mm) rounded |
|
798 |
] ifFalse:[ |
|
799 |
self barHeight:(2 * mm) rounded |
|
800 |
]. |
|
801 |
barWidth := (2 * mm) rounded. "motif style width" |
|
802 |
handleStyle == #mswindows ifTrue:[ |
|
803 |
barWidth := (ArrowButton new direction:#up) width + 1 |
|
804 |
]. |
|
805 |
! |
|
806 |
||
807 |
initialize |
|
808 |
super initialize. |
|
809 |
orientation := #vertical. |
|
810 |
noColor := Color noColor. |
|
811 |
! ! |
|
812 |
||
813 |
!VariablePanel methodsFor:'private'! |
|
814 |
||
815 |
anyNonRelativeSubviews |
|
816 |
"return true, if any of my subviews has no relative origin/extent" |
|
817 |
||
818 |
1 to:(subViews size) do:[:index | |
|
819 |
|view| |
|
820 |
||
821 |
view := subViews at:index. |
|
822 |
view relativeCorner isNil ifTrue:[^ true]. |
|
823 |
view relativeOrigin isNil ifTrue:[^ true] |
|
824 |
]. |
|
825 |
^ false |
|
826 |
! |
|
827 |
||
828 |
handleOriginsDo:aBlock |
|
829 |
"evaluate the argument block for every handle-origin" |
|
830 |
||
831 |
self handleOriginsFrom:1 to:(subViews size) do:aBlock |
|
832 |
! |
|
833 |
||
834 |
handleOriginsFrom:start to:stop do:aBlock |
|
835 |
"evaluate the argument block for some handle-origins" |
|
836 |
||
837 |
|x y hw hh hDelta vDelta |
|
838 |
first "{ Class: SmallInteger }" |
|
839 |
last "{ Class: SmallInteger }"| |
|
840 |
||
841 |
subViews notNil ifTrue:[ |
|
842 |
shadowForm notNil ifTrue:[ |
|
843 |
hw := shadowForm width. |
|
844 |
hh := shadowForm height. |
|
845 |
] ifFalse:[ |
|
846 |
hw := hh := barWidth |
|
847 |
]. |
|
848 |
||
849 |
(handleStyle ~~ #normal and:[handleStyle ~~ #mswindows]) ifTrue:[ |
|
850 |
hDelta := barWidth // 2. |
|
851 |
vDelta := barWidth // 2. |
|
852 |
] ifFalse:[ |
|
853 |
hDelta := vDelta := 0 |
|
854 |
]. |
|
855 |
||
856 |
(handlePosition == #left) ifTrue:[ |
|
857 |
x := hDelta. |
|
858 |
y := vDelta |
|
859 |
] ifFalse:[ |
|
860 |
(handlePosition == #right) ifTrue:[ |
|
861 |
x := width - hw - margin - hDelta. |
|
862 |
y := height - hh - margin - vDelta. |
|
863 |
] ifFalse:[ |
|
864 |
x := width - barWidth // 2. |
|
865 |
y := height - barWidth // 2 |
|
866 |
] |
|
867 |
]. |
|
868 |
first := start + 1. |
|
869 |
last := stop. |
|
870 |
first to:last do:[:index | |
|
871 |
|view| |
|
872 |
||
873 |
view := subViews at:index. |
|
874 |
orientation == #vertical ifTrue:[ |
|
875 |
y := view top "origin y" - barHeight + 1. |
|
876 |
] ifFalse:[ |
|
877 |
x := view left "origin x" - barHeight + 1. |
|
878 |
]. |
|
879 |
aBlock value:(x @ y) |
|
880 |
] |
|
881 |
] |
|
882 |
! |
|
883 |
||
884 |
resizeSubviews |
|
885 |
"readjust size of some subviews" |
|
886 |
||
887 |
self resizeSubviewsFrom:1 to:(subViews size) |
|
888 |
! |
|
889 |
||
890 |
resizeSubviewsFrom:start to:stop |
|
891 |
"readjust size of some subviews" |
|
892 |
||
893 |
|step nSubviews| |
|
894 |
||
895 |
subViews notNil ifTrue:[ |
|
896 |
(start <= stop) ifTrue:[ |
|
897 |
step := 1 |
|
898 |
] ifFalse:[ |
|
899 |
step := -1 |
|
900 |
]. |
|
901 |
nSubviews := subViews size. |
|
902 |
start to:stop by:step do:[:index | |
|
903 |
|bw view o1 o2 relOrg relCorner newOrg newCorner newExt| |
|
904 |
||
905 |
view := subViews at:index. |
|
906 |
bw := view borderWidth. |
|
907 |
||
908 |
index == 1 ifTrue:[ |
|
909 |
o1 := 0. |
|
910 |
] ifFalse:[ |
|
911 |
o1 := barHeight // 2 - bw |
|
912 |
]. |
|
913 |
index == nSubviews ifTrue:[ |
|
914 |
o2 := 0. |
|
915 |
] ifFalse:[ |
|
916 |
o2 := barHeight // 2 - bw |
|
917 |
]. |
|
918 |
||
919 |
" |
|
920 |
relCorner := view relativeCorner. |
|
921 |
relCorner isNil ifTrue:[ |
|
922 |
self error:'subview must have relative corner' |
|
923 |
]. |
|
924 |
newCorner := view cornerFromRelativeCorner. |
|
925 |
newCorner notNil ifTrue:[ |
|
926 |
newCorner y:(newCorner y - o2) |
|
927 |
]. |
|
928 |
||
929 |
relOrg := view relativeOrigin. |
|
930 |
relOrg isNil ifTrue:[ |
|
931 |
self error:'subview must have relative origin' |
|
932 |
]. |
|
933 |
newOrg := view originFromRelativeOrigin. |
|
934 |
newOrg notNil ifTrue:[ |
|
935 |
(index ~~ 1) ifTrue:[ |
|
936 |
newOrg y:(newOrg y + o1) |
|
937 |
]. |
|
938 |
]. |
|
939 |
view pixelOrigin:newOrg corner:newCorner |
|
940 |
" |
|
941 |
newOrg := view computeOrigin. |
|
942 |
newOrg notNil ifTrue:[ |
|
943 |
(index ~~ 1) ifTrue:[ |
|
944 |
orientation == #vertical ifTrue:[ |
|
945 |
newOrg y:(newOrg y + o1) |
|
946 |
] ifFalse:[ |
|
947 |
newOrg x:(newOrg x + o1) |
|
948 |
] |
|
949 |
]. |
|
950 |
]. |
|
951 |
newExt := view computeExtent. |
|
952 |
newExt notNil ifTrue:[ |
|
953 |
orientation == #vertical ifTrue:[ |
|
954 |
newExt y:(newExt y - o2 - o1) |
|
955 |
] ifFalse:[ |
|
956 |
newExt x:(newExt x - o2 - o1) |
|
957 |
] |
|
958 |
]. |
|
959 |
view pixelOrigin:newOrg extent:newExt. |
|
960 |
] |
|
961 |
] |
|
962 |
! |
|
963 |
||
964 |
setupSubviews |
|
965 |
"setup subviews sizes (in case of non-relative sizes)" |
|
966 |
||
967 |
|pos delta| |
|
968 |
||
300 | 969 |
"/ setup all subviews to spread evenly ... |
295 | 970 |
|
300 | 971 |
pos := 0.0. |
972 |
delta := 1.0 / (subViews size). |
|
295 | 973 |
|
300 | 974 |
1 to:(subViews size) do:[:index | |
975 |
|view| |
|
295 | 976 |
|
300 | 977 |
view := subViews at:index. |
978 |
orientation == #vertical ifTrue:[ |
|
979 |
index == subViews size ifTrue:[ |
|
980 |
view origin:(0.0 @ pos) corner:(1.0 @ 1.0) |
|
295 | 981 |
] ifFalse:[ |
300 | 982 |
view origin:(0.0 @ pos) corner:(1.0 @ (pos + delta)) |
295 | 983 |
]. |
300 | 984 |
] ifFalse:[ |
985 |
index == subViews size ifTrue:[ |
|
986 |
view origin:(pos @ 0.0) corner:(1.0 @ 1.0) |
|
987 |
] ifFalse:[ |
|
988 |
view origin:(pos @ 0.0) corner:((pos + delta) @ 1.0) |
|
989 |
]. |
|
990 |
]. |
|
991 |
pos := pos + delta |
|
295 | 992 |
] |
993 |
! ! |
|
994 |
||
299
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
995 |
!VariablePanel methodsFor:'private tableView protocol'! |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
996 |
|
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
997 |
setupSubviewOrigins |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
998 |
"setup subviews origins (SV 16.1.95)" |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
999 |
|
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1000 |
|x y e eX eY n "{ Class: SmallInteger }"| |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1001 |
|
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1002 |
x := y := 0.0. |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1003 |
|
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1004 |
n := subViews size. |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1005 |
1 to:n do:[:index | |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1006 |
|view| |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1007 |
|
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1008 |
view := subViews at:index. |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1009 |
e := view relativeExtent. |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1010 |
e notNil ifTrue:[ |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1011 |
view relativeExtent:nil. |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1012 |
eX := e x. |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1013 |
eY := e y. |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1014 |
index == n ifTrue:[ |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1015 |
view origin:(x @ y) corner:(1.0 @ 1.0) |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1016 |
] ifFalse:[ |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1017 |
orientation == #vertical ifTrue:[ |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1018 |
view origin:(x @ y) corner:(1.0 @ (y+eY)) |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1019 |
] ifFalse:[ |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1020 |
view origin:(x @ y) corner:((x+eX) @ 1.0) |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1021 |
]. |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1022 |
]. |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1023 |
orientation == #vertical ifTrue:[ |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1024 |
y := y + eY. |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1025 |
] ifFalse:[ |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1026 |
x := x + eX. |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1027 |
] |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1028 |
] ifFalse: [ |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1029 |
view origin:(x @ y). |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1030 |
orientation == #vertical ifTrue:[ |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1031 |
y := view relativeCorner y. |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1032 |
] ifFalse:[ |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1033 |
x := view relativeCorner x. |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1034 |
] |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1035 |
]. |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1036 |
] |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1037 |
! ! |
d2f955840ad5
oops - tableViews private interface was lost - reintroduced
ah
parents:
295
diff
changeset
|
1038 |
|
295 | 1039 |
!VariablePanel class methodsFor:'documentation'! |
1040 |
||
1041 |
version |
|
300 | 1042 |
^ '$Header: /cvs/stx/stx/libwidg/Attic/VarPanel.st,v 1.3 1996-01-24 15:29:41 ah Exp $' |
295 | 1043 |
! ! |