ViewWithAcceptAndCancelBar.st
author Claus Gittinger <cg@exept.de>
Wed, 05 Jun 2019 14:16:59 +0200
changeset 18805 f6df57c6dbfb
parent 18345 f83c69180ca0
child 19437 4ea45267ecb7
permissions -rw-r--r--
#BUGFIX by cg class: AbstractFileBrowser changed: #currentFileNameHolder endless loop if file not present.
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
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
    20
		compareAction'
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
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   135
    bar unmap.
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   136
    bar hiddenOnRealize:true.
6775
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   137
    slaveView origin:(0.0 @ 0.0) corner:(1.0 @ 1.0).
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   138
!
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   139
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   140
showBar
6775
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   141
    slaveView origin:(20 @ 0.0) corner:(1.0 @ 1.0).
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   142
    bar hiddenOnRealize:false.
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   143
    bar realize.
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   144
!
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   145
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   146
update:something with:aParameter from:changedObject
7309
691b97b5b79e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6775
diff changeset
   147
    |app|
691b97b5b79e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6775
diff changeset
   148
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   149
    slaveView notNil ifTrue:[
13518
049393762925 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 11816
diff changeset
   150
        (changedObject == reallyModifiedHolder 
049393762925 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 11816
diff changeset
   151
        or:[ changedObject == slaveView modifiedChannel ]) ifTrue:[
049393762925 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 11816
diff changeset
   152
            (app := self application) notNil ifTrue:[
049393762925 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 11816
diff changeset
   153
                "/ not sure if we really need to send it through the application
049393762925 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 11816
diff changeset
   154
                app enqueueMessage:#updateBarVisibility for:self arguments:#().
049393762925 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 11816
diff changeset
   155
            ] ifFalse:[
049393762925 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 11816
diff changeset
   156
                self sensor pushUserEvent:#updateBarVisibility for:self withArguments:#()
18345
f83c69180ca0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17897
diff changeset
   157
            ].
f83c69180ca0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17897
diff changeset
   158
            ^ self.
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   159
        ].
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   160
    ].
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   161
    super update:something with:aParameter from:changedObject
7309
691b97b5b79e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6775
diff changeset
   162
10919
5b83c014a5ae comments
Claus Gittinger <cg@exept.de>
parents: 8842
diff changeset
   163
    "Modified: / 29-11-2011 / 12:57:55 / cg"
18345
f83c69180ca0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17897
diff changeset
   164
    "Modified: / 22-08-2018 / 10:39:33 / Claus Gittinger"
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
updateBarVisibility
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   168
    |modified|
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   169
10920
9228a3108da8 comment/format in: #updateBarVisibility
Claus Gittinger <cg@exept.de>
parents: 10919
diff changeset
   170
    modified := reallyModifiedHolder notNil 
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   171
                ifTrue:[ reallyModifiedHolder value ]
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   172
                ifFalse:[ slaveView modifiedChannel value ].
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   173
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   174
    modified ifTrue:[
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   175
        self showBar
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   176
    ] ifFalse:[
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   177
        self hideBar
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   178
    ].
10920
9228a3108da8 comment/format in: #updateBarVisibility
Claus Gittinger <cg@exept.de>
parents: 10919
diff changeset
   179
9228a3108da8 comment/format in: #updateBarVisibility
Claus Gittinger <cg@exept.de>
parents: 10919
diff changeset
   180
    "Modified (format): / 29-11-2011 / 14:05:04 / cg"
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   181
! !
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   182
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   183
!ViewWithAcceptAndCancelBar methodsFor:'initialization'!
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   184
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   185
initialize
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   186
    super initialize.
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   187
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   188
    bar := AcceptAndCancelBar in:self.
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   189
    bar origin:(0.0 @ 0.0) corner:(20 @ 1.0).
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   190
    bar hiddenOnRealize:true.
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   191
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   192
    bar acceptButton action:[ self accept ].
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   193
    bar cancelButton action:[ self cancel ].
8332
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   194
    bar compareButton action:[ self compare ].
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   195
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   196
    acceptAction := [ slaveView notNil ifTrue:[ slaveView accept ] ].
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   197
    cancelAction := [  ].
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   198
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   199
    "
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   200
     self new open
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   201
    "
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   202
!
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   203
14429
3fb66a972ee5 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 13518
diff changeset
   204
