ViewWithAcceptAndCancelBar.st
author Claus Gittinger <cg@exept.de>
Thu, 05 Mar 2020 11:18:04 +0100
changeset 19547 63ae485b071a
parent 19454 6195b98dafdd
permissions -rw-r--r--
#UI_ENHANCEMENT by cg class: MemoryMonitorView changed: #cleanupMethodHistory typos: genitive of class is class's - not classes.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
18345
f83c69180ca0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17897
diff changeset
     1
"{ Encoding: utf8 }"
f83c69180ca0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17897
diff changeset
     2
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
"
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
 COPYRIGHT (c) 2006 by eXept Software AG
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
              All Rights Reserved
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 This software is furnished under a license and may be used
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 only in accordance with the terms of that license and with the
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 inclusion of the above copyright notice.   This software may not
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 be provided or otherwise made available to, or used by, any
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
 other person.  No title to or ownership of the software is
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
 hereby transferred.
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
"
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
"{ Package: 'stx:libtool' }"
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
15360
480e3544af43 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 14648
diff changeset
    16
"{ NameSpace: Smalltalk }"
480e3544af43 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 14648
diff changeset
    17
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
SimpleView subclass:#ViewWithAcceptAndCancelBar
8332
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
    19
	instanceVariableNames:'slaveView bar reallyModifiedHolder acceptAction cancelAction
19454
6195b98dafdd #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 19437
diff changeset
    20
		compareAction barShown'
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
	classVariableNames:''
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
	poolDictionaries:''
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
	category:'Views-Basic'
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
!
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
SimpleView subclass:#AcceptAndCancelBar
8332
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
    27
	instanceVariableNames:'acceptButton cancelButton compareButton'
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
	classVariableNames:''
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
	poolDictionaries:''
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
	privateIn:ViewWithAcceptAndCancelBar
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
!
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
6775
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
    33
Button subclass:#ButtonWithHelpText
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
    34
	instanceVariableNames:'helpText'
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
    35
	classVariableNames:''
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
    36
	poolDictionaries:''
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
    37
	privateIn:ViewWithAcceptAndCancelBar::AcceptAndCancelBar
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
    38
!
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
    39
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
!ViewWithAcceptAndCancelBar class methodsFor:'documentation'!
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
copyright
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
"
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
 COPYRIGHT (c) 2006 by eXept Software AG
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
              All Rights Reserved
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
 This software is furnished under a license and may be used
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
 only in accordance with the terms of that license and with the
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
 inclusion of the above copyright notice.   This software may not
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
 be provided or otherwise made available to, or used by, any
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
 other person.  No title to or ownership of the software is
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
 hereby transferred.
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
"
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
!
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
documentation
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
"
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
    experimental - self like accept/cancel bar in the browsers
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
    code view.
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
    Enable with:
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
         UserPreferences current showAcceptCancelBarInBrowser:true
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
"
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
! !
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
!ViewWithAcceptAndCancelBar methodsFor:'accessing'!
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
acceptAction:something
10919
5b83c014a5ae comments
Claus Gittinger <cg@exept.de>
parents: 8842
diff changeset
    68
    "define the action to be performed when the green accept button is pressed"
5b83c014a5ae comments
Claus Gittinger <cg@exept.de>
parents: 8842
diff changeset
    69
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
    acceptAction := something.
10919
5b83c014a5ae comments
Claus Gittinger <cg@exept.de>
parents: 8842
diff changeset
    71
5b83c014a5ae comments
Claus Gittinger <cg@exept.de>
parents: 8842
diff changeset
    72
    "Modified (comment): / 29-11-2011 / 12:59:18 / cg"
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
!
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
cancelAction:something
10919
5b83c014a5ae comments
Claus Gittinger <cg@exept.de>
parents: 8842
diff changeset
    76
    "define the action to be performed when the red cancel button is pressed"
