LinkButton.st
author Claus Gittinger <cg@exept.de>
Sat, 02 Apr 2016 16:33:18 +0200
changeset 4987 82bb0a9fecdb
parent 4985 818d298db0df
child 5011 46de83b69b3d
child 5045 50eb267766b2
permissions -rw-r--r--
#REFACTORING class: LinkButton changed: #initStyle #labelsAndActionsWithPositionsDo: avoid graphicsContext message; refer to nstvar
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4985
Claus Gittinger <cg@exept.de>
parents: 4681
diff changeset
     1
"{ Encoding: utf8 }"
Claus Gittinger <cg@exept.de>
parents: 4681
diff changeset
     2
3650
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
"{ Package: 'stx:libwidg2' }"
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
4985
Claus Gittinger <cg@exept.de>
parents: 4681
diff changeset
     5
"{ NameSpace: Smalltalk }"
Claus Gittinger <cg@exept.de>
parents: 4681
diff changeset
     6
3650
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
Button subclass:#LinkButton
3670
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
     8
	instanceVariableNames:'labelsAndActions'
3662
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
     9
	classVariableNames:'DefaultLinkColor'
3650
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
	poolDictionaries:''
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
	category:'Views-Layout'
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
!
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
!LinkButton class methodsFor:'documentation'!
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
documentation
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
"
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
    Looks like a Label, but behaves like a button with individually clickable text components.
4071
d056c9f9b595 changed:
Claus Gittinger <cg@exept.de>
parents: 3671
diff changeset
    19
    Can be used to create html-page-look-alike links in a view.
3650
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
    [author:]
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
        cg (cg@CG-VOSTRO)
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
    [instance variables:]
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
    [class variables:]
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
    [see also:]
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
"
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
!
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
examples
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
"
4071
d056c9f9b595 changed:
Claus Gittinger <cg@exept.de>
parents: 3671
diff changeset
    35
                                                                    [exBegin]
3650
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
    |v l|
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
    v := StandardSystemView new.
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
    l := LinkButton in:v.
3670
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
    40
    l label:
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
    41
        (('Hello' actionForAll:[ Transcript showCR:'Hello Clicked']) 
4071
d056c9f9b595 changed:
Claus Gittinger <cg@exept.de>
parents: 3671
diff changeset
    42
        , ' '
3670
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
    43
        , ('World' actionForAll:[ Transcript showCR:'World Clicked'])).
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
    44
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
    45
    v open
4071
d056c9f9b595 changed:
Claus Gittinger <cg@exept.de>
parents: 3671
diff changeset
    46
                                                                    [exEnd]
3670
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
    47
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
    48
4071
d056c9f9b595 changed:
Claus Gittinger <cg@exept.de>
parents: 3671
diff changeset
    49
                                                                    [exBegin]
d056c9f9b595 changed:
Claus Gittinger <cg@exept.de>
parents: 3671
diff changeset
    50
    |v l|
d056c9f9b595 changed:
Claus Gittinger <cg@exept.de>
parents: 3671
diff changeset
    51
d056c9f9b595 changed:
Claus Gittinger <cg@exept.de>
parents: 3671
diff changeset
    52
    v := StandardSystemView new.
d056c9f9b595 changed:
Claus Gittinger <cg@exept.de>
parents: 3671
diff changeset
    53
    l := LinkButton in:v.
d056c9f9b595 changed:
Claus Gittinger <cg@exept.de>
parents: 3671
diff changeset
    54
    l label:
d056c9f9b595 changed:
Claus Gittinger <cg@exept.de>
parents: 3671
diff changeset
    55
        ((('Hello' actionForAll:[ Transcript showCR:'Hello Clicked']) colorizeAllWith:(Color blue)) 
d056c9f9b595 changed:
Claus Gittinger <cg@exept.de>
parents: 3671
diff changeset
    56
        , ' '
d056c9f9b595 changed:
Claus Gittinger <cg@exept.de>
parents: 3671
diff changeset
    57
        , ('World' actionForAll:[ Transcript showCR:'World Clicked'])).
d056c9f9b595 changed:
Claus Gittinger <cg@exept.de>
parents: 3671
diff changeset
    58
d056c9f9b595 changed:
Claus Gittinger <cg@exept.de>
parents: 3671
diff changeset
    59
    v open
d056c9f9b595 changed:
Claus Gittinger <cg@exept.de>
parents: 3671
diff changeset
    60
                                                                    [exEnd]
d056c9f9b595 changed:
Claus Gittinger <cg@exept.de>
parents: 3671
diff changeset
    61