setSlaveView:aView
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   205
    slaveView := aView.
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   206
    aView origin:(0.0@0.0) corner:(1.0@1.0).
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   207
    aView modifiedChannel addDependent:self.
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
     |v|
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   211
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   212
     v := self new.
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   213
     v slaveView:CodeView new.
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   214
     v open
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   215
    "
14429
3fb66a972ee5 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 13518
diff changeset
   216
!
3fb66a972ee5 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 13518
diff changeset
   217
3fb66a972ee5 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 13518
diff changeset
   218
slaveView:aView
3fb66a972ee5 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 13518
diff changeset
   219
    self add:aView.
3fb66a972ee5 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 13518
diff changeset
   220
    self setSlaveView:aView.
3fb66a972ee5 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 13518
diff changeset
   221
3fb66a972ee5 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 13518
diff changeset
   222
    "
3fb66a972ee5 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 13518
diff changeset
   223
     |v|
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
     v := self new.
3fb66a972ee5 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 13518
diff changeset
   226
     v slaveView:CodeView new.
3fb66a972ee5 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 13518
diff changeset
   227
     v open
3fb66a972ee5 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 13518
diff changeset
   228
    "
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   229
! !
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   230
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   231
!ViewWithAcceptAndCancelBar::AcceptAndCancelBar methodsFor:'accessing'!
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   232
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   233
acceptButton
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   234
    ^ acceptButton
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   235
!
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   236
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   237
cancelButton
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   238
    ^ cancelButton
8332
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   239
!
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   240
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   241
compareButton
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   242
    ^ compareButton
7761
e9d62468e172 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7309
diff changeset
   243
! !
e9d62468e172 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7309
diff changeset
   244
e9d62468e172 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7309
diff changeset
   245
!ViewWithAcceptAndCancelBar::AcceptAndCancelBar methodsFor:'help'!
6775
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   246
17897
d1a8350c8773 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17323
diff changeset
   247
helpTextAt:srcPoint
6775
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   248
    "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
   249
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   250
    (acceptButton bounds containsPoint:srcPoint) ifTrue:[
11816
4fd3ddf4f2ff language strings
Claus Gittinger <cg@exept.de>
parents: 10920
diff changeset
   251
        ^ resources string:'Accept'
6775
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   252
    ].
8332
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   253
    (cancelButton bounds containsPoint:srcPoint) ifTrue:[
11816
4fd3ddf4f2ff language strings
Claus Gittinger <cg@exept.de>
parents: 10920
diff changeset
   254
        ^ resources string:'Cancel'
6775
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   255
    ].
8332
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   256
    (compareButton bounds containsPoint:srcPoint) ifTrue:[
11816
4fd3ddf4f2ff language strings
Claus Gittinger <cg@exept.de>
parents: 10920
diff changeset
   257
        ^ resources string:'Compare against Original'
8332
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   258
    ].
6775
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   259
    ^ nil
11816
4fd3ddf4f2ff language strings
Claus Gittinger <cg@exept.de>
parents: 10920
diff changeset
   260
4fd3ddf4f2ff language strings
Claus Gittinger <cg@exept.de>
parents: 10920
diff changeset
   261
    "Modified: / 26-09-2012 / 14:26:14 / cg"
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   262
! !
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   263
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   264
!ViewWithAcceptAndCancelBar::AcceptAndCancelBar methodsFor:'initialization'!
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   265
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   266
initialize
16612
7ef54262119a #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16305
diff changeset
   267
    |acceptColor cancelColor compareColor order|
15360
480e3544af43 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 14648
diff changeset
   268
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   269
    super initialize.
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   270
17323
024deb3f25fa #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16612
diff changeset
   271
    acceptColor := Color greenCaringForColorBlindness.
024deb3f25fa #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16612
diff changeset
   272
    cancelColor := Color redCaringForColorBlindness.
15360
480e3544af43 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 14648
diff changeset
   273
    compareColor := Color yellow.
480e3544af43 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 14648
diff changeset
   274
16612
7ef54262119a #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16305
diff changeset
   275
    order := UserPreferences current acceptCancelBarOrder.
7ef54262119a #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16305
diff changeset
   276
    
6775
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   277
    acceptButton := ButtonWithHelpText new.
8336
e37d5992d9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8332
diff changeset
   278
    acceptButton origin:0.0 @ 0.0 corner:1.0@0.7.
15360
480e3544af43 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 14648
diff changeset
   279
    acceptButton backgroundColor:acceptColor.
480e3544af43 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 14648
diff changeset
   280
    acceptButton enteredBackgroundColor:acceptColor lightened.