5b83c014a5ae comments
Claus Gittinger <cg@exept.de>
parents: 8842
diff changeset
    77
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
    cancelAction := something.
10919
5b83c014a5ae comments
Claus Gittinger <cg@exept.de>
parents: 8842
diff changeset
    79
5b83c014a5ae comments
Claus Gittinger <cg@exept.de>
parents: 8842
diff changeset
    80
    "Modified (comment): / 29-11-2011 / 12:59:24 / cg"
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
!
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
10919
5b83c014a5ae comments
Claus Gittinger <cg@exept.de>
parents: 8842
diff changeset
    83
compareAction:aBlock
5b83c014a5ae comments
Claus Gittinger <cg@exept.de>
parents: 8842
diff changeset
    84
    "define the action to be performed when the yellow compare button is pressed"
5b83c014a5ae comments
Claus Gittinger <cg@exept.de>
parents: 8842
diff changeset
    85
5b83c014a5ae comments
Claus Gittinger <cg@exept.de>
parents: 8842
diff changeset
    86
    compareAction := aBlock.
5b83c014a5ae comments
Claus Gittinger <cg@exept.de>
parents: 8842
diff changeset
    87
5b83c014a5ae comments
Claus Gittinger <cg@exept.de>
parents: 8842
diff changeset
    88
    "Modified (comment): / 29-11-2011 / 12:59:01 / cg"
8332
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
    89
!
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
    90
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
reallyModifiedHolder:aValueHolder
10919
5b83c014a5ae comments
Claus Gittinger <cg@exept.de>
parents: 8842
diff changeset
    92
    "set the holder which keeps track of the real modified state;
5b83c014a5ae comments
Claus Gittinger <cg@exept.de>
parents: 8842
diff changeset
    93
     the modified state of the view is set with every user-input,
5b83c014a5ae comments
Claus Gittinger <cg@exept.de>
parents: 8842
diff changeset
    94
     but cleared by the master (in order to trigger future modified events).
14434
a99f61cbb975 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 14429
diff changeset
    95
     With every modified change, the state of the reallyModified is updated"
10919
5b83c014a5ae comments
Claus Gittinger <cg@exept.de>
parents: 8842
diff changeset
    96
5b83c014a5ae comments
Claus Gittinger <cg@exept.de>
parents: 8842
diff changeset
    97
    reallyModifiedHolder notNil ifTrue:[
5b83c014a5ae comments
Claus Gittinger <cg@exept.de>
parents: 8842
diff changeset
    98
        reallyModifiedHolder removeDependent:self.
5b83c014a5ae comments
Claus Gittinger <cg@exept.de>
parents: 8842
diff changeset
    99
    ].
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
    reallyModifiedHolder := aValueHolder.
10919
5b83c014a5ae comments
Claus Gittinger <cg@exept.de>
parents: 8842
diff changeset
   101
    reallyModifiedHolder notNil ifTrue:[
5b83c014a5ae comments
Claus Gittinger <cg@exept.de>
parents: 8842
diff changeset
   102
        reallyModifiedHolder addDependent:self.
5b83c014a5ae comments
Claus Gittinger <cg@exept.de>
parents: 8842
diff changeset
   103
    ]
5b83c014a5ae comments
Claus Gittinger <cg@exept.de>
parents: 8842
diff changeset
   104
5b83c014a5ae comments
Claus Gittinger <cg@exept.de>
parents: 8842
diff changeset
   105
    "Modified: / 29-11-2011 / 13:01:02 / cg"
8842
a2fc5fdbd5ae added: #scrolledView
Claus Gittinger <cg@exept.de>
parents: 8336
diff changeset
   106
!
a2fc5fdbd5ae added: #scrolledView
Claus Gittinger <cg@exept.de>
parents: 8336
diff changeset
   107
a2fc5fdbd5ae added: #scrolledView
Claus Gittinger <cg@exept.de>
parents: 8336
diff changeset
   108
