EventListener.st
author Claus Gittinger <cg@exept.de>
Fri, 12 Mar 2004 13:28:38 +0100
changeset 1955 257a4acb852b
parent 1939 f72ff9a773e5
child 2390 67d0a61fbadf
permissions -rw-r--r--
classResources now understood by all classes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
60
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
     1
"
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
     2
 COPYRIGHT (c) 1995 by Claus Gittinger
77
claus
parents: 60
diff changeset
     3
	      All Rights Reserved
60
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
     4
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
     5
 This software is furnished under a license and may be used
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    10
 hereby transferred.
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    11
"
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    12
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    13
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    14
1424
3198d7d846be catch errors when processing events;
tm
parents: 1271
diff changeset
    15
"{ Package: 'stx:libview2' }"
3198d7d846be catch errors when processing events;
tm
parents: 1271
diff changeset
    16
60
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    17
Object subclass:#EventListener
212
874afdeb380a commentary
Claus Gittinger <cg@exept.de>
parents: 127
diff changeset
    18
	instanceVariableNames:''
874afdeb380a commentary
Claus Gittinger <cg@exept.de>
parents: 127
diff changeset
    19
	classVariableNames:''
874afdeb380a commentary
Claus Gittinger <cg@exept.de>
parents: 127
diff changeset
    20
	poolDictionaries:''
874afdeb380a commentary
Claus Gittinger <cg@exept.de>
parents: 127
diff changeset
    21
	category:'Interface-Support'
60
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    22
!
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    23
1173
8c6ccf98efd9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 574
diff changeset
    24
!EventListener class methodsFor:'documentation'!
60
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    25
123
39e9679c132d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
    26
copyright
39e9679c132d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
    27
"
39e9679c132d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
    28
 COPYRIGHT (c) 1995 by Claus Gittinger
39e9679c132d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
    29
	      All Rights Reserved
39e9679c132d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
    30
39e9679c132d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
    31
 This software is furnished under a license and may be used
39e9679c132d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
    32
 only in accordance with the terms of that license and with the
39e9679c132d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
    33
 inclusion of the above copyright notice.   This software may not
39e9679c132d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
    34
 be provided or otherwise made available to, or used by, any
39e9679c132d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
    35
 other person.  No title to or ownership of the software is
39e9679c132d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
    36
 hereby transferred.
39e9679c132d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
    37
"
39e9679c132d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
    38
39e9679c132d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
    39
60
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    40
!
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    41
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    42
documentation
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    43
"
98
claus
parents: 96
diff changeset
    44
    abstract class for event listeners. EventListeners can be used to intercept
claus
parents: 96
diff changeset
    45
    incoming events (keyboard & mouse) directly from a sensor, or even
claus
parents: 96
diff changeset
    46
    for a complete display device.
574
a4fe01515dc1 added windowCreation hooks
Claus Gittinger <cg@exept.de>
parents: 327
diff changeset
    47
    A concrete application is the bubble help, which tracks entering/leaving
a4fe01515dc1 added windowCreation hooks
Claus Gittinger <cg@exept.de>
parents: 327
diff changeset
    48
    views, and pops up some help message. 
a4fe01515dc1 added windowCreation hooks
Claus Gittinger <cg@exept.de>
parents: 327
diff changeset
    49
    See concrete code in ActiveHelp.
a4fe01515dc1 added windowCreation hooks
Claus Gittinger <cg@exept.de>
parents: 327
diff changeset
    50
98
claus
parents: 96
diff changeset
    51
    For each intercepted event, a corresponding method is called for in instances