480e3544af43 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 14648
diff changeset
   281
    acceptButton activeBackgroundColor:acceptColor darkened.
17897
d1a8350c8773 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17323
diff changeset
   282
    acceptButton helpText:(resources string:'Accept').
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   283
    self add:acceptButton.
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   284
6775
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   285
    cancelButton := ButtonWithHelpText new.
16612
7ef54262119a #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16305
diff changeset
   286
    order == #acceptCompareCancel ifTrue:[
7ef54262119a #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16305
diff changeset
   287
        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
   288
    ] ifFalse:[
7ef54262119a #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16305
diff changeset
   289
        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
   290
    ].
15360
480e3544af43 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 14648
diff changeset
   291
    cancelButton backgroundColor:cancelColor.
480e3544af43 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 14648
diff changeset
   292
    cancelButton enteredBackgroundColor:cancelColor lightened.
480e3544af43 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 14648
diff changeset
   293
    cancelButton activeBackgroundColor:cancelColor darkened.
17897
d1a8350c8773 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17323
diff changeset
   294
    cancelButton helpText:(resources string:'Cancel').
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   295
    self add:cancelButton.
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   296
8332
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   297
    compareButton := ButtonWithHelpText new.
16612
7ef54262119a #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16305
diff changeset
   298
    order == #acceptCompareCancel ifTrue:[
7ef54262119a #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16305
diff changeset
   299
        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
   300
    ] ifFalse:[
7ef54262119a #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16305
diff changeset
   301
        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
   302
    ].
15360
480e3544af43 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 14648
diff changeset
   303
    compareButton backgroundColor:compareColor.
480e3544af43 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 14648
diff changeset
   304
    compareButton enteredBackgroundColor:compareColor lightened lightened.
480e3544af43 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 14648
diff changeset
   305
    compareButton activeBackgroundColor:compareColor darkened.
17897
d1a8350c8773 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17323
diff changeset
   306
    compareButton helpText:(resources string:'Compare against Original').
8332
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   307
    compareButton label:'?'.
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   308
    self add:compareButton.
fd3728983e3c +compareButton
Claus Gittinger <cg@exept.de>
parents: 8240
diff changeset
   309
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   310
    "
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   311
     AcceptAndCancelBar new open
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   312
    "
11816
4fd3ddf4f2ff language strings
Claus Gittinger <cg@exept.de>
parents: 10920
diff changeset
   313
17323
024deb3f25fa #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16612
diff changeset
   314
    "Modified: / 03-02-2017 / 14:04:32 / cg"
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   315
! !
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   316
6775
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   317
!ViewWithAcceptAndCancelBar::AcceptAndCancelBar::ButtonWithHelpText methodsFor:'accessing'!
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   318
17897
d1a8350c8773 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17323
diff changeset
   319
helpText
6775
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   320
    ^ helpText
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   321
!
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   322
17897
d1a8350c8773 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17323
diff changeset
   323
helpText:something
6775
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   324
    helpText := something.
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   325
! !
08d41de35293 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6772
diff changeset
   326
16305
c8759e745b82 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 15360
diff changeset
   327
!ViewWithAcceptAndCancelBar::AcceptAndCancelBar::ButtonWithHelpText methodsFor:'initialization'!
c8759e745b82 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 15360
diff changeset
   328
c8759e745b82 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 15360
diff changeset
   329
reinitStyle
c8759e745b82 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 15360
diff changeset
   330
    "do nothing, especially keep the background color"
c8759e745b82 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 15360
diff changeset
   331
! !
c8759e745b82 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 15360
diff changeset
   332
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   333
!ViewWithAcceptAndCancelBar class methodsFor:'documentation'!
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   334
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   335
version
16305
c8759e745b82 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 15360
diff changeset
   336
    ^ '$Header$'
8842
a2fc5fdbd5ae added: #scrolledView
Claus Gittinger <cg@exept.de>
parents: 8336
diff changeset
   337
!
a2fc5fdbd5ae added: #scrolledView
Claus Gittinger <cg@exept.de>
parents: 8336
diff changeset
   338
a2fc5fdbd5ae added: #scrolledView
Claus Gittinger <cg@exept.de>
parents: 8336
diff changeset
   339
version_CVS
16305
c8759e745b82 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 15360
diff changeset
   340
    ^ '$Header$'
6772
07a067c578d5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   341
! !
13518
049393762925 class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents: 11816
diff changeset
   342