d056c9f9b595 changed:
Claus Gittinger <cg@exept.de>
parents: 3671
diff changeset
    62
d056c9f9b595 changed:
Claus Gittinger <cg@exept.de>
parents: 3671
diff changeset
    63
                                                                    [exBegin]
3670
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
    64
    |v l|
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
    65
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
    66
    v := StandardSystemView new.
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
    67
    l := LinkButton in:v.
3650
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
    l labelsAndActions:{ 
3662
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
    69
                        'Hello' -> [ Transcript showCR:'Hello Clicked'].
3650
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
                        ' ' -> nil.
3662
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
    71
                        'World' -> [ Transcript showCR:'World Clicked'].
3650
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
                       }.
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
    l foregroundColor:Color blue.
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
    v open
4071
d056c9f9b595 changed:
Claus Gittinger <cg@exept.de>
parents: 3671
diff changeset
    75
                                                                    [exEnd]
3668
e1888e938d68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
    76
e1888e938d68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
    77
4071
d056c9f9b595 changed:
Claus Gittinger <cg@exept.de>
parents: 3671
diff changeset
    78
                                                                    [exBegin]
3668
e1888e938d68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
    79
    |v l|
e1888e938d68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
    80
e1888e938d68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
    81
    v := StandardSystemView new.
e1888e938d68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
    82
    l := LinkButton in:v.
e1888e938d68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
    83
    l labelsAndActions:{ 
e1888e938d68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
    84
                        'Hello' -> nil.
e1888e938d68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
    85
                        ' ' -> nil.
e1888e938d68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
    86
                        'World' -> [ Transcript showCR:'World Clicked'].
e1888e938d68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
    87
                       }.
e1888e938d68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
    88
    l foregroundColor:Color blue.
e1888e938d68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
    89
    v open
4071
d056c9f9b595 changed:
Claus Gittinger <cg@exept.de>
parents: 3671
diff changeset
    90
                                                                    [exEnd]
4985
Claus Gittinger <cg@exept.de>
parents: 4681
diff changeset
    91
    Dialog aboutToOpenBoxNotificationSignal handle:[:ex |
Claus Gittinger <cg@exept.de>
parents: 4681
diff changeset
    92
        |lbl|
Claus Gittinger <cg@exept.de>
parents: 4681
diff changeset
    93
Claus Gittinger <cg@exept.de>
parents: 4681
diff changeset
    94
        lbl := LinkButton label:(('XXX' 
Claus Gittinger <cg@exept.de>
parents: 4681
diff changeset
    95
                                        colorizeAllWith:Color blue)
Claus Gittinger <cg@exept.de>
parents: 4681
diff changeset
    96
                                        actionForAll:[ Transcript showCR:'xxx' ]).
Claus Gittinger <cg@exept.de>
parents: 4681
diff changeset
    97
        ex box verticalPanel addComponent:lbl.
Claus Gittinger <cg@exept.de>
parents: 4681
diff changeset
    98
    ] do:[
Claus Gittinger <cg@exept.de>
parents: 4681
diff changeset
    99
        self warn:'Bla bla bla'
Claus Gittinger <cg@exept.de>
parents: 4681
diff changeset
   100
    ].
Claus Gittinger <cg@exept.de>
parents: 4681
diff changeset
   101
3650
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
"
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
! !
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
3662
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   105
!LinkButton class methodsFor:'defaults'!
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   106
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   107
updateStyleCache
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   108
    "extract values from the styleSheet and cache them in class variables"
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   109
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   110
    <resource: #style ( #'linkButton.linkColor' )>
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   111
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   112
    DefaultLinkColor := StyleSheet colorAt:#'linkButton.linkColor' default:Color blue.
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   113
! !
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   114
3650
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
!LinkButton methodsFor:'accessing'!
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
labelsAndActions
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
    "returns the collection of label->action associations. 
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
     For display, the label strings are drawn as one concatenated string (add separating spaces, if you have to).
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
     When clicked on a string, the corresponding action is called"
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   121
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
    ^ labelsAndActions
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
!
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
labelsAndActions:aCollectionOfAssociations
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   126
    "set the collection of label->action associations. 
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   127
     For display, the label strings are drawn as one concatenated string (add separating spaces, if you have to).
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   128
     When clicked on a string, the corresponding action is called"
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   129
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   130
    labelsAndActions := aCollectionOfAssociations.
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131
    self label:((aCollectionOfAssociations collect:[:assoc | assoc key]) asStringWith:'')
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
! !
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
!LinkButton methodsFor:'initialization'!
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   135
4677
e6a348494211 class: LinkButton
Claus Gittinger <cg@exept.de>
parents: 4572
diff changeset
   136
