InputView.st
author Claus Gittinger <cg@exept.de>
Mon, 17 Feb 2020 17:54:05 +0100
changeset 4439 bf5e63a55ea1
parent 3772 18f86fffbd1c
child 4440 7ad4e1da35ce
permissions -rw-r--r--
#DOCUMENTATION by cg class: InputView class comment/format in: #documentation
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4439
bf5e63a55ea1 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3772
diff changeset
     1
"{ Encoding: utf8 }"
bf5e63a55ea1 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3772
diff changeset
     2
0
3f9277473954 Initial revision
claus
parents:
diff changeset
     3
"
6
4ac87e6bf82f *** empty log message ***
claus
parents: 5
diff changeset
     4
 COPYRIGHT (c) 1990 by Claus Gittinger
99
claus
parents: 96
diff changeset
     5
	      All Rights Reserved
0
3f9277473954 Initial revision
claus
parents:
diff changeset
     6
3f9277473954 Initial revision
claus
parents:
diff changeset
     7
 This software is furnished under a license and may be used
3f9277473954 Initial revision
claus
parents:
diff changeset
     8
 only in accordance with the terms of that license and with the
3f9277473954 Initial revision
claus
parents:
diff changeset
     9
 inclusion of the above copyright notice.   This software may not
3f9277473954 Initial revision
claus
parents:
diff changeset
    10
 be provided or otherwise made available to, or used by, any
3f9277473954 Initial revision
claus
parents:
diff changeset
    11
 other person.  No title to or ownership of the software is
3f9277473954 Initial revision
claus
parents:
diff changeset
    12
 hereby transferred.
3f9277473954 Initial revision
claus
parents:
diff changeset
    13
"
2250
77b78d1ca422 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 1241
diff changeset
    14
"{ Package: 'stx:libview2' }"
0
3f9277473954 Initial revision
claus
parents:
diff changeset
    15
3772
18f86fffbd1c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 2775
diff changeset
    16
"{ NameSpace: Smalltalk }"
18f86fffbd1c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 2775
diff changeset
    17
65
claus
parents: 23
diff changeset
    18
SimpleView subclass:#InputView
225
7c62c2ffb363 documentation
Claus Gittinger <cg@exept.de>
parents: 130
diff changeset
    19
	instanceVariableNames:'eventReceiver'
7c62c2ffb363 documentation
Claus Gittinger <cg@exept.de>
parents: 130
diff changeset
    20
	classVariableNames:''
7c62c2ffb363 documentation
Claus Gittinger <cg@exept.de>
parents: 130
diff changeset
    21
	poolDictionaries:''
235
236f3222fa88 class category changes
Claus Gittinger <cg@exept.de>
parents: 225
diff changeset
    22
	category:'Views-Special'
0
3f9277473954 Initial revision
claus
parents:
diff changeset
    23
!
3f9277473954 Initial revision
claus
parents:
diff changeset
    24
449
9d18c9a66b59 delegate drop
ca
parents: 327
diff changeset
    25
!InputView class methodsFor:'documentation'!
21
66b31c91177f *** empty log message ***
claus
parents: 6
diff changeset
    26
66b31c91177f *** empty log message ***
claus
parents: 6
diff changeset
    27
copyright
66b31c91177f *** empty log message ***
claus
parents: 6
diff changeset
    28
"
66b31c91177f *** empty log message ***
claus
parents: 6
diff changeset
    29
 COPYRIGHT (c) 1990 by Claus Gittinger
99
claus
parents: 96
diff changeset
    30
	      All Rights Reserved
0
3f9277473954 Initial revision
claus
parents:
diff changeset
    31
21
66b31c91177f *** empty log message ***
claus
parents: 6
diff changeset
    32
 This software is furnished under a license and may be used
66b31c91177f *** empty log message ***
claus
parents: 6
diff changeset
    33
 only in accordance with the terms of that license and with the
66b31c91177f *** empty log message ***
claus
parents: 6
diff changeset
    34
 inclusion of the above copyright notice.   This software may not
66b31c91177f *** empty log message ***
claus
parents: 6
diff changeset
    35
 be provided or otherwise made available to, or used by, any
66b31c91177f *** empty log message ***
claus
parents: 6
diff changeset
    36
 other person.  No title to or ownership of the software is
