author | Stefan Vogel <sv@exept.de> |
Wed, 11 May 2005 18:36:22 +0200 | |
changeset 2819 | 04c8432b57c8 |
parent 1230 | 1e521b1de695 |
child 3579 | f28e1643b8d1 |
permissions | -rw-r--r-- |
17 | 1 |
" |
2 |
COPYRIGHT (c) 1992 by Claus Gittinger |
|
24 | 3 |
All Rights Reserved |
17 | 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 |
||
2819 | 13 |
"{ Package: 'stx:libwidg2' }" |
14 |
||
49 | 15 |
Slider subclass:#HorizontalSlider |
153 | 16 |
instanceVariableNames:'' |
17 |
classVariableNames:'' |
|
18 |
poolDictionaries:'' |
|
19 |
category:'Views-Interactors' |
|
17 | 20 |
! |
21 |
||
402
db4b13aff9c9
more code moved to superclass
Claus Gittinger <cg@exept.de>
parents:
222
diff
changeset
|
22 |
!HorizontalSlider class methodsFor:'documentation'! |
17 | 23 |
|
24 |
copyright |
|
25 |
" |
|
26 |
COPYRIGHT (c) 1992 by Claus Gittinger |
|
24 | 27 |
All Rights Reserved |
17 | 28 |
|
29 |
This software is furnished under a license and may be used |
|
30 |
only in accordance with the terms of that license and with the |
|
31 |
inclusion of the above copyright notice. This software may not |
|
32 |
be provided or otherwise made available to, or used by, any |
|
33 |
other person. No title to or ownership of the software is |
|
34 |
hereby transferred. |
|
35 |
" |
|
36 |
! |
|
37 |
||
38 |
documentation |
|
39 |
" |
|
40 |
this class implements horizontal sliders. |
|
155 | 41 |
|
42 |
[author:] |
|
43 |
Claus Gittinger |
|
17 | 44 |
" |
45 |
! ! |
|
46 |
||
47 |
!HorizontalSlider methodsFor:'initialization'! |
|
48 |
||
49 |
initialize |
|
1230 | 50 |
orientation := #horizontal. |
17 | 51 |
super initialize. |
49 | 52 |
sliderHeight := (self horizontalPixelPerMillimeter:10) rounded. |
1230 | 53 |
|
54 |
"Modified: / 7.3.1999 / 00:00:47 / cg" |
|
17 | 55 |
! ! |
56 |
||
65 | 57 |
!HorizontalSlider methodsFor:'queries'! |
58 |
||
59 |
preferredExtent |
|
153 | 60 |
"return the views preferredExtent." |
61 |
||
65 | 62 |
|w h| |
63 |
||
222 | 64 |
"/ If I have an explicit preferredExtent .. |
65 |
||
192
e060e80f8e24
care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents:
155
diff
changeset
|
66 |
preferredExtent notNil ifTrue:[ |
e060e80f8e24
care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents:
155
diff
changeset
|
67 |
^ preferredExtent |
e060e80f8e24
care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents:
155
diff
changeset
|
68 |
]. |
e060e80f8e24
care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents:
155
diff
changeset
|
69 |
|
65 | 70 |
w := self class defaultExtent x. |
2819 | 71 |
h := (self verticalPixelPerMillimeter:6) rounded. |
153 | 72 |
|
212
b63b8bf60d88
remember and do not recompute the preferredExtent;
Claus Gittinger <cg@exept.de>
parents:
192
diff
changeset
|
73 |
preferredExtent := w @ h. |
b63b8bf60d88
remember and do not recompute the preferredExtent;
Claus Gittinger <cg@exept.de>
parents:
192
diff
changeset
|
74 |
^ preferredExtent. |
b63b8bf60d88
remember and do not recompute the preferredExtent;
Claus Gittinger <cg@exept.de>
parents:
192
diff
changeset
|
75 |
|
222 | 76 |
"Modified: 19.7.1996 / 20:44:30 / cg" |
65 | 77 |
! ! |
100 | 78 |
|
402
db4b13aff9c9
more code moved to superclass
Claus Gittinger <cg@exept.de>
parents:
222
diff
changeset
|
79 |
!HorizontalSlider class methodsFor:'documentation'! |
100 | 80 |
|
81 |
version |
|
2819 | 82 |
^ '$Header: /cvs/stx/stx/libwidg2/HorizontalSlider.st,v 1.16 2005-05-11 16:36:22 stefan Exp $' |
100 | 83 |
! ! |