allViewBackground:something if:condition
e6a348494211 class: LinkButton
Claus Gittinger <cg@exept.de>
parents: 4572
diff changeset
   137
    "set the viewBackground to something, a color, image or form,
e6a348494211 class: LinkButton
Claus Gittinger <cg@exept.de>
parents: 4572
diff changeset
   138
     in myself and recursively in all of my subviews"
e6a348494211 class: LinkButton
Claus Gittinger <cg@exept.de>
parents: 4572
diff changeset
   139
e6a348494211 class: LinkButton
Claus Gittinger <cg@exept.de>
parents: 4572
diff changeset
   140
    self viewBackground:something if:condition.
e6a348494211 class: LinkButton
Claus Gittinger <cg@exept.de>
parents: 4572
diff changeset
   141
    self backgroundColor:something.
e6a348494211 class: LinkButton
Claus Gittinger <cg@exept.de>
parents: 4572
diff changeset
   142
!
e6a348494211 class: LinkButton
Claus Gittinger <cg@exept.de>
parents: 4572
diff changeset
   143
3650
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   144
defaultControllerClass
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   145
    ^ LinkButtonController
3662
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   146
!
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   147
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   148
initStyle
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   149
    super initStyle.
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   150
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   151
    level := enterLevel := leaveLevel := onLevel := offLevel := 0.
4681
b97620c35200 class: LinkButton
Claus Gittinger <cg@exept.de>
parents: 4680
diff changeset
   152
    self borderWidth: 0.
3662
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   153
    DefaultLinkColor notNil ifTrue:[
4508
5c8959e41aa6 class: LinkButton
Stefan Vogel <sv@exept.de>
parents: 4071
diff changeset
   154
        |color|
4987
82bb0a9fecdb #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 4985
diff changeset
   155
        self paint:(color := DefaultLinkColor onDevice:device).
4508
5c8959e41aa6 class: LinkButton
Stefan Vogel <sv@exept.de>
parents: 4071
diff changeset
   156
        self foreground:color.
3662
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   157
    ].
4681
b97620c35200 class: LinkButton
Claus Gittinger <cg@exept.de>
parents: 4680
diff changeset
   158
    enteredFgColor := nil.
b97620c35200 class: LinkButton
Claus Gittinger <cg@exept.de>
parents: 4680
diff changeset
   159
    enteredBgColor := nil.
4071
d056c9f9b595 changed:
Claus Gittinger <cg@exept.de>
parents: 3671
diff changeset
   160
3670
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   161
"/    activeFgColor := enteredFgColor := foreground.
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   162
"/    activeBgColor := enteredBgColor := viewBackground.
4071
d056c9f9b595 changed:
Claus Gittinger <cg@exept.de>
parents: 3671
diff changeset
   163
d056c9f9b595 changed:
Claus Gittinger <cg@exept.de>
parents: 3671
diff changeset
   164
    "Modified: / 07-09-2011 / 04:29:29 / cg"
3662
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   165
!
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   166
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   167
initialize
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   168
    super initialize.
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   169
    self enableMotionEvents
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   170
! !
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   171
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   172
!LinkButton methodsFor:'redrawing'!
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   173
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   174
actionAt:aPoint
3670
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   175
    |pressAction emphasis|
3664
b49c21d9aac4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3662
diff changeset
   176
4572
612d49704e0f class: LinkButton
Claus Gittinger <cg@exept.de>
parents: 4508
diff changeset
   177
    pressAction := self pressAction ifNil:[ self releaseAction ].
612d49704e0f class: LinkButton
Claus Gittinger <cg@exept.de>
parents: 4508
diff changeset
   178
    pressAction isNil ifTrue:[
612d49704e0f class: LinkButton
Claus Gittinger <cg@exept.de>
parents: 4508
diff changeset
   179
        pressAction := self pressChannel ifNil:[ self releaseChannel ].
612d49704e0f class: LinkButton
Claus Gittinger <cg@exept.de>
parents: 4508
diff changeset
   180
    ].