66b31c91177f *** empty log message ***
claus
parents: 6
diff changeset
    37
 hereby transferred.
66b31c91177f *** empty log message ***
claus
parents: 6
diff changeset
    38
"
66b31c91177f *** empty log message ***
claus
parents: 6
diff changeset
    39
!
0
3f9277473954 Initial revision
claus
parents:
diff changeset
    40
21
66b31c91177f *** empty log message ***
claus
parents: 6
diff changeset
    41
documentation
66b31c91177f *** empty log message ***
claus
parents: 6
diff changeset
    42
"
66b31c91177f *** empty log message ***
claus
parents: 6
diff changeset
    43
    a view for input only - forwarding all events to another object.
3772
18f86fffbd1c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 2775
diff changeset
    44
    This kind of view can be used to be laid on top of another view to catch all
21
66b31c91177f *** empty log message ***
claus
parents: 6
diff changeset
    45
    input. (Interface builder)
4439
bf5e63a55ea1 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3772
diff changeset
    46
    NOTICE: the event forwarding is a leftover from times when no delegation mechanism
225
7c62c2ffb363 documentation
Claus Gittinger <cg@exept.de>
parents: 130
diff changeset
    47
            existed - it will vanish - use delegates for new code.
7c62c2ffb363 documentation
Claus Gittinger <cg@exept.de>
parents: 130
diff changeset
    48
7c62c2ffb363 documentation
Claus Gittinger <cg@exept.de>
parents: 130
diff changeset
    49
    [author:]
7c62c2ffb363 documentation
Claus Gittinger <cg@exept.de>
parents: 130
diff changeset
    50
        Claus Gittinger
21
66b31c91177f *** empty log message ***
claus
parents: 6
diff changeset
    51
"
66b31c91177f *** empty log message ***
claus
parents: 6
diff changeset
    52
! !
0
3f9277473954 Initial revision
claus
parents:
diff changeset
    53
130
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
    54
!InputView methodsFor:'accessing'!
0
3f9277473954 Initial revision
claus
parents:
diff changeset
    55
130
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
    56
eventReceiver:aView
1241
414114cfc5cc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
    57
    "set the view to which input events are forwarded"
414114cfc5cc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
    58
130
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
    59
    eventReceiver := aView
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
    60
!
0
3f9277473954 Initial revision
claus
parents:
diff changeset
    61
286
b7f2e2aefae1 renamed #inputOnly to #isInputOnly
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
    62
isInputOnly
1241
414114cfc5cc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
    63
    "return true, since this is a transparent input-only view"
286
b7f2e2aefae1 renamed #inputOnly to #isInputOnly
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
    64
0
3f9277473954 Initial revision
claus
parents:
diff changeset
    65
    ^ true
286
b7f2e2aefae1 renamed #inputOnly to #isInputOnly
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
    66
b7f2e2aefae1 renamed #inputOnly to #isInputOnly
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
    67
    "Created: 1.6.1996 / 13:22:31 / cg"
21
66b31c91177f *** empty log message ***
claus
parents: 6
diff changeset
    68
! !
66b31c91177f *** empty log message ***
claus
parents: 6
diff changeset
    69
449
9d18c9a66b59 delegate drop
ca
parents: 327
diff changeset
    70
!InputView methodsFor:'drag & drop'!
9d18c9a66b59 delegate drop
ca
parents: 327
diff changeset
    71
2257
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
    72
canDrop:aDropContext 
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
    73
    "return true, if aCollectionOfDropObjects can be dropped here.
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
    74
     Delegated to my eventReceiving view"
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
    75
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
    76
    ^ eventReceiver notNil
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
    77
      and:[ eventReceiver canDrop:aDropContext ]
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
    78
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
    79
    "Created: / 13-10-2006 / 12:35:07 / cg"
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
    80
    "Modified: / 13-10-2006 / 16:02:45 / cg"
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
    81
!
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
    82
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
    83
canDrop:aDropContext at:aPoint
1241
414114cfc5cc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
    84
    "return true, if aCollectionOfDropObjects can be dropped here.
414114cfc5cc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
    85
     Delegated to my eventReceiving view"
414114cfc5cc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
    86
2257
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
    87
    ^ eventReceiver notNil
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
    88
      and:[ eventReceiver canDrop:aDropContext at:aPoint ]