scrolledView
a2fc5fdbd5ae added: #scrolledView
Claus Gittinger <cg@exept.de>
parents: 8336
diff changeset
   109
    "for protocol compatibility"
a2fc5fdbd5ae added: #scrolledView
Claus Gittinger <cg@exept.de>
parents: 8336
diff changeset
   110
a2fc5fdbd5ae added: #scrolledView
Claus Gittinger <cg@exept.de>
parents: 8336
diff changeset
   111
    ^ slaveView scrolledView
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
! !
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
8332
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   114
!ViewWithAcceptAndCancelBar methodsFor:'action'!
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   115
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   116
accept
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   117
    acceptAction value
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   118
!
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   119
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   120
cancel
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   121
    cancelAction notNil ifTrue:[
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   122
        cancelAction value
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   123
    ]
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   124
!
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   125
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   126
compare
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   127
    compareAction notNil ifTrue:[
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   128
        compareAction value
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   129
    ]
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   130
! !
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   131
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
!ViewWithAcceptAndCancelBar methodsFor:'change & update'!
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
hideBar
19454
6195b98dafdd #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 19437
diff changeset
   135
    barShown ifTrue:[
6195b98dafdd #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 19437
diff changeset
   136
        bar unmap.
6195b98dafdd #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 19437
diff changeset
   137
        bar hiddenOnRealize:true.
6195b98dafdd #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 19437
diff changeset
   138
        slaveView origin:(0.0 @ 0.0) corner:(1.0 @ 1.0).
6195b98dafdd #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 19437
diff changeset
   139
        barShown := false.
6195b98dafdd #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 19437
diff changeset
   140
    ]
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   141
!
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   142
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   143
showBar
19454
6195b98dafdd #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 19437
diff changeset
   144
    barShown ifFalse:[
6195b98dafdd #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 19437
diff changeset
   145
        slaveView origin:(20 @ 0.0) corner:(1.0 @ 1.0).
6195b98dafdd #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 19437
diff changeset
   146
        bar hiddenOnRealize:false.
6195b98dafdd #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 19437
diff changeset
   147
        bar realize.
6195b98dafdd #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 19437
diff changeset
   148
        barShown := true.
6195b98dafdd #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 19437
diff changeset
   149
    ].
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   150
!
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   151
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   152
update:something with:aParameter from:changedObject
7309
691b97b5b79e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6775
diff changeset
   153
    |app|
691b97b5b79e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6775
diff changeset
   154
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   155
    slaveView notNil ifTrue:[
13518
049393762925 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 11816
diff changeset
   156
        (changedObject == reallyModifiedHolder 
049393762925 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 11816
diff changeset
   157
        or:[ changedObject == slaveView modifiedChannel ]) ifTrue:[
049393762925 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 11816
diff changeset
   158
            (app := self application) notNil ifTrue:[
049393762925 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 11816
diff changeset
   159
                "/ not sure if we really need to send it through the application
049393762925 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 11816
diff changeset
   160
                app enqueueMessage:#updateBarVisibility for:self arguments:#().
049393762925 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 11816
diff changeset
   161
            ] ifFalse:[
049393762925 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 11816
diff changeset
   162
                self sensor pushUserEvent:#updateBarVisibility for:self withArguments:#()
18345
f83c69180ca0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17897
diff changeset
   163
            ].
f83c69180ca0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17897
diff changeset
   164
            ^ self.
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   165
        ].
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   166
    ].
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   167
    super update:something with:aParameter from:changedObject
7309
691b97b5b79e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6775
diff changeset
   168
10919
5b83c014a5ae comments
Claus Gittinger <cg@exept.de>
parents: 8842
diff changeset
   169
    "Modified: / 29-11-2011 / 12:57:55 / cg"
