LinkButtonController.st
author Claus Gittinger <cg@exept.de>
Thu, 05 Mar 2009 22:19:29 +0100
changeset 3651 8bcfa0ccdaef
child 3661 010d2b09a8b2
permissions -rw-r--r--
initial checkin
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3651
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"{ Package: 'stx:libwidg2' }"
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
ButtonController subclass:#LinkButtonController
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
	instanceVariableNames:'lastX lastY'
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
	classVariableNames:''
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
	poolDictionaries:''
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
	category:'Interface-Support-Controllers'
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
!
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
!LinkButtonController methodsFor:'event handling'!
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
buttonMotion:buttonState x:x y:y
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
    super buttonMotion:buttonState x:x y:y
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
!
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
buttonPress:button x:x y:y
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
    lastX := x.
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
    lastY := y.
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
    super buttonPress:button x:x y:y.
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
buttonRelease:button x:x y:y
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
    lastX := x.
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
    lastY := y.
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
    super buttonRelease:button x:x y:y.
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
! !
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
!LinkButtonController class methodsFor:'documentation'!
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
version
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
    ^ '$Header: /cvs/stx/stx/libwidg2/LinkButtonController.st,v 1.1 2009-03-05 21:19:29 cg Exp $'
8bcfa0ccdaef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
! !