author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Wed, 29 Jun 2011 09:40:48 +0200 | |
changeset 5751 | 8f2955555565 |
parent 5275 | 3a10b5e7beef |
child 5752 | 634e5d61abea |
permissions | -rw-r--r-- |
26 | 1 |
" |
2 |
COPYRIGHT (c) 1993 by Claus Gittinger |
|
72 | 3 |
All Rights Reserved |
26 | 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 |
" |
|
3294 | 12 |
"{ Package: 'stx:libview' }" |
13 |
||
5275 | 14 |
Event subclass:#WindowEvent |
15 |
instanceVariableNames:'delegatedFrom consumed' |
|
356 | 16 |
classVariableNames:'' |
17 |
poolDictionaries:'' |
|
5275 | 18 |
category:'Interface-Support-UI' |
11 | 19 |
! |
20 |
||
3680 | 21 |
WindowEvent subclass:#ApplicationEvent |
22 |
instanceVariableNames:'' |
|
23 |
classVariableNames:'' |
|
24 |
poolDictionaries:'' |
|
25 |
privateIn:WindowEvent |
|
26 |
! |
|
27 |
||
3011 | 28 |
WindowEvent subclass:#InputEvent |
29 |
instanceVariableNames:'modifierFlags' |
|
30 |
classVariableNames:'F_CTRL F_ALT F_META F_SHIFT F_BUTTON1 F_BUTTON2 F_BUTTON3' |
|
31 |
poolDictionaries:'' |
|
32 |
privateIn:WindowEvent |
|
33 |
! |
|
34 |
||
3680 | 35 |
WindowEvent::InputEvent subclass:#ButtonEvent |
36 |
instanceVariableNames:'' |
|
37 |
classVariableNames:'' |
|
38 |
poolDictionaries:'' |
|
39 |
privateIn:WindowEvent |
|
40 |
! |
|
41 |
||
42 |
WindowEvent::ButtonEvent subclass:#ButtonPressEvent |
|
43 |
instanceVariableNames:'' |
|
44 |
classVariableNames:'' |
|
45 |
poolDictionaries:'' |
|
46 |
privateIn:WindowEvent |
|
47 |
! |
|
48 |
||
49 |
WindowEvent::ButtonPressEvent subclass:#ButtonMultiPressEvent |
|
50 |
instanceVariableNames:'' |
|
51 |
classVariableNames:'' |
|
52 |
poolDictionaries:'' |
|
53 |
privateIn:WindowEvent |
|
54 |
! |
|
55 |
||
56 |
WindowEvent::ButtonEvent subclass:#ButtonReleaseEvent |
|
57 |
instanceVariableNames:'' |
|
58 |
classVariableNames:'' |
|
59 |
poolDictionaries:'' |
|
60 |
privateIn:WindowEvent |
|
61 |
! |
|
62 |
||
3465 | 63 |
WindowEvent subclass:#ClientEvent |
64 |
instanceVariableNames:'eventData' |
|
65 |
classVariableNames:'' |
|
66 |
poolDictionaries:'' |
|
67 |
privateIn:WindowEvent |
|
68 |
! |
|
69 |
||
3680 | 70 |
WindowEvent subclass:#ConfigureEvent |
71 |
instanceVariableNames:'' |
|
72 |
classVariableNames:'' |
|
73 |
poolDictionaries:'' |
|
74 |
privateIn:WindowEvent |
|
75 |
! |
|
76 |
||
3465 | 77 |
WindowEvent subclass:#DamageEvent |
3297 | 78 |
instanceVariableNames:'' |
79 |
classVariableNames:'' |
|
80 |
poolDictionaries:'' |
|
81 |
privateIn:WindowEvent |
|
82 |
! |
|
83 |
||
3680 | 84 |
WindowEvent::InputEvent subclass:#DropEvent |
85 |
instanceVariableNames:'' |
|
86 |
classVariableNames:'' |
|
87 |
poolDictionaries:'' |
|
88 |
privateIn:WindowEvent |
|
89 |
! |
|
90 |
||
91 |
WindowEvent::InputEvent subclass:#EnterLeaveEvent |
|
92 |
instanceVariableNames:'' |
|
93 |
classVariableNames:'' |
|
94 |
poolDictionaries:'' |
|
95 |
privateIn:WindowEvent |
|
96 |
! |
|
97 |
||
3465 | 98 |
WindowEvent::InputEvent subclass:#FocusEvent |
99 |
instanceVariableNames:'' |
|
100 |
classVariableNames:'' |
|
101 |
poolDictionaries:'' |
|
102 |
privateIn:WindowEvent |
|
103 |
! |
|
104 |
||
3680 | 105 |
WindowEvent::ButtonEvent subclass:#ButtonMotionEvent |
3294 | 106 |
instanceVariableNames:'' |
107 |
classVariableNames:'' |
|
108 |
poolDictionaries:'' |
|
109 |
privateIn:WindowEvent |
|
110 |
! |
|
111 |
||
112 |
WindowEvent::InputEvent subclass:#KeyboardEvent |
|
113 |
instanceVariableNames:'rawKey' |
|
114 |
classVariableNames:'' |
|
115 |
poolDictionaries:'' |
|
116 |
privateIn:WindowEvent |
|
117 |
! |
|
118 |
||
3680 | 119 |
WindowEvent::KeyboardEvent subclass:#KeyReleaseEvent |
120 |
instanceVariableNames:'' |
|
121 |
classVariableNames:'' |
|
122 |
poolDictionaries:'' |
|
123 |
privateIn:WindowEvent |
|
124 |
! |
|
125 |
||
126 |
WindowEvent::KeyboardEvent subclass:#KeyPressEvent |
|
127 |
instanceVariableNames:'' |
|
128 |
classVariableNames:'' |
|
129 |
poolDictionaries:'' |
|
130 |
privateIn:WindowEvent |
|
131 |
! |
|
132 |
||
3376 | 133 |
WindowEvent::InputEvent subclass:#KeyboardFocusEvent |
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
134 |
instanceVariableNames:'' |
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
135 |
classVariableNames:'' |
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
136 |
poolDictionaries:'' |
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
137 |
privateIn:WindowEvent |
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
138 |
! |
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
139 |
|
3465 | 140 |
WindowEvent subclass:#MessageSendEvent |
3376 | 141 |
instanceVariableNames:'' |
142 |
classVariableNames:'' |
|
143 |
poolDictionaries:'' |
|
144 |
privateIn:WindowEvent |
|
145 |
! |
|
146 |
||
4988 | 147 |
WindowEvent::ButtonEvent subclass:#MouseWheelMotionEvent |
148 |
instanceVariableNames:'' |
|
149 |
classVariableNames:'' |
|
150 |
poolDictionaries:'' |
|
151 |
privateIn:WindowEvent |
|
152 |
! |
|
153 |
||
4144 | 154 |
WindowEvent::InputEvent subclass:#NativeWidgetCommandEvent |
4233 | 155 |
instanceVariableNames:'' |
4144 | 156 |
classVariableNames:'' |
157 |
poolDictionaries:'' |
|
158 |
privateIn:WindowEvent |
|
159 |
! |
|
160 |
||
4044 | 161 |
WindowEvent subclass:#NewDamageEvent |
162 |
instanceVariableNames:'' |
|
163 |
classVariableNames:'' |
|
164 |
poolDictionaries:'' |
|
165 |
privateIn:WindowEvent |
|
166 |
! |
|
167 |
||
3758 | 168 |
WindowEvent subclass:#SelectionEvent |
169 |
instanceVariableNames:'' |
|
170 |
classVariableNames:'' |
|
171 |
poolDictionaries:'' |
|
172 |
privateIn:WindowEvent |
|
173 |
! |
|
174 |
||
175 |
WindowEvent::SelectionEvent subclass:#SelectionClearEvent |
|
176 |
instanceVariableNames:'' |
|
177 |
classVariableNames:'' |
|
178 |
poolDictionaries:'' |
|
179 |
privateIn:WindowEvent |
|
180 |
! |
|
181 |
||
3773
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
182 |
WindowEvent subclass:#TerminateEvent |
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
183 |
instanceVariableNames:'' |
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
184 |
classVariableNames:'' |
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
185 |
poolDictionaries:'' |
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
186 |
privateIn:WindowEvent |
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
187 |
! |
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
188 |
|
4817 | 189 |
WindowEvent::InputEvent subclass:#TrayActionEvent |
190 |
instanceVariableNames:'' |
|
191 |
classVariableNames:'' |
|
192 |
poolDictionaries:'' |
|
193 |
privateIn:WindowEvent |
|
194 |
! |
|
195 |
||
3680 | 196 |
WindowEvent subclass:#WindowMapUnmapEvent |
197 |
instanceVariableNames:'' |
|
198 |
classVariableNames:'' |
|
199 |
poolDictionaries:'' |
|
200 |
privateIn:WindowEvent |
|
201 |
! |
|
202 |
||
46 | 203 |
!WindowEvent class methodsFor:'documentation'! |
204 |
||
205 |
copyright |
|
206 |
" |
|
207 |
COPYRIGHT (c) 1993 by Claus Gittinger |
|
72 | 208 |
All Rights Reserved |
46 | 209 |
|
210 |
This software is furnished under a license and may be used |
|
211 |
only in accordance with the terms of that license and with the |
|
212 |
inclusion of the above copyright notice. This software may not |
|
213 |
be provided or otherwise made available to, or used by, any |
|
214 |
other person. No title to or ownership of the software is |
|
215 |
hereby transferred. |
|
216 |
" |
|
217 |
! |
|
218 |
||
219 |
documentation |
|
220 |
" |
|
221 |
Instances of WindowEvent are created for every event coming from |
|
144 | 222 |
the graphics device. |
223 |
Usually, they are enqueued by the event dispatcher process into |
|
224 |
a sensors input queue, and dequeued & processed by a windowGroup process |
|
225 |
in its event loop. |
|
226 |
||
227 |
WindowEvents hold the event type and additional information (such as key, |
|
228 |
x/y coordinates etc). Also, windowEvents know how to send themself to some |
|
229 |
destination. To provide a common (single) place where event dispatching is |
|
1421 | 230 |
implemented, this forwarding is done by a class method here (i.e. not by the |
144 | 231 |
window group itself). |
232 |
||
233 |
The algorithm for event dispatching is: |
|
234 |
||
1982
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
235 |
- if the destination view has a keyboard focus set, |
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
236 |
AND the event is a keyboard event, |
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
237 |
THEN recursively invoke the event dispatching method, |
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
238 |
sending the event to the focus view (or its delegate, as below) |
144 | 239 |
|
1982
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
240 |
- if the destination view has a delegate, |
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
241 |
AND its a keyboard, button or pointer event, |
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
242 |
AND the delegate is interested in that event |
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
243 |
(i.e. implements & responds to #handlesXXX with true) |
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
244 |
THEN send the event to the delegate, passing the original view |
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
245 |
as additional argument |
144 | 246 |
|
1982
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
247 |
- if the view has a nonNil controller, |
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
248 |
AND its a key, button or pointer event, |
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
249 |
THEN send the event to the controller |
144 | 250 |
|
1982
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
251 |
- otherwise send the event to the view |
144 | 252 |
|
253 |
||
254 |
If the view has a non-nil transformation, the event is sent as a |
|
255 |
#deviceXXX message, passing device coordinates. Typically, subclasses |
|
256 |
of view do not redefine this method and the inherited default method |
|
257 |
translates these device coordinates into logical coordinates and resends |
|
258 |
an XXX message. |
|
259 |
If the view has no transformation, the XXX message is directly sent here. |
|
260 |
||
261 |
For example, a 'buttonPress:button x:x y:y' event leads to sending of |
|
262 |
'aView deviceButtonPress:button x:x y:y' which resends |
|
263 |
'aView buttonPress:button x:(x-logical) y:(y-logical)' |
|
264 |
||
320
b7b8dc88fe9f
interest is written with one 'r' (shame on me)
Claus Gittinger <cg@exept.de>
parents:
251
diff
changeset
|
265 |
This allows views which are interested in deviceCoordinates to get them |
144 | 266 |
(by redefining #deviceXXX) and other views to transparently get & use |
267 |
logical coordinates. |
|
268 |
||
269 |
Therefore, for a delegated keyPress messages, the flow is: |
|
270 |
||
1982
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
271 |
sendEvent |
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
272 |
view has delegate |
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
273 |
------> ask delegate via 'handlesKeyPress:key inView:view' |
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
274 |
<------ returns true |
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
275 |
------> 'delegate keyPress:key x:x y:y view:view' |
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
276 |
-----> delegate does whatever it wants to do |
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
277 |
(typically sends the event to some other view) |
144 | 278 |
|
279 |
for an undelegated message: |
|
280 |
||
1982
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
281 |
sendEvent |
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
282 |
view has delegate |
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
283 |
------> ask delegate via 'handlesKeyPress:key inView:view' |
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
284 |
<------ returns false |
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
285 |
view has controller |
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
286 |
------> 'controller keyPress:key x:x y:y' |
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
287 |
view has no controller |
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
288 |
view has transformation |
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
289 |
----> 'view deviceKeyPress:key x:x y:y' |
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
290 |
inverse transform x/y |
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
291 |
----> 'self keyPress:key x:xLogical y:yLogical' |
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
292 |
view has no transformation |
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
293 |
----> 'view keyPress:key x:x y:y' |
598 | 294 |
|
612 | 295 |
[author:] |
1982
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
296 |
Claus Gittinger |
612 | 297 |
|
598 | 298 |
[see also:] |
1982
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
299 |
WindowGroup WindowSensor |
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
300 |
DeviceWorkstation View |
55d0357449c2
oops - pointerLeave events did not return true for the #isPointerXXX query
Claus Gittinger <cg@exept.de>
parents:
1947
diff
changeset
|
301 |
KeyboardMap KeyboardForwarder EventListener |
598 | 302 |
|
46 | 303 |
" |
304 |
! ! |
|
305 |
||
11 | 306 |
!WindowEvent class methodsFor:'instance creation'! |
307 |
||
4960 | 308 |
buttonMotion:buttonAndModifierState x:x y:y view:aView |
3680 | 309 |
^ (ButtonMotionEvent new) |
310 |
for:aView |
|
311 |
type:#buttonMotion:x:y: |
|
4960 | 312 |
arguments:(Array with:buttonAndModifierState with:x with:y) |
3680 | 313 |
! |
314 |
||
315 |
buttonMultiPress:button x:x y:y view:aView |
|
316 |
^ (ButtonMultiPressEvent new) |
|
317 |
for:aView |
|
318 |
type:#buttonMultiPress:x:y: |
|
319 |
arguments:(Array with:button with:x with:y) |
|
320 |
! |
|
321 |
||
322 |
buttonPress:button x:x y:y view:aView |
|
323 |
^ (ButtonPressEvent new) |
|
324 |
for:aView |
|
325 |
type:#buttonPress:x:y: |
|
326 |
arguments:(Array with:button with:x with:y) |
|
327 |
! |
|
328 |
||
329 |
buttonRelease:button x:x y:y view:aView |
|
330 |
^ (ButtonReleaseEvent new) |
|
331 |
for:aView |
|
332 |
type:#buttonRelease:x:y: |
|
333 |
arguments:(Array with:button with:x with:y) |
|
334 |
! |
|
335 |
||
336 |
clientMessageEvent:type format:format eventData:data view:aView |
|
5000
e0ec909988e9
hooks for client and copyData events
Claus Gittinger <cg@exept.de>
parents:
4991
diff
changeset
|
337 |
"this one is only used with X-Windows" |
e0ec909988e9
hooks for client and copyData events
Claus Gittinger <cg@exept.de>
parents:
4991
diff
changeset
|
338 |
|
3680 | 339 |
^ ClientEvent |
340 |
for:aView |
|
341 |
type:#clientMessage:format:eventData: |
|
342 |
arguments:(Array with:type with:format with:data) |
|
343 |
! |
|
344 |
||
345 |
configureX:x y:y width:w height:h view:aView |
|
346 |
^ ConfigureEvent |
|
347 |
for:aView |
|
348 |
type:#configureX:y:width:height: |
|
349 |
arguments:(Array with:x with:y with:w with:h) |
|
350 |
! |
|
351 |
||
5020
f8ba55bc9b95
changed #copyDataEvent:eventData:view:
Claus Gittinger <cg@exept.de>
parents:
5000
diff
changeset
|
352 |
copyDataEvent:parameter eventData:data view:aView |
5000
e0ec909988e9
hooks for client and copyData events
Claus Gittinger <cg@exept.de>
parents:
4991
diff
changeset
|
353 |
"this one is only used with Win32" |
e0ec909988e9
hooks for client and copyData events
Claus Gittinger <cg@exept.de>
parents:
4991
diff
changeset
|
354 |
|
e0ec909988e9
hooks for client and copyData events
Claus Gittinger <cg@exept.de>
parents:
4991
diff
changeset
|
355 |
^ ClientEvent |
e0ec909988e9
hooks for client and copyData events
Claus Gittinger <cg@exept.de>
parents:
4991
diff
changeset
|
356 |
for:aView |
e0ec909988e9
hooks for client and copyData events
Claus Gittinger <cg@exept.de>
parents:
4991
diff
changeset
|
357 |
type:#copyDataEvent:eventData: |
5020
f8ba55bc9b95
changed #copyDataEvent:eventData:view:
Claus Gittinger <cg@exept.de>
parents:
5000
diff
changeset
|
358 |
arguments:(Array with:parameter with:data) |
5000
e0ec909988e9
hooks for client and copyData events
Claus Gittinger <cg@exept.de>
parents:
4991
diff
changeset
|
359 |
! |
e0ec909988e9
hooks for client and copyData events
Claus Gittinger <cg@exept.de>
parents:
4991
diff
changeset
|
360 |
|
3680 | 361 |
coveredBy:coveringSiblingView view:coveredView |
362 |
^ (WindowEvent basicNew) |
|
363 |
for:coveredView |
|
364 |
type:#coveredBy: |
|
365 |
arguments:(Array with:coveringSiblingView) |
|
366 |
! |
|
367 |
||
5751 | 368 |
createWindow:view x:x y:y width:w height:h |
369 |
||
370 |
^ (self basicNew) |
|
371 |
for: view |
|
372 |
type:#createWindowX:y:width:height: |
|
373 |
arguments: (Array with: x with: y with: w with: h) |
|
374 |
||
375 |
"Created: / 30-05-2011 / 19:04:02 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
376 |
"Modified: / 01-06-2011 / 13:05:44 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
377 |
! |
|
378 |
||
244 | 379 |
damageFor:aView rectangle:aRectangle |
380 |
"create and return a new damage Event for aRectangle |
|
381 |
in aView" |
|
11 | 382 |
|
4044 | 383 |
^ DamageEvent for:aView type:#damage arguments:aRectangle |
3680 | 384 |
! |
385 |
||
386 |
destroyedView:aView |
|
387 |
^ (self basicNew) |
|
388 |
for:aView |
|
389 |
type:#destroyed |
|
390 |
! |
|
391 |
||
4459 | 392 |
dropFiles:files view:view position:dropPositionOrNil handle:dropHandleOrNil |
4648
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
393 |
^ self |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
394 |
dropMessage:(self dropType_files) |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
395 |
data:files |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
396 |
view:view |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
397 |
position:dropPositionOrNil |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
398 |
handle:dropHandleOrNil |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
399 |
|
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
400 |
"Modified: / 13-10-2006 / 10:11:47 / cg" |
4456 | 401 |
! |
402 |
||
4459 | 403 |
dropMessage:dropTypeSymbol data:dropValue view:aView position:positionOrNil handle:dropHandleOrNil |
3680 | 404 |
^ DropEvent |
405 |
for:aView |
|
4461 | 406 |
type:#dropMessage:data:position:handle: |
4458 | 407 |
arguments:(Array with:dropTypeSymbol with:dropValue with:positionOrNil with:dropHandleOrNil) |
3680 | 408 |
! |
409 |
||
410 |
focusInView:aView |
|
411 |
^ FocusEvent |
|
412 |
for:aView |
|
413 |
type:#focusIn |
|
414 |
! |
|
415 |
||
416 |
focusOutView:aView |
|
417 |
^ FocusEvent |
|
418 |
for:aView |
|
419 |
type:#focusOut |
|
420 |
! |
|
421 |
||
422 |
keyPress:key rawKey:untranslatedKey |
|
423 |
hasShift:shiftDown ctrl:ctrlDown alt:altDown meta:metaDown |
|
424 |
button1:leftButtonDown button2:middleButtonDown button3:rightButtonDown |
|
425 |
x:x y:y view:aView |
|
244 | 426 |
|
3680 | 427 |
|ev| |
428 |
||
429 |
ev := self keyPress:key x:x y:y view:aView. |
|
430 |
ev rawKey:untranslatedKey. |
|
431 |
ev hasShift:shiftDown ctrl:ctrlDown alt:altDown meta:metaDown |
|
432 |
button1:leftButtonDown button2:middleButtonDown button3:rightButtonDown. |
|
433 |
^ ev |
|
434 |
! |
|
435 |
||
436 |
keyPress:key x:x y:y view:aView |
|
437 |
^ (KeyPressEvent new) |
|
438 |
for:aView |
|
439 |
type:#keyPress:x:y: |
|
440 |
arguments:(Array with:key with:x with:y) |
|
441 |
! |
|
442 |
||
443 |
keyRelease:key rawKey:untranslatedKey |
|
444 |
hasShift:shiftDown ctrl:ctrlDown alt:altDown meta:metaDown |
|
445 |
button1:leftButtonDown button2:middleButtonDown button3:rightButtonDown |
|
446 |
x:x y:y view:aView |
|
447 |
||
448 |
|ev| |
|
449 |
||
450 |
ev := self keyRelease:key x:x y:y view:aView. |
|
451 |
ev rawKey:untranslatedKey. |
|
452 |
ev hasShift:shiftDown ctrl:ctrlDown alt:altDown meta:metaDown |
|
453 |
button1:leftButtonDown button2:middleButtonDown button3:rightButtonDown. |
|
454 |
^ ev |
|
455 |
! |
|
456 |
||
457 |
keyRelease:key x:x y:y view:aView |
|
458 |
^ (KeyReleaseEvent new) |
|
459 |
for:aView |
|
460 |
type:#keyRelease:x:y: |
|
461 |
arguments:(Array with:key with:x with:y) |
|
46 | 462 |
! |
463 |
||
3856
45fccc92d834
Use SynchronousWindoeSensor if no windowGroup
Stefan Vogel <sv@exept.de>
parents:
3773
diff
changeset
|
464 |
keyboardFocus:arg view:aView |
45fccc92d834
Use SynchronousWindoeSensor if no windowGroup
Stefan Vogel <sv@exept.de>
parents:
3773
diff
changeset
|
465 |
|
45fccc92d834
Use SynchronousWindoeSensor if no windowGroup
Stefan Vogel <sv@exept.de>
parents:
3773
diff
changeset
|
466 |
^ KeyboardFocusEvent |
45fccc92d834
Use SynchronousWindoeSensor if no windowGroup
Stefan Vogel <sv@exept.de>
parents:
3773
diff
changeset
|
467 |
for:aView type:#hasKeyboardFocus: arguments:(Array with:arg). |
45fccc92d834
Use SynchronousWindoeSensor if no windowGroup
Stefan Vogel <sv@exept.de>
parents:
3773
diff
changeset
|
468 |
! |
45fccc92d834
Use SynchronousWindoeSensor if no windowGroup
Stefan Vogel <sv@exept.de>
parents:
3773
diff
changeset
|
469 |
|
3680 | 470 |
mappedView:aView |
471 |
^ WindowMapUnmapEvent |
|
472 |
for:aView |
|
473 |
type:#mapped |
|
474 |
! |
|
475 |
||
476 |
messageSend:receiver selector:aSelector arguments:arguments |
|
477 |
^ MessageSendEvent |
|
478 |
for:receiver |
|
479 |
type:aSelector |
|
480 |
arguments:arguments |
|
481 |
! |
|
72 | 482 |
|
3680 | 483 |
mouseWheelMotion:state x:x y:y amount:amount deltaTime:deltaTime view:aView |
4988 | 484 |
^ MouseWheelMotionEvent |
3680 | 485 |
for:aView |
486 |
type:#mouseWheelMotion:x:y:amount:deltaTime: |
|
487 |
arguments:(Array with:state with:x with:y with:amount with:deltaTime). |
|
488 |
! |
|
489 |
||
4233 | 490 |
nativeWidgetCommand:command arguments:argVector view:aView |
4144 | 491 |
^ (NativeWidgetCommandEvent new) |
492 |
for:aView |
|
4233 | 493 |
type:command |
494 |
arguments:argVector |
|
4144 | 495 |
! |
496 |
||
4044 | 497 |
newDamageFor:aView |
498 |
"create and return a new damage Event for aView" |
|
499 |
||
500 |
^ NewDamageEvent for:aView type:#newDamage |
|
501 |
! |
|
502 |
||
3680 | 503 |
pasteFromClipBoard:something view:aView |
504 |
^ (self basicNew) |
|
505 |
for:aView |
|
506 |
type:#pasteFromClipBoard: |
|
507 |
arguments:(Array with:something). |
|
508 |
! |
|
509 |
||
510 |
pointerEnter:state x:x y:y view:aView |
|
511 |
^ EnterLeaveEvent |
|
512 |
for:aView |
|
513 |
type:#pointerEnter:x:y: |
|
514 |
arguments:(Array with:state with:x with:y). |
|
72 | 515 |
! |
516 |
||
3680 | 517 |
pointerLeave:state view:aView |
518 |
^ EnterLeaveEvent |
|
519 |
for:aView |
|
520 |
type:#pointerLeave: |
|
521 |
arguments:(Array with:state). |
|
522 |
! |
|
523 |
||
524 |
postViewCreateNotification:aView |
|
525 |
^ (self basicNew) |
|
526 |
for:aView |
|
527 |
type:#postCreateView |
|
528 |
! |
|
28 | 529 |
|
3680 | 530 |
preViewCreateNotification:aView |
531 |
^ (self basicNew) |
|
532 |
for:aView |
|
533 |
type:#preCreateView |
|
534 |
! |
|
535 |
||
5751 | 536 |
propertyChange:view property:propertyId state:aSymbol time:time |
537 |
^ (self basicNew) |
|
538 |
for: view |
|
539 |
type:#propertyChange:state: |
|
540 |
arguments: (Array with: propertyId with: aSymbol) |
|
541 |
||
542 |
"Created: / 01-06-2011 / 13:36:20 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
543 |
! |
|
544 |
||
3680 | 545 |
saveAndTerminateView:aView |
3773
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
546 |
^ (TerminateEvent basicNew) |
3680 | 547 |
for:aView |
548 |
type:#saveAndTerminate |
|
549 |
! |
|
550 |
||
551 |
terminateView:aView |
|
3773
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
552 |
^ (TerminateEvent basicNew) |
3680 | 553 |
for:aView |
554 |
type:#terminate |
|
555 |
! |
|
556 |
||
4817 | 557 |
trayAction:event arguments:argVector view:aView |
558 |
^ (TrayActionEvent new) |
|
559 |
for:aView |
|
560 |
type:event |
|
561 |
arguments:argVector |
|
562 |
||
563 |
"Created: / 31-10-2007 / 01:23:53 / cg" |
|
564 |
! |
|
565 |
||
3680 | 566 |
unmappedView:aView |
567 |
^ WindowMapUnmapEvent |
|
568 |
for:aView |
|
569 |
type:#unmapped |
|
28 | 570 |
! ! |
571 |
||
4648
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
572 |
!WindowEvent class methodsFor:'constants'! |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
573 |
|
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
574 |
dropType_directory |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
575 |
^ #directory |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
576 |
|
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
577 |
"Created: / 13-10-2006 / 10:08:59 / cg" |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
578 |
! |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
579 |
|
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
580 |
dropType_file |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
581 |
^ #file |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
582 |
|
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
583 |
"Created: / 13-10-2006 / 10:08:52 / cg" |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
584 |
! |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
585 |
|
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
586 |
dropType_files |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
587 |
^ #files |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
588 |
|
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
589 |
"Created: / 13-10-2006 / 10:09:04 / cg" |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
590 |
! |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
591 |
|
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
592 |
dropType_text |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
593 |
^ #text |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
594 |
|
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
595 |
"Created: / 13-10-2006 / 10:09:36 / cg" |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
596 |
! ! |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
597 |
|
3680 | 598 |
!WindowEvent class methodsFor:'instance creation basic'! |
599 |
||
600 |
for:aView type:aSymbol |
|
601 |
"create and return a new windowEvent for sending |
|
602 |
aSymbol-message with no arguments to aView" |
|
603 |
||
3856
45fccc92d834
Use SynchronousWindoeSensor if no windowGroup
Stefan Vogel <sv@exept.de>
parents:
3773
diff
changeset
|
604 |
^ self new for:aView type:aSymbol |
3680 | 605 |
! |
606 |
||
607 |
for:aView type:aSymbol arguments:argArray |
|
608 |
"create and return a new windowEvent for sending |
|
609 |
aSymbol-message with arguments to aView" |
|
610 |
||
3856
45fccc92d834
Use SynchronousWindoeSensor if no windowGroup
Stefan Vogel <sv@exept.de>
parents:
3773
diff
changeset
|
611 |
^ self new for:aView type:aSymbol arguments:argArray |
3680 | 612 |
! |
613 |
||
614 |
new |
|
615 |
self == WindowEvent ifTrue:[ |
|
616 |
'----------------' errorPrint. |
|
617 |
'WindowEvent is abstract - use/add explicit creation message' errorPrintCR. |
|
618 |
thisContext fullPrintAll. |
|
619 |
]. |
|
620 |
^ super new |
|
621 |
! ! |
|
622 |
||
244 | 623 |
!WindowEvent methodsFor:'accessing'! |
624 |
||
3465 | 625 |
consumed |
626 |
"return the value of the instance variable 'consumed' (automatically generated)" |
|
627 |
||
628 |
^ consumed |
|
629 |
! |
|
630 |
||
631 |
consumed:aBoolean |
|
632 |
"set the value of the instance variable 'consumed' (automatically generated)" |
|
633 |
||
634 |
consumed := aBoolean. |
|
635 |
! |
|
636 |
||
3089 | 637 |
delegatedFrom |
638 |
"return the value of the instance variable 'delegatedFrom' (automatically generated)" |
|
639 |
||
3376 | 640 |
^ delegatedFrom |
641 |
! |
|
3089 | 642 |
|
643 |
delegatedFrom:something |
|
644 |
"set the value of the instance variable 'delegatedFrom' (automatically generated)" |
|
645 |
||
3376 | 646 |
delegatedFrom := something. |
647 |
! |
|
3089 | 648 |
|
244 | 649 |
key |
1841 | 650 |
"return the key - nil is returned here. |
651 |
This is redefined in KeyboardEvent." |
|
244 | 652 |
|
653 |
^ nil |
|
1841 | 654 |
|
655 |
"Created: 1.8.1997 / 13:56:21 / cg" |
|
244 | 656 |
! |
657 |
||
658 |
rectangle |
|
659 |
"return the damage rectangle" |
|
660 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
661 |
^ args "consider this a kludge" |
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
662 |
! |
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
663 |
|
244 | 664 |
type |
665 |
"return the type of the event" |
|
666 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
667 |
^ selector |
244 | 668 |
! |
669 |
||
670 |
view |
|
671 |
"return the view, for which the event is for" |
|
672 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
673 |
^ receiver |
244 | 674 |
! |
675 |
||
676 |
view:aView |
|
677 |
"set the view, for which the event is for" |
|
678 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
679 |
receiver := aView |
3089 | 680 |
! |
681 |
||
682 |
x |
|
683 |
"the x coordinate - if any. |
|
684 |
nil returned for all but button- and keyEvents" |
|
685 |
||
686 |
^ nil |
|
687 |
! |
|
688 |
||
689 |
x:ignoredInteger |
|
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
690 |
"set the x coordinate - ignored here. |
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
691 |
only for button- and keyEvents" |
3089 | 692 |
! |
693 |
||
694 |
y |
|
695 |
"the y coordinate - if any. |
|
696 |
nil returned for all but button- and keyEvents" |
|
697 |
||
698 |
^ nil |
|
699 |
! |
|
700 |
||
701 |
y:ignoredInteger |
|
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
702 |
"set the y coordinate - ignored here. |
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
703 |
only for button- and keyEvents" |
244 | 704 |
! ! |
705 |
||
3011 | 706 |
!WindowEvent methodsFor:'dispatching'! |
707 |
||
708 |
dispatchTo:anObject |
|
709 |
"send this event to anObject" |
|
710 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
711 |
^ anObject perform:selector withArguments:args |
3011 | 712 |
! |
713 |
||
714 |
dispatchWithViewArgumentTo:anObject |
|
715 |
"send this event to anObject, and pass an additional view argument" |
|
716 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
717 |
args size = 0 ifTrue:[ |
3011 | 718 |
^ anObject |
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
719 |
perform:(selector , ':') asSymbol |
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
720 |
with:receiver |
3011 | 721 |
]. |
722 |
||
723 |
^ anObject |
|
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
724 |
perform:(selector , 'view:') asSymbol |
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
725 |
withArguments:(args copyWith:receiver) |
3011 | 726 |
! ! |
727 |
||
511
233dabfcc81c
added #displayString (for eventTracing)
Claus Gittinger <cg@exept.de>
parents:
356
diff
changeset
|
728 |
!WindowEvent methodsFor:'printing & storing'! |
233dabfcc81c
added #displayString (for eventTracing)
Claus Gittinger <cg@exept.de>
parents:
356
diff
changeset
|
729 |
|
233dabfcc81c
added #displayString (for eventTracing)
Claus Gittinger <cg@exept.de>
parents:
356
diff
changeset
|
730 |
displayString |
1905 | 731 |
"return a string for display in inspectors etc." |
732 |
||
511
233dabfcc81c
added #displayString (for eventTracing)
Claus Gittinger <cg@exept.de>
parents:
356
diff
changeset
|
733 |
^ self className |
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
734 |
, '(' , selector storeString |
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
735 |
, ' view: ' , receiver className |
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
736 |
, ' args: ' , args displayString |
511
233dabfcc81c
added #displayString (for eventTracing)
Claus Gittinger <cg@exept.de>
parents:
356
diff
changeset
|
737 |
, ')' |
233dabfcc81c
added #displayString (for eventTracing)
Claus Gittinger <cg@exept.de>
parents:
356
diff
changeset
|
738 |
|
233dabfcc81c
added #displayString (for eventTracing)
Claus Gittinger <cg@exept.de>
parents:
356
diff
changeset
|
739 |
"Created: 7.3.1996 / 14:55:50 / cg" |
1905 | 740 |
"Modified: 20.9.1997 / 11:42:11 / cg" |
511
233dabfcc81c
added #displayString (for eventTracing)
Claus Gittinger <cg@exept.de>
parents:
356
diff
changeset
|
741 |
! ! |
233dabfcc81c
added #displayString (for eventTracing)
Claus Gittinger <cg@exept.de>
parents:
356
diff
changeset
|
742 |
|
3879 | 743 |
!WindowEvent methodsFor:'private-accessing'! |
244 | 744 |
|
3680 | 745 |
for:aView type:aSymbol |
746 |
"set the instance variables of the event" |
|
747 |
||
748 |
receiver := aView. |
|
749 |
selector := aSymbol. |
|
4991 | 750 |
args := #(). |
751 |
timeStamp := Timestamp now. |
|
3680 | 752 |
! |
753 |
||
244 | 754 |
for:aView type:aSymbol arguments:argArray |
755 |
"set the instance variables of the event" |
|
756 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
757 |
receiver := aView. |
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
758 |
selector := aSymbol. |
4991 | 759 |
args := argArray. |
760 |
timeStamp := Timestamp now. |
|
244 | 761 |
! ! |
762 |
||
763 |
!WindowEvent methodsFor:'queries'! |
|
764 |
||
1588
8f9468059ef7
keep modifierKey information in keyboardEvents
Claus Gittinger <cg@exept.de>
parents:
1541
diff
changeset
|
765 |
hasAlt |
8f9468059ef7
keep modifierKey information in keyboardEvents
Claus Gittinger <cg@exept.de>
parents:
1541
diff
changeset
|
766 |
"return true, if this is a keyboard event, with ALT pressed" |
8f9468059ef7
keep modifierKey information in keyboardEvents
Claus Gittinger <cg@exept.de>
parents:
1541
diff
changeset
|
767 |
|
8f9468059ef7
keep modifierKey information in keyboardEvents
Claus Gittinger <cg@exept.de>
parents:
1541
diff
changeset
|
768 |
^ false |
8f9468059ef7
keep modifierKey information in keyboardEvents
Claus Gittinger <cg@exept.de>
parents:
1541
diff
changeset
|
769 |
|
8f9468059ef7
keep modifierKey information in keyboardEvents
Claus Gittinger <cg@exept.de>
parents:
1541
diff
changeset
|
770 |
"Created: 12.4.1997 / 11:04:10 / cg" |
8f9468059ef7
keep modifierKey information in keyboardEvents
Claus Gittinger <cg@exept.de>
parents:
1541
diff
changeset
|
771 |
! |
8f9468059ef7
keep modifierKey information in keyboardEvents
Claus Gittinger <cg@exept.de>
parents:
1541
diff
changeset
|
772 |
|
8f9468059ef7
keep modifierKey information in keyboardEvents
Claus Gittinger <cg@exept.de>
parents:
1541
diff
changeset
|
773 |
hasCtrl |
8f9468059ef7
keep modifierKey information in keyboardEvents
Claus Gittinger <cg@exept.de>
parents:
1541
diff
changeset
|
774 |
"return true, if this is a keyboard event, with CTRL pressed" |
8f9468059ef7
keep modifierKey information in keyboardEvents
Claus Gittinger <cg@exept.de>
parents:
1541
diff
changeset
|
775 |
|
8f9468059ef7
keep modifierKey information in keyboardEvents
Claus Gittinger <cg@exept.de>
parents:
1541
diff
changeset
|
776 |
^ false |
8f9468059ef7
keep modifierKey information in keyboardEvents
Claus Gittinger <cg@exept.de>
parents:
1541
diff
changeset
|
777 |
|
8f9468059ef7
keep modifierKey information in keyboardEvents
Claus Gittinger <cg@exept.de>
parents:
1541
diff
changeset
|
778 |
"Created: 12.4.1997 / 11:04:03 / cg" |
8f9468059ef7
keep modifierKey information in keyboardEvents
Claus Gittinger <cg@exept.de>
parents:
1541
diff
changeset
|
779 |
! |
8f9468059ef7
keep modifierKey information in keyboardEvents
Claus Gittinger <cg@exept.de>
parents:
1541
diff
changeset
|
780 |
|
8f9468059ef7
keep modifierKey information in keyboardEvents
Claus Gittinger <cg@exept.de>
parents:
1541
diff
changeset
|
781 |
hasMeta |
8f9468059ef7
keep modifierKey information in keyboardEvents
Claus Gittinger <cg@exept.de>
parents:
1541
diff
changeset
|
782 |
"return true, if this is a keyboard event, with META pressed" |
8f9468059ef7
keep modifierKey information in keyboardEvents
Claus Gittinger <cg@exept.de>
parents:
1541
diff
changeset
|
783 |
|
8f9468059ef7
keep modifierKey information in keyboardEvents
Claus Gittinger <cg@exept.de>
parents:
1541
diff
changeset
|
784 |
^ false |
8f9468059ef7
keep modifierKey information in keyboardEvents
Claus Gittinger <cg@exept.de>
parents:
1541
diff
changeset
|
785 |
|
8f9468059ef7
keep modifierKey information in keyboardEvents
Claus Gittinger <cg@exept.de>
parents:
1541
diff
changeset
|
786 |
"Created: 12.4.1997 / 11:04:16 / cg" |
8f9468059ef7
keep modifierKey information in keyboardEvents
Claus Gittinger <cg@exept.de>
parents:
1541
diff
changeset
|
787 |
! |
8f9468059ef7
keep modifierKey information in keyboardEvents
Claus Gittinger <cg@exept.de>
parents:
1541
diff
changeset
|
788 |
|
1590 | 789 |
hasShift |
790 |
"return true, if this is a keyboard event, with SHIFT pressed" |
|
791 |
||
792 |
^ false |
|
793 |
||
794 |
"Created: 12.4.1997 / 11:30:59 / cg" |
|
795 |
! |
|
796 |
||
5249 | 797 |
targetView |
798 |
"return the view which will eventually handle the event; |
|
799 |
for most events, this is the same as the view, for which the event was |
|
800 |
originally generated. |
|
801 |
Except, if an explicit focus has been assigned (i.e. tabbed into a component), |
|
802 |
AND the event is a keyboard event. In this case, the targetView might be different. |
|
803 |
Notice: this method might return nil, for synthetic (app-related) or display screen related |
|
804 |
events" |
|
805 |
||
806 |
^ self view. |
|
807 |
! ! |
|
808 |
||
809 |
!WindowEvent methodsFor:'testing'! |
|
810 |
||
3680 | 811 |
isApplicationEvent |
812 |
"return true, if this event is application related (i.e. not for a particular view)" |
|
813 |
||
814 |
^ false |
|
815 |
! |
|
816 |
||
244 | 817 |
isButtonEvent |
818 |
"return true, if this event is a button event" |
|
819 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
820 |
^ false |
244 | 821 |
! |
822 |
||
1730 | 823 |
isButtonMotionEvent |
824 |
"return true, if this event is a buttonMotion event" |
|
825 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
826 |
^ false |
1730 | 827 |
|
828 |
"Created: 5.3.1997 / 12:25:43 / cg" |
|
829 |
! |
|
830 |
||
4628 | 831 |
isButtonMultiPressEvent |
832 |
"return true, if this event is a buttonMulti-Press event" |
|
833 |
||
834 |
^ false |
|
835 |
||
836 |
"Created: 5.3.1997 / 12:25:43 / cg" |
|
837 |
! |
|
838 |
||
1420 | 839 |
isButtonPressEvent |
840 |
"return true, if this event is a buttonPress event" |
|
841 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
842 |
^ false |
1420 | 843 |
|
844 |
"Created: 5.3.1997 / 12:25:43 / cg" |
|
845 |
! |
|
846 |
||
3011 | 847 |
isButtonReleaseEvent |
848 |
"return true, if this event is a buttonPress event" |
|
849 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
850 |
^ false |
3011 | 851 |
|
852 |
"Created: 5.3.1997 / 12:25:43 / cg" |
|
853 |
! |
|
854 |
||
2811 | 855 |
isConfigureEvent |
3680 | 856 |
"return true, if this is a window geometry change event" |
2811 | 857 |
|
3680 | 858 |
^ false. |
2811 | 859 |
! |
860 |
||
5751 | 861 |
isCreateWindowEvent |
862 |
"return true, if this event is a CreateWindow event" |
|
863 |
||
864 |
^selector == #createWindowX:y:width:height: |
|
865 |
||
866 |
"Created: / 01-06-2011 / 13:01:05 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
867 |
! |
|
868 |
||
244 | 869 |
isDamage |
870 |
"return true, if this is a damage event" |
|
871 |
||
3680 | 872 |
^ false. |
244 | 873 |
! |
874 |
||
2471 | 875 |
isDamageForView:aView |
3680 | 876 |
"return true, if this is a damage event for a View" |
2471 | 877 |
|
3680 | 878 |
^ false. |
2471 | 879 |
! |
880 |
||
5204
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
881 |
isDelegatedToFocusView |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
882 |
"return true, if this event will be forwarded to a focusView." |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
883 |
|
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
884 |
^ false. |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
885 |
! |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
886 |
|
1420 | 887 |
isFocusEvent |
888 |
"return true, if this event is a focusIn/focusOut event" |
|
889 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
890 |
^ false |
1420 | 891 |
|
892 |
"Created: 5.3.1997 / 12:12:37 / cg" |
|
893 |
! |
|
894 |
||
895 |
isFocusInEvent |
|
896 |
"return true, if this event is a focusIn event" |
|
897 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
898 |
^ false |
1420 | 899 |
|
900 |
"Created: 5.3.1997 / 12:18:10 / cg" |
|
901 |
! |
|
902 |
||
4980 | 903 |
isFocusOutEvent |
904 |
"return true, if this event is a focusOut event" |
|
905 |
||
906 |
^ false |
|
907 |
||
908 |
"Created: 5.3.1997 / 12:18:10 / cg" |
|
909 |
! |
|
910 |
||
2707 | 911 |
isInputEvent |
912 |
"return true, if this event is an input (pointer, key or button) event" |
|
913 |
||
914 |
^ false |
|
915 |
||
916 |
"Created: / 21.5.1999 / 19:49:42 / cg" |
|
917 |
"Modified: / 21.5.1999 / 19:50:11 / cg" |
|
918 |
! |
|
919 |
||
244 | 920 |
isKeyEvent |
921 |
"return true, if this event is a keyboard event" |
|
922 |
||
2028 | 923 |
^ false |
924 |
||
925 |
"Modified: / 28.1.1998 / 00:03:17 / cg" |
|
244 | 926 |
! |
927 |
||
928 |
isKeyPressEvent |
|
2028 | 929 |
"return true, if this event is a keyboard press event" |
930 |
||
931 |
^ false |
|
932 |
||
933 |
"Modified: / 28.1.1998 / 00:03:24 / cg" |
|
934 |
! |
|
244 | 935 |
|
2028 | 936 |
isKeyReleaseEvent |
937 |
"return true, if this event is a keyboard release event" |
|
938 |
||
939 |
^ false |
|
940 |
||
941 |
"Modified: / 28.1.1998 / 00:03:31 / cg" |
|
356 | 942 |
! |
943 |
||
3376 | 944 |
isKeyboardFocusEvent |
945 |
"return true, if this event is a keyboard focus event" |
|
946 |
||
947 |
^ false |
|
948 |
! |
|
949 |
||
2034
9fd5b2a4d315
added isMapEvent / isUnmapEvent
Claus Gittinger <cg@exept.de>
parents:
2028
diff
changeset
|
950 |
isMapEvent |
4842 | 951 |
"return true, if this is a map event" |
2034
9fd5b2a4d315
added isMapEvent / isUnmapEvent
Claus Gittinger <cg@exept.de>
parents:
2028
diff
changeset
|
952 |
|
3680 | 953 |
^ false |
2034
9fd5b2a4d315
added isMapEvent / isUnmapEvent
Claus Gittinger <cg@exept.de>
parents:
2028
diff
changeset
|
954 |
|
4842 | 955 |
"Created: / 29-01-1998 / 21:52:54 / cg" |
956 |
"Modified: / 09-11-2007 / 13:10:25 / cg" |
|
2034
9fd5b2a4d315
added isMapEvent / isUnmapEvent
Claus Gittinger <cg@exept.de>
parents:
2028
diff
changeset
|
957 |
! |
9fd5b2a4d315
added isMapEvent / isUnmapEvent
Claus Gittinger <cg@exept.de>
parents:
2028
diff
changeset
|
958 |
|
3297 | 959 |
isMessageSendEvent |
960 |
"return true, if this event is a general messageSend event" |
|
961 |
||
962 |
^ false |
|
963 |
! |
|
964 |
||
3011 | 965 |
isMouseWheelEvent |
3680 | 966 |
^ false |
3011 | 967 |
! |
968 |
||
356 | 969 |
isPointerEnterEvent |
970 |
"return true, if this event is a pointer-enter event" |
|
971 |
||
3680 | 972 |
^ false |
356 | 973 |
|
974 |
"Created: 9.1.1996 / 15:51:24 / cg" |
|
975 |
"Modified: 9.1.1996 / 15:51:40 / cg" |
|
976 |
! |
|
977 |
||
978 |
isPointerEnterLeaveEvent |
|
979 |
"return true, if this event is a pointer-enter/leave event" |
|
980 |
||
3680 | 981 |
^ false |
356 | 982 |
|
983 |
"Created: 9.1.1996 / 15:51:18 / cg" |
|
984 |
! |
|
985 |
||
986 |
isPointerLeaveEvent |
|
987 |
"return true, if this event is a pointer-leave event" |
|
988 |
||
3680 | 989 |
^ false |
356 | 990 |
|
991 |
"Created: 9.1.1996 / 15:51:36 / cg" |
|
1158 | 992 |
! |
993 |
||
5751 | 994 |
isPropertyChangeEvent |
995 |
"return true, if this event is a CreateWindow event" |
|
996 |
||
997 |
^selector == #propertyChange:state: |
|
998 |
||
999 |
"Created: / 01-06-2011 / 13:36:39 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1000 |
! |
|
1001 |
||
3773
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
1002 |
isTerminateEvent |
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
1003 |
^ false |
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
1004 |
! |
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
1005 |
|
4842 | 1006 |
isTrayEvent |
1007 |
"return true, if this is an event from the tray (WIN32 only, for now)" |
|
2034
9fd5b2a4d315
added isMapEvent / isUnmapEvent
Claus Gittinger <cg@exept.de>
parents:
2028
diff
changeset
|
1008 |
|
3680 | 1009 |
^ false |
2034
9fd5b2a4d315
added isMapEvent / isUnmapEvent
Claus Gittinger <cg@exept.de>
parents:
2028
diff
changeset
|
1010 |
|
4842 | 1011 |
"Created: / 09-11-2007 / 13:09:29 / cg" |
1012 |
! |
|
1013 |
||
1014 |
isUnmapEvent |
|
1015 |
"return true, if this is an unmap event" |
|
1016 |
||
1017 |
^ false |
|
1018 |
||
1019 |
"Modified: / 09-11-2007 / 13:10:07 / cg" |
|
2034
9fd5b2a4d315
added isMapEvent / isUnmapEvent
Claus Gittinger <cg@exept.de>
parents:
2028
diff
changeset
|
1020 |
! |
9fd5b2a4d315
added isMapEvent / isUnmapEvent
Claus Gittinger <cg@exept.de>
parents:
2028
diff
changeset
|
1021 |
|
1158 | 1022 |
isUserEvent |
1023 |
"return true, if this event is a user event (i.e. mouse, keyboard or button)" |
|
1024 |
||
3680 | 1025 |
self isButtonEvent ifTrue:[^ true]. |
1026 |
self isKeyEvent ifTrue:[^ true]. |
|
3773
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
1027 |
self isTerminateEvent ifTrue:[^ true]. |
1158 | 1028 |
|
3680 | 1029 |
self isPointerEnterEvent ifTrue:[^ true]. |
1030 |
"/ self isPointerLeaveEvent ifTrue:[^ true]. -- why disabled ? |
|
1420 | 1031 |
|
1158 | 1032 |
^ false |
1033 |
||
1420 | 1034 |
"Modified: 5.3.1997 / 11:27:40 / cg" |
244 | 1035 |
! ! |
1036 |
||
3680 | 1037 |
!WindowEvent::ApplicationEvent methodsFor:'blocked'! |
1038 |
||
1039 |
view |
|
1040 |
^ nil |
|
1041 |
! ! |
|
1042 |
||
5249 | 1043 |
!WindowEvent::ApplicationEvent methodsFor:'testing'! |
3680 | 1044 |
|
1045 |
isApplicationEvent |
|
1046 |
^ true |
|
1047 |
! ! |
|
1048 |
||
1861
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1049 |
!WindowEvent::InputEvent class methodsFor:'class initialization'! |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1050 |
|
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1051 |
initialize |
1862
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1052 |
F_SHIFT := 16r001. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1053 |
F_CTRL := 16r002. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1054 |
F_ALT := 16r004. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1055 |
F_META := 16r008. |
1861
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1056 |
|
1862
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1057 |
F_BUTTON1 := 16r100. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1058 |
F_BUTTON2 := 16r200. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1059 |
F_BUTTON3 := 16r400. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1060 |
|
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1061 |
" |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1062 |
self initialize |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1063 |
" |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1064 |
|
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1065 |
"Modified: 13.8.1997 / 22:16:17 / cg" |
1861
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1066 |
! ! |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1067 |
|
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1068 |
!WindowEvent::InputEvent methodsFor:'accessing'! |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1069 |
|
1862
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1070 |
hasShift:shift ctrl:ctrl alt:alt meta:meta button1:b1 button2:b2 button3:b3 |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1071 |
|f "{ Class: SmallInteger }"| |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1072 |
|
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1073 |
f := 0. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1074 |
shift ifTrue:[f := f bitOr:F_SHIFT]. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1075 |
ctrl ifTrue:[f := f bitOr:F_CTRL]. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1076 |
alt ifTrue:[f := f bitOr:F_ALT]. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1077 |
meta ifTrue:[f := f bitOr:F_META]. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1078 |
b1 ifTrue:[f := f bitOr:F_BUTTON1]. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1079 |
b2 ifTrue:[f := f bitOr:F_BUTTON2]. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1080 |
b3 ifTrue:[f := f bitOr:F_BUTTON3]. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1081 |
modifierFlags := f. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1082 |
|
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1083 |
"Created: 13.8.1997 / 22:17:56 / cg" |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1084 |
! |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1085 |
|
1861
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1086 |
hasShift:shift hasCtrl:ctrl hasAlt:alt hasMeta:meta |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1087 |
|f "{ Class: SmallInteger }"| |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1088 |
|
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1089 |
f := 0. |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1090 |
shift ifTrue:[f := f bitOr:F_SHIFT]. |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1091 |
ctrl ifTrue:[f := f bitOr:F_CTRL]. |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1092 |
alt ifTrue:[f := f bitOr:F_ALT]. |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1093 |
meta ifTrue:[f := f bitOr:F_META]. |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1094 |
modifierFlags := f. |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1095 |
|
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1096 |
"Created: 13.8.1997 / 22:02:09 / cg" |
1862
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1097 |
! |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1098 |
|
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1099 |
hasShift:shift hasCtrl:ctrl hasAlt:alt hasMeta:meta hasButton1:b1 hasButton2:b2 hasButton3:b3 |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1100 |
|f "{ Class: SmallInteger }"| |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1101 |
|
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1102 |
f := 0. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1103 |
shift ifTrue:[f := f bitOr:F_SHIFT]. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1104 |
ctrl ifTrue:[f := f bitOr:F_CTRL]. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1105 |
alt ifTrue:[f := f bitOr:F_ALT]. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1106 |
meta ifTrue:[f := f bitOr:F_META]. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1107 |
b1 ifTrue:[f := f bitOr:F_BUTTON1]. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1108 |
b2 ifTrue:[f := f bitOr:F_BUTTON2]. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1109 |
b3 ifTrue:[f := f bitOr:F_BUTTON3]. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1110 |
modifierFlags := f. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1111 |
|
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1112 |
"Created: 13.8.1997 / 22:17:25 / cg" |
2761 | 1113 |
! |
1114 |
||
1115 |
modifierFlags |
|
1116 |
^ modifierFlags |
|
1117 |
! |
|
1118 |
||
1119 |
modifierFlags:flagBits |
|
1120 |
modifierFlags := flagBits |
|
1861
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1121 |
! ! |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1122 |
|
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1123 |
!WindowEvent::InputEvent methodsFor:'queries'! |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1124 |
|
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1125 |
hasAlt |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1126 |
"return true, if this is an event, with ALT pressed" |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1127 |
|
1885 | 1128 |
modifierFlags isNil ifTrue:[^ false]. |
1861
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1129 |
^ (modifierFlags bitAnd:F_ALT) ~~ 0 |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1130 |
|
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1131 |
"Created: 13.8.1997 / 22:02:23 / cg" |
1885 | 1132 |
"Modified: 21.8.1997 / 19:41:11 / cg" |
1861
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1133 |
! |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1134 |
|
1862
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1135 |
hasButton1 |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1136 |
"return true, if this is an event, with the left mouse button pressed" |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1137 |
|
1885 | 1138 |
modifierFlags isNil ifTrue:[^ false]. |
1862
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1139 |
^ (modifierFlags bitAnd:F_BUTTON1) ~~ 0 |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1140 |
|
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1141 |
"Created: 13.8.1997 / 22:16:35 / cg" |
1885 | 1142 |
"Modified: 21.8.1997 / 19:41:40 / cg" |
1862
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1143 |
! |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1144 |
|
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1145 |
hasButton2 |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1146 |
"return true, if this is an event, with the middle mouse button pressed" |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1147 |
|
1885 | 1148 |
modifierFlags isNil ifTrue:[^ false]. |
1862
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1149 |
^ (modifierFlags bitAnd:F_BUTTON2) ~~ 0 |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1150 |
|
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1151 |
"Created: 13.8.1997 / 22:16:43 / cg" |
1885 | 1152 |
"Modified: 21.8.1997 / 19:41:47 / cg" |
1862
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1153 |
! |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1154 |
|
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1155 |
hasButton3 |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1156 |
"return true, if this is an event, with the right mouse button pressed" |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1157 |
|
1885 | 1158 |
modifierFlags isNil ifTrue:[^ false]. |
1862
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1159 |
^ (modifierFlags bitAnd:F_BUTTON3) ~~ 0 |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1160 |
|
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1161 |
"Created: 13.8.1997 / 22:16:49 / cg" |
1885 | 1162 |
"Modified: 21.8.1997 / 19:41:52 / cg" |
1862
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1163 |
! |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1164 |
|
1861
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1165 |
hasCtrl |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1166 |
"return true, if this is an event, with CTRL pressed" |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1167 |
|
1885 | 1168 |
modifierFlags isNil ifTrue:[^ false]. |
1861
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1169 |
^ (modifierFlags bitAnd:F_CTRL) ~~ 0 |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1170 |
|
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1171 |
"Created: 13.8.1997 / 22:02:29 / cg" |
1885 | 1172 |
"Modified: 21.8.1997 / 19:41:21 / cg" |
1861
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1173 |
! |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1174 |
|
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1175 |
hasMeta |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1176 |
"return true, if this is an event, with META pressed" |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1177 |
|
1885 | 1178 |
modifierFlags isNil ifTrue:[^ false]. |
1861
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1179 |
^ (modifierFlags bitAnd:F_META) ~~ 0 |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1180 |
|
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1181 |
"Created: 13.8.1997 / 22:02:59 / cg" |
1885 | 1182 |
"Modified: 21.8.1997 / 19:41:27 / cg" |
1861
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1183 |
! |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1184 |
|
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1185 |
hasShift |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1186 |
"return true, if this is an event, with SHIFT pressed" |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1187 |
|
1885 | 1188 |
modifierFlags isNil ifTrue:[^ false]. |
1861
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1189 |
^ (modifierFlags bitAnd:F_SHIFT) ~~ 0 |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1190 |
|
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1191 |
"Created: 13.8.1997 / 22:03:09 / cg" |
1885 | 1192 |
"Modified: 21.8.1997 / 19:41:34 / cg" |
2707 | 1193 |
! |
1194 |
||
5204
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1195 |
targetView |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1196 |
"return the view which will eventually handle the event; |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1197 |
for most events, this is the same as the view, for which the event was |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1198 |
originally generated. |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1199 |
Except, if an explicit focus has been assigned (i.e. tabbed into a component), |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1200 |
AND the event is a keyboard event. In this case, the targetView might be different. |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1201 |
Notice: this method might return nil, for synthetic (app-related) or display screen related |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1202 |
events" |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1203 |
|
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1204 |
|evView group focusView| |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1205 |
|
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1206 |
evView := self view. |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1207 |
self isDelegatedToFocusView ifTrue:[ |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1208 |
evView notNil ifTrue:[ |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1209 |
group := evView windowGroup. |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1210 |
group notNil ifTrue:[ |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1211 |
focusView := group focusView. |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1212 |
focusView notNil ifTrue:[^ focusView]. |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1213 |
]. |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1214 |
]. |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1215 |
]. |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1216 |
^ evView |
3465 | 1217 |
! ! |
1218 |
||
5249 | 1219 |
!WindowEvent::InputEvent methodsFor:'testing'! |
1220 |
||
1221 |
isInputEvent |
|
1222 |
^ true |
|
1223 |
||
1224 |
"Created: / 21.5.1999 / 19:49:30 / cg" |
|
1225 |
! ! |
|
1226 |
||
3297 | 1227 |
!WindowEvent::ButtonEvent methodsFor:'accessing'! |
1228 |
||
1229 |
button |
|
1230 |
"return the button nr of the button-event" |
|
1231 |
||
1232 |
^ args at:1 |
|
1233 |
! |
|
1234 |
||
1235 |
state |
|
1236 |
"return the button state of the button-event |
|
1237 |
(mouse button bits at the time of the event)." |
|
1238 |
||
1239 |
^ args at:1 |
|
1240 |
||
1241 |
"Created: / 12.11.1998 / 16:21:18 / cg" |
|
1242 |
! |
|
1243 |
||
1244 |
x |
|
1245 |
"return the x coordinate of the button-event |
|
1246 |
(mouse position at the time of the event)." |
|
1247 |
||
1248 |
^ args at:2 |
|
1249 |
||
1250 |
"Created: 1.8.1997 / 13:58:15 / cg" |
|
1251 |
! |
|
1252 |
||
1253 |
x:anInteger |
|
1254 |
"change the x coordinate of the button-event" |
|
1255 |
||
1256 |
args at:2 put:anInteger |
|
1257 |
||
1258 |
"Created: 1.8.1997 / 13:58:15 / cg" |
|
1259 |
! |
|
1260 |
||
1261 |
y |
|
1262 |
"return the y coordinate of the button-event |
|
1263 |
(mouse position at the time of the event)." |
|
1264 |
||
1265 |
^ args at:3 |
|
1266 |
||
1267 |
"Created: 1.8.1997 / 13:58:07 / cg" |
|
1268 |
! |
|
1269 |
||
1270 |
y:anInteger |
|
1271 |
"change the y coordinate of the button-event" |
|
1272 |
||
1273 |
^ args at:3 put:anInteger |
|
1274 |
||
1275 |
"Created: 1.8.1997 / 13:58:15 / cg" |
|
1276 |
! ! |
|
1277 |
||
5249 | 1278 |
!WindowEvent::ButtonEvent methodsFor:'testing'! |
3297 | 1279 |
|
1280 |
isButtonEvent |
|
1281 |
"return true, if this event is a button event" |
|
1282 |
||
1283 |
^ true |
|
1284 |
||
1285 |
"Created: 4.4.1997 / 13:44:11 / cg" |
|
3680 | 1286 |
! ! |
1287 |
||
5249 | 1288 |
!WindowEvent::ButtonPressEvent methodsFor:'testing'! |
3680 | 1289 |
|
1290 |
isButtonPressEvent |
|
1291 |
"return true, if this event is a buttonPress event" |
|
1292 |
||
1293 |
^ true |
|
1294 |
! ! |
|
1295 |
||
5249 | 1296 |
!WindowEvent::ButtonMultiPressEvent methodsFor:'testing'! |
3680 | 1297 |
|
4628 | 1298 |
isButtonMultiPressEvent |
1299 |
^ true |
|
1300 |
! |
|
1301 |
||
3680 | 1302 |
isButtonPressEvent |
1303 |
"/ ATTENTION: temporary for bw. compatibility, since due to a bug, |
|
1304 |
"/ multi-presses returned false to this query |
|
1305 |
||
1306 |
"/'----------------' errorPrint. |
|
1307 |
"/'oops multipressEvent asked for isButtonPress' errorPrintCR. |
|
1308 |
"/thisContext fullPrintAll. |
|
1309 |
^ false |
|
1310 |
! ! |
|
1311 |
||
5249 | 1312 |
!WindowEvent::ButtonReleaseEvent methodsFor:'testing'! |
3680 | 1313 |
|
1314 |
isButtonReleaseEvent |
|
1315 |
"return true, if this event is a buttonRelease event" |
|
1316 |
||
1317 |
^ true |
|
1318 |
! ! |
|
1319 |
||
1320 |
!WindowEvent::ClientEvent methodsFor:'accessing'! |
|
1321 |
||
1322 |
eventData |
|
1323 |
"return the value of the instance variable 'eventData' (automatically generated)" |
|
1324 |
||
1325 |
^ eventData |
|
1326 |
||
1327 |
"Created: 4.4.1997 / 17:41:50 / cg" |
|
3297 | 1328 |
! |
1329 |
||
3680 | 1330 |
eventData:something |
1331 |
"set the value of the instance variable 'eventData' (automatically generated)" |
|
1332 |
||
1333 |
eventData := something. |
|
1334 |
||
1335 |
"Created: 4.4.1997 / 17:41:57 / cg" |
|
1336 |
! ! |
|
1337 |
||
5249 | 1338 |
!WindowEvent::ConfigureEvent methodsFor:'testing'! |
3680 | 1339 |
|
1340 |
isConfigureEvent |
|
1341 |
^ true |
|
1342 |
! ! |
|
1343 |
||
5249 | 1344 |
!WindowEvent::DamageEvent methodsFor:'testing'! |
3680 | 1345 |
|
1346 |
isDamage |
|
1347 |
"return true, if this is a damage event" |
|
1348 |
||
1349 |
^ true |
|
1350 |
! |
|
1351 |
||
1352 |
isDamageForView:aView |
|
1353 |
"return true, if this is a damage event for aView" |
|
1354 |
||
1355 |
^ (receiver == aView) |
|
1356 |
! ! |
|
1357 |
||
4988 | 1358 |
!WindowEvent::EnterLeaveEvent methodsFor:'accessing'! |
1359 |
||
1360 |
state |
|
1361 |
||
1362 |
^ args at:1 |
|
1363 |
! |
|
1364 |
||
1365 |
x |
|
1366 |
||
1367 |
^ args at:2 ifAbsent:nil |
|
1368 |
! |
|
1369 |
||
1370 |
y |
|
1371 |
||
1372 |
^ args at:3 ifAbsent:nil |
|
1373 |
! ! |
|
1374 |
||
5249 | 1375 |
!WindowEvent::EnterLeaveEvent methodsFor:'testing'! |
3680 | 1376 |
|
1377 |
isPointerEnterEvent |
|
1378 |
"return true, if this event is a pointer-enter event" |
|
1379 |
||
1380 |
^ (selector == #'pointerEnter:x:y:') |
|
1381 |
||
1382 |
"Created: 9.1.1996 / 15:51:24 / cg" |
|
1383 |
"Modified: 9.1.1996 / 15:51:40 / cg" |
|
1384 |
! |
|
1385 |
||
1386 |
isPointerEnterLeaveEvent |
|
1387 |
"return true, if this event is a pointer-enter/leave event" |
|
1388 |
||
1389 |
^ true |
|
1390 |
||
1391 |
"Created: 9.1.1996 / 15:51:18 / cg" |
|
1392 |
! |
|
1393 |
||
1394 |
isPointerLeaveEvent |
|
1395 |
"return true, if this event is a pointer-leave event" |
|
1396 |
||
1397 |
^ selector == #'pointerLeave:' |
|
1398 |
||
1399 |
"Created: 9.1.1996 / 15:51:36 / cg" |
|
1400 |
! ! |
|
1401 |
||
5249 | 1402 |
!WindowEvent::FocusEvent methodsFor:'testing'! |
3680 | 1403 |
|
1404 |
isFocusEvent |
|
1405 |
"return true, if this event is a focus event" |
|
1406 |
||
1407 |
^ true |
|
1408 |
||
1409 |
"Created: / 21.5.1999 / 19:44:47 / cg" |
|
1410 |
! |
|
1411 |
||
1412 |
isFocusInEvent |
|
1413 |
"return true, if this event is a focusIn event" |
|
1414 |
||
1415 |
^ (selector == #focusIn) |
|
1416 |
||
1417 |
"Created: / 21.5.1999 / 19:45:04 / cg" |
|
4980 | 1418 |
! |
1419 |
||
1420 |
isFocusOutEvent |
|
1421 |
"return true, if this event is a focusOut event" |
|
1422 |
||
1423 |
^ (selector == #focusOut) |
|
1424 |
||
1425 |
"Created: / 21.5.1999 / 19:45:04 / cg" |
|
3680 | 1426 |
! ! |
1427 |
||
5249 | 1428 |
!WindowEvent::ButtonMotionEvent methodsFor:'testing'! |
3680 | 1429 |
|
3297 | 1430 |
isButtonMotionEvent |
1431 |
"return true, if this event is a buttonMotion event" |
|
1432 |
||
3680 | 1433 |
^ true |
3297 | 1434 |
! ! |
1435 |
||
1527
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1436 |
!WindowEvent::KeyboardEvent methodsFor:'accessing'! |
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1437 |
|
1841 | 1438 |
key |
1439 |
"return the key of the key-event." |
|
1440 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
1441 |
^ args at:1 |
1841 | 1442 |
|
1443 |
"Created: 1.8.1997 / 13:55:19 / cg" |
|
1444 |
! |
|
1445 |
||
2852 | 1446 |
key:aCharacterOrSymbol |
1447 |
"change the key of the key-event." |
|
1448 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
1449 |
args at:1 put:aCharacterOrSymbol |
2852 | 1450 |
|
1451 |
"Created: 1.8.1997 / 13:55:19 / cg" |
|
1452 |
! |
|
1453 |
||
1527
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1454 |
rawKey |
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1455 |
^ rawKey |
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1456 |
|
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1457 |
"Created: 4.4.1997 / 13:47:15 / cg" |
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1458 |
! |
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1459 |
|
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1460 |
rawKey:aKey |
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1461 |
rawKey := aKey |
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1462 |
|
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1463 |
"Created: 4.4.1997 / 13:47:10 / cg" |
1841 | 1464 |
! |
1465 |
||
1466 |
x |
|
1467 |
"return the x coordinate of the key-event |
|
1468 |
(mouse position at the time of the key-event)." |
|
1469 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
1470 |
^ args at:2 |
1841 | 1471 |
|
1472 |
"Created: 1.8.1997 / 13:57:27 / cg" |
|
1473 |
! |
|
1474 |
||
5209 | 1475 |
x:anInteger |
3089 | 1476 |
"change the x coordinate of the key-event" |
1477 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
1478 |
^ args at:2 put:anInteger |
3089 | 1479 |
! |
1480 |
||
1841 | 1481 |
y |
1482 |
"return the y coordinate of the key-event |
|
1483 |
(mouse position at the time of the key-event)." |
|
1484 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
1485 |
^ args at:3 |
1841 | 1486 |
|
1487 |
"Created: 1.8.1997 / 13:55:19 / cg" |
|
1488 |
"Modified: 1.8.1997 / 13:57:42 / cg" |
|
3089 | 1489 |
! |
1490 |
||
1491 |
y:anInteger |
|
1492 |
"change the y coordinate of the key-event" |
|
1493 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
1494 |
^ args at:3 put:anInteger |
1527
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1495 |
! ! |
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1496 |
|
5249 | 1497 |
!WindowEvent::KeyboardEvent methodsFor:'testing'! |
1527
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1498 |
|
5204
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1499 |
isDelegatedToFocusView |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1500 |
"return true, if this event will be forwarded to a focusView." |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1501 |
|
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1502 |
^ true |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1503 |
! |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1504 |
|
1527
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1505 |
isKeyEvent |
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1506 |
"return true, if this event is a keyboard event" |
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1507 |
|
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1508 |
^ true |
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1509 |
|
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1510 |
"Created: 4.4.1997 / 13:39:59 / cg" |
3686 | 1511 |
! ! |
1512 |
||
5249 | 1513 |
!WindowEvent::KeyReleaseEvent methodsFor:'testing'! |
3686 | 1514 |
|
1515 |
isKeyReleaseEvent |
|
1516 |
"return true, if this event is a keyboard press event" |
|
1517 |
||
1518 |
^ true |
|
1519 |
! ! |
|
1520 |
||
5249 | 1521 |
!WindowEvent::KeyPressEvent methodsFor:'testing'! |
2028 | 1522 |
|
1523 |
isKeyPressEvent |
|
1524 |
"return true, if this event is a keyboard press event" |
|
1525 |
||
3686 | 1526 |
^ true |
1527
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1527 |
! ! |
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1528 |
|
4988 | 1529 |
!WindowEvent::KeyboardFocusEvent methodsFor:'accessing'! |
1530 |
||
1531 |
hasFocus |
|
1532 |
||
1533 |
^ args at: 1 |
|
1534 |
! ! |
|
1535 |
||
5249 | 1536 |
!WindowEvent::KeyboardFocusEvent methodsFor:'testing'! |
3376 | 1537 |
|
1538 |
isKeyboardFocusEvent |
|
1539 |
"return true, if this event is a keyboard focus event" |
|
1540 |
||
1541 |
^ true |
|
1542 |
! ! |
|
1543 |
||
3680 | 1544 |
!WindowEvent::MessageSendEvent methodsFor:'blocked'! |
1545 |
||
1546 |
view |
|
1547 |
^ nil |
|
1548 |
! ! |
|
1549 |
||
5249 | 1550 |
!WindowEvent::MessageSendEvent methodsFor:'testing'! |
3089 | 1551 |
|
3465 | 1552 |
isMessageSendEvent |
1553 |
"return true, if this event is a general messageSend event" |
|
3089 | 1554 |
|
1555 |
^ true |
|
1556 |
||
1557 |
||
1558 |
||
1559 |
! ! |
|
1560 |
||
4988 | 1561 |
!WindowEvent::MouseWheelMotionEvent methodsFor:'accessing'! |
1562 |
||
1563 |
amount |
|
1564 |
"return the amount of the mouse wheel motion event " |
|
1565 |
||
1566 |
^ args at:4 |
|
1567 |
! |
|
1568 |
||
1569 |
deltaTime |
|
1570 |
"return the deltaTime of the mouse wheel motion event " |
|
1571 |
||
1572 |
^ args at:5 |
|
1573 |
! ! |
|
1574 |
||
5249 | 1575 |
!WindowEvent::MouseWheelMotionEvent methodsFor:'testing'! |
5205 | 1576 |
|
1577 |
isDelegatedToFocusView |
|
1578 |
"return true, if this event will be forwarded to a focusView." |
|
1579 |
||
1580 |
^ true. |
|
1581 |
! |
|
1582 |
||
1583 |
isMouseWheelEvent |
|
1584 |
^ true. |
|
1585 |
! ! |
|
1586 |
||
4233 | 1587 |
!WindowEvent::NativeWidgetCommandEvent methodsFor:'accessing'! |
1588 |
||
1589 |
command |
|
1590 |
^ selector |
|
1591 |
! |
|
1592 |
||
1593 |
command:something |
|
1594 |
selector := something. |
|
1595 |
! ! |
|
1596 |
||
5249 | 1597 |
!WindowEvent::NewDamageEvent methodsFor:'testing'! |
4044 | 1598 |
|
1599 |
isDamage |
|
1600 |
"return true, if this is a damage event" |
|
1601 |
||
1602 |
^ true |
|
1603 |
! |
|
1604 |
||
1605 |
isDamageForView:aView |
|
1606 |
"return true, if this is a damage event for aView" |
|
1607 |
||
1608 |
^ (receiver == aView) |
|
1609 |
! ! |
|
1610 |
||
5249 | 1611 |
!WindowEvent::TerminateEvent methodsFor:'testing'! |
3773
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
1612 |
|
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
1613 |
isTerminateEvent |
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
1614 |
^ true |
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
1615 |
! ! |
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
1616 |
|
4817 | 1617 |
!WindowEvent::TrayActionEvent methodsFor:'accessing'! |
1618 |
||
1619 |
event |
|
1620 |
^ selector |
|
1621 |
||
1622 |
"Created: / 31-10-2007 / 01:23:05 / cg" |
|
1623 |
! |
|
1624 |
||
1625 |
event:something |
|
1626 |
selector := something. |
|
1627 |
||
1628 |
"Created: / 31-10-2007 / 01:23:07 / cg" |
|
1629 |
! ! |
|
1630 |
||
5249 | 1631 |
!WindowEvent::TrayActionEvent methodsFor:'testing'! |
4842 | 1632 |
|
1633 |
isTrayEvent |
|
1634 |
^ true |
|
1635 |
||
1636 |
"Created: / 09-11-2007 / 13:09:17 / cg" |
|
1637 |
! ! |
|
1638 |
||
5249 | 1639 |
!WindowEvent::WindowMapUnmapEvent methodsFor:'testing'! |
3680 | 1640 |
|
1641 |
isMapEvent |
|
4842 | 1642 |
"return true, if this is a map event" |
3680 | 1643 |
|
1644 |
^ selector == #mapped |
|
1645 |
||
4842 | 1646 |
"Created: / 29-01-1998 / 21:52:54 / cg" |
1647 |
"Modified: / 09-11-2007 / 13:11:02 / cg" |
|
3680 | 1648 |
! |
1649 |
||
1650 |
isUnmapEvent |
|
4842 | 1651 |
"return true, if this is an unmap event" |
3680 | 1652 |
|
1653 |
^ selector == #unmapped |
|
1654 |
||
4842 | 1655 |
"Modified: / 09-11-2007 / 13:11:04 / cg" |
3680 | 1656 |
! ! |
1657 |
||
251 | 1658 |
!WindowEvent class methodsFor:'documentation'! |
1659 |
||
5751 | 1660 |
version_CVS |
1661 |
||
1662 |
^ '$Header: /cvs/stx/stx/libview/WindowEvent.st,v 1.104 2011-06-29 07:40:48 vrany Exp $' |
|
1663 |
! |
|
1664 |
||
1665 |
version_SVN |
|
1666 |
^ ' Id ' |
|
251 | 1667 |
! ! |
3758 | 1668 |
|
1669 |
WindowEvent::InputEvent initialize! |