18345
f83c69180ca0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17897
diff changeset
   170
    "Modified: / 22-08-2018 / 10:39:33 / Claus Gittinger"
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   171
!
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   172
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   173
updateBarVisibility
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   174
    |modified|
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   175
10920
9228a3108da8 comment/format in: #updateBarVisibility
Claus Gittinger <cg@exept.de>
parents: 10919
diff changeset
   176
    modified := reallyModifiedHolder notNil 
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   177
                ifTrue:[ reallyModifiedHolder value ]
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   178
                ifFalse:[ slaveView modifiedChannel value ].
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   179
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   180
    modified ifTrue:[
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   181
        self showBar
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   182
    ] ifFalse:[
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   183
        self hideBar
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   184
    ].
10920
9228a3108da8 comment/format in: #updateBarVisibility
Claus Gittinger <cg@exept.de>
parents: 10919
diff changeset
   185
9228a3108da8 comment/format in: #updateBarVisibility
Claus Gittinger <cg@exept.de>
parents: 10919
diff changeset
   186
    "Modified (format): / 29-11-2011 / 14:05:04 / cg"
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   187
! !
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   188
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   189
!ViewWithAcceptAndCancelBar methodsFor:'initialization'!
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   190
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   191
initialize
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   192
    super initialize.
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   193
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   194
    bar := AcceptAndCancelBar in:self.
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   195
    bar origin:(0.0 @ 0.0) corner:(20 @ 1.0).
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   196
    bar hiddenOnRealize:true.
19454
6195b98dafdd #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 19437
diff changeset
   197
    barShown := false.
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   198
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   199
    bar acceptButton action:[ self accept ].
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   200
    bar cancelButton action:[ self cancel ].
8332
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   201
    bar compareButton action:[ self compare ].
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   202
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   203
    acceptAction := [ slaveView notNil ifTrue:[ slaveView accept ] ].
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   204
    cancelAction := [  ].
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   205
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   206
    "
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   207
     self new open
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   208
    "
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   209
!
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   210
14429
3fb66a972ee5 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 13518
diff changeset
   211
setSlaveView:aView
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   212
    slaveView := aView.
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   213
    aView origin:(0.0@0.0) corner:(1.0@1.0).
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   214
    aView modifiedChannel addDependent:self.
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   215
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   216
    "
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   217
     |v|
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   218
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   219
     v := self new.
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   220
     v slaveView:CodeView new.
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   221
     v open
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   222
    "
14429
3fb66a972ee5 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 13518
diff changeset
   223
!
3fb66a972ee5 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 13518
diff changeset
   224
3fb66a972ee5 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 13518
diff changeset
   225
slaveView:aView
3fb66a972ee5 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 13518
diff changeset
   226
    self add:aView.
3fb66a972ee5 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 13518
diff changeset
   227
    self setSlaveView:aView.
3fb66a972ee5 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 13518
diff changeset
   228
3fb66a972ee5 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 13518
diff changeset
   229
    "
3fb66a972ee5 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 13518
diff changeset
   230
     |v|
3fb66a972ee5 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 13518
diff changeset
   231
3fb66a972ee5 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 13518
diff changeset
   232
     v := self new.
3fb66a972ee5 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 13518
diff changeset
   233
     v slaveView:CodeView new.
3fb66a972ee5 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 13518
diff changeset
   234
     v open
3fb66a972ee5 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 13518
diff changeset
   235
    "
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   236
! !
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   237
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   238
!ViewWithAcceptAndCancelBar::AcceptAndCancelBar methodsFor:'accessing'!
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   239
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   240
acceptButton
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   241
    ^ acceptButton
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   242
!
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   243
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   244
cancelButton
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   245
    ^ cancelButton
8332
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   246
!
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   247
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   248
compareButton
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   249
    ^ compareButton
7761
e9d62468e172 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7309
diff changeset
   250
! !
e9d62468e172 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7309
diff changeset
   251
e9d62468e172 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7309
diff changeset
   252
!ViewWithAcceptAndCancelBar::AcceptAndCancelBar methodsFor:'help'!
6775
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   253
17897
d1a8350c8773 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17323
diff changeset
   254