449
9d18c9a66b59 delegate drop
ca
parents: 327
diff changeset
    89
2257
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
    90
    "Created: / 13-10-2006 / 12:35:07 / cg"
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
    91
    "Modified: / 13-10-2006 / 16:02:37 / cg"
449
9d18c9a66b59 delegate drop
ca
parents: 327
diff changeset
    92
!
9d18c9a66b59 delegate drop
ca
parents: 327
diff changeset
    93
2257
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
    94
canDropObjects:aCollectionOfDropObjects
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
    95
    "return true, if aCollectionOfDropObjects can be dropped here.
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
    96
     Delegated to my eventReceiving view"
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
    97
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
    98
    ^ eventReceiver notNil 
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
    99
      and:[ eventReceiver canDropObjects:aCollectionOfDropObjects ]
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   100
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   101
    "Created: / 13-10-2006 / 16:01:58 / cg"
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   102
!
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   103
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   104
canDropObjects:aCollectionOfDropObjects at:aPoint
2250
77b78d1ca422 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 1241
diff changeset
   105
    "return true, if aCollectionOfDropObjects can be dropped here.
77b78d1ca422 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 1241
diff changeset
   106
     Delegated to my eventReceiving view"
77b78d1ca422 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 1241
diff changeset
   107
2257
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   108
    ^ eventReceiver notNil 
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   109
      and:[ eventReceiver canDropObjects:aCollectionOfDropObjects at:aPoint]
2250
77b78d1ca422 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 1241
diff changeset
   110
2257
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   111
    "Created: / 13-10-2006 / 16:02:13 / cg"
2250
77b78d1ca422 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 1241
diff changeset
   112
!
77b78d1ca422 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 1241
diff changeset
   113
2257
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   114
drop:aDropContext
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   115
    "drop aCollectionOfDropObjects here.
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   116
     Delegated to my eventReceiving view"
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   117
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   118
    eventReceiver drop:aDropContext
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   119
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   120
    "Modified: / 13-10-2006 / 16:03:32 / cg"
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   121
!
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   122
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   123
drop:aDropContext at:aPoint
2250
77b78d1ca422 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 1241
diff changeset
   124
    "drop aCollectionOfDropObjects here.
77b78d1ca422 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 1241
diff changeset
   125
     Delegated to my eventReceiving view"
77b78d1ca422 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 1241
diff changeset
   126
2257
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   127
    eventReceiver drop:aDropContext at:aPoint
2250
77b78d1ca422 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 1241
diff changeset
   128
2257
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   129
    "Modified: / 13-10-2006 / 16:03:27 / cg"
2250
77b78d1ca422 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 1241
diff changeset
   130
!
77b78d1ca422 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 1241
diff changeset
   131
2257
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   132
dropObjects:aCollectionOfDropObjects
1241
414114cfc5cc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   133
    "drop aCollectionOfDropObjects here.
414114cfc5cc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   134
     Delegated to my eventReceiving view"
414114cfc5cc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   135
2257
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   136
    eventReceiver dropObjects:aCollectionOfDropObjects
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   137
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   138
    "Created: / 13-10-2006 / 16:03:05 / cg"
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   139
!
449
9d18c9a66b59 delegate drop
ca
parents: 327
diff changeset
   140
2257
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   141
dropObjects:aCollectionOfDropObjects at:aPoint
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   142
    "drop aCollectionOfDropObjects here.
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   143
     Delegated to my eventReceiving view"
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   144
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   145
    eventReceiver dropObjects:aCollectionOfDropObjects at:aPoint
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   146
1e9572bb7ccd drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2250
diff changeset
   147
    "Created: / 13-10-2006 / 16:03:12 / cg"
449
9d18c9a66b59 delegate drop
ca
parents: 327
diff changeset
   148
! !
9d18c9a66b59 delegate drop
ca
parents: 327
diff changeset
   149
0
3f9277473954 Initial revision
claus
parents:
diff changeset
   150
!InputView methodsFor:'event handling'!
3f9277473954 Initial revision
claus
parents:
diff changeset
   151
130
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   152
buttonMotion:state x:x y:y
1241
414114cfc5cc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   153
    "redefined to forward the event to my eventReceiver"
21
66b31c91177f *** empty log message ***
claus
parents: 6
diff changeset
   154
