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 |
|
49
|
13 |
Slider subclass:#HorizontalSlider
|
153
|
14 |
instanceVariableNames:''
|
|
15 |
classVariableNames:''
|
|
16 |
poolDictionaries:''
|
|
17 |
category:'Views-Interactors'
|
17
|
18 |
!
|
|
19 |
|
|
20 |
!HorizontalSlider class methodsFor:'documentation'!
|
|
21 |
|
|
22 |
copyright
|
|
23 |
"
|
|
24 |
COPYRIGHT (c) 1992 by Claus Gittinger
|
24
|
25 |
All Rights Reserved
|
17
|
26 |
|
|
27 |
This software is furnished under a license and may be used
|
|
28 |
only in accordance with the terms of that license and with the
|
|
29 |
inclusion of the above copyright notice. This software may not
|
|
30 |
be provided or otherwise made available to, or used by, any
|
|
31 |
other person. No title to or ownership of the software is
|
|
32 |
hereby transferred.
|
|
33 |
"
|
|
34 |
!
|
|
35 |
|
|
36 |
documentation
|
|
37 |
"
|
|
38 |
this class implements horizontal sliders.
|
|
39 |
"
|
|
40 |
! !
|
|
41 |
|
|
42 |
!HorizontalSlider methodsFor:'initialization'!
|
|
43 |
|
|
44 |
initialize
|
|
45 |
super initialize.
|
49
|
46 |
sliderHeight := (self horizontalPixelPerMillimeter:10) rounded.
|
|
47 |
orientation := #horizontal
|
17
|
48 |
! !
|
|
49 |
|
65
|
50 |
!HorizontalSlider methodsFor:'queries'!
|
|
51 |
|
|
52 |
preferredExtent
|
153
|
53 |
"return the views preferredExtent."
|
|
54 |
|
65
|
55 |
|w h|
|
|
56 |
|
|
57 |
w := self class defaultExtent x.
|
|
58 |
h := (device verticalPixelPerMillimeter asFloat * 6) rounded.
|
|
59 |
^ w @ h.
|
153
|
60 |
|
|
61 |
"Modified: 23.4.1996 / 00:15:48 / cg"
|
65
|
62 |
! !
|
100
|
63 |
|
|
64 |
!HorizontalSlider class methodsFor:'documentation'!
|
|
65 |
|
|
66 |
version
|
153
|
67 |
^ '$Header: /cvs/stx/stx/libwidg2/HorizontalSlider.st,v 1.9 1996-04-22 22:19:53 cg Exp $'
|
100
|
68 |
! !
|