helpTextAt:srcPoint
6775
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   255
    "return the helpText for aPoint (i.e. when mouse-pointer is moved over an item)."
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   256
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   257
    (acceptButton bounds containsPoint:srcPoint) ifTrue:[
11816
4fd3ddf4f2ff language strings
Claus Gittinger <cg@exept.de>
parents: 10920
diff changeset
   258
        ^ resources string:'Accept'
6775
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   259
    ].
8332
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   260
    (cancelButton bounds containsPoint:srcPoint) ifTrue:[
11816
4fd3ddf4f2ff language strings
Claus Gittinger <cg@exept.de>
parents: 10920
diff changeset
   261
        ^ resources string:'Cancel'
6775
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   262
    ].
8332
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   263
    (compareButton bounds containsPoint:srcPoint) ifTrue:[
11816
4fd3ddf4f2ff language strings
Claus Gittinger <cg@exept.de>
parents: 10920
diff changeset
   264
        ^ resources string:'Compare against Original'
8332
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   265
    ].
6775
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   266
    ^ nil
11816
4fd3ddf4f2ff language strings
Claus Gittinger <cg@exept.de>
parents: 10920
diff changeset
   267
4fd3ddf4f2ff language strings
Claus Gittinger <cg@exept.de>
parents: 10920
diff changeset
   268
    "Modified: / 26-09-2012 / 14:26:14 / cg"
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   269
! !
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   270
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   271
!ViewWithAcceptAndCancelBar::AcceptAndCancelBar methodsFor:'initialization'!
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   272
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   273
initialize
16612
7ef54262119a #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16305
diff changeset
   274
    |acceptColor cancelColor compareColor order|
15360
480e3544af43 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 14648
diff changeset
   275
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   276
    super initialize.
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   277
17323
024deb3f25fa #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16612
diff changeset
   278
    acceptColor := Color greenCaringForColorBlindness.
024deb3f25fa #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16612
diff changeset
   279
    cancelColor := Color redCaringForColorBlindness.
15360
480e3544af43 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 14648
diff changeset
   280
    compareColor := Color yellow.
480e3544af43 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 14648
diff changeset
   281
16612
7ef54262119a #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16305
diff changeset
   282
    order := UserPreferences current acceptCancelBarOrder.
7ef54262119a #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16305
diff changeset
   283
    
6775
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   284
    acceptButton := ButtonWithHelpText new.
8336
e37d5992d9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8332
diff changeset
   285
    acceptButton origin:0.0 @ 0.0 corner:1.0@0.7.
15360
480e3544af43 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 14648
diff changeset
   286
    acceptButton backgroundColor:acceptColor.
480e3544af43 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 14648
diff changeset
   287
    acceptButton enteredBackgroundColor:acceptColor lightened.
480e3544af43 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 14648
diff changeset
   288
    acceptButton activeBackgroundColor:acceptColor darkened.
17897
d1a8350c8773 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17323
diff changeset
   289
    acceptButton helpText:(resources string:'Accept').
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   290
    self add:acceptButton.
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   291
6775
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   292
    cancelButton := ButtonWithHelpText new.
16612
7ef54262119a #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16305
diff changeset
   293
    order == #acceptCompareCancel ifTrue:[
7ef54262119a #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16305
diff changeset
   294
        cancelButton origin:0.0 @ 0.9 corner:1.0@1.0.
7ef54262119a #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16305
diff changeset
   295
    ] ifFalse:[
7ef54262119a #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16305
diff changeset
   296
        cancelButton origin:0.0 @ 0.7 corner:1.0@0.9.
7ef54262119a #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16305
diff changeset
   297
    ].
15360
480e3544af43 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 14648
diff changeset
   298
    cancelButton backgroundColor:cancelColor.
480e3544af43 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 14648
diff changeset
   299
    cancelButton enteredBackgroundColor:cancelColor lightened.