0
3f9277473954 Initial revision
claus
parents:
diff changeset
   155
    eventReceiver notNil ifTrue:[
1185
522d9c84f0a9 fix: if no delegate, perform normal (superclass)
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
   156
        eventReceiver buttonMotion:state x:x y:y
522d9c84f0a9 fix: if no delegate, perform normal (superclass)
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
   157
    ] ifFalse:[
522d9c84f0a9 fix: if no delegate, perform normal (superclass)
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
   158
        super buttonMotion:state x:x y:y
0
3f9277473954 Initial revision
claus
parents:
diff changeset
   159
    ]
3f9277473954 Initial revision
claus
parents:
diff changeset
   160
!
3f9277473954 Initial revision
claus
parents:
diff changeset
   161
3f9277473954 Initial revision
claus
parents:
diff changeset
   162
buttonPress:button x:x y:y
1241
414114cfc5cc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   163
    "redefined to forward the event to my eventReceiver"
21
66b31c91177f *** empty log message ***
claus
parents: 6
diff changeset
   164
0
3f9277473954 Initial revision
claus
parents:
diff changeset
   165
    eventReceiver notNil ifTrue:[
1185
522d9c84f0a9 fix: if no delegate, perform normal (superclass)
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
   166
        eventReceiver buttonPress:button x:x y:y
522d9c84f0a9 fix: if no delegate, perform normal (superclass)
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
   167
    ] ifFalse:[
522d9c84f0a9 fix: if no delegate, perform normal (superclass)
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
   168
        super buttonPress:button x:x y:y
0
3f9277473954 Initial revision
claus
parents:
diff changeset
   169
    ]
3f9277473954 Initial revision
claus
parents:
diff changeset
   170
!
3f9277473954 Initial revision
claus
parents:
diff changeset
   171
3f9277473954 Initial revision
claus
parents:
diff changeset
   172
buttonRelease:button x:x y:y
1241
414114cfc5cc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   173
    "redefined to forward the event to my eventReceiver"
21
66b31c91177f *** empty log message ***
claus
parents: 6
diff changeset
   174
0
3f9277473954 Initial revision
claus
parents:
diff changeset
   175
    eventReceiver notNil ifTrue:[
1185
522d9c84f0a9 fix: if no delegate, perform normal (superclass)
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
   176
        eventReceiver buttonRelease:button x:x y:y
522d9c84f0a9 fix: if no delegate, perform normal (superclass)
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
   177
    ] ifFalse:[
522d9c84f0a9 fix: if no delegate, perform normal (superclass)
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
   178
        super buttonRelease:button x:x y:y
0
3f9277473954 Initial revision
claus
parents:
diff changeset
   179
    ]
3f9277473954 Initial revision
claus
parents:
diff changeset
   180
!
3f9277473954 Initial revision
claus
parents:
diff changeset
   181
130
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   182
exposeX:x y:y width:w height:h
1241
414114cfc5cc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   183
    "dummy - will never be received"
414114cfc5cc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   184
130
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   185
    ^ self
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   186
!
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   187
0
3f9277473954 Initial revision
claus
parents:
diff changeset
   188
focusIn
1241
414114cfc5cc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   189
    "redefined to forward the event to my eventReceiver"
21
66b31c91177f *** empty log message ***
claus
parents: 6
diff changeset
   190
0
3f9277473954 Initial revision
claus
parents:
diff changeset
   191
    eventReceiver notNil ifTrue:[
1241
414114cfc5cc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   192
        eventReceiver focusIn
0
3f9277473954 Initial revision
claus
parents:
diff changeset
   193
    ]
3f9277473954 Initial revision
claus
parents:
diff changeset
   194
!
3f9277473954 Initial revision
claus
parents:
diff changeset
   195
3f9277473954 Initial revision
claus
parents:
diff changeset
   196
focusOut
1241
414114cfc5cc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   197
    "redefined to forward the event to my eventReceiver"
21
66b31c91177f *** empty log message ***
claus
parents: 6
diff changeset
   198
0
3f9277473954 Initial revision
claus
parents:
diff changeset
   199
    eventReceiver notNil ifTrue:[
1241
414114cfc5cc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   200
        eventReceiver focusOut
0
3f9277473954 Initial revision
claus
parents:
diff changeset
   201
    ]
3f9277473954 Initial revision
claus
parents:
diff changeset
   202
