author | Claus Gittinger <cg@exept.de> |
Sun, 29 Aug 1999 16:28:56 +0200 | |
changeset 1494 | 096845be5d75 |
parent 1491 | d6133cb2f3c9 |
child 1524 | b7f986aa45f4 |
permissions | -rw-r--r-- |
542 | 1 |
" |
2 |
COPYRIGHT (c) 1997 by Claus Gittinger / eXept Software AG |
|
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 |
||
14 |
||
15 |
||
16 |
||
824 | 17 |
SimpleView subclass:#DSVLabelView |
1494
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
18 |
instanceVariableNames:'isVisible dataSet lineDrag columns selection enabled |
1491 | 19 |
preferredHeight' |
542 | 20 |
classVariableNames:'' |
21 |
poolDictionaries:'' |
|
22 |
category:'Views-DataSet' |
|
23 |
! |
|
24 |
||
1494
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
25 |
Object subclass:#LineDrag |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
26 |
instanceVariableNames:'rootView topX topY botY column minX startX transX' |
1491 | 27 |
classVariableNames:'' |
28 |
poolDictionaries:'' |
|
29 |
privateIn:DSVLabelView |
|
30 |
! |
|
31 |
||
542 | 32 |
!DSVLabelView class methodsFor:'documentation'! |
33 |
||
34 |
copyright |
|
35 |
" |
|
36 |
COPYRIGHT (c) 1997 by Claus Gittinger / eXept Software AG |
|
37 |
All Rights Reserved |
|
38 |
||
39 |
This software is furnished under a license and may be used |
|
40 |
only in accordance with the terms of that license and with the |
|
41 |
inclusion of the above copyright notice. This software may not |
|
42 |
be provided or otherwise made available to, or used by, any |
|
43 |
other person. No title to or ownership of the software is |
|
44 |
hereby transferred. |
|
45 |
" |
|
46 |
||
47 |
||
48 |
||
49 |
||
50 |
! |
|
51 |
||
52 |
documentation |
|
53 |
" |
|
54 |
shows the labels assigned to the column descriptions. Used by the |
|
55 |
DataSetView |
|
56 |
||
57 |
[Instance variables:] |
|
58 |
||
1487 | 59 |
dataSet <DSVColumnView> column view which shows the columns |
824 | 60 |
|
1487 | 61 |
selection <Integer or nil> current selected index or nil. |
824 | 62 |
|
1086 | 63 |
enabled <Boolean> if a press action exists on a column |
64 |
entry, this action could be enabled or |
|
65 |
disabled. |
|
66 |
||
1487 | 67 |
isVisible <Boolean> true if the labelView is shown |
68 |
||
69 |
preferredHeight <Integer> the preferred height of the labelView |
|
1086 | 70 |
|
542 | 71 |
|
72 |
[author:] |
|
73 |
Claus Atzkern |
|
74 |
||
75 |
[see also:] |
|
76 |
DSVColumnView |
|
77 |
DataSetColumnSpec |
|
78 |
DataSetColumn |
|
79 |
DataSetView |
|
80 |
" |
|
81 |
||
82 |
||
83 |
||
84 |
! ! |
|
85 |
||
1487 | 86 |
!DSVLabelView methodsFor:'accessing'! |
824 | 87 |
|
1487 | 88 |
columns:aListOfColumns |
89 |
"the list of columns changed |
|
824 | 90 |
" |
1487 | 91 |
|layout| |
542 | 92 |
|
1487 | 93 |
columns := aListOfColumns. |
94 |
preferredHeight := nil. |
|
95 |
selection := nil. |
|
96 |
||
97 |
isVisible ifTrue:[ |
|
98 |
dataSet layout:layout. |
|
99 |
]. |
|
824 | 100 |
! |
101 |
||
1487 | 102 |
preferredHeight |
824 | 103 |
|
1487 | 104 |
preferredHeight isNil ifTrue:[ |
105 |
preferredHeight := 0. |
|
884 | 106 |
|
1487 | 107 |
columns do:[:c|preferredHeight := (c label preferredHeight) max:preferredHeight ]. |
884 | 108 |
|
1487 | 109 |
|
110 |
preferredHeight := preferredHeight |
|
111 |
+ (margin + margin + dataSet horizontalSpacing * 2) |
|
112 |
]. |
|
113 |
^ preferredHeight |
|
884 | 114 |
! ! |
115 |
||
824 | 116 |
!DSVLabelView methodsFor:'drawing'! |
117 |
||
1487 | 118 |
invalidate |
119 |
(shown and:[isVisible]) ifTrue:[ |
|
120 |
super invalidate |
|
1408
1cda0a4fb566
use invalidate... insteat of redraw...
Claus Gittinger <cg@exept.de>
parents:
1269
diff
changeset
|
121 |
] |
824 | 122 |
! |
123 |
||
1487 | 124 |
invalidateItemAt:anIndex |
125 |
"invalidate rectangle assigned to an item at an index |
|
824 | 126 |
" |
1487 | 127 |
|cL xL xR hg| |
128 |
||
129 |
(isVisible and:[shown]) ifTrue:[ |
|
130 |
cL := columns at:anIndex ifAbsent:[^ nil]. |
|
131 |
xL := dataSet xVisibleOfColNr:anIndex. |
|
132 |
xR := xL + cL width. |
|
133 |
||
134 |
(xL < width and:[xR > 0]) ifTrue:[ |
|
135 |
xL := xL max:0. |
|
136 |
xR := xR min:width. |
|
137 |
hg := height - margin - margin. |
|
138 |
||
139 |
self invalidate:(Rectangle left:xL top:margin width:(xR - xL) height:hg) |
|
140 |
] |
|
141 |
] |
|
142 |
||
1408
1cda0a4fb566
use invalidate... insteat of redraw...
Claus Gittinger <cg@exept.de>
parents:
1269
diff
changeset
|
143 |
! |
562 | 144 |
|
824 | 145 |
redrawX:x y:y width:w height:h |
146 |
"redraw a rectangle |
|
637 | 147 |
" |
1487 | 148 |
|items savClip bg fg fgColor bgColor level |
149 |
inset "{ Class:SmallInteger }" |
|
150 |
maxX "{ Class:SmallInteger }" |
|
151 |
colHgt "{ Class:SmallInteger }" |
|
152 |
wt "{ Class:SmallInteger }" |
|
153 |
x1 "{ Class:SmallInteger }" |
|
154 |
x0 "{ Class:SmallInteger }" |
|
155 |
| |
|
156 |
(isVisible and:[shown]) ifFalse:[^ self]. |
|
824 | 157 |
|
1487 | 158 |
bgColor := dataSet backgroundColor. |
824 | 159 |
self paint:bgColor. |
160 |
self fillRectangleX:x y:y width:w height:h. |
|
161 |
||
1487 | 162 |
columns isEmpty ifTrue:[^ self]. |
163 |
||
164 |
fgColor := dataSet foregroundColor. |
|
165 |
inset := dataSet horizontalSpacing + 1. |
|
166 |
maxX := (x + w) min:(width - margin). |
|
167 |
colHgt := height - margin - margin. |
|
824 | 168 |
savClip := clipRect. |
859 | 169 |
|
824 | 170 |
self clippingRectangle:(Rectangle left:x top:y width:w height:h). |
1487 | 171 |
x1 := dataSet xVisibleOfColNr:1. |
824 | 172 |
|
1487 | 173 |
columns keysAndValuesDo:[:aKey :aCol| |anItem| |
174 |
anItem := aCol label. |
|
175 |
wt := aCol width. |
|
176 |
x0 := x1. |
|
177 |
x1 := x1 + wt. |
|
824 | 178 |
|
1487 | 179 |
(x1 > x and:[x0 < maxX]) ifTrue:[ |
180 |
fg := (anItem foregroundColor) ? fgColor. |
|
181 |
||
907 | 182 |
(bg := anItem backgroundColor) notNil ifTrue:[ |
183 |
bg ~= bgColor ifTrue:[ |
|
184 |
self paint:bg. |
|
1487 | 185 |
self fillRectangleX:x0 y:margin width:wt height:colHgt. |
907 | 186 |
] |
187 |
] ifFalse:[ |
|
188 |
bg := bgColor |
|
189 |
]. |
|
824 | 190 |
|
907 | 191 |
self paint:fg on:bg. |
1487 | 192 |
anItem redrawX:x0 w:wt h:height inset:inset on:self. |
193 |
||
194 |
dataSet drawEdgesAtX:x0 |
|
195 |
y:margin |
|
196 |
width:wt |
|
197 |
height:colHgt |
|
198 |
level:(selection == aKey ifTrue:[0] ifFalse:[2]) |
|
199 |
on:self |
|
200 |
]. |
|
824 | 201 |
]. |
1487 | 202 |
|
859 | 203 |
self clippingRectangle:savClip. |
824 | 204 |
|
637 | 205 |
|
562 | 206 |
|
637 | 207 |
! ! |
208 |
||
209 |
!DSVLabelView methodsFor:'event handling'! |
|
542 | 210 |
|
1491 | 211 |
buttonMotion:state x:x y:y |
212 |
"mouse-button was moved while pressed; |
|
213 |
redraw thumb at its new position and, if scroll-mode is asynchronous, |
|
214 |
the scroll action is performed |
|
215 |
" |
|
1494
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
216 |
lineDrag notNil ifTrue:[lineDrag moveToX:x] |
1491 | 217 |
|
218 |
||
219 |
! |
|
220 |
||
637 | 221 |
buttonPress:button x:x y:y |
824 | 222 |
"handle a button press event; checks whether the item under the mouse |
223 |
is selectable. If true, the selection is set to the item. |
|
637 | 224 |
" |
1491 | 225 |
|x0 x1| |
226 |
||
227 |
(isVisible and:[enabled and:[shown]]) ifFalse:[ |
|
228 |
^ self |
|
229 |
]. |
|
230 |
x1 := dataSet xVisibleOfColNr:1. |
|
231 |
||
232 |
columns keysAndValuesDo:[:index :aCol| |
|
233 |
x0 := x1. |
|
234 |
x1 := x0 + aCol width. |
|
235 |
||
236 |
(x1 > x and:[x0 < x]) ifTrue:[ |
|
237 |
x + 6 > x1 ifFalse:[ |
|
238 |
aCol label isSelectable ifTrue:[ |
|
239 |
self invalidateItemAt:(selection := index) |
|
240 |
] |
|
241 |
] ifTrue:[ |
|
1494
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
242 |
lineDrag := LineDrag new. |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
243 |
lineDrag column:aCol |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
244 |
x:x |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
245 |
y:margin |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
246 |
h:(self height + dataSet height) |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
247 |
minX:(x1 - aCol width + aCol minimumRequiredWidth) |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
248 |
on:self |
1491 | 249 |
]. |
250 |
^ self |
|
251 |
]. |
|
252 |
]. |
|
253 |
||
542 | 254 |
! |
255 |
||
637 | 256 |
buttonRelease:button x:x y:y |
824 | 257 |
"handle a button press event; checks whether the item under the mouse |
258 |
is the selected item. If true, the application is informed. |
|
259 |
" |
|
1491 | 260 |
|selected index column deltaX| |
824 | 261 |
|
1487 | 262 |
selection isNil ifTrue:[ |
1494
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
263 |
lineDrag notNil ifTrue:[ |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
264 |
lineDrag invertLine. |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
265 |
column := lineDrag column. |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
266 |
deltaX := lineDrag deltaX. |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
267 |
lineDrag := nil. |
1491 | 268 |
|
269 |
deltaX abs > 2 ifTrue:[ |
|
270 |
dataSet changeWidthOfColumn:column deltaX:deltaX |
|
271 |
] |
|
272 |
]. |
|
1085 | 273 |
^ self |
274 |
]. |
|
1487 | 275 |
index := self xVisibleToSelectionIndex:x. |
276 |
selected := index == selection. |
|
1491 | 277 |
index := selection. |
1487 | 278 |
selection := nil. |
1085 | 279 |
|
1487 | 280 |
self invalidateItemAt:index. |
281 |
||
282 |
selected ifTrue:[ |
|
283 |
(columns at:index) label sendClickMsgTo:(self application) |
|
1085 | 284 |
] |
824 | 285 |
! ! |
286 |
||
287 |
!DSVLabelView methodsFor:'instance creation'! |
|
288 |
||
289 |
for:aColumnView |
|
290 |
"initialization |
|
291 |
" |
|
1491 | 292 |
dataSet := aColumnView. |
293 |
self level:(dataSet level). |
|
294 |
self borderWidth:(dataSet borderWidth). |
|
295 |
! |
|
296 |
||
297 |
initialize |
|
298 |
super initialize. |
|
299 |
||
1487 | 300 |
enabled := true. |
301 |
isVisible := true. |
|
302 |
columns := #(). |
|
1491 | 303 |
|
304 |
self enableMotionEvents. |
|
305 |
||
306 |
||
1085 | 307 |
! |
308 |
||
1487 | 309 |
realize |
310 |
"recompute contents and fit columns to view |
|
311 |
" |
|
312 |
self bitGravity:#NorthWest. |
|
313 |
super realize. |
|
1085 | 314 |
|
824 | 315 |
! ! |
316 |
||
1487 | 317 |
!DSVLabelView methodsFor:'queries'! |
824 | 318 |
|
1487 | 319 |
enabled |
320 |
"true, if widget is enabled |
|
321 |
" |
|
322 |
^ enabled |
|
323 |
! |
|
324 |
||
325 |
enabled:aState |
|
326 |
"true, if widget is enabled |
|
542 | 327 |
" |
1487 | 328 |
enabled := aState. |
329 |
! |
|
330 |
||
331 |
isVisible |
|
332 |
^ isVisible |
|
333 |
! |
|
334 |
||
335 |
isVisible:aBool |
|
336 |
||
337 |
aBool ~~ isVisible ifTrue:[ |
|
338 |
isVisible := aBool. |
|
339 |
dataSet layout:nil. |
|
824 | 340 |
]. |
341 |
! |
|
342 |
||
1487 | 343 |
xVisibleToSelectionIndex:x |
344 |
"returns the column number assigned to a physical x or nil. If |
|
345 |
the column exists but is not selectable nil is returned. |
|
824 | 346 |
" |
1487 | 347 |
|index column| |
824 | 348 |
|
1487 | 349 |
(isVisible and:[enabled]) ifTrue:[ |
350 |
( (index := dataSet xVisibleToColNr:x) notNil |
|
351 |
and:[(column := columns at:index ifAbsent:nil) notNil |
|
352 |
and:[column label isSelectable]] |
|
353 |
) ifTrue:[ |
|
354 |
^ index |
|
355 |
] |
|
824 | 356 |
]. |
1487 | 357 |
^ nil |
824 | 358 |
! ! |
359 |
||
1487 | 360 |
!DSVLabelView methodsFor:'scrolling'! |
824 | 361 |
|
1487 | 362 |
copyFromX:x0 y:y0 toX:x1 y:y1 width:w invalidateX:leftX |
824 | 363 |
|
1487 | 364 |
(shown and:[isVisible]) ifFalse:[^ self]. |
824 | 365 |
|
1487 | 366 |
(self sensor hasDamageFor:self) ifTrue:[ |
367 |
self invalidate |
|
368 |
] ifFalse:[ |
|
369 |
self copyFrom:self x:x0 y:y0 toX:x1 y:y1 width:w height:height async:false. |
|
370 |
self invalidate:(Rectangle left:leftX top:0 width:(width - w) height:height) |
|
371 |
repairNow:true |
|
372 |
] |
|
824 | 373 |
! ! |
374 |
||
1494
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
375 |
!DSVLabelView::LineDrag methodsFor:'accessing'! |
1491 | 376 |
|
377 |
column |
|
378 |
"return the value of the instance variable 'column' (automatically generated)" |
|
379 |
||
380 |
^ column! |
|
381 |
||
382 |
deltaX |
|
383 |
"returns the distance x between the start and end action |
|
384 |
" |
|
1494
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
385 |
^ topX - startX |
1491 | 386 |
! ! |
387 |
||
1494
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
388 |
!DSVLabelView::LineDrag methodsFor:'dragging'! |
1491 | 389 |
|
1494
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
390 |
invertLine |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
391 |
"invert for a line |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
392 |
" |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
393 |
rootView clippedByChildren:false. |
1491 | 394 |
|
1494
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
395 |
rootView xoring:[ |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
396 |
rootView lineWidth:2. |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
397 |
rootView displayLineFromX:topX y:topY toX:topX y:botY. |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
398 |
rootView flush |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
399 |
] |
1491 | 400 |
! |
401 |
||
1494
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
402 |
moveToX:viewX |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
403 |
|x| |
1491 | 404 |
|
1494
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
405 |
x := (minX max:viewX) + transX. |
1491 | 406 |
|
1494
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
407 |
x == topX ifFalse:[ |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
408 |
self invertLine. |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
409 |
topX := x. |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
410 |
self invertLine. |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
411 |
] |
1491 | 412 |
! ! |
413 |
||
1494
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
414 |
!DSVLabelView::LineDrag methodsFor:'setup'! |
1491 | 415 |
|
1494
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
416 |
column:aColumn x:x y:y h:h minX:aMinX on:aView |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
417 |
|device point| |
1491 | 418 |
|
1494
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
419 |
column := aColumn. |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
420 |
device := aView device. |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
421 |
rootView := device rootView. |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
422 |
point := device translatePoint:(x@y) from:(aView id) to:(rootView id). |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
423 |
topX := point x. |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
424 |
topY := point y. |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
425 |
botY := topY + h. |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
426 |
minX := aMinX. |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
427 |
startX := topX. |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
428 |
transX := topX - x. |
1491 | 429 |
|
1494
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
430 |
self invertLine. |
1491 | 431 |
! ! |
432 |
||
542 | 433 |
!DSVLabelView class methodsFor:'documentation'! |
434 |
||
435 |
version |
|
1494
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
436 |
^ '$Header: /cvs/stx/stx/libwidg2/DSVLabelView.st,v 1.27 1999-08-29 14:28:56 cg Exp $' |
542 | 437 |
! ! |