480e3544af43 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 14648
diff changeset
   300
    cancelButton activeBackgroundColor:cancelColor darkened.
17897
d1a8350c8773 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17323
diff changeset
   301
    cancelButton helpText:(resources string:'Cancel').
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   302
    self add:cancelButton.
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   303
8332
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   304
    compareButton := ButtonWithHelpText new.
16612
7ef54262119a #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16305
diff changeset
   305
    order == #acceptCompareCancel ifTrue:[
7ef54262119a #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16305
diff changeset
   306
        compareButton origin:0.0 @ 0.7 corner:1.0@0.9.
7ef54262119a #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16305
diff changeset
   307
    ] ifFalse:[
7ef54262119a #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16305
diff changeset
   308
        compareButton origin:0.0 @ 0.9 corner:1.0@1.0.
7ef54262119a #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16305
diff changeset
   309
    ].
15360
480e3544af43 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 14648
diff changeset
   310
    compareButton backgroundColor:compareColor.
480e3544af43 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 14648
diff changeset
   311
    compareButton enteredBackgroundColor:compareColor lightened lightened.
480e3544af43 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 14648
diff changeset
   312
    compareButton activeBackgroundColor:compareColor darkened.
17897
d1a8350c8773 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17323
diff changeset
   313
    compareButton helpText:(resources string:'Compare against Original').
8332
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   314
    compareButton label:'?'.
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   315
    self add:compareButton.
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   316
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   317
    "
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   318
     AcceptAndCancelBar new open
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   319
    "
11816
4fd3ddf4f2ff language strings
Claus Gittinger <cg@exept.de>
parents: 10920
diff changeset
   320
17323
024deb3f25fa #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16612
diff changeset
   321
    "Modified: / 03-02-2017 / 14:04:32 / cg"
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   322
! !
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   323
6775
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   324
!ViewWithAcceptAndCancelBar::AcceptAndCancelBar::ButtonWithHelpText methodsFor:'accessing'!
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   325
17897
d1a8350c8773 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17323
diff changeset
   326
helpText
6775
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   327
    ^ helpText
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   328
!
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   329
19437
4ea45267ecb7 #DOCUMENTATION by exept
Claus Gittinger <cg@exept.de>
parents: 18345
diff changeset
   330
helpText:aStringOrNil
4ea45267ecb7 #DOCUMENTATION by exept
Claus Gittinger <cg@exept.de>
parents: 18345
diff changeset
   331
    helpText := aStringOrNil.
6775
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   332
! !
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   333
16305
c8759e745b82 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 15360
diff changeset
   334
!ViewWithAcceptAndCancelBar::AcceptAndCancelBar::ButtonWithHelpText methodsFor:'initialization'!
c8759e745b82 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 15360
diff changeset
   335
c8759e745b82 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 15360
diff changeset
   336
reinitStyle
c8759e745b82 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 15360
diff changeset
   337
    "do nothing, especially keep the background color"
c8759e745b82 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 15360
diff changeset
   338
! !
c8759e745b82 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 15360
diff changeset
   339
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   340
!ViewWithAcceptAndCancelBar class methodsFor:'documentation'!
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   341
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   342
version
16305
c8759e745b82 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 15360
diff changeset
   343
    ^ '$Header$'
8842
a2fc5fdbd5ae added: #scrolledView
Claus Gittinger <cg@exept.de>
parents: 8336
diff changeset
   344
!
a2fc5fdbd5ae added: #scrolledView
Claus Gittinger <cg@exept.de>
parents: 8336
diff changeset
   345
a2fc5fdbd5ae added: #scrolledView
Claus Gittinger <cg@exept.de>
parents: 8336
diff changeset
   346
version_CVS
16305
c8759e745b82 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 15360
diff changeset
   347
    ^ '$Header$'
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   348
! !
13518
049393762925 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 11816
diff changeset
   349