author | sr |
Wed, 25 Feb 2009 11:35:01 +0100 | |
changeset 5205 | 27605d0f1caa |
parent 5204 | 748c8f2954e9 |
child 5209 | e6f3278b9b16 |
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 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
14 |
MessageSend subclass:#WindowEvent |
3936 | 15 |
instanceVariableNames:'delegatedFrom consumed timeStamp' |
356 | 16 |
classVariableNames:'' |
17 |
poolDictionaries:'' |
|
18 |
category:'Interface-Support' |
|
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 |
||
244 | 368 |
damageFor:aView rectangle:aRectangle |
369 |
"create and return a new damage Event for aRectangle |
|
370 |
in aView" |
|
11 | 371 |
|
4044 | 372 |
^ DamageEvent for:aView type:#damage arguments:aRectangle |
3680 | 373 |
! |
374 |
||
375 |
destroyedView:aView |
|
376 |
^ (self basicNew) |
|
377 |
for:aView |
|
378 |
type:#destroyed |
|
379 |
! |
|
380 |
||
4459 | 381 |
dropFiles:files view:view position:dropPositionOrNil handle:dropHandleOrNil |
4648
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
382 |
^ self |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
383 |
dropMessage:(self dropType_files) |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
384 |
data:files |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
385 |
view:view |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
386 |
position:dropPositionOrNil |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
387 |
handle:dropHandleOrNil |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
388 |
|
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
389 |
"Modified: / 13-10-2006 / 10:11:47 / cg" |
4456 | 390 |
! |
391 |
||
4459 | 392 |
dropMessage:dropTypeSymbol data:dropValue view:aView position:positionOrNil handle:dropHandleOrNil |
3680 | 393 |
^ DropEvent |
394 |
for:aView |
|
4461 | 395 |
type:#dropMessage:data:position:handle: |
4458 | 396 |
arguments:(Array with:dropTypeSymbol with:dropValue with:positionOrNil with:dropHandleOrNil) |
3680 | 397 |
! |
398 |
||
399 |
focusInView:aView |
|
400 |
^ FocusEvent |
|
401 |
for:aView |
|
402 |
type:#focusIn |
|
403 |
! |
|
404 |
||
405 |
focusOutView:aView |
|
406 |
^ FocusEvent |
|
407 |
for:aView |
|
408 |
type:#focusOut |
|
409 |
! |
|
410 |
||
411 |
keyPress:key rawKey:untranslatedKey |
|
412 |
hasShift:shiftDown ctrl:ctrlDown alt:altDown meta:metaDown |
|
413 |
button1:leftButtonDown button2:middleButtonDown button3:rightButtonDown |
|
414 |
x:x y:y view:aView |
|
244 | 415 |
|
3680 | 416 |
|ev| |
417 |
||
418 |
ev := self keyPress:key x:x y:y view:aView. |
|
419 |
ev rawKey:untranslatedKey. |
|
420 |
ev hasShift:shiftDown ctrl:ctrlDown alt:altDown meta:metaDown |
|
421 |
button1:leftButtonDown button2:middleButtonDown button3:rightButtonDown. |
|
422 |
^ ev |
|
423 |
! |
|
424 |
||
425 |
keyPress:key x:x y:y view:aView |
|
426 |
^ (KeyPressEvent new) |
|
427 |
for:aView |
|
428 |
type:#keyPress:x:y: |
|
429 |
arguments:(Array with:key with:x with:y) |
|
430 |
! |
|
431 |
||
432 |
keyRelease:key rawKey:untranslatedKey |
|
433 |
hasShift:shiftDown ctrl:ctrlDown alt:altDown meta:metaDown |
|
434 |
button1:leftButtonDown button2:middleButtonDown button3:rightButtonDown |
|
435 |
x:x y:y view:aView |
|
436 |
||
437 |
|ev| |
|
438 |
||
439 |
ev := self keyRelease:key x:x y:y view:aView. |
|
440 |
ev rawKey:untranslatedKey. |
|
441 |
ev hasShift:shiftDown ctrl:ctrlDown alt:altDown meta:metaDown |
|
442 |
button1:leftButtonDown button2:middleButtonDown button3:rightButtonDown. |
|
443 |
^ ev |
|
444 |
! |
|
445 |
||
446 |
keyRelease:key x:x y:y view:aView |
|
447 |
^ (KeyReleaseEvent new) |
|
448 |
for:aView |
|
449 |
type:#keyRelease:x:y: |
|
450 |
arguments:(Array with:key with:x with:y) |
|
46 | 451 |
! |
452 |
||
3856
45fccc92d834
Use SynchronousWindoeSensor if no windowGroup
Stefan Vogel <sv@exept.de>
parents:
3773
diff
changeset
|
453 |
keyboardFocus:arg view:aView |
45fccc92d834
Use SynchronousWindoeSensor if no windowGroup
Stefan Vogel <sv@exept.de>
parents:
3773
diff
changeset
|
454 |
|
45fccc92d834
Use SynchronousWindoeSensor if no windowGroup
Stefan Vogel <sv@exept.de>
parents:
3773
diff
changeset
|
455 |
^ KeyboardFocusEvent |
45fccc92d834
Use SynchronousWindoeSensor if no windowGroup
Stefan Vogel <sv@exept.de>
parents:
3773
diff
changeset
|
456 |
for:aView type:#hasKeyboardFocus: arguments:(Array with:arg). |
45fccc92d834
Use SynchronousWindoeSensor if no windowGroup
Stefan Vogel <sv@exept.de>
parents:
3773
diff
changeset
|
457 |
! |
45fccc92d834
Use SynchronousWindoeSensor if no windowGroup
Stefan Vogel <sv@exept.de>
parents:
3773
diff
changeset
|
458 |
|
3680 | 459 |
mappedView:aView |
460 |
^ WindowMapUnmapEvent |
|
461 |
for:aView |
|
462 |
type:#mapped |
|
463 |
! |
|
464 |
||
465 |
messageSend:receiver selector:aSelector arguments:arguments |
|
466 |
^ MessageSendEvent |
|
467 |
for:receiver |
|
468 |
type:aSelector |
|
469 |
arguments:arguments |
|
470 |
! |
|
72 | 471 |
|
3680 | 472 |
mouseWheelMotion:state x:x y:y amount:amount deltaTime:deltaTime view:aView |
4988 | 473 |
^ MouseWheelMotionEvent |
3680 | 474 |
for:aView |
475 |
type:#mouseWheelMotion:x:y:amount:deltaTime: |
|
476 |
arguments:(Array with:state with:x with:y with:amount with:deltaTime). |
|
477 |
! |
|
478 |
||
4233 | 479 |
nativeWidgetCommand:command arguments:argVector view:aView |
4144 | 480 |
^ (NativeWidgetCommandEvent new) |
481 |
for:aView |
|
4233 | 482 |
type:command |
483 |
arguments:argVector |
|
4144 | 484 |
! |
485 |
||
4044 | 486 |
newDamageFor:aView |
487 |
"create and return a new damage Event for aView" |
|
488 |
||
489 |
^ NewDamageEvent for:aView type:#newDamage |
|
490 |
! |
|
491 |
||
3680 | 492 |
pasteFromClipBoard:something view:aView |
493 |
^ (self basicNew) |
|
494 |
for:aView |
|
495 |
type:#pasteFromClipBoard: |
|
496 |
arguments:(Array with:something). |
|
497 |
! |
|
498 |
||
499 |
pointerEnter:state x:x y:y view:aView |
|
500 |
^ EnterLeaveEvent |
|
501 |
for:aView |
|
502 |
type:#pointerEnter:x:y: |
|
503 |
arguments:(Array with:state with:x with:y). |
|
72 | 504 |
! |
505 |
||
3680 | 506 |
pointerLeave:state view:aView |
507 |
^ EnterLeaveEvent |
|
508 |
for:aView |
|
509 |
type:#pointerLeave: |
|
510 |
arguments:(Array with:state). |
|
511 |
! |
|
512 |
||
513 |
postViewCreateNotification:aView |
|
514 |
^ (self basicNew) |
|
515 |
for:aView |
|
516 |
type:#postCreateView |
|
517 |
! |
|
28 | 518 |
|
3680 | 519 |
preViewCreateNotification:aView |
520 |
^ (self basicNew) |
|
521 |
for:aView |
|
522 |
type:#preCreateView |
|
523 |
! |
|
524 |
||
525 |
saveAndTerminateView:aView |
|
3773
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
526 |
^ (TerminateEvent basicNew) |
3680 | 527 |
for:aView |
528 |
type:#saveAndTerminate |
|
529 |
! |
|
530 |
||
531 |
terminateView:aView |
|
3773
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
532 |
^ (TerminateEvent basicNew) |
3680 | 533 |
for:aView |
534 |
type:#terminate |
|
535 |
! |
|
536 |
||
4817 | 537 |
trayAction:event arguments:argVector view:aView |
538 |
^ (TrayActionEvent new) |
|
539 |
for:aView |
|
540 |
type:event |
|
541 |
arguments:argVector |
|
542 |
||
543 |
"Created: / 31-10-2007 / 01:23:53 / cg" |
|
544 |
! |
|
545 |
||
3680 | 546 |
unmappedView:aView |
547 |
^ WindowMapUnmapEvent |
|
548 |
for:aView |
|
549 |
type:#unmapped |
|
28 | 550 |
! ! |
551 |
||
4648
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
552 |
!WindowEvent class methodsFor:'constants'! |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
553 |
|
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
554 |
dropType_directory |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
555 |
^ #directory |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
556 |
|
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
557 |
"Created: / 13-10-2006 / 10:08:59 / cg" |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
558 |
! |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
559 |
|
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
560 |
dropType_file |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
561 |
^ #file |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
562 |
|
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
563 |
"Created: / 13-10-2006 / 10:08:52 / cg" |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
564 |
! |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
565 |
|
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
566 |
dropType_files |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
567 |
^ #files |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
568 |
|
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
569 |
"Created: / 13-10-2006 / 10:09:04 / cg" |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
570 |
! |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
571 |
|
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
572 |
dropType_text |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
573 |
^ #text |
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
574 |
|
87368f2f69fc
eliminated magic symbol constants
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
575 |
"Created: / 13-10-2006 / 10:09:36 / cg" |
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 |
|
3680 | 578 |
!WindowEvent class methodsFor:'instance creation basic'! |
579 |
||
580 |
for:aView type:aSymbol |
|
581 |
"create and return a new windowEvent for sending |
|
582 |
aSymbol-message with no arguments to aView" |
|
583 |
||
3856
45fccc92d834
Use SynchronousWindoeSensor if no windowGroup
Stefan Vogel <sv@exept.de>
parents:
3773
diff
changeset
|
584 |
^ self new for:aView type:aSymbol |
3680 | 585 |
! |
586 |
||
587 |
for:aView type:aSymbol arguments:argArray |
|
588 |
"create and return a new windowEvent for sending |
|
589 |
aSymbol-message with arguments to aView" |
|
590 |
||
3856
45fccc92d834
Use SynchronousWindoeSensor if no windowGroup
Stefan Vogel <sv@exept.de>
parents:
3773
diff
changeset
|
591 |
^ self new for:aView type:aSymbol arguments:argArray |
3680 | 592 |
! |
593 |
||
594 |
new |
|
595 |
self == WindowEvent ifTrue:[ |
|
596 |
'----------------' errorPrint. |
|
597 |
'WindowEvent is abstract - use/add explicit creation message' errorPrintCR. |
|
598 |
thisContext fullPrintAll. |
|
599 |
]. |
|
600 |
^ super new |
|
601 |
! ! |
|
602 |
||
244 | 603 |
!WindowEvent methodsFor:'accessing'! |
604 |
||
3465 | 605 |
consumed |
606 |
"return the value of the instance variable 'consumed' (automatically generated)" |
|
607 |
||
608 |
^ consumed |
|
609 |
! |
|
610 |
||
611 |
consumed:aBoolean |
|
612 |
"set the value of the instance variable 'consumed' (automatically generated)" |
|
613 |
||
614 |
consumed := aBoolean. |
|
615 |
! |
|
616 |
||
3089 | 617 |
delegatedFrom |
618 |
"return the value of the instance variable 'delegatedFrom' (automatically generated)" |
|
619 |
||
3376 | 620 |
^ delegatedFrom |
621 |
! |
|
3089 | 622 |
|
623 |
delegatedFrom:something |
|
624 |
"set the value of the instance variable 'delegatedFrom' (automatically generated)" |
|
625 |
||
3376 | 626 |
delegatedFrom := something. |
627 |
! |
|
3089 | 628 |
|
244 | 629 |
key |
1841 | 630 |
"return the key - nil is returned here. |
631 |
This is redefined in KeyboardEvent." |
|
244 | 632 |
|
633 |
^ nil |
|
1841 | 634 |
|
635 |
"Created: 1.8.1997 / 13:56:21 / cg" |
|
244 | 636 |
! |
637 |
||
638 |
rectangle |
|
639 |
"return the damage rectangle" |
|
640 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
641 |
^ 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
|
642 |
! |
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
643 |
|
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
644 |
target |
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
645 |
"return the target, for which the event is for" |
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
646 |
|
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
647 |
^ receiver |
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
648 |
! |
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
649 |
|
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
650 |
target:anObject |
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
651 |
"set the target, for which the event is for" |
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
652 |
|
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
653 |
receiver := anObject |
244 | 654 |
! |
655 |
||
4740 | 656 |
timeStamp |
657 |
^ timeStamp |
|
658 |
! |
|
659 |
||
660 |
timeStamp:aTimestamp |
|
661 |
timeStamp := aTimestamp. |
|
662 |
! |
|
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 |
||
3680 | 797 |
isApplicationEvent |
798 |
"return true, if this event is application related (i.e. not for a particular view)" |
|
799 |
||
800 |
^ false |
|
801 |
! |
|
802 |
||
244 | 803 |
isButtonEvent |
804 |
"return true, if this event is a button event" |
|
805 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
806 |
^ false |
244 | 807 |
! |
808 |
||
1730 | 809 |
isButtonMotionEvent |
810 |
"return true, if this event is a buttonMotion event" |
|
811 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
812 |
^ false |
1730 | 813 |
|
814 |
"Created: 5.3.1997 / 12:25:43 / cg" |
|
815 |
! |
|
816 |
||
4628 | 817 |
isButtonMultiPressEvent |
818 |
"return true, if this event is a buttonMulti-Press event" |
|
819 |
||
820 |
^ false |
|
821 |
||
822 |
"Created: 5.3.1997 / 12:25:43 / cg" |
|
823 |
! |
|
824 |
||
1420 | 825 |
isButtonPressEvent |
826 |
"return true, if this event is a buttonPress event" |
|
827 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
828 |
^ false |
1420 | 829 |
|
830 |
"Created: 5.3.1997 / 12:25:43 / cg" |
|
831 |
! |
|
832 |
||
3011 | 833 |
isButtonReleaseEvent |
834 |
"return true, if this event is a buttonPress event" |
|
835 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
836 |
^ false |
3011 | 837 |
|
838 |
"Created: 5.3.1997 / 12:25:43 / cg" |
|
839 |
! |
|
840 |
||
2811 | 841 |
isConfigureEvent |
3680 | 842 |
"return true, if this is a window geometry change event" |
2811 | 843 |
|
3680 | 844 |
^ false. |
2811 | 845 |
! |
846 |
||
244 | 847 |
isDamage |
848 |
"return true, if this is a damage event" |
|
849 |
||
3680 | 850 |
^ false. |
244 | 851 |
! |
852 |
||
2471 | 853 |
isDamageForView:aView |
3680 | 854 |
"return true, if this is a damage event for a View" |
2471 | 855 |
|
3680 | 856 |
^ false. |
2471 | 857 |
! |
858 |
||
5204
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
859 |
isDelegatedToFocusView |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
860 |
"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
|
861 |
|
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
862 |
^ false. |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
863 |
! |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
864 |
|
1420 | 865 |
isFocusEvent |
866 |
"return true, if this event is a focusIn/focusOut event" |
|
867 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
868 |
^ false |
1420 | 869 |
|
870 |
"Created: 5.3.1997 / 12:12:37 / cg" |
|
871 |
! |
|
872 |
||
873 |
isFocusInEvent |
|
874 |
"return true, if this event is a focusIn event" |
|
875 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
876 |
^ false |
1420 | 877 |
|
878 |
"Created: 5.3.1997 / 12:18:10 / cg" |
|
879 |
! |
|
880 |
||
4980 | 881 |
isFocusOutEvent |
882 |
"return true, if this event is a focusOut event" |
|
883 |
||
884 |
^ false |
|
885 |
||
886 |
"Created: 5.3.1997 / 12:18:10 / cg" |
|
887 |
! |
|
888 |
||
2707 | 889 |
isInputEvent |
890 |
"return true, if this event is an input (pointer, key or button) event" |
|
891 |
||
892 |
^ false |
|
893 |
||
894 |
"Created: / 21.5.1999 / 19:49:42 / cg" |
|
895 |
"Modified: / 21.5.1999 / 19:50:11 / cg" |
|
896 |
! |
|
897 |
||
244 | 898 |
isKeyEvent |
899 |
"return true, if this event is a keyboard event" |
|
900 |
||
2028 | 901 |
^ false |
902 |
||
903 |
"Modified: / 28.1.1998 / 00:03:17 / cg" |
|
244 | 904 |
! |
905 |
||
906 |
isKeyPressEvent |
|
2028 | 907 |
"return true, if this event is a keyboard press event" |
908 |
||
909 |
^ false |
|
910 |
||
911 |
"Modified: / 28.1.1998 / 00:03:24 / cg" |
|
912 |
! |
|
244 | 913 |
|
2028 | 914 |
isKeyReleaseEvent |
915 |
"return true, if this event is a keyboard release event" |
|
916 |
||
917 |
^ false |
|
918 |
||
919 |
"Modified: / 28.1.1998 / 00:03:31 / cg" |
|
356 | 920 |
! |
921 |
||
3376 | 922 |
isKeyboardFocusEvent |
923 |
"return true, if this event is a keyboard focus event" |
|
924 |
||
925 |
^ false |
|
926 |
! |
|
927 |
||
2034
9fd5b2a4d315
added isMapEvent / isUnmapEvent
Claus Gittinger <cg@exept.de>
parents:
2028
diff
changeset
|
928 |
isMapEvent |
4842 | 929 |
"return true, if this is a map event" |
2034
9fd5b2a4d315
added isMapEvent / isUnmapEvent
Claus Gittinger <cg@exept.de>
parents:
2028
diff
changeset
|
930 |
|
3680 | 931 |
^ false |
2034
9fd5b2a4d315
added isMapEvent / isUnmapEvent
Claus Gittinger <cg@exept.de>
parents:
2028
diff
changeset
|
932 |
|
4842 | 933 |
"Created: / 29-01-1998 / 21:52:54 / cg" |
934 |
"Modified: / 09-11-2007 / 13:10:25 / cg" |
|
2034
9fd5b2a4d315
added isMapEvent / isUnmapEvent
Claus Gittinger <cg@exept.de>
parents:
2028
diff
changeset
|
935 |
! |
9fd5b2a4d315
added isMapEvent / isUnmapEvent
Claus Gittinger <cg@exept.de>
parents:
2028
diff
changeset
|
936 |
|
3297 | 937 |
isMessageSendEvent |
938 |
"return true, if this event is a general messageSend event" |
|
939 |
||
940 |
^ false |
|
941 |
! |
|
942 |
||
3011 | 943 |
isMouseWheelEvent |
3680 | 944 |
^ false |
3011 | 945 |
! |
946 |
||
356 | 947 |
isPointerEnterEvent |
948 |
"return true, if this event is a pointer-enter event" |
|
949 |
||
3680 | 950 |
^ false |
356 | 951 |
|
952 |
"Created: 9.1.1996 / 15:51:24 / cg" |
|
953 |
"Modified: 9.1.1996 / 15:51:40 / cg" |
|
954 |
! |
|
955 |
||
956 |
isPointerEnterLeaveEvent |
|
957 |
"return true, if this event is a pointer-enter/leave event" |
|
958 |
||
3680 | 959 |
^ false |
356 | 960 |
|
961 |
"Created: 9.1.1996 / 15:51:18 / cg" |
|
962 |
! |
|
963 |
||
964 |
isPointerLeaveEvent |
|
965 |
"return true, if this event is a pointer-leave event" |
|
966 |
||
3680 | 967 |
^ false |
356 | 968 |
|
969 |
"Created: 9.1.1996 / 15:51:36 / cg" |
|
1158 | 970 |
! |
971 |
||
3773
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
972 |
isTerminateEvent |
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
973 |
^ false |
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
974 |
! |
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
975 |
|
4842 | 976 |
isTrayEvent |
977 |
"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
|
978 |
|
3680 | 979 |
^ false |
2034
9fd5b2a4d315
added isMapEvent / isUnmapEvent
Claus Gittinger <cg@exept.de>
parents:
2028
diff
changeset
|
980 |
|
4842 | 981 |
"Created: / 09-11-2007 / 13:09:29 / cg" |
982 |
! |
|
983 |
||
984 |
isUnmapEvent |
|
985 |
"return true, if this is an unmap event" |
|
986 |
||
987 |
^ false |
|
988 |
||
989 |
"Modified: / 09-11-2007 / 13:10:07 / cg" |
|
2034
9fd5b2a4d315
added isMapEvent / isUnmapEvent
Claus Gittinger <cg@exept.de>
parents:
2028
diff
changeset
|
990 |
! |
9fd5b2a4d315
added isMapEvent / isUnmapEvent
Claus Gittinger <cg@exept.de>
parents:
2028
diff
changeset
|
991 |
|
1158 | 992 |
isUserEvent |
993 |
"return true, if this event is a user event (i.e. mouse, keyboard or button)" |
|
994 |
||
3680 | 995 |
self isButtonEvent ifTrue:[^ true]. |
996 |
self isKeyEvent ifTrue:[^ true]. |
|
3773
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
997 |
self isTerminateEvent ifTrue:[^ true]. |
1158 | 998 |
|
3680 | 999 |
self isPointerEnterEvent ifTrue:[^ true]. |
1000 |
"/ self isPointerLeaveEvent ifTrue:[^ true]. -- why disabled ? |
|
1420 | 1001 |
|
1158 | 1002 |
^ false |
1003 |
||
1420 | 1004 |
"Modified: 5.3.1997 / 11:27:40 / cg" |
3654 | 1005 |
! |
1006 |
||
1007 |
targetView |
|
1008 |
"return the view which will eventually handle the event; |
|
1009 |
for most events, this is the same as the view, for which the event was |
|
1010 |
originally generated. |
|
1011 |
Except, if an explicit focus has been assigned (i.e. tabbed into a component), |
|
1012 |
AND the event is a keyboard event. In this case, the targetView might be different. |
|
1013 |
Notice: this method might return nil, for synthetic (app-related) or display screen related |
|
1014 |
events" |
|
1015 |
||
5201
fd4bf9d73cac
No longer scroll the focus view for mouseWheel events.
Stefan Vogel <sv@exept.de>
parents:
5020
diff
changeset
|
1016 |
^ self view. |
244 | 1017 |
! ! |
1018 |
||
3680 | 1019 |
!WindowEvent::ApplicationEvent methodsFor:'blocked'! |
1020 |
||
1021 |
view |
|
1022 |
^ nil |
|
1023 |
! ! |
|
1024 |
||
1025 |
!WindowEvent::ApplicationEvent methodsFor:'queries'! |
|
1026 |
||
1027 |
isApplicationEvent |
|
1028 |
^ true |
|
1029 |
! ! |
|
1030 |
||
1861
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1031 |
!WindowEvent::InputEvent class methodsFor:'class initialization'! |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1032 |
|
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1033 |
initialize |
1862
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1034 |
F_SHIFT := 16r001. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1035 |
F_CTRL := 16r002. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1036 |
F_ALT := 16r004. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1037 |
F_META := 16r008. |
1861
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1038 |
|
1862
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1039 |
F_BUTTON1 := 16r100. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1040 |
F_BUTTON2 := 16r200. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1041 |
F_BUTTON3 := 16r400. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1042 |
|
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1043 |
" |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1044 |
self initialize |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1045 |
" |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1046 |
|
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1047 |
"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
|
1048 |
! ! |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1049 |
|
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1050 |
!WindowEvent::InputEvent methodsFor:'accessing'! |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1051 |
|
1862
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1052 |
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
|
1053 |
|f "{ Class: SmallInteger }"| |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1054 |
|
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1055 |
f := 0. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1056 |
shift ifTrue:[f := f bitOr:F_SHIFT]. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1057 |
ctrl ifTrue:[f := f bitOr:F_CTRL]. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1058 |
alt ifTrue:[f := f bitOr:F_ALT]. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1059 |
meta ifTrue:[f := f bitOr:F_META]. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1060 |
b1 ifTrue:[f := f bitOr:F_BUTTON1]. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1061 |
b2 ifTrue:[f := f bitOr:F_BUTTON2]. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1062 |
b3 ifTrue:[f := f bitOr:F_BUTTON3]. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1063 |
modifierFlags := f. |
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 |
"Created: 13.8.1997 / 22:17:56 / cg" |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1066 |
! |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1067 |
|
1861
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1068 |
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
|
1069 |
|f "{ Class: SmallInteger }"| |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1070 |
|
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1071 |
f := 0. |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1072 |
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
|
1073 |
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
|
1074 |
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
|
1075 |
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
|
1076 |
modifierFlags := f. |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1077 |
|
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1078 |
"Created: 13.8.1997 / 22:02:09 / cg" |
1862
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1079 |
! |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1080 |
|
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1081 |
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
|
1082 |
|f "{ Class: SmallInteger }"| |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1083 |
|
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1084 |
f := 0. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1085 |
shift ifTrue:[f := f bitOr:F_SHIFT]. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1086 |
ctrl ifTrue:[f := f bitOr:F_CTRL]. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1087 |
alt ifTrue:[f := f bitOr:F_ALT]. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1088 |
meta ifTrue:[f := f bitOr:F_META]. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1089 |
b1 ifTrue:[f := f bitOr:F_BUTTON1]. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1090 |
b2 ifTrue:[f := f bitOr:F_BUTTON2]. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1091 |
b3 ifTrue:[f := f bitOr:F_BUTTON3]. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1092 |
modifierFlags := f. |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1093 |
|
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1094 |
"Created: 13.8.1997 / 22:17:25 / cg" |
2761 | 1095 |
! |
1096 |
||
1097 |
modifierFlags |
|
1098 |
^ modifierFlags |
|
1099 |
! |
|
1100 |
||
1101 |
modifierFlags:flagBits |
|
1102 |
modifierFlags := flagBits |
|
1861
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1103 |
! ! |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1104 |
|
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1105 |
!WindowEvent::InputEvent methodsFor:'queries'! |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1106 |
|
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1107 |
hasAlt |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1108 |
"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
|
1109 |
|
1885 | 1110 |
modifierFlags isNil ifTrue:[^ false]. |
1861
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1111 |
^ (modifierFlags bitAnd:F_ALT) ~~ 0 |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1112 |
|
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1113 |
"Created: 13.8.1997 / 22:02:23 / cg" |
1885 | 1114 |
"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
|
1115 |
! |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1116 |
|
1862
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1117 |
hasButton1 |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1118 |
"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
|
1119 |
|
1885 | 1120 |
modifierFlags isNil ifTrue:[^ false]. |
1862
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1121 |
^ (modifierFlags bitAnd:F_BUTTON1) ~~ 0 |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1122 |
|
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1123 |
"Created: 13.8.1997 / 22:16:35 / cg" |
1885 | 1124 |
"Modified: 21.8.1997 / 19:41:40 / cg" |
1862
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1125 |
! |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1126 |
|
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1127 |
hasButton2 |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1128 |
"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
|
1129 |
|
1885 | 1130 |
modifierFlags isNil ifTrue:[^ false]. |
1862
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1131 |
^ (modifierFlags bitAnd:F_BUTTON2) ~~ 0 |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1132 |
|
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1133 |
"Created: 13.8.1997 / 22:16:43 / cg" |
1885 | 1134 |
"Modified: 21.8.1997 / 19:41:47 / cg" |
1862
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1135 |
! |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1136 |
|
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1137 |
hasButton3 |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1138 |
"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
|
1139 |
|
1885 | 1140 |
modifierFlags isNil ifTrue:[^ false]. |
1862
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1141 |
^ (modifierFlags bitAnd:F_BUTTON3) ~~ 0 |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1142 |
|
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1143 |
"Created: 13.8.1997 / 22:16:49 / cg" |
1885 | 1144 |
"Modified: 21.8.1997 / 19:41:52 / cg" |
1862
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1145 |
! |
e56d9a7389bb
also remember buttonStates in keyEvents.
Claus Gittinger <cg@exept.de>
parents:
1861
diff
changeset
|
1146 |
|
1861
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1147 |
hasCtrl |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1148 |
"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
|
1149 |
|
1885 | 1150 |
modifierFlags isNil ifTrue:[^ false]. |
1861
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1151 |
^ (modifierFlags bitAnd:F_CTRL) ~~ 0 |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1152 |
|
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1153 |
"Created: 13.8.1997 / 22:02:29 / cg" |
1885 | 1154 |
"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
|
1155 |
! |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1156 |
|
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1157 |
hasMeta |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1158 |
"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
|
1159 |
|
1885 | 1160 |
modifierFlags isNil ifTrue:[^ false]. |
1861
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1161 |
^ (modifierFlags bitAnd:F_META) ~~ 0 |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1162 |
|
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1163 |
"Created: 13.8.1997 / 22:02:59 / cg" |
1885 | 1164 |
"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
|
1165 |
! |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1166 |
|
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1167 |
hasShift |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1168 |
"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
|
1169 |
|
1885 | 1170 |
modifierFlags isNil ifTrue:[^ false]. |
1861
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1171 |
^ (modifierFlags bitAnd:F_SHIFT) ~~ 0 |
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1172 |
|
1b1e49147380
remember shift,meta,alt & ctrl state in buttonEvents
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
1173 |
"Created: 13.8.1997 / 22:03:09 / cg" |
1885 | 1174 |
"Modified: 21.8.1997 / 19:41:34 / cg" |
2707 | 1175 |
! |
1176 |
||
1177 |
isInputEvent |
|
1178 |
^ true |
|
1179 |
||
1180 |
"Created: / 21.5.1999 / 19:49:30 / cg" |
|
3465 | 1181 |
! |
1182 |
||
5204
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1183 |
targetView |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1184 |
"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
|
1185 |
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
|
1186 |
originally generated. |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1187 |
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
|
1188 |
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
|
1189 |
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
|
1190 |
events" |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1191 |
|
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1192 |
|evView group focusView| |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1193 |
|
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1194 |
evView := self view. |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1195 |
self isDelegatedToFocusView ifTrue:[ |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1196 |
evView notNil ifTrue:[ |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1197 |
group := evView windowGroup. |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1198 |
group notNil ifTrue:[ |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1199 |
focusView := group focusView. |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1200 |
focusView notNil ifTrue:[^ focusView]. |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1201 |
]. |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1202 |
]. |
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 |
3465 | 1205 |
! ! |
1206 |
||
3297 | 1207 |
!WindowEvent::ButtonEvent methodsFor:'accessing'! |
1208 |
||
1209 |
button |
|
1210 |
"return the button nr of the button-event" |
|
1211 |
||
1212 |
^ args at:1 |
|
1213 |
! |
|
1214 |
||
1215 |
state |
|
1216 |
"return the button state of the button-event |
|
1217 |
(mouse button bits at the time of the event)." |
|
1218 |
||
1219 |
^ args at:1 |
|
1220 |
||
1221 |
"Created: / 12.11.1998 / 16:21:18 / cg" |
|
1222 |
! |
|
1223 |
||
1224 |
x |
|
1225 |
"return the x coordinate of the button-event |
|
1226 |
(mouse position at the time of the event)." |
|
1227 |
||
1228 |
^ args at:2 |
|
1229 |
||
1230 |
"Created: 1.8.1997 / 13:58:15 / cg" |
|
1231 |
! |
|
1232 |
||
1233 |
x:anInteger |
|
1234 |
"change the x coordinate of the button-event" |
|
1235 |
||
1236 |
args at:2 put:anInteger |
|
1237 |
||
1238 |
"Created: 1.8.1997 / 13:58:15 / cg" |
|
1239 |
! |
|
1240 |
||
1241 |
y |
|
1242 |
"return the y coordinate of the button-event |
|
1243 |
(mouse position at the time of the event)." |
|
1244 |
||
1245 |
^ args at:3 |
|
1246 |
||
1247 |
"Created: 1.8.1997 / 13:58:07 / cg" |
|
1248 |
! |
|
1249 |
||
1250 |
y:anInteger |
|
1251 |
"change the y coordinate of the button-event" |
|
1252 |
||
1253 |
^ args at:3 put:anInteger |
|
1254 |
||
1255 |
"Created: 1.8.1997 / 13:58:15 / cg" |
|
1256 |
! ! |
|
1257 |
||
1258 |
!WindowEvent::ButtonEvent methodsFor:'queries'! |
|
1259 |
||
1260 |
isButtonEvent |
|
1261 |
"return true, if this event is a button event" |
|
1262 |
||
1263 |
^ true |
|
1264 |
||
1265 |
"Created: 4.4.1997 / 13:44:11 / cg" |
|
3680 | 1266 |
! ! |
1267 |
||
1268 |
!WindowEvent::ButtonPressEvent methodsFor:'queries'! |
|
1269 |
||
1270 |
isButtonPressEvent |
|
1271 |
"return true, if this event is a buttonPress event" |
|
1272 |
||
1273 |
^ true |
|
1274 |
! ! |
|
1275 |
||
1276 |
!WindowEvent::ButtonMultiPressEvent methodsFor:'queries'! |
|
1277 |
||
4628 | 1278 |
isButtonMultiPressEvent |
1279 |
^ true |
|
1280 |
! |
|
1281 |
||
3680 | 1282 |
isButtonPressEvent |
1283 |
"/ ATTENTION: temporary for bw. compatibility, since due to a bug, |
|
1284 |
"/ multi-presses returned false to this query |
|
1285 |
||
1286 |
"/'----------------' errorPrint. |
|
1287 |
"/'oops multipressEvent asked for isButtonPress' errorPrintCR. |
|
1288 |
"/thisContext fullPrintAll. |
|
1289 |
^ false |
|
1290 |
! ! |
|
1291 |
||
1292 |
!WindowEvent::ButtonReleaseEvent methodsFor:'queries'! |
|
1293 |
||
1294 |
isButtonReleaseEvent |
|
1295 |
"return true, if this event is a buttonRelease event" |
|
1296 |
||
1297 |
^ true |
|
1298 |
! ! |
|
1299 |
||
1300 |
!WindowEvent::ClientEvent methodsFor:'accessing'! |
|
1301 |
||
1302 |
eventData |
|
1303 |
"return the value of the instance variable 'eventData' (automatically generated)" |
|
1304 |
||
1305 |
^ eventData |
|
1306 |
||
1307 |
"Created: 4.4.1997 / 17:41:50 / cg" |
|
3297 | 1308 |
! |
1309 |
||
3680 | 1310 |
eventData:something |
1311 |
"set the value of the instance variable 'eventData' (automatically generated)" |
|
1312 |
||
1313 |
eventData := something. |
|
1314 |
||
1315 |
"Created: 4.4.1997 / 17:41:57 / cg" |
|
1316 |
! ! |
|
1317 |
||
1318 |
!WindowEvent::ConfigureEvent methodsFor:'queries'! |
|
1319 |
||
1320 |
isConfigureEvent |
|
1321 |
^ true |
|
1322 |
! ! |
|
1323 |
||
1324 |
!WindowEvent::DamageEvent methodsFor:'queries'! |
|
1325 |
||
1326 |
isDamage |
|
1327 |
"return true, if this is a damage event" |
|
1328 |
||
1329 |
^ true |
|
1330 |
! |
|
1331 |
||
1332 |
isDamageForView:aView |
|
1333 |
"return true, if this is a damage event for aView" |
|
1334 |
||
1335 |
^ (receiver == aView) |
|
1336 |
! ! |
|
1337 |
||
4988 | 1338 |
!WindowEvent::EnterLeaveEvent methodsFor:'accessing'! |
1339 |
||
1340 |
state |
|
1341 |
||
1342 |
^ args at:1 |
|
1343 |
! |
|
1344 |
||
1345 |
x |
|
1346 |
||
1347 |
^ args at:2 ifAbsent:nil |
|
1348 |
! |
|
1349 |
||
1350 |
y |
|
1351 |
||
1352 |
^ args at:3 ifAbsent:nil |
|
1353 |
! ! |
|
1354 |
||
3680 | 1355 |
!WindowEvent::EnterLeaveEvent methodsFor:'queries'! |
1356 |
||
1357 |
isPointerEnterEvent |
|
1358 |
"return true, if this event is a pointer-enter event" |
|
1359 |
||
1360 |
^ (selector == #'pointerEnter:x:y:') |
|
1361 |
||
1362 |
"Created: 9.1.1996 / 15:51:24 / cg" |
|
1363 |
"Modified: 9.1.1996 / 15:51:40 / cg" |
|
1364 |
! |
|
1365 |
||
1366 |
isPointerEnterLeaveEvent |
|
1367 |
"return true, if this event is a pointer-enter/leave event" |
|
1368 |
||
1369 |
^ true |
|
1370 |
||
1371 |
"Created: 9.1.1996 / 15:51:18 / cg" |
|
1372 |
! |
|
1373 |
||
1374 |
isPointerLeaveEvent |
|
1375 |
"return true, if this event is a pointer-leave event" |
|
1376 |
||
1377 |
^ selector == #'pointerLeave:' |
|
1378 |
||
1379 |
"Created: 9.1.1996 / 15:51:36 / cg" |
|
1380 |
! ! |
|
1381 |
||
1382 |
!WindowEvent::FocusEvent methodsFor:'queries'! |
|
1383 |
||
1384 |
isFocusEvent |
|
1385 |
"return true, if this event is a focus event" |
|
1386 |
||
1387 |
^ true |
|
1388 |
||
1389 |
"Created: / 21.5.1999 / 19:44:47 / cg" |
|
1390 |
! |
|
1391 |
||
1392 |
isFocusInEvent |
|
1393 |
"return true, if this event is a focusIn event" |
|
1394 |
||
1395 |
^ (selector == #focusIn) |
|
1396 |
||
1397 |
"Created: / 21.5.1999 / 19:45:04 / cg" |
|
4980 | 1398 |
! |
1399 |
||
1400 |
isFocusOutEvent |
|
1401 |
"return true, if this event is a focusOut event" |
|
1402 |
||
1403 |
^ (selector == #focusOut) |
|
1404 |
||
1405 |
"Created: / 21.5.1999 / 19:45:04 / cg" |
|
3680 | 1406 |
! ! |
1407 |
||
1408 |
!WindowEvent::ButtonMotionEvent methodsFor:'queries'! |
|
1409 |
||
3297 | 1410 |
isButtonMotionEvent |
1411 |
"return true, if this event is a buttonMotion event" |
|
1412 |
||
3680 | 1413 |
^ true |
3297 | 1414 |
! ! |
1415 |
||
1527
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1416 |
!WindowEvent::KeyboardEvent methodsFor:'accessing'! |
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1417 |
|
1841 | 1418 |
key |
1419 |
"return the key of the key-event." |
|
1420 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
1421 |
^ args at:1 |
1841 | 1422 |
|
1423 |
"Created: 1.8.1997 / 13:55:19 / cg" |
|
1424 |
! |
|
1425 |
||
2852 | 1426 |
key:aCharacterOrSymbol |
1427 |
"change the key of the key-event." |
|
1428 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
1429 |
args at:1 put:aCharacterOrSymbol |
2852 | 1430 |
|
1431 |
"Created: 1.8.1997 / 13:55:19 / cg" |
|
1432 |
! |
|
1433 |
||
1527
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1434 |
rawKey |
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1435 |
^ rawKey |
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1436 |
|
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1437 |
"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
|
1438 |
! |
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1439 |
|
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1440 |
rawKey:aKey |
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1441 |
rawKey := aKey |
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1442 |
|
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1443 |
"Created: 4.4.1997 / 13:47:10 / cg" |
1841 | 1444 |
! |
1445 |
||
1446 |
x |
|
1447 |
"return the x coordinate of the key-event |
|
1448 |
(mouse position at the time of the key-event)." |
|
1449 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
1450 |
^ args at:2 |
1841 | 1451 |
|
1452 |
"Created: 1.8.1997 / 13:57:27 / cg" |
|
1453 |
! |
|
1454 |
||
3089 | 1455 |
xy:anInteger |
1456 |
"change the x coordinate of the key-event" |
|
1457 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
1458 |
^ args at:2 put:anInteger |
3089 | 1459 |
! |
1460 |
||
1841 | 1461 |
y |
1462 |
"return the y coordinate of the key-event |
|
1463 |
(mouse position at the time of the key-event)." |
|
1464 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
1465 |
^ args at:3 |
1841 | 1466 |
|
1467 |
"Created: 1.8.1997 / 13:55:19 / cg" |
|
1468 |
"Modified: 1.8.1997 / 13:57:42 / cg" |
|
3089 | 1469 |
! |
1470 |
||
1471 |
y:anInteger |
|
1472 |
"change the y coordinate of the key-event" |
|
1473 |
||
3295
84de6d18b9d1
code cleanup - now a subclass of MessageSend - thats what it is really
Claus Gittinger <cg@exept.de>
parents:
3294
diff
changeset
|
1474 |
^ args at:3 put:anInteger |
1527
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1475 |
! ! |
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1476 |
|
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1477 |
!WindowEvent::KeyboardEvent methodsFor:'queries'! |
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1478 |
|
5204
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1479 |
isDelegatedToFocusView |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1480 |
"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
|
1481 |
|
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1482 |
^ true |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1483 |
! |
748c8f2954e9
fixed mouseWheelScroll bug due to changed targetView code
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
1484 |
|
1527
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1485 |
isKeyEvent |
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1486 |
"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
|
1487 |
|
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1488 |
^ true |
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1489 |
|
661de0f76595
started to separate into distinct event classes;
Claus Gittinger <cg@exept.de>
parents:
1470
diff
changeset
|
1490 |
"Created: 4.4.1997 / 13:39:59 / cg" |
3686 | 1491 |
! ! |
1492 |
||
1493 |
!WindowEvent::KeyReleaseEvent methodsFor:'queries'! |
|
1494 |
||
1495 |
isKeyReleaseEvent |
|
1496 |
"return true, if this event is a keyboard press event" |
|
1497 |
||
1498 |
^ true |
|
1499 |
! ! |
|
1500 |
||
1501 |
!WindowEvent::KeyPressEvent methodsFor:'queries'! |
|
2028 | 1502 |
|
1503 |
isKeyPressEvent |
|
1504 |
"return true, if this event is a keyboard press event" |
|
1505 |
||
3686 | 1506 |
^ true |
1527
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 |
|
4988 | 1509 |
!WindowEvent::KeyboardFocusEvent methodsFor:'accessing'! |
1510 |
||
1511 |
hasFocus |
|
1512 |
||
1513 |
^ args at: 1 |
|
1514 |
! ! |
|
1515 |
||
3376 | 1516 |
!WindowEvent::KeyboardFocusEvent methodsFor:'queries'! |
1517 |
||
1518 |
isKeyboardFocusEvent |
|
1519 |
"return true, if this event is a keyboard focus event" |
|
1520 |
||
1521 |
^ true |
|
1522 |
! ! |
|
1523 |
||
3680 | 1524 |
!WindowEvent::MessageSendEvent methodsFor:'blocked'! |
1525 |
||
1526 |
view |
|
1527 |
^ nil |
|
1528 |
! ! |
|
1529 |
||
3465 | 1530 |
!WindowEvent::MessageSendEvent methodsFor:'queries'! |
3089 | 1531 |
|
3465 | 1532 |
isMessageSendEvent |
1533 |
"return true, if this event is a general messageSend event" |
|
3089 | 1534 |
|
1535 |
^ true |
|
1536 |
||
1537 |
||
1538 |
||
1539 |
! ! |
|
1540 |
||
4988 | 1541 |
!WindowEvent::MouseWheelMotionEvent methodsFor:'accessing'! |
1542 |
||
1543 |
amount |
|
1544 |
"return the amount of the mouse wheel motion event " |
|
1545 |
||
1546 |
^ args at:4 |
|
1547 |
! |
|
1548 |
||
1549 |
deltaTime |
|
1550 |
"return the deltaTime of the mouse wheel motion event " |
|
1551 |
||
1552 |
^ args at:5 |
|
1553 |
! ! |
|
1554 |
||
5205 | 1555 |
!WindowEvent::MouseWheelMotionEvent methodsFor:'queries'! |
1556 |
||
1557 |
isDelegatedToFocusView |
|
1558 |
"return true, if this event will be forwarded to a focusView." |
|
1559 |
||
1560 |
^ true. |
|
1561 |
! |
|
1562 |
||
1563 |
isMouseWheelEvent |
|
1564 |
^ true. |
|
1565 |
! ! |
|
1566 |
||
4233 | 1567 |
!WindowEvent::NativeWidgetCommandEvent methodsFor:'accessing'! |
1568 |
||
1569 |
command |
|
1570 |
^ selector |
|
1571 |
! |
|
1572 |
||
1573 |
command:something |
|
1574 |
selector := something. |
|
1575 |
! ! |
|
1576 |
||
4044 | 1577 |
!WindowEvent::NewDamageEvent methodsFor:'queries'! |
1578 |
||
1579 |
isDamage |
|
1580 |
"return true, if this is a damage event" |
|
1581 |
||
1582 |
^ true |
|
1583 |
! |
|
1584 |
||
1585 |
isDamageForView:aView |
|
1586 |
"return true, if this is a damage event for aView" |
|
1587 |
||
1588 |
^ (receiver == aView) |
|
1589 |
! ! |
|
1590 |
||
3773
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
1591 |
!WindowEvent::TerminateEvent methodsFor:'queries'! |
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
1592 |
|
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
1593 |
isTerminateEvent |
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
1594 |
^ true |
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
1595 |
! ! |
e2fd3df91e5c
new event class for TerminateEvents
Claus Gittinger <cg@exept.de>
parents:
3758
diff
changeset
|
1596 |
|
4817 | 1597 |
!WindowEvent::TrayActionEvent methodsFor:'accessing'! |
1598 |
||
1599 |
event |
|
1600 |
^ selector |
|
1601 |
||
1602 |
"Created: / 31-10-2007 / 01:23:05 / cg" |
|
1603 |
! |
|
1604 |
||
1605 |
event:something |
|
1606 |
selector := something. |
|
1607 |
||
1608 |
"Created: / 31-10-2007 / 01:23:07 / cg" |
|
1609 |
! ! |
|
1610 |
||
4842 | 1611 |
!WindowEvent::TrayActionEvent methodsFor:'queries'! |
1612 |
||
1613 |
isTrayEvent |
|
1614 |
^ true |
|
1615 |
||
1616 |
"Created: / 09-11-2007 / 13:09:17 / cg" |
|
1617 |
! ! |
|
1618 |
||
3680 | 1619 |
!WindowEvent::WindowMapUnmapEvent methodsFor:'queries'! |
1620 |
||
1621 |
isMapEvent |
|
4842 | 1622 |
"return true, if this is a map event" |
3680 | 1623 |
|
1624 |
^ selector == #mapped |
|
1625 |
||
4842 | 1626 |
"Created: / 29-01-1998 / 21:52:54 / cg" |
1627 |
"Modified: / 09-11-2007 / 13:11:02 / cg" |
|
3680 | 1628 |
! |
1629 |
||
1630 |
isUnmapEvent |
|
4842 | 1631 |
"return true, if this is an unmap event" |
3680 | 1632 |
|
1633 |
^ selector == #unmapped |
|
1634 |
||
4842 | 1635 |
"Modified: / 09-11-2007 / 13:11:04 / cg" |
3680 | 1636 |
! ! |
1637 |
||
251 | 1638 |
!WindowEvent class methodsFor:'documentation'! |
1639 |
||
1640 |
version |
|
5205 | 1641 |
^ '$Header: /cvs/stx/stx/libview/WindowEvent.st,v 1.100 2009-02-25 10:35:01 sr Exp $' |
251 | 1642 |
! ! |
3758 | 1643 |
|
1644 |
WindowEvent::InputEvent initialize! |