!
3f9277473954 Initial revision
claus
parents:
diff changeset
   203
130
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   204
keyPress:key x:x y:y
1241
414114cfc5cc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   205
    "redefined to forward the event to my eventReceiver"
130
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   206
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   207
    eventReceiver notNil ifTrue:[
1185
522d9c84f0a9 fix: if no delegate, perform normal (superclass)
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
   208
        eventReceiver keyPress:key x:x y:y
522d9c84f0a9 fix: if no delegate, perform normal (superclass)
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
   209
    ] ifFalse:[
522d9c84f0a9 fix: if no delegate, perform normal (superclass)
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
   210
        super keyPress:key x:x y:y
130
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   211
    ]
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   212
!
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   213
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   214
keyRelease:key x:x y:y
1241
414114cfc5cc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   215
    "redefined to forward the event to my eventReceiver"
130
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   216
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   217
    eventReceiver notNil ifTrue:[
1185
522d9c84f0a9 fix: if no delegate, perform normal (superclass)
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
   218
        eventReceiver keyRelease:key x:x y:y
522d9c84f0a9 fix: if no delegate, perform normal (superclass)
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
   219
    ] ifFalse:[
522d9c84f0a9 fix: if no delegate, perform normal (superclass)
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
   220
        super keyRelease:key x:x y:y
130
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   221
    ]
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   222
!
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   223
0
3f9277473954 Initial revision
claus
parents:
diff changeset
   224
pointerEnter:state x:x y:y
1241
414114cfc5cc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   225
    "redefined to forward the event to my eventReceiver"
21
66b31c91177f *** empty log message ***
claus
parents: 6
diff changeset
   226
0
3f9277473954 Initial revision
claus
parents:
diff changeset
   227
    eventReceiver notNil ifTrue:[
1241
414114cfc5cc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   228
        eventReceiver pointerEnter:state x:x y:y
0
3f9277473954 Initial revision
claus
parents:
diff changeset
   229
    ]
3f9277473954 Initial revision
claus
parents:
diff changeset
   230
!
3f9277473954 Initial revision
claus
parents:
diff changeset
   231
3f9277473954 Initial revision
claus
parents:
diff changeset
   232
pointerLeave:state
1241
414114cfc5cc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   233
    "redefined to forward the event to my eventReceiver"
21
66b31c91177f *** empty log message ***
claus
parents: 6
diff changeset
   234
0
3f9277473954 Initial revision
claus
parents:
diff changeset
   235
    eventReceiver notNil ifTrue:[
1241
414114cfc5cc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   236
        eventReceiver pointerLeave:state
0
3f9277473954 Initial revision
claus
parents:
diff changeset
   237
    ]
3f9277473954 Initial revision
claus
parents:
diff changeset
   238
! !
130
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   239
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   240
!InputView methodsFor:'initialization'!
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   241
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   242
initialize
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   243
    super initialize.
2775
3d2b7f1ffc9b border handling
Claus Gittinger <cg@exept.de>
parents: 2772
diff changeset
   244
    self borderWidth:0
130
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   245
! !
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   246
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   247
!InputView methodsFor:'redefined dummy'!
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   248
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   249
setViewBackground
1241
414114cfc5cc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   250
    "dummy - inputviews have no background"
130
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   251
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   252
    ^ self
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   253
! !
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   254
449
9d18c9a66b59 delegate drop
ca
parents: 327
diff changeset
   255
!InputView class methodsFor:'documentation'!
130
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   256
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   257
version
3772
18f86fffbd1c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 2775
diff changeset
   258
    ^ '$Header$'
2772
71336ba2fc96 no more direct accesses to borderWidth and borderColor
Claus Gittinger <cg@exept.de>
parents: 2257
diff changeset
   259
!
71336ba2fc96 no more direct accesses to borderWidth and borderColor
Claus Gittinger <cg@exept.de>
parents: 2257
diff changeset
   260
71336ba2fc96 no more direct accesses to borderWidth and borderColor
Claus Gittinger <cg@exept.de>
parents: 2257
diff changeset
   261
version_CVS
3772
18f86fffbd1c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 2775
diff changeset
   262
    ^ '$Header$'
130
ddb0e9c49fc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   263
! !
3772
18f86fffbd1c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 2775
diff changeset
   264