574
a4fe01515dc1 added windowCreation hooks
Claus Gittinger <cg@exept.de>
parents: 327
diff changeset
    52
    of myself - these MUST return true, if the event is to be ignored (i.e.
a4fe01515dc1 added windowCreation hooks
Claus Gittinger <cg@exept.de>
parents: 327
diff changeset
    53
    assumed to be processed and consumed by the reader, 
a4fe01515dc1 added windowCreation hooks
Claus Gittinger <cg@exept.de>
parents: 327
diff changeset
    54
    and MUST return false, if the normal event procedure should be performed. 
a4fe01515dc1 added windowCreation hooks
Claus Gittinger <cg@exept.de>
parents: 327
diff changeset
    55
    Since this is an abstract class,
a4fe01515dc1 added windowCreation hooks
Claus Gittinger <cg@exept.de>
parents: 327
diff changeset
    56
    all of my intercept methods return false. 
a4fe01515dc1 added windowCreation hooks
Claus Gittinger <cg@exept.de>
parents: 327
diff changeset
    57
    They are meant to be redefined in concrete subclasses.
212
874afdeb380a commentary
Claus Gittinger <cg@exept.de>
parents: 127
diff changeset
    58
874afdeb380a commentary
Claus Gittinger <cg@exept.de>
parents: 127
diff changeset
    59
    [see also:]
574
a4fe01515dc1 added windowCreation hooks
Claus Gittinger <cg@exept.de>
parents: 327
diff changeset
    60
	WindowSensor WindowEvent WindowGroup
222
c51b06f6bf9a documentation
Claus Gittinger <cg@exept.de>
parents: 213
diff changeset
    61
c51b06f6bf9a documentation
Claus Gittinger <cg@exept.de>
parents: 213
diff changeset
    62
    [author:]
574
a4fe01515dc1 added windowCreation hooks
Claus Gittinger <cg@exept.de>
parents: 327
diff changeset
    63
	Claus Gittinger
60
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    64
"
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    65
! !
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    66
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    67
!EventListener methodsFor:'events'!
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    68
1483
a820040c7240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1424
diff changeset
    69
buttonMotion:buttonState x:x y:y view:aView
574
a4fe01515dc1 added windowCreation hooks
Claus Gittinger <cg@exept.de>
parents: 327
diff changeset
    70
    "not handled here - should be redefined in a concrete subclass"
213
9fac751c6499 commentary
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
    71
60
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    72
    ^ false
213
9fac751c6499 commentary
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
    73
9fac751c6499 commentary
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
    74
    "Modified: 23.4.1996 / 21:57:54 / cg"
60
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    75
!
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    76
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    77
buttonMultiPress:button x:x y:y view:aView
574
a4fe01515dc1 added windowCreation hooks
Claus Gittinger <cg@exept.de>
parents: 327
diff changeset
    78
    "not handled here - should be redefined in a concrete subclass"
213
9fac751c6499 commentary
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
    79
60
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    80
    ^ false
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    81
213
9fac751c6499 commentary
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
    82
    "Modified: 23.4.1996 / 21:57:58 / cg"
60
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    83
!
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    84
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    85
buttonPress:button x:x y:y view:aView
574
a4fe01515dc1 added windowCreation hooks
Claus Gittinger <cg@exept.de>
parents: 327
diff changeset
    86
    "not handled here - should be redefined in a concrete subclass"
213
9fac751c6499 commentary
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
    87
60
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    88
    ^ false
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    89
213
9fac751c6499 commentary
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
    90
    "Modified: 23.4.1996 / 21:58:01 / cg"
60
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    91
!
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    92
123
39e9679c132d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
    93
buttonRelease:button x:x y:y view:aView
574
a4fe01515dc1 added windowCreation hooks
Claus Gittinger <cg@exept.de>
parents: 327
diff changeset
    94
    "not handled here - should be redefined in a concrete subclass"
213
9fac751c6499 commentary
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
    95
60
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    96
    ^ false
123
39e9679c132d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
    97
213
9fac751c6499 commentary
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
    98
    "Modified: 23.4.1996 / 21:58:03 / cg"
60
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
    99
!
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   100
1424
3198d7d846be catch errors when processing events;
tm
parents: 1271
diff changeset
   101
hasKeyboardFocus:aBoolean view:aView
3198d7d846be catch errors when processing events;
tm
parents: 1271
diff changeset
   102
    "not handled here - should be redefined in a concrete subclass"
3198d7d846be catch errors when processing events;
tm
parents: 1271
diff changeset
   103
3198d7d846be catch errors when processing events;
tm
parents: 1271
diff changeset
   104
    ^ false
3198d7d846be catch errors when processing events;
tm
parents: 1271
diff changeset
   105
!
3198d7d846be catch errors when processing events;
tm
parents: 1271
diff changeset
   106
123
39e9679c132d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   107
keyPress:key x:x y:y view:aView
574
a4fe01515dc1 added windowCreation hooks
Claus Gittinger <cg@exept.de>
parents: 327
diff changeset
   108
    "not handled here - should be redefined in a concrete subclass"
213
9fac751c6499 commentary
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
   109
123
39e9679c132d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   110
    ^ false
39e9679c132d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   111
213
9fac751c6499 commentary
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
   112
    "Modified: 23.4.1996 / 21:58:08 / cg"
123
39e9679c132d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   113
!
39e9679c132d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   114
39e9679c132d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   115
keyRelease:key x:x y:y view:aView
574
a4fe01515dc1 added windowCreation hooks
Claus Gittinger <cg@exept.de>
parents: 327
diff changeset
   116
    "not handled here - should be redefined in a concrete subclass"
213
9fac751c6499 commentary
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
   117
60
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   118
    ^ false
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   119
213
9fac751c6499 commentary
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
   120
    "Modified: 23.4.1996 / 21:58:11 / cg"
60
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   121
!
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   122
1178
44f1fee1b444 pass x/y with mouseWheel event
Claus Gittinger <cg@exept.de>
parents: 1176
diff changeset
   123
mouseWheelMotion:state x:x y:y amount:amount deltaTime:dTime view:aView
1173
8c6ccf98efd9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 574
diff changeset
   124
    "not handled here - can be redefined in a concrete subclass"
8c6ccf98efd9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 574
diff changeset
   125
8c6ccf98efd9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 574
diff changeset
   126
    ^ false
8c6ccf98efd9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 574
diff changeset
   127
8c6ccf98efd9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 574
diff changeset
   128
    "Modified: / 23.4.1996 / 21:57:54 / cg"
8c6ccf98efd9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 574
diff changeset
   129
    "Created: / 21.5.1999 / 13:07:13 / cg"
8c6ccf98efd9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 574
diff changeset
   130
!
8c6ccf98efd9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 574
diff changeset
   131
60
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   132
pointerEnter:state x:x y:y view:view
574
a4fe01515dc1 added windowCreation hooks
Claus Gittinger <cg@exept.de>
parents: 327
diff changeset
   133
    "not handled here - should be redefined in a concrete subclass"
213
9fac751c6499 commentary
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
   134
60
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   135
    ^ false
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   136
213
9fac751c6499 commentary
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
   137
    "Modified: 23.4.1996 / 21:58:14 / cg"
60
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   138
!
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   139
123
39e9679c132d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   140
pointerLeave:state view:view
574
a4fe01515dc1 added windowCreation hooks
Claus Gittinger <cg@exept.de>
parents: 327
diff changeset
   141
    "not handled here - should be redefined in a concrete subclass"
213
9fac751c6499 commentary
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
   142
60
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   143
    ^ false
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   144
213
9fac751c6499 commentary
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
   145
    "Modified: 23.4.1996 / 21:58:17 / cg"
1262
9b691fdaae56 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1178
diff changeset
   146
!
9b691fdaae56 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1178
diff changeset
   147
9b691fdaae56 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1178
diff changeset
   148
postCreateView:aView
9b691fdaae56 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1178
diff changeset
   149
    ^ self
9b691fdaae56 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1178
diff changeset
   150
!
9b691fdaae56 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1178
diff changeset
   151
9b691fdaae56 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1178
diff changeset
   152
preCreateView:aView
9b691fdaae56 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1178
diff changeset
   153
    ^ self
60
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   154
! !
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   155
1770
e044357844f9 method category rename
Claus Gittinger <cg@exept.de>
parents: 1483
diff changeset
   156
!EventListener methodsFor:'events-window creation'!
574
a4fe01515dc1 added windowCreation hooks
Claus Gittinger <cg@exept.de>
parents: 327
diff changeset
   157
a4fe01515dc1 added windowCreation hooks
Claus Gittinger <cg@exept.de>
parents: 327
diff changeset
   158
preCreateView:aView origin:org
a4fe01515dc1 added windowCreation hooks
Claus Gittinger <cg@exept.de>
parents: 327
diff changeset
   159
    "invoked right before a view is about to be physically created.
a4fe01515dc1 added windowCreation hooks
Claus Gittinger <cg@exept.de>
parents: 327
diff changeset
   160
     May return a new origin."
a4fe01515dc1 added windowCreation hooks
Claus Gittinger <cg@exept.de>
parents: 327
diff changeset
   161
a4fe01515dc1 added windowCreation hooks
Claus Gittinger <cg@exept.de>
parents: 327
diff changeset
   162
    ^ org
a4fe01515dc1 added windowCreation hooks
Claus Gittinger <cg@exept.de>
parents: 327
diff changeset
   163
! !
a4fe01515dc1 added windowCreation hooks
Claus Gittinger <cg@exept.de>
parents: 327
diff changeset
   164
60
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   165
!EventListener methodsFor:'listen'!
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   166
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   167
listen
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   168
    "install myself as listener"
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   169
1262
9b691fdaae56 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1178
diff changeset
   170
    WindowSensor addEventListener:self
60
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   171
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   172
    "
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   173
     |listener|
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   174
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   175
     listener := EventListener new.
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   176
     listener listen.
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   177
     (Delay forSeconds:20) wait.
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   178
     listener unlisten
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   179
    "
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   180
!
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   181
1262
9b691fdaae56 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1178
diff changeset
   182
processEvent:ev
1271
1fc0f8a774c7 comment
Claus Gittinger <cg@exept.de>
parents: 1262
diff changeset
   183
    "process an event; if true is returned, the event is considered to be
1fc0f8a774c7 comment
Claus Gittinger <cg@exept.de>
parents: 1262
diff changeset
   184
     'eaten' by the listener, and not passed to the view.
1fc0f8a774c7 comment
Claus Gittinger <cg@exept.de>
parents: 1262
diff changeset
   185
     If false is returned, the event is processed as usual.
1fc0f8a774c7 comment
Claus Gittinger <cg@exept.de>
parents: 1262
diff changeset
   186
     Here, the event is dispatched into one of the button*/key* etc. methods"
1fc0f8a774c7 comment
Claus Gittinger <cg@exept.de>
parents: 1262
diff changeset
   187
1424
3198d7d846be catch errors when processing events;
tm
parents: 1271
diff changeset
   188
    Error handle:[:ex |
1939
f72ff9a773e5 print -> infoPrint
Claus Gittinger <cg@exept.de>
parents: 1770
diff changeset
   189
        ('Listener [info]: error while processing event: ' , ex description) infoPrintCR.
1424
3198d7d846be catch errors when processing events;
tm
parents: 1271
diff changeset
   190
        ^ false
3198d7d846be catch errors when processing events;
tm
parents: 1271
diff changeset
   191
    ] do:[
3198d7d846be catch errors when processing events;
tm
parents: 1271
diff changeset
   192
        ^ ev dispatchWithViewArgumentTo:self
3198d7d846be catch errors when processing events;
tm
parents: 1271
diff changeset
   193
    ]
1262
9b691fdaae56 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1178
diff changeset
   194
!
9b691fdaae56 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1178
diff changeset
   195
60
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   196
unlisten
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   197
    "uninstall myself as listener"
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   198
1262
9b691fdaae56 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1178
diff changeset
   199
    WindowSensor removeEventListener:self 
60
c9dc64d2b4d6 Initial revision
claus
parents:
diff changeset
   200
! !
123
39e9679c132d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   201
1173
8c6ccf98efd9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 574
diff changeset
   202
!EventListener class methodsFor:'documentation'!
127
4b1051c23b9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 123
diff changeset
   203
4b1051c23b9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 123
diff changeset
   204
version
1939
f72ff9a773e5 print -> infoPrint
Claus Gittinger <cg@exept.de>
parents: 1770
diff changeset
   205
    ^ '$Header: /cvs/stx/stx/libview2/EventListener.st,v 1.22 2004-03-01 23:06:27 cg Exp $'
127
4b1051c23b9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 123
diff changeset
   206
! !