3670
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   181
    labelsAndActions isNil ifTrue:[
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   182
        "take action from logo, which is normally a text"
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   183
4985
Claus Gittinger <cg@exept.de>
parents: 4681
diff changeset
   184
        emphasis := logo emphasisAtPoint:(aPoint - (labelOriginX@labelOriginY)) on:self. 
3670
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   185
        (emphasis isNil or:[emphasis isSymbol]) ifTrue:[
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   186
            ^ pressAction.
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   187
        ].
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   188
        emphasis isAssociation ifTrue:[
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   189
            emphasis key == #actionBlock ifTrue:[
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   190
                ^ emphasis value.
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   191
            ].
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   192
            ^ pressAction.
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   193
        ].
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   194
        emphasis do:[:eachElement|
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   195
            eachElement isAssociation ifTrue:[
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   196
                eachElement key == #actionBlock ifTrue:[
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   197
                    ^ eachElement value.
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   198
                ].
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   199
            ].
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   200
        ].
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   201
        ^ pressAction.
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   202
    ].
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   203
3662
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   204
    self labelsAndActionsWithPositionsDo:[:lbl :action :leftX :rightX |
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   205
        (aPoint x between:leftX and:rightX) ifTrue:[
3664
b49c21d9aac4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3662
diff changeset
   206
            ^ labelsAndActions notNil ifTrue:action ifFalse:pressAction
3662
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   207
        ].
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   208
    ].
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   209
    ^ nil
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   210
!
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   211
3670
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   212
actionEmphasisIn:aText atPoint:aPoint
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   213
    "check for a actionBlock emphasis in aString at aPoint.
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   214
     Answer an Array with the whole emphasis and the actionBlock,
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   215
     or nil"
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   216
    
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   217
    |emphasis|
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   218
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   219
    emphasis := aText emphasisAtPoint:aPoint on:self.
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   220
    (emphasis isNil or:[emphasis isSymbol]) ifTrue:[
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   221
        ^ #(nil nil).
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   222
    ].
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   223
    emphasis isAssociation ifTrue:[
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   224
        emphasis key == #actionBlock ifTrue:[
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   225
            ^ Array with:emphasis with:emphasis value.
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   226
        ].
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   227
        ^ #(nil nil).
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   228
    ].
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   229
    emphasis detect:[:eachElement|
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   230
        eachElement isAssociation ifTrue:[
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   231
            eachElement key == #actionBlock ifTrue:[
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   232
                ^ Array with:emphasis with:eachElement value.
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   233
            ].
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   234
        ].
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   235
    ] ifNone:[].
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   236
    ^ #(nil nil).
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   237
!
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   238
4680
6c266588d588 class: LinkButton
Claus Gittinger <cg@exept.de>
parents: 4677
diff changeset
   239
drawFocusFrame
6c266588d588 class: LinkButton
Claus Gittinger <cg@exept.de>
parents: 4677
diff changeset
   240
    "/ intentionally ignored
6c266588d588 class: LinkButton
Claus Gittinger <cg@exept.de>
parents: 4677
diff changeset
   241
    ^ self
6c266588d588 class: LinkButton
Claus Gittinger <cg@exept.de>
parents: 4677
diff changeset
   242
!
6c266588d588 class: LinkButton
Claus Gittinger <cg@exept.de>
parents: 4677
diff changeset
   243
3662
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   244
drawStringLogo:aString x:x y:y
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   245
    "redefined to draw the part under the mouse pointer with an underined emphasis"
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   246
3670
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   247
    |str entered mousePoint start len emphasis|
3662
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   248
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   249
    mousePoint := controller lastMousePoint.
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   250
    entered := controller entered.
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   251
3670
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   252
    labelsAndActions isNil ifTrue:[
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   253
        (entered not or:[mousePoint isNil]) ifTrue:[
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   254
            self displayString:aString x:x y:y.
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   255
            ^ self.
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   256
        ].
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   257
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   258
        str := aString.
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   259
        emphasis := (self actionEmphasisIn:aString atPoint:mousePoint) first.
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   260
        emphasis notNil ifTrue:[
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   261
            start := 1.
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   262
            aString emphasisCollection runsDo:[:eachLen :eachEmphasis|
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   263
                len isNil ifTrue:[
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   264
                    eachEmphasis == emphasis ifTrue:[
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   265
                        len := eachLen.
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   266
                    ] ifFalse:[
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   267
                        start := start + eachLen.  
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   268
                    ].
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   269
                ].
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   270
            ].
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   271
            len notNil ifTrue:[
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   272
                str := str deepCopy.
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   273
                str emphasisFrom:start to:start+len-1 add:#underline.
4071
d056c9f9b595 changed:
Claus Gittinger <cg@exept.de>
parents: 3671
diff changeset
   274
                "/ str emphasisFrom:start to:start+len-1 add:(#color -> foreground).
3670
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   275
            ].
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   276
        ].
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   277
        self displayString:str x:x y:y.
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   278
        ^ self.
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   279
    ].
