author | Claus Gittinger <cg@exept.de> |
Fri, 28 Jun 2019 09:22:40 +0200 | |
changeset 6079 | c61b633da982 |
parent 5943 | 5bd4c8c6ec5f |
child 6104 | fc350a449043 |
permissions | -rw-r--r-- |
5943 | 1 |
"{ Encoding: utf8 }" |
2 |
||
542 | 3 |
" |
4 |
COPYRIGHT (c) 1997 by Claus Gittinger / eXept Software AG |
|
5 |
All Rights Reserved |
|
6 |
||
7 |
This software is furnished under a license and may be used |
|
8 |
only in accordance with the terms of that license and with the |
|
9 |
inclusion of the above copyright notice. This software may not |
|
10 |
be provided or otherwise made available to, or used by, any |
|
11 |
other person. No title to or ownership of the software is |
|
12 |
hereby transferred. |
|
13 |
" |
|
1844 | 14 |
"{ Package: 'stx:libwidg2' }" |
15 |
||
4876 | 16 |
"{ NameSpace: Smalltalk }" |
17 |
||
824 | 18 |
SimpleView subclass:#DSVLabelView |
3774 | 19 |
instanceVariableNames:'dataSet lineDrag columns selection enabled preferredHeight |
20 |
handleCursor tabSpacing opaqueColumnResize verticalLabelSpacing |
|
21 |
indexOfSortColumn reverseSort' |
|
22 |
classVariableNames:'' |
|
23 |
poolDictionaries:'' |
|
24 |
category:'Views-DataSet' |
|
542 | 25 |
! |
26 |
||
1494
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
27 |
Object subclass:#LineDrag |
3774 | 28 |
instanceVariableNames:'topX topY botY column minX startX transX topView color' |
29 |
classVariableNames:'' |
|
30 |
poolDictionaries:'' |
|
31 |
privateIn:DSVLabelView |
|
1491 | 32 |
! |
33 |
||
542 | 34 |
!DSVLabelView class methodsFor:'documentation'! |
35 |
||
36 |
copyright |
|
37 |
" |
|
38 |
COPYRIGHT (c) 1997 by Claus Gittinger / eXept Software AG |
|
39 |
All Rights Reserved |
|
40 |
||
41 |
This software is furnished under a license and may be used |
|
42 |
only in accordance with the terms of that license and with the |
|
43 |
inclusion of the above copyright notice. This software may not |
|
44 |
be provided or otherwise made available to, or used by, any |
|
45 |
other person. No title to or ownership of the software is |
|
46 |
hereby transferred. |
|
47 |
" |
|
48 |
||
49 |
||
50 |
||
51 |
||
52 |
! |
|
53 |
||
54 |
documentation |
|
55 |
" |
|
2789 | 56 |
shows the labels assigned to the column descriptions. |
57 |
Used as the title-part of a DataSetView. |
|
542 | 58 |
|
59 |
[Instance variables:] |
|
60 |
||
1487 | 61 |
dataSet <DSVColumnView> column view which shows the columns |
824 | 62 |
|
1487 | 63 |
selection <Integer or nil> current selected index or nil. |
824 | 64 |
|
1086 | 65 |
enabled <Boolean> if a press action exists on a column |
66 |
entry, this action could be enabled or |
|
67 |
disabled. |
|
68 |
||
1487 | 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 |
||
1940 | 83 |
!DSVLabelView class methodsFor:'accessing'! |
84 |
||
85 |
tabSpacing |
|
86 |
"returns the tab spacing |
|
87 |
" |
|
88 |
^ 2 |
|
89 |
! ! |
|
90 |
||
1844 | 91 |
!DSVLabelView class methodsFor:'defaults'! |
92 |
||
93 |
defaultFont |
|
94 |
^ DSVColumnView defaultFont |
|
95 |
! ! |
|
96 |
||
1487 | 97 |
!DSVLabelView methodsFor:'accessing'! |
824 | 98 |
|
1487 | 99 |
columns:aListOfColumns |
3489
f2f5a8273044
preferredExtent changes & fixes (ubs)
Claus Gittinger <cg@exept.de>
parents:
3467
diff
changeset
|
100 |
"the list of columns changed" |
f2f5a8273044
preferredExtent changes & fixes (ubs)
Claus Gittinger <cg@exept.de>
parents:
3467
diff
changeset
|
101 |
|
2152
6c52408279f9
halts and unused methods removed
Claus Gittinger <cg@exept.de>
parents:
2151
diff
changeset
|
102 |
aListOfColumns = columns ifTrue:[^ self]. |
2150 | 103 |
|
1487 | 104 |
columns := aListOfColumns. |
105 |
preferredHeight := nil. |
|
106 |
selection := nil. |
|
107 |
||
2146 | 108 |
self changed:#columnLayout. |
1525
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
109 |
! |
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
110 |
|
3583 | 111 |
dataSet |
112 |
^ dataSet |
|
113 |
! |
|
114 |
||
3766 | 115 |
indexOfSortColumn |
116 |
^ indexOfSortColumn |
|
117 |
! |
|
118 |
||
1931 | 119 |
opaqueColumnResize |
120 |
^ opaqueColumnResize |
|
121 |
! |
|
122 |
||
123 |
opaqueColumnResize:aBoolean |
|
124 |
opaqueColumnResize := aBoolean |
|
3769 | 125 |
! |
126 |
||
127 |
reverseSort |
|
128 |
^ reverseSort |
|
884 | 129 |
! ! |
130 |
||
824 | 131 |
!DSVLabelView methodsFor:'drawing'! |
132 |
||
1487 | 133 |
invalidate |
2146 | 134 |
(shown) ifTrue:[ |
1487 | 135 |
super invalidate |
1408
1cda0a4fb566
use invalidate... insteat of redraw...
Claus Gittinger <cg@exept.de>
parents:
1269
diff
changeset
|
136 |
] |
824 | 137 |
! |
138 |
||
1487 | 139 |
invalidateItemAt:anIndex |
140 |
"invalidate rectangle assigned to an item at an index |
|
824 | 141 |
" |
1487 | 142 |
|cL xL xR hg| |
143 |
||
2146 | 144 |
(shown) ifTrue:[ |
1487 | 145 |
cL := columns at:anIndex ifAbsent:[^ nil]. |
2146 | 146 |
xL := self xVisibleOfColNr:anIndex. |
1487 | 147 |
xR := xL + cL width. |
148 |
||
149 |
(xL < width and:[xR > 0]) ifTrue:[ |
|
150 |
xL := xL max:0. |
|
151 |
xR := xR min:width. |
|
152 |
hg := height - margin - margin. |
|
153 |
||
154 |
self invalidate:(Rectangle left:xL top:margin width:(xR - xL) height:hg) |
|
155 |
] |
|
156 |
] |
|
1408
1cda0a4fb566
use invalidate... insteat of redraw...
Claus Gittinger <cg@exept.de>
parents:
1269
diff
changeset
|
157 |
! |
562 | 158 |
|
2146 | 159 |
redrawColumnsInX:x y:y width:w height:h |
4522 | 160 |
"redraw a rectangle" |
161 |
||
162 |
|bg fg fgColor bgColor |
|
1487 | 163 |
inset "{ Class:SmallInteger }" |
164 |
maxX "{ Class:SmallInteger }" |
|
1524
b7f986aa45f4
visibility of label; show as button (yes/no)
Claus Gittinger <cg@exept.de>
parents:
1494
diff
changeset
|
165 |
lblH "{ Class:SmallInteger }" |
1487 | 166 |
wt "{ Class:SmallInteger }" |
167 |
x1 "{ Class:SmallInteger }" |
|
168 |
x0 "{ Class:SmallInteger }" |
|
3648 | 169 |
item| |
170 |
||
2146 | 171 |
(shown) ifFalse:[^ self]. |
824 | 172 |
|
4876 | 173 |
bgColor := dataSet labelBackgroundColor. |
5422 | 174 |
gc paint:bgColor. |
175 |
gc fillRectangleX:x y:y width:w height:h. |
|
824 | 176 |
|
1487 | 177 |
columns isEmpty ifTrue:[^ self]. |
178 |
||
4876 | 179 |
fgColor := dataSet labelForegroundColor. |
1487 | 180 |
inset := dataSet horizontalSpacing + 1. |
181 |
maxX := (x + w) min:(width - margin). |
|
1524
b7f986aa45f4
visibility of label; show as button (yes/no)
Claus Gittinger <cg@exept.de>
parents:
1494
diff
changeset
|
182 |
lblH := height - margin - margin. |
859 | 183 |
|
2146 | 184 |
x1 := self xVisibleOfColNr:1. |
824 | 185 |
|
3648 | 186 |
columns keysAndValuesDo:[:eachKey :eachCol| |
187 |
item := eachCol label. |
|
188 |
||
189 |
wt := eachCol width. |
|
1487 | 190 |
x0 := x1. |
191 |
x1 := x1 + wt. |
|
824 | 192 |
|
1487 | 193 |
(x1 > x and:[x0 < maxX]) ifTrue:[ |
1940 | 194 |
|left right rect| |
195 |
||
196 |
left := x0 max:x. |
|
197 |
right := x1 min:maxX. |
|
198 |
rect := Rectangle left:left top:y width:(right - left) height:h. |
|
199 |
||
4522 | 200 |
"/ clipRect := nil. |
5410 | 201 |
self clippingBounds:rect. |
1940 | 202 |
|
3648 | 203 |
fg := (item foregroundColor) ? fgColor. |
1487 | 204 |
|
3648 | 205 |
(bg := item backgroundColor) notNil ifTrue:[ |
907 | 206 |
bg ~= bgColor ifTrue:[ |
5422 | 207 |
gc paint:bg. |
208 |
gc fillRectangleX:x0 y:margin width:wt height:lblH. |
|
907 | 209 |
] |
210 |
] ifFalse:[ |
|
211 |
bg := bgColor |
|
212 |
]. |
|
824 | 213 |
|
5422 | 214 |
gc paint:fg on:bg. |
3648 | 215 |
item redrawX:x0 w:wt h:height inset:inset on:self. |
1524
b7f986aa45f4
visibility of label; show as button (yes/no)
Claus Gittinger <cg@exept.de>
parents:
1494
diff
changeset
|
216 |
] |
824 | 217 |
]. |
2146 | 218 |
! |
219 |
||
220 |
redrawEdgesX:x y:yTop width:aWidth height:aHeight |
|
221 |
"redraw the edges in the range |
|
222 |
" |
|
3467 | 223 |
|desc startOfTabX endOfTabX lastColumn has3Dseparators separatorOneDColor |
2146 | 224 |
maxX "{ Class:SmallInteger }" |
225 |
h "{ Class:SmallInteger }" |
|
226 |
x1 "{ Class:SmallInteger }" |
|
227 |
x0 "{ Class:SmallInteger }" |
|
228 |
y0 "{ Class:SmallInteger }" |
|
229 |
absLabelLevel |
|
230 |
| |
|
231 |
||
3464 | 232 |
|
2146 | 233 |
maxX := (x + aWidth) min:(width - margin). |
234 |
absLabelLevel := 1. |
|
235 |
x1 := self xVisibleOfColNr:1. |
|
236 |
||
237 |
y0 := margin. |
|
238 |
h := height - margin - margin. |
|
3464 | 239 |
|
3467 | 240 |
has3Dseparators := dataSet has3Dseparators. |
241 |
separatorOneDColor := dataSet separatorOneDColor. |
|
242 |
lastColumn := columns last. |
|
3464 | 243 |
|
2146 | 244 |
columns keysAndValuesDo:[:aKey :aCol| |
245 |
desc := aCol description. |
|
246 |
x0 := x1. |
|
247 |
x1 := x1 + aCol width. |
|
248 |
||
3464 | 249 |
endOfTabX := nil. |
250 |
||
2146 | 251 |
aKey == selection ifTrue:[ |
3464 | 252 |
startOfTabX notNil ifTrue:[ endOfTabX := x0 ]. |
253 |
||
2146 | 254 |
(x1 > x and:[x0 < maxX]) ifTrue:[ |
3464 | 255 |
dataSet drawEdgesAtX:x0 y:y0 width:(x1 - x0) height:h level:-1 on:self. |
2146 | 256 |
]. |
3464 | 257 |
|
2146 | 258 |
] ifFalse:[ |
3464 | 259 |
desc labelHasButtonLayout ifTrue:[ |
3466 | 260 |
startOfTabX isNil ifTrue:[ startOfTabX := x0 ]. |
261 |
||
3464 | 262 |
(desc== lastColumn or:[desc labelIsPartOfGroup not]) ifTrue:[ |
263 |
endOfTabX := x1. |
|
264 |
] |
|
265 |
] ifFalse:[ |
|
266 |
startOfTabX notNil ifTrue:[ |
|
267 |
endOfTabX := x0. |
|
268 |
]. |
|
269 |
]. |
|
2146 | 270 |
]. |
3464 | 271 |
endOfTabX notNil ifTrue:[ |
272 |
startOfTabX isNil ifTrue:[ startOfTabX := x0 ]. |
|
273 |
||
274 |
startOfTabX < endOfTabX ifTrue:[ |
|
275 |
(endOfTabX > x and:[startOfTabX < maxX]) ifTrue:[ |
|
276 |
has3Dseparators ifTrue:[ |
|
277 |
dataSet drawEdgesAtX:startOfTabX y:y0 width:(endOfTabX - startOfTabX) height:h level:absLabelLevel on:self. |
|
278 |
] ifFalse:[ |
|
5422 | 279 |
gc paint:separatorOneDColor. |
280 |
gc displayLineFromX:endOfTabX-1 y:0 toX:endOfTabX-1 y:h. |
|
3464 | 281 |
]. |
282 |
]. |
|
2146 | 283 |
]. |
3464 | 284 |
startOfTabX := nil. |
285 |
]. |
|
2146 | 286 |
]. |
287 |
||
3464 | 288 |
has3Dseparators ifTrue:[ |
289 |
x1 < (maxX - absLabelLevel - absLabelLevel - 3) ifTrue:[ |
|
290 |
dataSet |
|
291 |
drawEdgesAtX:x1 y:y0 |
|
292 |
width:(width"-margin"-x1"-absLabelLevel") height:h |
|
293 |
level:absLabelLevel on:self |
|
294 |
]. |
|
3467 | 295 |
] ifFalse:[ |
296 |
h := h - 1. |
|
5422 | 297 |
gc paint:separatorOneDColor. |
298 |
gc displayLineFromX:x y:h toX:(x + aWidth) y:h. |
|
2146 | 299 |
]. |
300 |
! |
|
301 |
||
4162 | 302 |
redrawX:xArg y:y width:wArg height:h |
303 |
|savClip x w | |
|
2146 | 304 |
|
3694
8a9158be10d7
dont do a super redraw - it clears what has just been drawn
Claus Gittinger <cg@exept.de>
parents:
3648
diff
changeset
|
305 |
shown ifFalse:[^ self]. |
2146 | 306 |
|
4162 | 307 |
x := xArg. |
2146 | 308 |
w := wArg. |
4162 | 309 |
|
2146 | 310 |
self redrawColumnsInX:x y:y width:w height:h. |
4162 | 311 |
columns size == 0 ifTrue:[ ^ self ]. |
312 |
||
4522 | 313 |
savClip := gc clippingBoundsOrNil. |
2146 | 314 |
|
4162 | 315 |
dataSet has3Dseparators ifTrue:[ | eoXlastCol | |
316 |
eoXlastCol := self xVisibleOfColNr:( columns size + 1). |
|
317 |
x >= eoXlastCol ifTrue:[ |
|
318 |
w := w +( x - eoXlastCol ). |
|
319 |
x := eoXlastCol. |
|
320 |
]. |
|
321 |
]. |
|
5189 | 322 |
self clippingBounds:(Rectangle left:x top:margin width:w height:height-margin-margin). |
4162 | 323 |
|
324 |
xArg > x ifTrue:[ |
|
5422 | 325 |
gc paint:(dataSet backgroundColor). |
326 |
gc fillRectangleX:x y:y width:w height:h. |
|
4162 | 327 |
]. |
328 |
self redrawEdgesX:x y:y width:w height:h. |
|
5189 | 329 |
self clippingBounds:savClip. |
637 | 330 |
! ! |
331 |
||
2820 | 332 |
!DSVLabelView methodsFor:'enumerating columns'! |
333 |
||
334 |
columnsDo:aOneArgBlock |
|
335 |
"evaluate the argument, aOneArgBlock for every column" |
|
336 |
||
337 |
columns do:aOneArgBlock |
|
338 |
! ! |
|
339 |
||
637 | 340 |
!DSVLabelView methodsFor:'event handling'! |
542 | 341 |
|
1491 | 342 |
buttonMotion:state x:x y:y |
1585
b4f60b1a025b
fixed handle-fetch detection (handle is now easier to catch)
Claus Gittinger <cg@exept.de>
parents:
1525
diff
changeset
|
343 |
"mouse-button was moved; |
1491 | 344 |
redraw thumb at its new position and, if scroll-mode is asynchronous, |
345 |
the scroll action is performed |
|
346 |
" |
|
3216
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
347 |
|colNr x1 col| |
1525
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
348 |
|
1958 | 349 |
state = 0 ifTrue:[ |
350 |
lineDrag := nil. |
|
351 |
]. |
|
352 |
||
1525
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
353 |
lineDrag notNil ifTrue:[ |
1932 | 354 |
(opaqueColumnResize ? (UserPreferences current opaqueTableColumnResizing == true)) ifTrue:[ |
1939 | 355 |
lineDrag moveToX:x. |
356 |
dataSet changeWidthOfColumn:lineDrag column deltaX:lineDrag deltaX. |
|
357 |
lineDrag resetDeltaX. |
|
358 |
] ifFalse:[ |
|
3537 | 359 |
lineDrag invertLinesMovingToX:x. |
1931 | 360 |
]. |
361 |
^ self. |
|
1525
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
362 |
]. |
1491 | 363 |
|
1585
b4f60b1a025b
fixed handle-fetch detection (handle is now easier to catch)
Claus Gittinger <cg@exept.de>
parents:
1525
diff
changeset
|
364 |
"/ in the resize area ? |
3216
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
365 |
colNr := self xVisibleToColNr:(x-tabSpacing). |
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
366 |
colNr notNil ifTrue:[ |
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
367 |
col := columns at:colNr. |
1937 | 368 |
|
3216
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
369 |
(col notNil and:[col isResizeable]) ifTrue:[ |
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
370 |
x1 := self xVisibleOfColNr:(colNr + 1). |
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
371 |
(x between:(x1-tabSpacing) and:(x1+tabSpacing)) |
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
372 |
"/ x + tabSpacing > x1 |
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
373 |
ifTrue:[ |
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
374 |
self cursor:handleCursor. |
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
375 |
^ self |
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
376 |
]. |
1585
b4f60b1a025b
fixed handle-fetch detection (handle is now easier to catch)
Claus Gittinger <cg@exept.de>
parents:
1525
diff
changeset
|
377 |
]. |
1525
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
378 |
]. |
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
379 |
self cursor:(Cursor normal) |
3212 | 380 |
|
3216
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
381 |
"Modified: / 26-03-2007 / 15:20:27 / cg" |
1491 | 382 |
! |
383 |
||
637 | 384 |
buttonPress:button x:x y:y |
824 | 385 |
"handle a button press event; checks whether the item under the mouse |
386 |
is selectable. If true, the selection is set to the item. |
|
637 | 387 |
" |
3216
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
388 |
|x1 colNr col| |
1491 | 389 |
|
2146 | 390 |
(enabled and:[shown]) ifFalse:[ |
1491 | 391 |
^ self |
392 |
]. |
|
393 |
||
1585
b4f60b1a025b
fixed handle-fetch detection (handle is now easier to catch)
Claus Gittinger <cg@exept.de>
parents:
1525
diff
changeset
|
394 |
"/ in the resize area ? |
3216
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
395 |
colNr := self xVisibleToColNr:(x-tabSpacing). |
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
396 |
colNr notNil ifTrue:[ |
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
397 |
col := columns at:colNr. |
1937 | 398 |
col isResizeable ifTrue:[ |
3216
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
399 |
x1 := self xVisibleOfColNr:(colNr + 1). |
3212 | 400 |
(x between:(x1-tabSpacing) and:(x1+tabSpacing)) ifTrue:[ |
3216
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
401 |
col := columns at:colNr ifAbsent:nil. |
1937 | 402 |
self cursor:handleCursor. |
403 |
||
404 |
lineDrag := LineDrag new. |
|
405 |
lineDrag column:col |
|
406 |
x:x |
|
407 |
y:margin |
|
408 |
h:(self height + dataSet height) |
|
409 |
minX:(x1 - col width + col minimumRequiredWidth) |
|
410 |
on:self. |
|
1939 | 411 |
(opaqueColumnResize ? (UserPreferences current opaqueTableColumnResizing == true)) ifFalse:[ |
412 |
lineDrag invertLine. |
|
413 |
]. |
|
3212 | 414 |
^ self |
1937 | 415 |
] |
1525
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
416 |
] |
1491 | 417 |
]. |
1585
b4f60b1a025b
fixed handle-fetch detection (handle is now easier to catch)
Claus Gittinger <cg@exept.de>
parents:
1525
diff
changeset
|
418 |
|
3216
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
419 |
colNr := self xVisibleToColNr:x. |
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
420 |
colNr notNil ifTrue:[ |
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
421 |
col := columns at:colNr. |
1585
b4f60b1a025b
fixed handle-fetch detection (handle is now easier to catch)
Claus Gittinger <cg@exept.de>
parents:
1525
diff
changeset
|
422 |
col label isSelectable ifTrue:[ |
3216
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
423 |
self invalidateItemAt:(selection := colNr) |
3212 | 424 |
]. |
1585
b4f60b1a025b
fixed handle-fetch detection (handle is now easier to catch)
Claus Gittinger <cg@exept.de>
parents:
1525
diff
changeset
|
425 |
]. |
1525
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
426 |
self cursor:(Cursor normal). |
3212 | 427 |
|
3216
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
428 |
"Modified: / 26-03-2007 / 15:21:00 / cg" |
542 | 429 |
! |
430 |
||
637 | 431 |
buttonRelease:button x:x y:y |
824 | 432 |
"handle a button press event; checks whether the item under the mouse |
433 |
is the selected item. If true, the application is informed. |
|
434 |
" |
|
3769 | 435 |
|selected column deltaX colNr| |
824 | 436 |
|
1525
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
437 |
self cursor:(Cursor normal). |
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
438 |
|
1487 | 439 |
selection isNil ifTrue:[ |
1933 | 440 |
lineDrag notNil ifTrue:[ |
1939 | 441 |
(opaqueColumnResize ? (UserPreferences current opaqueTableColumnResizing == true)) ifFalse:[ |
2150 | 442 |
lineDrag invertLine. |
1932 | 443 |
column := lineDrag column. |
444 |
deltaX := lineDrag deltaX. |
|
1491 | 445 |
|
1932 | 446 |
deltaX abs > 0 "2" ifTrue:[ |
447 |
dataSet changeWidthOfColumn:column deltaX:deltaX |
|
448 |
] |
|
449 |
]. |
|
1933 | 450 |
lineDrag := nil. |
4428 | 451 |
^ self. |
1491 | 452 |
]. |
3774 | 453 |
|
3769 | 454 |
((colNr := dataSet xVisibleToColNr:x) notNil |
455 |
and:[ (column := columns at:colNr) notNil |
|
456 |
and:[ column label isSortable ]]) ifTrue:[ |
|
457 |
indexOfSortColumn == colNr ifTrue:[ |
|
458 |
reverseSort := (reverseSort ? false) not |
|
459 |
] ifFalse:[ |
|
460 |
reverseSort := false. |
|
461 |
indexOfSortColumn := colNr. |
|
462 |
]. |
|
3774 | 463 |
self invalidateItemAt:colNr. |
464 |
dataSet updateList. |
|
3769 | 465 |
]. |
466 |
^ self. |
|
1085 | 467 |
]. |
3769 | 468 |
|
469 |
colNr := self xVisibleToSelectionIndex:x. |
|
470 |
selected := (colNr == selection). |
|
471 |
colNr := selection. |
|
1487 | 472 |
selection := nil. |
1085 | 473 |
|
3769 | 474 |
self invalidateItemAt:colNr. |
1487 | 475 |
|
476 |
selected ifTrue:[ |
|
3774 | 477 |
self sendClickMsgForColumnNr:colNr |
1085 | 478 |
] |
1525
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
479 |
! |
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
480 |
|
5562 | 481 |
fontChanged |
482 |
"invoked after the font has changed" |
|
483 |
preferredHeight := nil. |
|
484 |
columns do:[:each| each label fontChangedOn:self]. |
|
485 |
! |
|
486 |
||
487 |
mouseWheelZoom:amount |
|
488 |
^ dataSet mouseWheelZoom:amount |
|
489 |
! |
|
490 |
||
1525
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
491 |
pointerLeave:state |
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
492 |
"mouse left view - restore cursor. |
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
493 |
" |
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
494 |
self sensor anyButtonPressed ifFalse:[ |
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
495 |
self cursor:(Cursor normal) |
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
496 |
]. |
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
497 |
|
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
498 |
|
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
499 |
|
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
500 |
! |
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
501 |
|
3774 | 502 |
sendClickMsgForColumnNr:colNr |
503 |
"inform the receiver of a button release notification" |
|
504 |
||
505 |
|receiver col description labelActionSelector| |
|
506 |
||
507 |
receiver := self application. |
|
508 |
receiver isNil ifTrue:[^ self]. |
|
509 |
||
510 |
col := columns at:colNr. |
|
511 |
description := col description. |
|
512 |
||
513 |
(labelActionSelector := description labelActionSelector) notNil ifTrue:[ |
|
514 |
receiver perform:labelActionSelector withOptionalArgument:(description labelActionArgument) and:colNr |
|
515 |
]. |
|
516 |
! |
|
517 |
||
1525
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
518 |
xVisibleToColNr:x |
3212 | 519 |
"returns the column number for a physical x position. |
5078 | 520 |
Returns nil if x is beyond the last column." |
3212 | 521 |
|
1525
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
522 |
|x0 x1| |
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
523 |
|
2146 | 524 |
x1 := self xVisibleOfColNr:1. |
1525
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
525 |
|
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
526 |
columns keysAndValuesDo:[:index :aCol| |
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
527 |
x0 := x1. |
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
528 |
x1 := x0 + aCol width. |
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
529 |
|
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
530 |
(x1 > x and:[x0 < x]) ifTrue:[ |
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
531 |
^ index |
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
532 |
] |
1ab7703b29a9
change cursor if lineDrag is enabled
Claus Gittinger <cg@exept.de>
parents:
1524
diff
changeset
|
533 |
]. |
3216
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
534 |
^ nil |
3212 | 535 |
|
3216
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
536 |
"Modified: / 26-03-2007 / 15:21:37 / cg" |
824 | 537 |
! ! |
538 |
||
3188 | 539 |
!DSVLabelView methodsFor:'focus handling'! |
540 |
||
541 |
canTab |
|
542 |
^ false |
|
543 |
! |
|
544 |
||
545 |
wantsFocusWithButtonPress |
|
546 |
"never wants the focus - view which keeps the labels |
|
547 |
" |
|
548 |
^ false |
|
549 |
! ! |
|
550 |
||
3214 | 551 |
!DSVLabelView methodsFor:'help'! |
552 |
||
5674 | 553 |
helpTextAt:aPoint |
3214 | 554 |
"return the helpText for aPoint (i.e. when mouse-pointer is moved over an item)." |
555 |
||
556 |
|colNr col| |
|
557 |
||
558 |
columns isEmpty ifTrue:[^ nil]. |
|
559 |
colNr := self xVisibleToColNr:aPoint x. |
|
3216
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
560 |
colNr notNil ifTrue:[ |
3214 | 561 |
col := columns at:colNr. |
3523
26c2bafdd0fb
separate activeHelp for labels
Claus Gittinger <cg@exept.de>
parents:
3489
diff
changeset
|
562 |
^ col activeHelpTextForLabel. |
3214 | 563 |
]. |
564 |
^ nil |
|
565 |
||
566 |
"Created: / 26-03-2007 / 13:43:20 / cg" |
|
3216
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
567 |
"Modified: / 26-03-2007 / 15:21:07 / cg" |
3214 | 568 |
! ! |
569 |
||
2146 | 570 |
!DSVLabelView methodsFor:'initialization'! |
571 |
||
572 |
initStyle |
|
2924 | 573 |
<resource: #style (#'dataSet.labelView.level' |
574 |
#'dataSet.labelView.verticalSpace' |
|
575 |
)> |
|
576 |
||
2146 | 577 |
super initStyle. |
578 |
||
4990 | 579 |
handleCursor := (VariablePanel cursorForOrientation:#horizontal onDevice: device) onDevice: device. |
5238 | 580 |
gc font:self class defaultFont. |
2146 | 581 |
"/ self level:0. |
2924 | 582 |
self level:(styleSheet at:#'dataSet.labelView.level' default:-1). |
583 |
verticalLabelSpacing := (styleSheet at:#'dataSet.labelView.verticalSpace' default:2). |
|
2146 | 584 |
! |
585 |
||
586 |
initialize |
|
587 |
super initialize. |
|
588 |
"/ super level:(self defaultLevel). |
|
589 |
||
590 |
enabled := true. |
|
591 |
columns := #(). |
|
592 |
tabSpacing := self class tabSpacing. |
|
593 |
||
594 |
self enableMotionEvents. |
|
595 |
! ! |
|
596 |
||
824 | 597 |
!DSVLabelView methodsFor:'instance creation'! |
598 |
||
599 |
for:aColumnView |
|
600 |
"initialization |
|
601 |
" |
|
1491 | 602 |
dataSet := aColumnView. |
2146 | 603 |
"/ self level:(dataSet level). |
604 |
"/ self borderWidth:(dataSet borderWidth). |
|
1085 | 605 |
! |
606 |
||
1487 | 607 |
realize |
608 |
"recompute contents and fit columns to view |
|
609 |
" |
|
610 |
self bitGravity:#NorthWest. |
|
611 |
super realize. |
|
824 | 612 |
! ! |
613 |
||
1487 | 614 |
!DSVLabelView methodsFor:'queries'! |
824 | 615 |
|
3769 | 616 |
columnIndexOfDescription:aColumnDescription |
617 |
^ columns findFirst:[:col | col description == aColumnDescription] |
|
618 |
! |
|
619 |
||
5943 | 620 |
computePreferredExtent |
621 |
^ 100 @ self preferredHeight |
|
622 |
||
623 |
"Created: / 09-11-2018 / 19:50:18 / Claus Gittinger" |
|
624 |
! |
|
625 |
||
1487 | 626 |
enabled |
627 |
"true, if widget is enabled |
|
628 |
" |
|
629 |
^ enabled |
|
630 |
! |
|
631 |
||
5446 | 632 |
enabled:aBoolean |
633 |
"true, if widget is enabled" |
|
634 |
||
635 |
enabled := aBoolean. |
|
636 |
||
637 |
"Modified (comment): / 04-02-2017 / 21:31:52 / cg" |
|
1487 | 638 |
! |
639 |
||
3766 | 640 |
indexOfLabel:aLabel |
641 |
^ columns findFirst:[:col | col label == aLabel]. |
|
642 |
! |
|
643 |
||
2146 | 644 |
preferredHeight |
3489
f2f5a8273044
preferredExtent changes & fixes (ubs)
Claus Gittinger <cg@exept.de>
parents:
3467
diff
changeset
|
645 |
|maxLabelHeight| |
2146 | 646 |
|
647 |
preferredHeight notNil ifTrue:[ |
|
648 |
^ preferredHeight |
|
649 |
]. |
|
1487 | 650 |
|
3489
f2f5a8273044
preferredExtent changes & fixes (ubs)
Claus Gittinger <cg@exept.de>
parents:
3467
diff
changeset
|
651 |
maxLabelHeight := |
f2f5a8273044
preferredExtent changes & fixes (ubs)
Claus Gittinger <cg@exept.de>
parents:
3467
diff
changeset
|
652 |
columns inject:0 into:[:maxSoFar :col | (col label preferredHeight) max:maxSoFar ]. |
f2f5a8273044
preferredExtent changes & fixes (ubs)
Claus Gittinger <cg@exept.de>
parents:
3467
diff
changeset
|
653 |
|
4621 | 654 |
^ ((self margin + verticalLabelSpacing) * 2) + maxLabelHeight |
2146 | 655 |
! |
656 |
||
657 |
xVisibleOfColNr:colNr |
|
658 |
"/ must adjust, because dataset includes its own margin, which might be different from ours |
|
659 |
||
660 |
^ (dataSet xVisibleOfColNr:colNr) - dataSet margin + margin |
|
824 | 661 |
! |
662 |
||
1487 | 663 |
xVisibleToSelectionIndex:x |
664 |
"returns the column number assigned to a physical x or nil. If |
|
665 |
the column exists but is not selectable nil is returned. |
|
824 | 666 |
" |
3216
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
667 |
|
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
668 |
|colNr column| |
824 | 669 |
|
2146 | 670 |
(shown and:[enabled]) ifTrue:[ |
3216
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
671 |
((colNr := dataSet xVisibleToColNr:x) notNil |
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
672 |
and:[(column := columns at:colNr) notNil |
1487 | 673 |
and:[column label isSelectable]] |
674 |
) ifTrue:[ |
|
3216
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
675 |
^ colNr |
1487 | 676 |
] |
824 | 677 |
]. |
1487 | 678 |
^ nil |
3216
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
679 |
|
18f104700621
xVisibleToSelectionIndex:x different return value confusion
Claus Gittinger <cg@exept.de>
parents:
3214
diff
changeset
|
680 |
"Modified: / 26-03-2007 / 15:21:27 / cg" |
824 | 681 |
! ! |
682 |
||
1487 | 683 |
!DSVLabelView methodsFor:'scrolling'! |
824 | 684 |
|
1487 | 685 |
copyFromX:x0 y:y0 toX:x1 y:y1 width:w invalidateX:leftX |
824 | 686 |
|
2146 | 687 |
(shown) ifFalse:[^ self]. |
824 | 688 |
|
1487 | 689 |
(self sensor hasDamageFor:self) ifTrue:[ |
690 |
self invalidate |
|
691 |
] ifFalse:[ |
|
692 |
self copyFrom:self x:x0 y:y0 toX:x1 y:y1 width:w height:height async:false. |
|
693 |
self invalidate:(Rectangle left:leftX top:0 width:(width - w) height:height) |
|
694 |
repairNow:true |
|
695 |
] |
|
824 | 696 |
! ! |
697 |
||
1494
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
698 |
!DSVLabelView::LineDrag methodsFor:'accessing'! |
1491 | 699 |
|
700 |
column |
|
701 |
"return the value of the instance variable 'column' (automatically generated)" |
|
702 |
||
1931 | 703 |
^ column |
704 |
! |
|
1491 | 705 |
|
706 |
deltaX |
|
707 |
"returns the distance x between the start and end action |
|
708 |
" |
|
1494
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
709 |
^ topX - startX |
1931 | 710 |
! |
711 |
||
712 |
resetDeltaX |
|
713 |
startX := topX |
|
1491 | 714 |
! ! |
715 |
||
1494
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
716 |
!DSVLabelView::LineDrag methodsFor:'dragging'! |
1491 | 717 |
|
1494
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
718 |
invertLine |
3537 | 719 |
"invert current line |
1494
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
720 |
" |
3537 | 721 |
self invertLinesMovingToX:nil. |
722 |
! |
|
2027
e61da28e7ffc
use new #translatePoint:fromView:toView:
Claus Gittinger <cg@exept.de>
parents:
1959
diff
changeset
|
723 |
|
3537 | 724 |
invertLinesMovingToX:viewX |
725 |
"invert current line |
|
726 |
if x notNil than change x position and invert new line" |
|
1939 | 727 |
|
3537 | 728 |
topView clippedByChildren:false. |
1491 | 729 |
|
3537 | 730 |
topView xoring:[ |
731 |
topView paint:color. |
|
732 |
topView lineWidth:2. |
|
733 |
topView displayLineFromX:topX y:topY toX:topX y:botY. |
|
2027
e61da28e7ffc
use new #translatePoint:fromView:toView:
Claus Gittinger <cg@exept.de>
parents:
1959
diff
changeset
|
734 |
|
3537 | 735 |
viewX notNil ifTrue:[ |
736 |
self moveToX:viewX. |
|
737 |
topView displayLineFromX:topX y:topY toX:topX y:botY. |
|
738 |
]. |
|
739 |
topView flush |
|
740 |
]. |
|
741 |
topView clippedByChildren:true. |
|
1491 | 742 |
! |
743 |
||
1494
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
744 |
moveToX:viewX |
1939 | 745 |
topX := (minX max:viewX) + transX. |
1491 | 746 |
! ! |
747 |
||
1494
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
748 |
!DSVLabelView::LineDrag methodsFor:'setup'! |
1491 | 749 |
|
1494
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
750 |
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
|
751 |
|device point| |
1491 | 752 |
|
3537 | 753 |
column := aColumn. |
754 |
topView := aView topView. |
|
755 |
device := topView device. |
|
756 |
color := Color colorId:(device blackpixel bitXor:device whitepixel). |
|
757 |
point := device translatePoint:(x@y) fromView:aView toView:topView. |
|
758 |
||
1494
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
759 |
topX := point x. |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
760 |
topY := point y. |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
761 |
botY := topY + h. |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
762 |
minX := aMinX. |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
763 |
startX := topX. |
096845be5d75
draw tabulatorLine on the tootView; do not use a SimpleView
Claus Gittinger <cg@exept.de>
parents:
1491
diff
changeset
|
764 |
transX := topX - x. |
1491 | 765 |
! ! |
766 |
||
542 | 767 |
!DSVLabelView class methodsFor:'documentation'! |
768 |
||
769 |
version |
|
4876 | 770 |
^ '$Header$' |
3766 | 771 |
! |
772 |
||
773 |
version_CVS |
|
4876 | 774 |
^ '$Header$' |
542 | 775 |
! ! |
4162 | 776 |