376
|
1 |
"
|
|
2 |
COPYRIGHT (c) 1997 by 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 |
|
375
|
14 |
Controller subclass:#ViewForwardingController
|
|
15 |
instanceVariableNames:''
|
|
16 |
classVariableNames:''
|
|
17 |
poolDictionaries:''
|
|
18 |
category:'Interface-Support-Controllers'
|
|
19 |
!
|
|
20 |
|
|
21 |
!ViewForwardingController class methodsFor:'documentation'!
|
|
22 |
|
376
|
23 |
copyright
|
|
24 |
"
|
|
25 |
COPYRIGHT (c) 1997 by eXept Software AG
|
|
26 |
All Rights Reserved
|
|
27 |
|
|
28 |
This software is furnished under a license and may be used
|
|
29 |
only in accordance with the terms of that license and with the
|
|
30 |
inclusion of the above copyright notice. This software may not
|
|
31 |
be provided or otherwise made available to, or used by, any
|
|
32 |
other person. No title to or ownership of the software is
|
|
33 |
hereby transferred.
|
|
34 |
"
|
|
35 |
|
|
36 |
!
|
|
37 |
|
375
|
38 |
documentation
|
|
39 |
"
|
|
40 |
ViewForwardingControllers are dummy controllers, which forward their events
|
|
41 |
to the view.
|
|
42 |
|
|
43 |
These can be used in places where a controller is wanted, but the
|
|
44 |
view does all user interaction - for example, to be able to interact
|
|
45 |
with ST-80 models, which expect the view to have a controller,
|
|
46 |
and access this via: view controller ...
|
|
47 |
|
|
48 |
These are not used by ST/X.
|
|
49 |
|
|
50 |
[author:]
|
|
51 |
Claus Gittinger
|
|
52 |
"
|
|
53 |
|
|
54 |
! !
|
|
55 |
|
|
56 |
!ViewForwardingController methodsFor:'event handling'!
|
|
57 |
|
|
58 |
buttonMultiPress:button x:x y:y
|
|
59 |
"button was pressed again quickly"
|
|
60 |
|
|
61 |
^ view buttonMultiPress:button x:x y:y
|
|
62 |
|
|
63 |
"Created: 17.1.1997 / 22:47:49 / cg"
|
|
64 |
"Modified: 17.1.1997 / 22:49:22 / cg"
|
|
65 |
!
|
|
66 |
|
|
67 |
buttonPress:button x:x y:y
|
|
68 |
"button was pressed"
|
|
69 |
|
|
70 |
^ view buttonPress:button x:x y:y
|
|
71 |
|
|
72 |
"Created: 17.1.1997 / 22:48:31 / cg"
|
|
73 |
"Modified: 17.1.1997 / 22:49:08 / cg"
|
|
74 |
!
|
|
75 |
|
|
76 |
buttonRelease:button x:x y:y
|
|
77 |
"button was released"
|
|
78 |
|
|
79 |
^ view buttonRelease:button x:x y:y
|
|
80 |
|
|
81 |
"Modified: 17.1.1997 / 22:49:02 / cg"
|
|
82 |
!
|
|
83 |
|
|
84 |
keyPress:key x:x y:y
|
|
85 |
"key was pressed"
|
|
86 |
|
|
87 |
^ view keyPress:key x:x y:y
|
|
88 |
|
|
89 |
"Created: 17.1.1997 / 22:49:47 / cg"
|
|
90 |
!
|
|
91 |
|
|
92 |
keyRelease:key x:x y:y
|
|
93 |
"key was released"
|
|
94 |
|
|
95 |
^ view keyRelease:key x:x y:y
|
|
96 |
|
|
97 |
"Created: 17.1.1997 / 22:49:59 / cg"
|
|
98 |
!
|
|
99 |
|
|
100 |
pointerEnter:state x:x y:y
|
|
101 |
"mouse pointer entered my view"
|
|
102 |
|
|
103 |
^ view pointerEnter:state x:x y:y
|
|
104 |
|
|
105 |
"Created: 17.1.1997 / 22:50:14 / cg"
|
|
106 |
!
|
|
107 |
|
|
108 |
pointerLeave:state
|
|
109 |
"mouse pointer left my view"
|
|
110 |
|
|
111 |
^ view pointerLeave:state
|
|
112 |
|
|
113 |
"Created: 17.1.1997 / 22:50:32 / cg"
|
|
114 |
! !
|
|
115 |
|
|
116 |
!ViewForwardingController class methodsFor:'documentation'!
|
|
117 |
|
|
118 |
version
|
376
|
119 |
^ '$Header: /cvs/stx/stx/libview2/ViewForwardingController.st,v 1.2 1997-01-17 21:54:35 cg Exp $'
|
375
|
120 |
! !
|