author | Claus Gittinger <cg@exept.de> |
Tue, 01 Apr 1997 14:54:41 +0200 | |
changeset 1173 | 86440dfaca06 |
parent 949 | 4c9ab41146a1 |
child 1187 | 6f8bd39b5515 |
permissions | -rw-r--r-- |
0 | 1 |
" |
5 | 2 |
COPYRIGHT (c) 1989 by Claus Gittinger |
59 | 3 |
All Rights Reserved |
0 | 4 |
|
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
13 |
WarningBox subclass:#YesNoBox |
|
253
f071ff350cd5
added confirm with button-labels
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
14 |
instanceVariableNames:'' |
f071ff350cd5
added confirm with button-labels
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
15 |
classVariableNames:'RequestBitmap' |
f071ff350cd5
added confirm with button-labels
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
16 |
poolDictionaries:'' |
f071ff350cd5
added confirm with button-labels
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
17 |
category:'Views-DialogBoxes' |
0 | 18 |
! |
19 |
||
856 | 20 |
!YesNoBox class methodsFor:'documentation'! |
38 | 21 |
|
22 |
copyright |
|
23 |
" |
|
24 |
COPYRIGHT (c) 1989 by Claus Gittinger |
|
59 | 25 |
All Rights Reserved |
38 | 26 |
|
27 |
This software is furnished under a license and may be used |
|
28 |
only in accordance with the terms of that license and with the |
|
29 |
inclusion of the above copyright notice. This software may not |
|
30 |
be provided or otherwise made available to, or used by, any |
|
31 |
other person. No title to or ownership of the software is |
|
32 |
hereby transferred. |
|
33 |
" |
|
34 |
! |
|
35 |
||
36 |
documentation |
|
37 |
" |
|
355 | 38 |
Historic note: |
39 |
originally, ST/X had separate classes for the various entry methods; |
|
40 |
there were YesNoBox, EnterBox, InfoBox and so on. |
|
41 |
In the meantime, the DialogBox class (and therefore its alias: Dialog) |
|
42 |
is going to duplicate most funcionality found in these classes. |
|
43 |
||
44 |
In the future, those existing subclasses' functionality is going to |
|
45 |
be moved fully into Dialog, and the subclasses will be replaced by dummy |
|
46 |
delegators. (They will be kept for backward compatibility, though). |
|
47 |
||
949 | 48 |
New applications should use corresponding confirmation |
49 |
methods from DialogBox. |
|
355 | 50 |
|
38 | 51 |
this class implements yes-no boxes by adding another (no-) Button to the WarnBox-View. |
52 |
They are created with: |
|
53 |
||
355 | 54 |
aBox := YesNoBox title:'some title'. |
55 |
aBox okAction:[ .. some action to be performed when ok is pressed ]. |
|
38 | 56 |
|
57 |
and finally shown with: |
|
0 | 58 |
|
355 | 59 |
aBox showAtPointer |
38 | 60 |
|
61 |
The default box shows 'yes' and 'no' in its buttons; this can be changed with: |
|
62 |
||
355 | 63 |
aBox yesText:'some string'. |
64 |
aBox noText:'some string'. |
|
38 | 65 |
|
66 |
There is also protocol to set both button titles in one message. |
|
67 |
Also, the action associated to the noButton can be changed. |
|
68 |
||
63 | 69 |
For very simple yes/no queries, you can also use the much simpler confirm:. |
70 |
Since implemented in Object, everyone understands confirm. You can pass |
|
71 |
a question message (but not change the buttons labels). |
|
72 |
Use is: |
|
355 | 73 |
self confirm:'some question' |
63 | 74 |
and will return true or false. |
125 | 75 |
|
76 |
For compatibility with ST-80, use: |
|
355 | 77 |
Dialog confirm:'hello' |
585 | 78 |
|
79 |
[see also:] |
|
80 |
DialogBox |
|
81 |
EnterBox |
|
82 |
||
83 |
[author:] |
|
84 |
Claus Gittinger |
|
85 |
||
63 | 86 |
" |
87 |
! |
|
88 |
||
89 |
examples |
|
90 |
" |
|
38 | 91 |
Examples: |
593 | 92 |
[exBegin] |
93 |
|aBox| |
|
38 | 94 |
|
593 | 95 |
aBox := YesNoBox title:'Coffee or tee ?'. |
96 |
aBox noText:'tee'. |
|
97 |
aBox yesText:'coffee'. |
|
655 | 98 |
aBox yesAction:[Transcript showCR:'make coffee']. |
99 |
aBox noAction:[Transcript showCR:'make tee']. |
|
593 | 100 |
aBox showAtPointer. |
101 |
[exEnd] |
|
38 | 102 |
or, shorter: |
593 | 103 |
[exBegin] |
104 |
|aBox| |
|
38 | 105 |
|
593 | 106 |
aBox := YesNoBox new. |
107 |
aBox title:'Coffee or Tee ?' |
|
655 | 108 |
yesAction:[Transcript showCR:'make coffee'] |
109 |
noAction:[Transcript showCR:'make tee']. |
|
593 | 110 |
aBox yesText:'Coffee' noText:'Tee'. |
111 |
aBox showAtPointer |
|
112 |
[exEnd] |
|
38 | 113 |
|
114 |
Also, have a look at the inherited protocol; for example, this allows changing |
|
115 |
the bitmap (default: a question mark) and other properties. |
|
59 | 116 |
|
117 |
If the box is needed to ask for a simple boolean, you can also use the |
|
118 |
#confirm method, to bring up a box, let it ask for something and return |
|
119 |
true or false. |
|
120 |
Example: |
|
593 | 121 |
[exBegin] |
122 |
|box value| |
|
59 | 123 |
|
593 | 124 |
box := YesNoBox new. |
125 |
value := box confirm:'yes or no:'. |
|
126 |
value ifTrue:[ |
|
655 | 127 |
Transcript showCR:'yes' |
593 | 128 |
] ifFalse:[ |
655 | 129 |
Transcript showCR:'no' |
593 | 130 |
] |
131 |
[exEnd] |
|
59 | 132 |
|
133 |
of course, this can also be written shorter as: |
|
593 | 134 |
[exBegin] |
135 |
(YesNoBox new confirm:'yes or no:') ifTrue:[ |
|
655 | 136 |
Transcript showCR:'yes' |
593 | 137 |
] ifFalse:[ |
655 | 138 |
Transcript showCR:'no' |
593 | 139 |
] |
140 |
[exEnd] |
|
125 | 141 |
or: |
593 | 142 |
[exBegin] |
143 |
(Dialog confirm:'yes or no:') ifTrue:[ |
|
655 | 144 |
Transcript showCR:'yes' |
593 | 145 |
] ifFalse:[ |
655 | 146 |
Transcript showCR:'no' |
593 | 147 |
] |
148 |
[exEnd] |
|
38 | 149 |
" |
150 |
! ! |
|
0 | 151 |
|
856 | 152 |
!YesNoBox class methodsFor:'instance creation'! |
59 | 153 |
|
197 | 154 |
title:t yesText:yesString noText:noString |
572 | 155 |
"return a new YesNoBox with title, and buttonLabels yesString/noString" |
156 |
||
197 | 157 |
^ (self new) title:t yesText:yesString noText:noString |
572 | 158 |
|
159 |
"Modified: 23.4.1996 / 00:12:48 / cg" |
|
59 | 160 |
! ! |
161 |
||
856 | 162 |
!YesNoBox class methodsFor:'icon bitmap'! |
59 | 163 |
|
164 |
iconBitmap |
|
1173
86440dfaca06
allow either image or imageFileName to be specified
Claus Gittinger <cg@exept.de>
parents:
949
diff
changeset
|
165 |
"return the bitmap shown as icon in my instances. |
86440dfaca06
allow either image or imageFileName to be specified
Claus Gittinger <cg@exept.de>
parents:
949
diff
changeset
|
166 |
This is the default image; you can overwrite this in a concrete |
86440dfaca06
allow either image or imageFileName to be specified
Claus Gittinger <cg@exept.de>
parents:
949
diff
changeset
|
167 |
instance with the image: message" |
59 | 168 |
|
1173
86440dfaca06
allow either image or imageFileName to be specified
Claus Gittinger <cg@exept.de>
parents:
949
diff
changeset
|
169 |
<resource: #style (#requestBoxIcon #requestBoxIconFile)> |
86440dfaca06
allow either image or imageFileName to be specified
Claus Gittinger <cg@exept.de>
parents:
949
diff
changeset
|
170 |
|
86440dfaca06
allow either image or imageFileName to be specified
Claus Gittinger <cg@exept.de>
parents:
949
diff
changeset
|
171 |
|img imgFileName| |
943 | 172 |
|
59 | 173 |
RequestBitmap isNil ifTrue:[ |
1173
86440dfaca06
allow either image or imageFileName to be specified
Claus Gittinger <cg@exept.de>
parents:
949
diff
changeset
|
174 |
img := StyleSheet at:'requestBoxIcon'. |
943 | 175 |
img notNil ifTrue:[ |
1173
86440dfaca06
allow either image or imageFileName to be specified
Claus Gittinger <cg@exept.de>
parents:
949
diff
changeset
|
176 |
RequestBitmap := img |
86440dfaca06
allow either image or imageFileName to be specified
Claus Gittinger <cg@exept.de>
parents:
949
diff
changeset
|
177 |
] ifFalse:[ |
86440dfaca06
allow either image or imageFileName to be specified
Claus Gittinger <cg@exept.de>
parents:
949
diff
changeset
|
178 |
imgFileName := StyleSheet at:'requestBoxIconFile' default:'bitmaps/Request.xbm'. |
86440dfaca06
allow either image or imageFileName to be specified
Claus Gittinger <cg@exept.de>
parents:
949
diff
changeset
|
179 |
RequestBitmap := Image fromFile:imgFileName. |
943 | 180 |
]. |
1173
86440dfaca06
allow either image or imageFileName to be specified
Claus Gittinger <cg@exept.de>
parents:
949
diff
changeset
|
181 |
RequestBitmap notNil ifTrue:[ |
86440dfaca06
allow either image or imageFileName to be specified
Claus Gittinger <cg@exept.de>
parents:
949
diff
changeset
|
182 |
RequestBitmap := RequestBitmap on:Display |
86440dfaca06
allow either image or imageFileName to be specified
Claus Gittinger <cg@exept.de>
parents:
949
diff
changeset
|
183 |
] |
59 | 184 |
]. |
185 |
^ RequestBitmap |
|
943 | 186 |
|
1173
86440dfaca06
allow either image or imageFileName to be specified
Claus Gittinger <cg@exept.de>
parents:
949
diff
changeset
|
187 |
"Created: 17.11.1995 / 18:16:47 / cg" |
86440dfaca06
allow either image or imageFileName to be specified
Claus Gittinger <cg@exept.de>
parents:
949
diff
changeset
|
188 |
"Modified: 1.4.1997 / 14:50:35 / cg" |
59 | 189 |
! ! |
190 |
||
856 | 191 |
!YesNoBox class methodsFor:'styles'! |
197 | 192 |
|
193 |
updateStyleCache |
|
1173
86440dfaca06
allow either image or imageFileName to be specified
Claus Gittinger <cg@exept.de>
parents:
949
diff
changeset
|
194 |
"extract values from the styleSheet and cache them in class variables. |
86440dfaca06
allow either image or imageFileName to be specified
Claus Gittinger <cg@exept.de>
parents:
949
diff
changeset
|
195 |
Here, the cached infoBitmap is simply flushed." |
197 | 196 |
|
1173
86440dfaca06
allow either image or imageFileName to be specified
Claus Gittinger <cg@exept.de>
parents:
949
diff
changeset
|
197 |
RequestBitmap := nil |
444
ef26eba8c854
added style resource directive
Claus Gittinger <cg@exept.de>
parents:
373
diff
changeset
|
198 |
|
1173
86440dfaca06
allow either image or imageFileName to be specified
Claus Gittinger <cg@exept.de>
parents:
949
diff
changeset
|
199 |
"Modified: 1.4.1997 / 14:51:30 / cg" |
197 | 200 |
! ! |
201 |
||
202 |
!YesNoBox methodsFor:'accessing'! |
|
203 |
||
204 |
noAction:aBlock |
|
949 | 205 |
"define the action to be performed when 'no' is pressed" |
197 | 206 |
|
207 |
abortAction := aBlock |
|
949 | 208 |
|
209 |
"Modified: 16.1.1997 / 11:29:18 / cg" |
|
197 | 210 |
! |
211 |
||
212 |
noButton |
|
213 |
"return the no-button" |
|
214 |
||
215 |
^ abortButton |
|
216 |
! |
|
217 |
||
253
f071ff350cd5
added confirm with button-labels
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
218 |
noLabel:aString |
949 | 219 |
"define the label of the 'no'-button. |
220 |
And alias for #noText: - for backward compatibility" |
|
253
f071ff350cd5
added confirm with button-labels
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
221 |
|
f071ff350cd5
added confirm with button-labels
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
222 |
self noText:aString. |
f071ff350cd5
added confirm with button-labels
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
223 |
|
f071ff350cd5
added confirm with button-labels
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
224 |
"Created: 13.12.1995 / 16:21:57 / cg" |
949 | 225 |
"Modified: 16.1.1997 / 11:30:25 / cg" |
253
f071ff350cd5
added confirm with button-labels
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
226 |
! |
f071ff350cd5
added confirm with button-labels
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
227 |
|
197 | 228 |
noText:aString |
949 | 229 |
"define the label of the no-button. |
230 |
If not set, it defaults to the resource-string for 'no'." |
|
197 | 231 |
|
232 |
aString ~= abortButton label ifTrue:[ |
|
949 | 233 |
abortButton label:aString. |
234 |
abortButton resize. |
|
235 |
shown ifTrue:[self resize] |
|
197 | 236 |
] |
949 | 237 |
|
238 |
"Modified: 16.1.1997 / 11:30:01 / cg" |
|
197 | 239 |
! |
240 |
||
241 |
okText:yesString noText:noString |
|
949 | 242 |
"define the labels of both buttons. |
243 |
Alias for yesText:noText: for backward compatibility." |
|
197 | 244 |
|
245 |
^ self yesText:yesString noText:noString |
|
949 | 246 |
|
247 |
"Modified: 16.1.1997 / 11:30:58 / cg" |
|
197 | 248 |
! |
249 |
||
250 |
title:aString yesAction:yesBlock noAction:noBlock |
|
251 |
"define title and actions" |
|
59 | 252 |
|
197 | 253 |
self title:aString. |
254 |
okAction := yesBlock. |
|
255 |
abortAction := noBlock |
|
256 |
! |
|
257 |
||
258 |
title:aString yesText:yesString noText:noString |
|
259 |
"define title and button labels" |
|
260 |
||
261 |
self title:aString. |
|
262 |
self yesText:yesString noText:noString |
|
263 |
! |
|
264 |
||
265 |
yesAction:aBlock |
|
949 | 266 |
"define the action to be performed when 'yes' is pressed" |
197 | 267 |
|
268 |
okAction := aBlock |
|
949 | 269 |
|
270 |
"Modified: 16.1.1997 / 11:31:21 / cg" |
|
197 | 271 |
! |
272 |
||
273 |
yesAction:yesBlock noAction:noBlock |
|
274 |
"define both actions" |
|
275 |
||
276 |
okAction := yesBlock. |
|
277 |
abortAction := noBlock |
|
278 |
! |
|
279 |
||
280 |
yesButton |
|
949 | 281 |
"return the 'yes'-button" |
197 | 282 |
|
283 |
^ okButton |
|
949 | 284 |
|
285 |
"Modified: 16.1.1997 / 11:31:27 / cg" |
|
197 | 286 |
! |
287 |
||
253
f071ff350cd5
added confirm with button-labels
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
288 |
yesLabel:aString |
949 | 289 |
"define the label of the 'yes'-button. |
290 |
An alias for #yesText: for backward compatibility." |
|
253
f071ff350cd5
added confirm with button-labels
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
291 |
|
f071ff350cd5
added confirm with button-labels
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
292 |
self yesText:aString. |
f071ff350cd5
added confirm with button-labels
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
293 |
|
f071ff350cd5
added confirm with button-labels
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
294 |
"Created: 13.12.1995 / 16:22:05 / cg" |
949 | 295 |
"Modified: 16.1.1997 / 11:31:58 / cg" |
253
f071ff350cd5
added confirm with button-labels
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
296 |
! |
f071ff350cd5
added confirm with button-labels
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
297 |
|
197 | 298 |
yesText:aString |
949 | 299 |
"define the label of the 'yes'-button" |
197 | 300 |
|
301 |
self okText:aString |
|
949 | 302 |
|
303 |
"Modified: 16.1.1997 / 11:31:39 / cg" |
|
197 | 304 |
! |
305 |
||
306 |
yesText:yesString noText:noString |
|
307 |
"define the labels of both buttons" |
|
308 |
||
309 |
((yesString ~= okButton label) or:[noString ~= abortButton label]) ifTrue:[ |
|
373 | 310 |
okButton label:yesString. |
311 |
abortButton label:noString. |
|
312 |
okButton resize. |
|
313 |
abortButton resize. |
|
314 |
shown ifTrue:[self resize] |
|
197 | 315 |
] |
373 | 316 |
|
317 |
"Modified: 21.2.1996 / 00:58:38 / cg" |
|
59 | 318 |
! ! |
319 |
||
0 | 320 |
!YesNoBox methodsFor:'initialization'! |
321 |
||
322 |
initialize |
|
323 |
super initialize. |
|
324 |
||
150 | 325 |
label := resources string:'Choose'. |
79 | 326 |
|
130 | 327 |
buttonPanel horizontalLayout:#fitSpace. "/ looks better; should it come from the StyleSheet ? |
63 | 328 |
|
946 | 329 |
textLabel label:(resources string:'please confirm'). |
330 |
okButton label:(resources string:'yes'). |
|
0 | 331 |
|
162 | 332 |
abortButton := Button abortButton. |
333 |
buttonPanel addSubView:abortButton before:okButton. |
|
946 | 334 |
abortButton label:(resources string:'no'). |
162 | 335 |
abortButton height:(okButton height). |
336 |
abortButton model:self; change:#noPressed |
|
856 | 337 |
|
946 | 338 |
"Modified: 15.1.1997 / 23:32:21 / cg" |
197 | 339 |
! ! |
340 |
||
341 |
!YesNoBox methodsFor:'queries'! |
|
342 |
||
343 |
preferredExtent |
|
572 | 344 |
"compute the boxes preferredExtent from the components' sizes" |
345 |
||
373 | 346 |
|w h max mm| |
347 |
||
796 | 348 |
"/ If I have an explicit preferredExtent .. |
349 |
||
713
0c38ad51016d
care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents:
655
diff
changeset
|
350 |
preferredExtent notNil ifTrue:[ |
0c38ad51016d
care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents:
655
diff
changeset
|
351 |
^ preferredExtent |
0c38ad51016d
care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents:
655
diff
changeset
|
352 |
]. |
0c38ad51016d
care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents:
655
diff
changeset
|
353 |
|
373 | 354 |
mm := ViewSpacing. |
79 | 355 |
|
197 | 356 |
" |
357 |
make the two buttons of equal size |
|
358 |
" |
|
359 |
max := okButton preferredExtent x max:abortButton preferredExtent x. |
|
360 |
okButton width:max. |
|
361 |
abortButton width:max. |
|
373 | 362 |
|
197 | 363 |
w := (formLabel width + textLabel width) max:max * 2. |
373 | 364 |
w := w + (3 * mm) + (okButton borderWidth + abortButton borderWidth * 2). |
365 |
h := (mm * 5) |
|
366 |
+ ((formLabel height) max:(textLabel height)) |
|
367 |
+ okButton heightIncludingBorder. |
|
197 | 368 |
|
369 |
^ (w @ h). |
|
373 | 370 |
|
796 | 371 |
"Modified: 19.7.1996 / 20:45:53 / cg" |
59 | 372 |
! ! |
38 | 373 |
|
59 | 374 |
!YesNoBox methodsFor:'startup'! |
375 |
||
376 |
confirm |
|
377 |
"open the receiver and return true for yes, false for no. |
|
378 |
This is an easier interface to use, since no action blocks |
|
379 |
have to be defined. The title is used as previously defined." |
|
38 | 380 |
|
59 | 381 |
self yesAction:[^ true] noAction:[^ false]. |
63 | 382 |
self showAtPointer. |
383 |
self yesAction:nil noAction:nil. "/ clear actions for earlier release of context |
|
38 | 384 |
|
59 | 385 |
" |
386 |
YesNoBox new confirm |
|
387 |
" |
|
0 | 388 |
! |
389 |
||
59 | 390 |
confirm:aString |
391 |
"open the receiver and return true for yes, false for no. |
|
392 |
This is an easier interface to use, since no action blocks |
|
393 |
have to be defined." |
|
38 | 394 |
|
59 | 395 |
self title:aString. |
396 |
^ self confirm |
|
397 |
||
398 |
" |
|
399 |
YesNoBox new confirm:'really ?' |
|
253
f071ff350cd5
added confirm with button-labels
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
400 |
YesNoBox confirm:'really ?' |
f071ff350cd5
added confirm with button-labels
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
401 |
self confirm:'really ?' |
f071ff350cd5
added confirm with button-labels
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
402 |
|
f071ff350cd5
added confirm with button-labels
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
403 |
for ST-80 compatibility, you should use Dialogs confirm |
f071ff350cd5
added confirm with button-labels
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
404 |
(which simply forwards the request to the YesNoBox anyway): |
f071ff350cd5
added confirm with button-labels
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
405 |
|
f071ff350cd5
added confirm with button-labels
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
406 |
Dialog confirm:'really ?' |
59 | 407 |
" |
253
f071ff350cd5
added confirm with button-labels
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
408 |
|
f071ff350cd5
added confirm with button-labels
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
409 |
"Modified: 13.12.1995 / 16:20:01 / cg" |
0 | 410 |
! ! |
411 |
||
412 |
!YesNoBox methodsFor:'user interaction'! |
|
413 |
||
414 |
noPressed |
|
415 |
"user pressed the no-button; |
|
416 |
hide myself and evaluate the action" |
|
417 |
||
162 | 418 |
abortButton turnOffWithoutRedraw. |
419 |
self hideAndEvaluate:abortAction |
|
0 | 420 |
! ! |
421 |
||
856 | 422 |
!YesNoBox class methodsFor:'documentation'! |
243 | 423 |
|
424 |
version |
|
1173
86440dfaca06
allow either image or imageFileName to be specified
Claus Gittinger <cg@exept.de>
parents:
949
diff
changeset
|
425 |
^ '$Header: /cvs/stx/stx/libwidg/YesNoBox.st,v 1.37 1997-04-01 12:54:41 cg Exp $' |
243 | 426 |
! ! |