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