author | Claus Gittinger <cg@exept.de> |
Tue, 24 Feb 2015 16:46:36 +0100 | |
changeset 5282 | 382e6cfb447d |
parent 174 | d80a6cc3f9b2 |
permissions | -rw-r--r-- |
118 | 1 |
" |
2 |
COPYRIGHT (c) 1995 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 |
Controller subclass:#ListViewController |
|
14 |
instanceVariableNames:'' |
|
15 |
classVariableNames:'' |
|
16 |
poolDictionaries:'' |
|
17 |
category:'Interface-Support' |
|
18 |
! |
|
19 |
||
20 |
!ListViewController class methodsFor:'documentation'! |
|
21 |
||
22 |
copyright |
|
23 |
" |
|
24 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
25 |
All Rights Reserved |
|
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 |
version |
|
174
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
37 |
^ '$Header: /cvs/stx/stx/libwidg/ListViewController.st,v 1.2 1995-11-11 16:21:22 cg Exp $' |
118 | 38 |
! |
39 |
||
40 |
documentation |
|
41 |
" |
|
42 |
a very simple controller: only handles some keys to pageup/down |
|
43 |
the view. |
|
44 |
" |
|
45 |
! ! |
|
46 |
||
47 |
!ListViewController methodsFor:'event processing'! |
|
48 |
||
49 |
keyPress:key x:x y:y |
|
50 |
"a key was pressed - handle page-keys here" |
|
51 |
||
52 |
(key == #Prior) ifTrue: [^ view pageUp]. |
|
53 |
(key == #Next) ifTrue: [^ view pageDown]. |
|
54 |
||
55 |
(key == #Ctrlb) ifTrue:[^ view pageUp]. |
|
56 |
(key == #Ctrlf) ifTrue:[^ view pageDown]. |
|
57 |
(key == #Ctrld) ifTrue:[^ view halfPageDown]. |
|
58 |
(key == #Ctrlu) ifTrue:[^ view halfPageUp]. |
|
59 |
||
60 |
(key == #ScrollUp) ifTrue:[^ view scrollUp]. |
|
61 |
(key == #ScrollDown) ifTrue:[^ view scrollDown]. |
|
62 |
||
63 |
super keyPress:key x:x y:y |
|
64 |
! ! |
|
65 |