author | Patrik Svestka <patrik.svestka@gmail.com> |
Fri, 05 Nov 2021 14:28:53 +0100 | |
branch | jv |
changeset 19617 | 96a62e7ef902 |
parent 19614 | 0d756d4c5298 |
permissions | -rw-r--r-- |
6772 | 1 |
" |
2 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
19614
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
3 |
COPYRIGHT (c) 2021 LabWare |
6772 | 4 |
All Rights Reserved |
5 |
||
6 |
This software is furnished under a license and may be used |
|
7 |
only in accordance with the terms of that license and with the |
|
8 |
inclusion of the above copyright notice. This software may not |
|
9 |
be provided or otherwise made available to, or used by, any |
|
10 |
other person. No title to or ownership of the software is |
|
11 |
hereby transferred. |
|
12 |
" |
|
13 |
"{ Package: 'stx:libtool' }" |
|
14 |
||
15360
480e3544af43
class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents:
14648
diff
changeset
|
15 |
"{ NameSpace: Smalltalk }" |
480e3544af43
class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents:
14648
diff
changeset
|
16 |
|
6772 | 17 |
SimpleView subclass:#ViewWithAcceptAndCancelBar |
8332 | 18 |
instanceVariableNames:'slaveView bar reallyModifiedHolder acceptAction cancelAction |
19 |
compareAction' |
|
6772 | 20 |
classVariableNames:'' |
21 |
poolDictionaries:'' |
|
22 |
category:'Views-Basic' |
|
23 |
! |
|
24 |
||
25 |
SimpleView subclass:#AcceptAndCancelBar |
|
19614
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
26 |
instanceVariableNames:'acceptButton cancelButton compareButton acceptColor cancelColor |
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
27 |
compareColor' |
6772 | 28 |
classVariableNames:'' |
29 |
poolDictionaries:'' |
|
30 |
privateIn:ViewWithAcceptAndCancelBar |
|
31 |
! |
|
32 |
||
6775 | 33 |
Button subclass:#ButtonWithHelpText |
34 |
instanceVariableNames:'helpText' |
|
35 |
classVariableNames:'' |
|
36 |
poolDictionaries:'' |
|
37 |
privateIn:ViewWithAcceptAndCancelBar::AcceptAndCancelBar |
|
38 |
! |
|
39 |
||
6772 | 40 |
!ViewWithAcceptAndCancelBar class methodsFor:'documentation'! |
41 |
||
42 |
copyright |
|
43 |
" |
|
44 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
19614
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
45 |
COPYRIGHT (c) 2021 LabWare |
6772 | 46 |
All Rights Reserved |
47 |
||
48 |
This software is furnished under a license and may be used |
|
49 |
only in accordance with the terms of that license and with the |
|
50 |
inclusion of the above copyright notice. This software may not |
|
51 |
be provided or otherwise made available to, or used by, any |
|
52 |
other person. No title to or ownership of the software is |
|
53 |
hereby transferred. |
|
54 |
" |
|
55 |
! |
|
56 |
||
57 |
documentation |
|
58 |
" |
|
59 |
experimental - self like accept/cancel bar in the browsers |
|
60 |
code view. |
|
61 |
Enable with: |
|
62 |
UserPreferences current showAcceptCancelBarInBrowser:true |
|
63 |
" |
|
64 |
! ! |
|
65 |
||
66 |
!ViewWithAcceptAndCancelBar methodsFor:'accessing'! |
|
67 |
||
68 |
acceptAction:something |
|
10919 | 69 |
"define the action to be performed when the green accept button is pressed" |
70 |
||
6772 | 71 |
acceptAction := something. |
10919 | 72 |
|
73 |
"Modified (comment): / 29-11-2011 / 12:59:18 / cg" |
|
6772 | 74 |
! |
75 |
||
76 |
cancelAction:something |
|
10919 | 77 |
"define the action to be performed when the red cancel button is pressed" |
78 |
||
6772 | 79 |
cancelAction := something. |
10919 | 80 |
|
81 |
"Modified (comment): / 29-11-2011 / 12:59:24 / cg" |
|
6772 | 82 |
! |
83 |
||
10919 | 84 |
compareAction:aBlock |
85 |
"define the action to be performed when the yellow compare button is pressed" |
|
86 |
||
87 |
compareAction := aBlock. |
|
88 |
||
89 |
"Modified (comment): / 29-11-2011 / 12:59:01 / cg" |
|
8332 | 90 |
! |
91 |
||
6772 | 92 |
reallyModifiedHolder:aValueHolder |
10919 | 93 |
"set the holder which keeps track of the real modified state; |
94 |
the modified state of the view is set with every user-input, |
|
95 |
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
|
96 |
With every modified change, the state of the reallyModified is updated" |
10919 | 97 |
|
98 |
reallyModifiedHolder notNil ifTrue:[ |
|
99 |
reallyModifiedHolder removeDependent:self. |
|
100 |
]. |
|
6772 | 101 |
reallyModifiedHolder := aValueHolder. |
10919 | 102 |
reallyModifiedHolder notNil ifTrue:[ |
103 |
reallyModifiedHolder addDependent:self. |
|
104 |
] |
|
105 |
||
106 |
"Modified: / 29-11-2011 / 13:01:02 / cg" |
|
8842 | 107 |
! |
108 |
||
109 |
scrolledView |
|
110 |
"for protocol compatibility" |
|
111 |
||
112 |
^ slaveView scrolledView |
|
6772 | 113 |
! ! |
114 |
||
8332 | 115 |
!ViewWithAcceptAndCancelBar methodsFor:'action'! |
116 |
||
117 |
accept |
|
118 |
acceptAction value |
|
119 |
! |
|
120 |
||
121 |
cancel |
|
122 |
cancelAction notNil ifTrue:[ |
|
123 |
cancelAction value |
|
124 |
] |
|
125 |
! |
|
126 |
||
127 |
compare |
|
128 |
compareAction notNil ifTrue:[ |
|
129 |
compareAction value |
|
130 |
] |
|
131 |
! ! |
|
132 |
||
6772 | 133 |
!ViewWithAcceptAndCancelBar methodsFor:'change & update'! |
134 |
||
135 |
hideBar |
|
136 |
bar unmap. |
|
137 |
bar hiddenOnRealize:true. |
|
6775 | 138 |
slaveView origin:(0.0 @ 0.0) corner:(1.0 @ 1.0). |
6772 | 139 |
! |
140 |
||
141 |
showBar |
|
6775 | 142 |
slaveView origin:(20 @ 0.0) corner:(1.0 @ 1.0). |
6772 | 143 |
bar hiddenOnRealize:false. |
144 |
bar realize. |
|
145 |
! |
|
146 |
||
147 |
update:something with:aParameter from:changedObject |
|
7309 | 148 |
|app| |
149 |
||
6772 | 150 |
slaveView notNil ifTrue:[ |
13518
049393762925
class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents:
11816
diff
changeset
|
151 |
(changedObject == reallyModifiedHolder |
049393762925
class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents:
11816
diff
changeset
|
152 |
or:[ changedObject == slaveView modifiedChannel ]) ifTrue:[ |
049393762925
class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents:
11816
diff
changeset
|
153 |
(app := self application) notNil ifTrue:[ |
049393762925
class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents:
11816
diff
changeset
|
154 |
"/ not sure if we really need to send it through the application |
049393762925
class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents:
11816
diff
changeset
|
155 |
app enqueueMessage:#updateBarVisibility for:self arguments:#(). |
049393762925
class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents:
11816
diff
changeset
|
156 |
] ifFalse:[ |
049393762925
class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents:
11816
diff
changeset
|
157 |
self sensor pushUserEvent:#updateBarVisibility for:self withArguments:#() |
049393762925
class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents:
11816
diff
changeset
|
158 |
] |
6772 | 159 |
]. |
160 |
]. |
|
161 |
super update:something with:aParameter from:changedObject |
|
7309 | 162 |
|
10919 | 163 |
"Modified: / 29-11-2011 / 12:57:55 / cg" |
6772 | 164 |
! |
165 |
||
166 |
updateBarVisibility |
|
167 |
|modified| |
|
168 |
||
10920
9228a3108da8
comment/format in: #updateBarVisibility
Claus Gittinger <cg@exept.de>
parents:
10919
diff
changeset
|
169 |
modified := reallyModifiedHolder notNil |
6772 | 170 |
ifTrue:[ reallyModifiedHolder value ] |
171 |
ifFalse:[ slaveView modifiedChannel value ]. |
|
172 |
||
173 |
modified ifTrue:[ |
|
174 |
self showBar |
|
175 |
] ifFalse:[ |
|
176 |
self hideBar |
|
177 |
]. |
|
10920
9228a3108da8
comment/format in: #updateBarVisibility
Claus Gittinger <cg@exept.de>
parents:
10919
diff
changeset
|
178 |
|
9228a3108da8
comment/format in: #updateBarVisibility
Claus Gittinger <cg@exept.de>
parents:
10919
diff
changeset
|
179 |
"Modified (format): / 29-11-2011 / 14:05:04 / cg" |
6772 | 180 |
! ! |
181 |
||
182 |
!ViewWithAcceptAndCancelBar methodsFor:'initialization'! |
|
183 |
||
184 |
initialize |
|
185 |
super initialize. |
|
186 |
||
187 |
bar := AcceptAndCancelBar in:self. |
|
188 |
bar origin:(0.0 @ 0.0) corner:(20 @ 1.0). |
|
189 |
bar hiddenOnRealize:true. |
|
190 |
||
191 |
bar acceptButton action:[ self accept ]. |
|
192 |
bar cancelButton action:[ self cancel ]. |
|
8332 | 193 |
bar compareButton action:[ self compare ]. |
6772 | 194 |
|
195 |
acceptAction := [ slaveView notNil ifTrue:[ slaveView accept ] ]. |
|
196 |
cancelAction := [ ]. |
|
197 |
||
198 |
" |
|
199 |
self new open |
|
200 |
" |
|
201 |
! |
|
202 |
||
14429
3fb66a972ee5
class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents:
13518
diff
changeset
|
203 |
setSlaveView:aView |
6772 | 204 |
slaveView := aView. |
205 |
aView origin:(0.0@0.0) corner:(1.0@1.0). |
|
206 |
aView modifiedChannel addDependent:self. |
|
207 |
||
208 |
" |
|
209 |
|v| |
|
210 |
||
211 |
v := self new. |
|
212 |
v slaveView:CodeView new. |
|
213 |
v open |
|
214 |
" |
|
14429
3fb66a972ee5
class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents:
13518
diff
changeset
|
215 |
! |
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 |
slaveView:aView |
3fb66a972ee5
class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents:
13518
diff
changeset
|
218 |
self add:aView. |
3fb66a972ee5
class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents:
13518
diff
changeset
|
219 |
self setSlaveView:aView. |
3fb66a972ee5
class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents:
13518
diff
changeset
|
220 |
|
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 |
|v| |
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 |
v := self new. |
3fb66a972ee5
class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents:
13518
diff
changeset
|
225 |
v slaveView:CodeView new. |
3fb66a972ee5
class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents:
13518
diff
changeset
|
226 |
v open |
3fb66a972ee5
class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents:
13518
diff
changeset
|
227 |
" |
6772 | 228 |
! ! |
229 |
||
230 |
!ViewWithAcceptAndCancelBar::AcceptAndCancelBar methodsFor:'accessing'! |
|
231 |
||
232 |
acceptButton |
|
233 |
^ acceptButton |
|
234 |
! |
|
235 |
||
236 |
cancelButton |
|
237 |
^ cancelButton |
|
8332 | 238 |
! |
239 |
||
240 |
compareButton |
|
241 |
^ compareButton |
|
7761 | 242 |
! ! |
243 |
||
244 |
!ViewWithAcceptAndCancelBar::AcceptAndCancelBar methodsFor:'help'! |
|
6775 | 245 |
|
246 |
flyByHelpTextAt:srcPoint |
|
247 |
"return the helpText for aPoint (i.e. when mouse-pointer is moved over an item)." |
|
248 |
||
249 |
(acceptButton bounds containsPoint:srcPoint) ifTrue:[ |
|
11816 | 250 |
^ resources string:'Accept' |
6775 | 251 |
]. |
8332 | 252 |
(cancelButton bounds containsPoint:srcPoint) ifTrue:[ |
11816 | 253 |
^ resources string:'Cancel' |
6775 | 254 |
]. |
8332 | 255 |
(compareButton bounds containsPoint:srcPoint) ifTrue:[ |
11816 | 256 |
^ resources string:'Compare against Original' |
8332 | 257 |
]. |
6775 | 258 |
^ nil |
11816 | 259 |
|
260 |
"Modified: / 26-09-2012 / 14:26:14 / cg" |
|
6772 | 261 |
! ! |
262 |
||
263 |
!ViewWithAcceptAndCancelBar::AcceptAndCancelBar methodsFor:'initialization'! |
|
264 |
||
19614
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
265 |
initStyle |
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
266 |
"this method sets up all style dependent things" |
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
267 |
|
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
268 |
<resource: #style (#'acceptAndCancelBar.acceptBackgroundColor' |
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
269 |
#'acceptAndCancelBar.cancelBackgroundColor' |
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
270 |
#'acceptAndCancelBar.compareBackgroundColor')> |
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
271 |
|
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
272 |
super initStyle. |
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
273 |
|
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
274 |
acceptColor := styleSheet colorAt: 'acceptAndCancelBar.acceptBackgroundColor' |
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
275 |
default: [ UserPreferences current useColorsForColorBlindness |
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
276 |
ifTrue:[ Color blue onDevice:device ] |
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
277 |
ifFalse:[ Color green onDevice:device ] ]. |
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
278 |
|
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
279 |
cancelColor := styleSheet colorAt: 'acceptAndCancelBar.cancelBackgroundColor' |
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
280 |
default: [ Color red onDevice:device ]. |
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
281 |
|
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
282 |
compareColor := styleSheet colorAt: 'acceptAndCancelBar.compareBackgroundColor' |
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
283 |
default: [ Color yellow onDevice:device ]. |
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
284 |
|
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
285 |
"Created: / 14-10-2021 / 11:49:04 / Jan Vrany <jan.vrany@labware.com>" |
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
286 |
! |
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
287 |
|
6772 | 288 |
initialize |
19614
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
289 |
| order| |
15360
480e3544af43
class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents:
14648
diff
changeset
|
290 |
|
6772 | 291 |
super initialize. |
292 |
||
16612 | 293 |
order := UserPreferences current acceptCancelBarOrder. |
294 |
||
6775 | 295 |
acceptButton := ButtonWithHelpText new. |
8336 | 296 |
acceptButton origin:0.0 @ 0.0 corner:1.0@0.7. |
15360
480e3544af43
class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents:
14648
diff
changeset
|
297 |
acceptButton backgroundColor:acceptColor. |
480e3544af43
class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents:
14648
diff
changeset
|
298 |
acceptButton enteredBackgroundColor:acceptColor lightened. |
480e3544af43
class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents:
14648
diff
changeset
|
299 |
acceptButton activeBackgroundColor:acceptColor darkened. |
11816 | 300 |
acceptButton flyByHelpText:(resources string:'Accept'). |
6772 | 301 |
self add:acceptButton. |
302 |
||
6775 | 303 |
cancelButton := ButtonWithHelpText new. |
16612 | 304 |
order == #acceptCompareCancel ifTrue:[ |
305 |
cancelButton origin:0.0 @ 0.9 corner:1.0@1.0. |
|
306 |
] ifFalse:[ |
|
307 |
cancelButton origin:0.0 @ 0.7 corner:1.0@0.9. |
|
308 |
]. |
|
15360
480e3544af43
class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents:
14648
diff
changeset
|
309 |
cancelButton backgroundColor:cancelColor. |
480e3544af43
class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents:
14648
diff
changeset
|
310 |
cancelButton enteredBackgroundColor:cancelColor lightened. |
480e3544af43
class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents:
14648
diff
changeset
|
311 |
cancelButton activeBackgroundColor:cancelColor darkened. |
11816 | 312 |
cancelButton flyByHelpText:(resources string:'Cancel'). |
6772 | 313 |
self add:cancelButton. |
314 |
||
8332 | 315 |
compareButton := ButtonWithHelpText new. |
16612 | 316 |
order == #acceptCompareCancel ifTrue:[ |
317 |
compareButton origin:0.0 @ 0.7 corner:1.0@0.9. |
|
318 |
] ifFalse:[ |
|
319 |
compareButton origin:0.0 @ 0.9 corner:1.0@1.0. |
|
320 |
]. |
|
15360
480e3544af43
class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents:
14648
diff
changeset
|
321 |
compareButton backgroundColor:compareColor. |
480e3544af43
class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents:
14648
diff
changeset
|
322 |
compareButton enteredBackgroundColor:compareColor lightened lightened. |
480e3544af43
class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents:
14648
diff
changeset
|
323 |
compareButton activeBackgroundColor:compareColor darkened. |
11816 | 324 |
compareButton flyByHelpText:(resources string:'Compare against Original'). |
8332 | 325 |
compareButton label:'?'. |
326 |
self add:compareButton. |
|
327 |
||
6772 | 328 |
" |
329 |
AcceptAndCancelBar new open |
|
330 |
" |
|
11816 | 331 |
|
332 |
"Modified: / 26-09-2012 / 14:44:18 / cg" |
|
19614
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
333 |
"Modified: / 14-10-2021 / 11:49:58 / Jan Vrany <jan.vrany@labware.com>" |
6772 | 334 |
! ! |
335 |
||
6775 | 336 |
!ViewWithAcceptAndCancelBar::AcceptAndCancelBar::ButtonWithHelpText methodsFor:'accessing'! |
337 |
||
338 |
flyByHelpText |
|
339 |
^ helpText |
|
340 |
! |
|
341 |
||
342 |
flyByHelpText:something |
|
343 |
helpText := something. |
|
344 |
! ! |
|
345 |
||
16305 | 346 |
!ViewWithAcceptAndCancelBar::AcceptAndCancelBar::ButtonWithHelpText methodsFor:'initialization'! |
347 |
||
348 |
reinitStyle |
|
349 |
"do nothing, especially keep the background color" |
|
350 |
! ! |
|
351 |
||
6772 | 352 |
!ViewWithAcceptAndCancelBar class methodsFor:'documentation'! |
353 |
||
354 |
version |
|
16305 | 355 |
^ '$Header$' |
8842 | 356 |
! |
357 |
||
358 |
version_CVS |
|
16305 | 359 |
^ '$Header$' |
19614
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
360 |
! |
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
361 |
|
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
362 |
version_HG |
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
363 |
|
0d756d4c5298
Themes: use stylesheet to define colors for accept-cancel bars
Jan Vrany <jan.vrany@labware.com>
parents:
16617
diff
changeset
|
364 |
^ '$Changeset: <not expanded> $' |
6772 | 365 |
! ! |
13518
049393762925
class: ViewWithAcceptAndCancelBar
Claus Gittinger <cg@exept.de>
parents:
11816
diff
changeset
|
366 |