ccfd04be9736 Now works with Text/actionBlocks
Stefan Vogel <sv@exept.de>
parents: 3668
diff changeset
   280
3662
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   281
    self labelsAndActionsWithPositionsDo:[:lbl :action :leftX :rightX |
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   282
        |l|
3668
e1888e938d68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   283
3662
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   284
        l := lbl.
3668
e1888e938d68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   285
        action notNil ifTrue:[
e1888e938d68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   286
            (entered and:[mousePoint notNil and:[mousePoint x between:leftX and:rightX]]) ifTrue:[
e1888e938d68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   287
                l := l allUnderlined
e1888e938d68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   288
            ].
3662
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   289
        ].
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   290
        self displayString:l x:leftX y:y.
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   291
    ].
4071
d056c9f9b595 changed:
Claus Gittinger <cg@exept.de>
parents: 3671
diff changeset
   292
d056c9f9b595 changed:
Claus Gittinger <cg@exept.de>
parents: 3671
diff changeset
   293
    "Modified: / 07-09-2011 / 04:47:13 / cg"
3662
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   294
!
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   295
4681
b97620c35200 class: LinkButton
Claus Gittinger <cg@exept.de>
parents: 4680
diff changeset
   296
is3D
b97620c35200 class: LinkButton
Claus Gittinger <cg@exept.de>
parents: 4680
diff changeset
   297
    ^ false.
b97620c35200 class: LinkButton
Claus Gittinger <cg@exept.de>
parents: 4680
diff changeset
   298
!
b97620c35200 class: LinkButton
Claus Gittinger <cg@exept.de>
parents: 4680
diff changeset
   299
3662
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   300
labelsAndActionsWithPositionsDo:aFourArgBlock
3664
b49c21d9aac4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3662
diff changeset
   301
    |leftX rightX w|
3662
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   302
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   303
    leftX := labelOriginX.
3664
b49c21d9aac4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3662
diff changeset
   304
    labelsAndActions isNil ifTrue:[
4987
82bb0a9fecdb #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 4985
diff changeset
   305
        w := (self font widthOf:logo on:device).
3664
b49c21d9aac4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3662
diff changeset
   306
        rightX := leftX + w-1.
b49c21d9aac4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3662
diff changeset
   307
        aFourArgBlock 
b49c21d9aac4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3662
diff changeset
   308
            value:logo
b49c21d9aac4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3662
diff changeset
   309
            value:self pressAction
b49c21d9aac4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3662
diff changeset
   310
            value:leftX
b49c21d9aac4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3662
diff changeset
   311
            value:rightX.
b49c21d9aac4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3662
diff changeset
   312
        ^ self
b49c21d9aac4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3662
diff changeset
   313
    ].
b49c21d9aac4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3662
diff changeset
   314
3662
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   315
    labelsAndActions do:[:assoc | 
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   316
        |lbl wEach|
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   317
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   318
        lbl := assoc key.
4987
82bb0a9fecdb #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 4985
diff changeset
   319
        wEach := (self font widthOf:lbl on:device).
3662
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   320
        rightX := leftX + wEach-1.
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   321
        aFourArgBlock 
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   322
            value:assoc key
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   323
            value:assoc value
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   324
            value:leftX
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   325
            value:rightX.
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   326
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   327
        leftX := rightX+1.
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   328
    ].
fb3778b66ce3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3650
diff changeset
   329
    ^ nil
3650
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   330
! !
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   331
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   332
!LinkButton class methodsFor:'documentation'!
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   333
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   334
version
4985
Claus Gittinger <cg@exept.de>
parents: 4681
diff changeset
   335
    ^ '$Header$'
4681
b97620c35200 class: LinkButton
Claus Gittinger <cg@exept.de>
parents: 4680
diff changeset
   336
!
b97620c35200 class: LinkButton
Claus Gittinger <cg@exept.de>
parents: 4680
diff changeset
   337
b97620c35200 class: LinkButton
Claus Gittinger <cg@exept.de>
parents: 4680
diff changeset
   338
version_CVS
4985
Claus Gittinger <cg@exept.de>
parents: 4681
diff changeset
   339
    ^ '$Header$'
3650
60a95483b993 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   340
! !
4508
5c8959e41aa6 class: LinkButton
Stefan Vogel <sv@exept.de>
parents: 4071
diff changeset
   341