author | Claus Gittinger <cg@exept.de> |
Tue, 28 Oct 1997 20:27:21 +0100 | |
changeset 579 | ba6e90f651d8 |
parent 566 | 11ca5c6ba3d8 |
child 757 | e12757d01575 |
permissions | -rw-r--r-- |
44 | 1 |
" |
2 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
49 | 3 |
All Rights Reserved |
44 | 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 |
||
14 |
HorizontalPanelView subclass:#CheckBox |
|
112
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
15 |
instanceVariableNames:'toggleView labelView labelForegroundColor |
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
16 |
disabledLabelForegroundColor' |
320
bf5e928d027a
option to place the toggle at the right.
Claus Gittinger <cg@exept.de>
parents:
318
diff
changeset
|
17 |
classVariableNames:'DefaultLabelForegroundColor DefaultDisabledLabelForegroundColor |
bf5e928d027a
option to place the toggle at the right.
Claus Gittinger <cg@exept.de>
parents:
318
diff
changeset
|
18 |
CheckToggleLeft' |
112
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
19 |
poolDictionaries:'' |
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
20 |
category:'Views-Interactors' |
44 | 21 |
! |
22 |
||
273
01541272ce8d
resource spec updated; cache device form
Claus Gittinger <cg@exept.de>
parents:
268
diff
changeset
|
23 |
!CheckBox class methodsFor:'documentation'! |
44 | 24 |
|
100 | 25 |
copyright |
26 |
" |
|
27 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
28 |
All Rights Reserved |
|
29 |
||
30 |
This software is furnished under a license and may be used |
|
31 |
only in accordance with the terms of that license and with the |
|
32 |
inclusion of the above copyright notice. This software may not |
|
33 |
be provided or otherwise made available to, or used by, any |
|
34 |
other person. No title to or ownership of the software is |
|
35 |
hereby transferred. |
|
36 |
" |
|
37 |
||
44 | 38 |
! |
39 |
||
40 |
documentation |
|
41 |
" |
|
313 | 42 |
CheckBoxes consist of a checkToggle and a label; |
43 |
if used without a model, its action block is evaluated |
|
44 |
when toggled (see Toggle for more information). |
|
45 |
Otherwise, a valueHolder on a boolean is the preferred model |
|
46 |
(other models are possible - this may required different aspect |
|
47 |
and/or changeMessage settings; make certain to set those before |
|
48 |
a model is assigned, since the toggle fetches the value when |
|
49 |
a new model is assigned.) |
|
155 | 50 |
|
51 |
[author:] |
|
313 | 52 |
Claus Gittinger |
155 | 53 |
|
54 |
[see also:] |
|
313 | 55 |
Button CheckToggle |
56 |
DialogBox |
|
57 |
ValueHolder |
|
44 | 58 |
" |
59 |
! |
|
60 |
||
61 |
examples |
|
62 |
" |
|
188 | 63 |
no-op checkBox without a label: |
313 | 64 |
[exBegin] |
188 | 65 |
|b| |
66 |
||
67 |
b := CheckBox new. |
|
68 |
b open |
|
313 | 69 |
[exEnd] |
188 | 70 |
|
71 |
||
44 | 72 |
no-op checkBox: |
313 | 73 |
[exBegin] |
44 | 74 |
|b| |
75 |
||
76 |
b := CheckBox new. |
|
77 |
b label:'foo'. |
|
78 |
b open |
|
313 | 79 |
[exEnd] |
80 |
||
81 |
||
82 |
combined instance creation & label setup: |
|
83 |
[exBegin] |
|
84 |
|b| |
|
85 |
||
86 |
b := CheckBox label:'foo'. |
|
87 |
b open |
|
88 |
[exEnd] |
|
44 | 89 |
|
90 |
||
56 | 91 |
no-op checkBox, disabled: |
313 | 92 |
[exBegin] |
56 | 93 |
|b| |
94 |
||
313 | 95 |
b := CheckBox label:'foo'. |
56 | 96 |
b disable. |
97 |
b open |
|
313 | 98 |
[exEnd] |
56 | 99 |
|
100 |
||
101 |
changing colors |
|
102 |
(a demo only: it is no good style to fight the styleSheet): |
|
313 | 103 |
[exBegin] |
44 | 104 |
|panel b| |
105 |
||
106 |
panel := VerticalPanelView new. |
|
107 |
||
313 | 108 |
b := CheckBox label:'foo' in:panel. |
44 | 109 |
|
313 | 110 |
b := CheckBox label:'bar' in:panel. |
44 | 111 |
b labelView foregroundColor:Color red. |
112 |
||
313 | 113 |
b := CheckBox label:'baz' in:panel. |
44 | 114 |
b toggleView activeForegroundColor:Color blue. |
115 |
||
116 |
panel open |
|
313 | 117 |
[exEnd] |
44 | 118 |
|
119 |
||
120 |
using action-blocks: |
|
313 | 121 |
[exBegin] |
49 | 122 |
|b| |
44 | 123 |
|
313 | 124 |
b := CheckBox label:'check'. |
184 | 125 |
b action:[:value | Transcript show:'set to: '; showCR:value]. |
44 | 126 |
b open. |
313 | 127 |
[exEnd] |
44 | 128 |
|
129 |
||
49 | 130 |
with a model (default ST-80 behavior, sending #value: to the model): |
131 |
(see changing value in the inspector) |
|
313 | 132 |
[exBegin] |
133 |
|b model| |
|
134 |
||
135 |
model := ValueHolder newBoolean. |
|
136 |
||
137 |
b := CheckBox label:'check'. |
|
138 |
b model:model. |
|
139 |
b open. |
|
140 |
model inspect. |
|
141 |
[exEnd] |
|
142 |
||
143 |
||
144 |
combined instance creation & model setup: |
|
145 |
[exBegin] |
|
49 | 146 |
|b model| |
147 |
||
148 |
model := ValueHolder newBoolean. |
|
149 |
||
313 | 150 |
b := CheckBox label:'check' model:model . |
49 | 151 |
b open. |
152 |
model inspect. |
|
313 | 153 |
[exEnd] |
49 | 154 |
|
56 | 155 |
|
313 | 156 |
with a model and different aspect & changeSelector |
157 |
setting the aspect to nil suppresses fetching the value from the model. |
|
49 | 158 |
(using a plug here, for demonstration only): |
313 | 159 |
[exBegin] |
44 | 160 |
|b model| |
161 |
||
162 |
model := Plug new. |
|
184 | 163 |
model respondTo:#changeCheck: with:[:arg | Transcript showCR:'change to ' , arg printString]. |
313 | 164 |
model respondTo:#value with:[false]. |
44 | 165 |
|
313 | 166 |
b := CheckBox label:'check'. |
167 |
b aspectMessage:nil; model:model; changeMessage:#changeCheck:. |
|
44 | 168 |
b open. |
313 | 169 |
[exEnd] |
44 | 170 |
|
56 | 171 |
|
313 | 172 |
with an enableChannel |
173 |
[exBegin] |
|
115
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
174 |
|b enaToggle enaHolder| |
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
175 |
|
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
176 |
enaHolder := true asValue. |
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
177 |
|
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
178 |
enaToggle := Toggle label:'enable'. |
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
179 |
enaToggle model:enaHolder. |
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
180 |
enaToggle open. |
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
181 |
|
313 | 182 |
b := CheckBox label:'check'. |
184 | 183 |
b action:[:value | Transcript show:'set to: '; showCR:value]. |
115
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
184 |
b enableChannel:enaHolder. |
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
185 |
b open. |
313 | 186 |
[exEnd] |
115
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
187 |
|
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
188 |
|
56 | 189 |
with models, one checkBox disabling the others: |
313 | 190 |
[exBegin] |
56 | 191 |
|dialog translator enableChannel val1 val2 val3 eBox box1 box2 box3| |
192 |
||
193 |
translator := Plug new. |
|
194 |
translator respondTo:#enableDisable |
|
313 | 195 |
with:[ |
196 |
enableChannel value |
|
197 |
ifTrue:[ |
|
198 |
box1 enable. |
|
199 |
box2 enable. |
|
200 |
box3 enable. |
|
201 |
] |
|
202 |
ifFalse:[ |
|
203 |
box1 disable. |
|
204 |
box2 disable. |
|
205 |
box3 disable. |
|
206 |
] |
|
207 |
]. |
|
56 | 208 |
|
209 |
enableChannel := true asValue. |
|
210 |
enableChannel onChangeSend:#enableDisable to:translator. |
|
211 |
val1 := true asValue. |
|
212 |
val2 := false asValue. |
|
213 |
val3 := true asValue. |
|
214 |
||
215 |
dialog := Dialog new. |
|
216 |
dialog addCheckBox:'enable' on:enableChannel. |
|
217 |
dialog addVerticalSpace. |
|
218 |
dialog leftIndent:30. |
|
219 |
box1 := dialog addCheckBox:'value1' on:val1. |
|
220 |
dialog addVerticalSpace. |
|
221 |
box2 := dialog addCheckBox:'value2' on:val2. |
|
222 |
dialog addVerticalSpace. |
|
223 |
box3 := dialog addCheckBox:'value3' on:val3. |
|
224 |
dialog addVerticalSpace. |
|
225 |
dialog addOkButton. |
|
226 |
||
227 |
dialog open. |
|
313 | 228 |
[exEnd] |
56 | 229 |
|
230 |
||
49 | 231 |
multiple checkBoxes on a single model (using different aspects) |
313 | 232 |
[exBegin] |
79 | 233 |
|top panel b model value1 value2| |
49 | 234 |
|
235 |
value1 := true. |
|
236 |
value2 := false. |
|
237 |
model := Plug new. |
|
238 |
model respondTo:#value1 with:[value1]. |
|
239 |
model respondTo:#value1: with:[:val | value1 := val]. |
|
240 |
model respondTo:#value2 with:[value2]. |
|
241 |
model respondTo:#value2: with:[:val | value2 := val]. |
|
242 |
||
243 |
top := DialogBox new. |
|
244 |
top extent:200@300. |
|
245 |
||
246 |
panel := VerticalPanelView new. |
|
247 |
||
248 |
b := CheckBox in:panel. |
|
249 |
b label:'check1'. |
|
313 | 250 |
b aspect:#value1; model:model; changeMessage:#value1:. |
49 | 251 |
|
252 |
b := CheckBox in:panel. |
|
253 |
b label:'check2'. |
|
313 | 254 |
b aspect:#value2; model:model; changeMessage:#value2:. |
49 | 255 |
|
256 |
top addComponent:panel. |
|
257 |
top addAbortButton; addOkButton. |
|
258 |
top openModal. |
|
259 |
||
79 | 260 |
top accepted ifTrue:[ |
313 | 261 |
Transcript show:'value1: '; showCR:model value1. |
262 |
Transcript show:'value2: '; showCR:model value2. |
|
49 | 263 |
] |
313 | 264 |
[exEnd] |
44 | 265 |
" |
266 |
! ! |
|
267 |
||
273
01541272ce8d
resource spec updated; cache device form
Claus Gittinger <cg@exept.de>
parents:
268
diff
changeset
|
268 |
!CheckBox class methodsFor:'instance creation'! |
62 | 269 |
|
76 | 270 |
label:aStringOrImage model:aModel |
271 |
"create & return a new checkBox, on aModel (typically a ValueHolder), |
|
272 |
with aStringOrImage as label." |
|
273 |
||
313 | 274 |
^ (self model:aModel) label:aStringOrImage |
76 | 275 |
|
276 |
"Created: 17.9.1995 / 14:20:58 / claus" |
|
313 | 277 |
"Modified: 28.2.1997 / 19:23:59 / cg" |
56 | 278 |
! ! |
279 |
||
273
01541272ce8d
resource spec updated; cache device form
Claus Gittinger <cg@exept.de>
parents:
268
diff
changeset
|
280 |
!CheckBox class methodsFor:'defaults'! |
112
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
281 |
|
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
282 |
updateStyleCache |
134
049f033265f9
added style resource directive
Claus Gittinger <cg@exept.de>
parents:
119
diff
changeset
|
283 |
"extract values from the styleSheet and cache them in class variables" |
049f033265f9
added style resource directive
Claus Gittinger <cg@exept.de>
parents:
119
diff
changeset
|
284 |
|
566 | 285 |
<resource: #style (#'checkBox.labelForegroundColor' |
286 |
#'checkBox.disabledLabelForegroundColor' |
|
287 |
#'checkBox.toggleLeft')> |
|
134
049f033265f9
added style resource directive
Claus Gittinger <cg@exept.de>
parents:
119
diff
changeset
|
288 |
|
566 | 289 |
DefaultLabelForegroundColor := StyleSheet colorAt:'checkBox.labelForegroundColor'. |
290 |
DefaultDisabledLabelForegroundColor := StyleSheet colorAt:'checkBox.disabledLabelForegroundColor'. |
|
291 |
CheckToggleLeft := StyleSheet at:'checkBox.toggleLeft' default:true |
|
112
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
292 |
|
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
293 |
" |
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
294 |
self updateStyleCache |
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
295 |
" |
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
296 |
|
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
297 |
"Created: 14.12.1995 / 14:47:22 / cg" |
566 | 298 |
"Modified: 20.10.1997 / 13:51:30 / cg" |
112
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
299 |
! ! |
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
300 |
|
313 | 301 |
!CheckBox methodsFor:'accessing - components'! |
56 | 302 |
|
44 | 303 |
labelView |
49 | 304 |
"return the labelView; allows manipulation of the |
305 |
labels attributes (colors etc.)" |
|
306 |
||
44 | 307 |
^ labelView |
308 |
! |
|
309 |
||
310 |
toggleView |
|
49 | 311 |
"return the toggleView; allows manipulation of the |
312 |
toggles attributes (colors etc.)" |
|
313 |
||
44 | 314 |
^ toggleView |
56 | 315 |
! ! |
316 |
||
100 | 317 |
!CheckBox methodsFor:'accessing-behavior'! |
318 |
||
319 |
action:aBlock |
|
155 | 320 |
"set the actionBlock; forwarded to the toggle" |
100 | 321 |
|
322 |
toggleView action:aBlock |
|
155 | 323 |
|
324 |
"Modified: 25.4.1996 / 16:31:19 / cg" |
|
100 | 325 |
! |
326 |
||
327 |
disable |
|
155 | 328 |
"disable the checkBox; forwarded to toggle & change labels color" |
100 | 329 |
|
112
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
330 |
|clr| |
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
331 |
|
100 | 332 |
toggleView disable. |
112
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
333 |
clr := disabledLabelForegroundColor. |
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
334 |
clr isNil ifTrue:[ clr := toggleView disabledForegroundColor ]. |
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
335 |
labelView foregroundColor:clr. |
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
336 |
|
155 | 337 |
"Modified: 25.4.1996 / 16:31:31 / cg" |
100 | 338 |
! |
339 |
||
340 |
enable |
|
155 | 341 |
"enable the checkBox; forwarded to toggle & change labels color" |
100 | 342 |
|
112
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
343 |
|clr| |
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
344 |
|
100 | 345 |
toggleView enable. |
112
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
346 |
clr := labelForegroundColor. |
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
347 |
clr isNil ifTrue:[ clr := toggleView foregroundColor ]. |
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
348 |
labelView foregroundColor:clr. |
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
349 |
|
155 | 350 |
"Modified: 25.4.1996 / 16:31:40 / cg" |
100 | 351 |
! |
78 | 352 |
|
299 | 353 |
enabled |
354 |
"return true, if the checkBox is enabled. |
|
355 |
forwarded to toggle" |
|
356 |
||
357 |
^ toggleView enabled. |
|
358 |
! |
|
359 |
||
100 | 360 |
pressAction:aBlock |
155 | 361 |
"set the pressAction; forwarded to the toggle" |
362 |
||
100 | 363 |
toggleView pressAction:aBlock. |
364 |
||
365 |
"Created: 22.9.1995 / 15:54:04 / claus" |
|
155 | 366 |
"Modified: 25.4.1996 / 16:31:52 / cg" |
100 | 367 |
! |
368 |
||
369 |
releaseAction:aBlock |
|
155 | 370 |
"set the releaseAction; forwarded to the toggle" |
371 |
||
100 | 372 |
toggleView releaseAction:aBlock. |
373 |
||
374 |
"Created: 22.9.1995 / 15:54:11 / claus" |
|
155 | 375 |
"Modified: 25.4.1996 / 16:32:00 / cg" |
78 | 376 |
! ! |
377 |
||
115
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
378 |
!CheckBox methodsFor:'accessing-channels'! |
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
379 |
|
164 | 380 |
enableChannel |
381 |
"return a valueHolder for enable/disable" |
|
382 |
||
383 |
^ toggleView enableChannel |
|
384 |
||
385 |
"Created: 30.4.1996 / 15:11:13 / cg" |
|
386 |
! |
|
387 |
||
115
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
388 |
enableChannel:aChannel |
155 | 389 |
"set the enableChannel" |
390 |
||
119
913df6ba1ccc
immediately change fg color when enableChannel is set
Claus Gittinger <cg@exept.de>
parents:
115
diff
changeset
|
391 |
|wasEnabled| |
913df6ba1ccc
immediately change fg color when enableChannel is set
Claus Gittinger <cg@exept.de>
parents:
115
diff
changeset
|
392 |
|
913df6ba1ccc
immediately change fg color when enableChannel is set
Claus Gittinger <cg@exept.de>
parents:
115
diff
changeset
|
393 |
wasEnabled := toggleView enabled. |
115
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
394 |
toggleView enableChannel:aChannel. |
119
913df6ba1ccc
immediately change fg color when enableChannel is set
Claus Gittinger <cg@exept.de>
parents:
115
diff
changeset
|
395 |
aChannel onChangeSend:#enableStateChanged to:self. |
913df6ba1ccc
immediately change fg color when enableChannel is set
Claus Gittinger <cg@exept.de>
parents:
115
diff
changeset
|
396 |
aChannel value ~~ wasEnabled ifTrue:[ |
268 | 397 |
self enableStateChanged |
119
913df6ba1ccc
immediately change fg color when enableChannel is set
Claus Gittinger <cg@exept.de>
parents:
115
diff
changeset
|
398 |
] |
115
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
399 |
|
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
400 |
"Created: 17.12.1995 / 16:07:59 / cg" |
155 | 401 |
"Modified: 25.4.1996 / 16:32:34 / cg" |
115
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
402 |
! ! |
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
403 |
|
56 | 404 |
!CheckBox methodsFor:'accessing-look'! |
44 | 405 |
|
100 | 406 |
activeLogo:anImageOrString |
155 | 407 |
"set the activeLogo; forwarded to the toggle" |
408 |
||
100 | 409 |
toggleView activeLogo:anImageOrString |
56 | 410 |
|
100 | 411 |
"Created: 22.9.1995 / 15:44:08 / claus" |
155 | 412 |
"Modified: 25.4.1996 / 16:32:50 / cg" |
100 | 413 |
! |
414 |
||
114 | 415 |
disabledLabelForegroundColor |
185 | 416 |
"set the disabledLabelForegroundColor; forwarded to the toggle" |
417 |
||
114 | 418 |
disabledLabelForegroundColor isNil ifTrue:[ ^ toggleView disabledForegroundColor ]. |
419 |
^ disabledLabelForegroundColor |
|
420 |
||
421 |
"Created: 16.12.1995 / 19:47:45 / cg" |
|
185 | 422 |
"Modified: 22.5.1996 / 13:16:55 / cg" |
114 | 423 |
! |
424 |
||
100 | 425 |
font |
185 | 426 |
"return the font. Forward from label" |
100 | 427 |
|
428 |
^ labelView font |
|
185 | 429 |
|
430 |
"Modified: 22.5.1996 / 13:17:07 / cg" |
|
49 | 431 |
! |
44 | 432 |
|
56 | 433 |
font:aFont |
185 | 434 |
"set the font. Forward to the label & resize myself. |
435 |
CAVEAT: with the addition of Text objects, |
|
268 | 436 |
this method is going to be obsoleted by a textStyle |
437 |
method, which allows specific control over |
|
438 |
normalFont/boldFont/italicFont parameters." |
|
55 | 439 |
|
56 | 440 |
labelView font:aFont. |
441 |
labelView forceResize. |
|
79 | 442 |
self layoutChanged. |
443 |
self resize. |
|
185 | 444 |
|
445 |
"Modified: 22.5.1996 / 13:17:28 / cg" |
|
49 | 446 |
! |
447 |
||
56 | 448 |
label |
155 | 449 |
"return the labels logo" |
56 | 450 |
|
451 |
^ labelView label |
|
155 | 452 |
|
453 |
"Modified: 25.4.1996 / 16:33:08 / cg" |
|
79 | 454 |
! |
455 |
||
100 | 456 |
label:aString |
155 | 457 |
"set the logo; forward to label & resize" |
79 | 458 |
|
100 | 459 |
labelView label:aString. |
460 |
labelView forceResize. |
|
461 |
self layoutChanged. |
|
462 |
self resize. |
|
155 | 463 |
|
464 |
"Modified: 25.4.1996 / 16:33:14 / cg" |
|
79 | 465 |
! |
466 |
||
114 | 467 |
labelForegroundColor |
155 | 468 |
"return the labels foregroundColor" |
469 |
||
114 | 470 |
labelForegroundColor isNil ifTrue:[ ^ toggleView foregroundColor ]. |
471 |
^ labelForegroundColor |
|
472 |
||
473 |
"Created: 16.12.1995 / 19:47:20 / cg" |
|
155 | 474 |
"Modified: 25.4.1996 / 16:33:26 / cg" |
114 | 475 |
! |
476 |
||
79 | 477 |
passiveLogo:anImageOrString |
155 | 478 |
"set the passiveLogo; forwarded to the toggle" |
479 |
||
79 | 480 |
toggleView passiveLogo:anImageOrString |
481 |
||
482 |
"Created: 22.9.1995 / 15:44:14 / claus" |
|
155 | 483 |
"Modified: 25.4.1996 / 16:33:41 / cg" |
579
ba6e90f651d8
pass down background changes to my components
Claus Gittinger <cg@exept.de>
parents:
566
diff
changeset
|
484 |
! |
ba6e90f651d8
pass down background changes to my components
Claus Gittinger <cg@exept.de>
parents:
566
diff
changeset
|
485 |
|
ba6e90f651d8
pass down background changes to my components
Claus Gittinger <cg@exept.de>
parents:
566
diff
changeset
|
486 |
viewBackground:aColor |
ba6e90f651d8
pass down background changes to my components
Claus Gittinger <cg@exept.de>
parents:
566
diff
changeset
|
487 |
super viewBackground:aColor. |
ba6e90f651d8
pass down background changes to my components
Claus Gittinger <cg@exept.de>
parents:
566
diff
changeset
|
488 |
labelView viewBackground:aColor |
ba6e90f651d8
pass down background changes to my components
Claus Gittinger <cg@exept.de>
parents:
566
diff
changeset
|
489 |
|
ba6e90f651d8
pass down background changes to my components
Claus Gittinger <cg@exept.de>
parents:
566
diff
changeset
|
490 |
"Created: / 26.10.1997 / 22:15:10 / cg" |
ba6e90f651d8
pass down background changes to my components
Claus Gittinger <cg@exept.de>
parents:
566
diff
changeset
|
491 |
"Modified: / 26.10.1997 / 22:15:24 / cg" |
56 | 492 |
! ! |
493 |
||
100 | 494 |
!CheckBox methodsFor:'accessing-mvc'! |
63 | 495 |
|
100 | 496 |
aspectMessage:aspectSymbol |
155 | 497 |
"set the aspectMessage; forward to label & toggle" |
100 | 498 |
|
313 | 499 |
labelView aspectMessage:aspectSymbol. "/ in case the label updates its logo from the model |
100 | 500 |
toggleView aspectMessage:aspectSymbol |
155 | 501 |
|
313 | 502 |
"Modified: 28.2.1997 / 19:50:53 / cg" |
100 | 503 |
! |
63 | 504 |
|
100 | 505 |
changeMessage:aChangeSelector |
155 | 506 |
"set the changeMessage; forward to toggle" |
100 | 507 |
|
508 |
toggleView changeMessage:aChangeSelector |
|
155 | 509 |
|
510 |
"Modified: 25.4.1996 / 16:33:55 / cg" |
|
100 | 511 |
! |
512 |
||
513 |
model:aModel |
|
155 | 514 |
"set the model; forward to label & toggle" |
100 | 515 |
|
516 |
labelView model:aModel. |
|
517 |
toggleView model:aModel |
|
155 | 518 |
|
519 |
"Modified: 25.4.1996 / 16:34:00 / cg" |
|
63 | 520 |
! ! |
521 |
||
100 | 522 |
!CheckBox methodsFor:'accessing-state'! |
55 | 523 |
|
100 | 524 |
isOn |
155 | 525 |
"return true, if the check is on; false otherwise" |
526 |
||
100 | 527 |
^ toggleView isOn |
155 | 528 |
|
529 |
"Modified: 25.4.1996 / 16:34:15 / cg" |
|
159 | 530 |
! |
531 |
||
532 |
turnOff |
|
533 |
"turn the check off; forwarded to the toggle" |
|
534 |
||
535 |
toggleView turnOff |
|
536 |
||
537 |
"Modified: 25.4.1996 / 16:32:14 / cg" |
|
538 |
! |
|
539 |
||
540 |
turnOn |
|
541 |
"turn the check on; forwarded to the toggle" |
|
542 |
||
543 |
toggleView turnOn |
|
544 |
||
545 |
"Modified: 25.4.1996 / 16:32:21 / cg" |
|
44 | 546 |
! ! |
547 |
||
115
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
548 |
!CheckBox methodsFor:'change & update'! |
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
549 |
|
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
550 |
enableStateChanged |
318 | 551 |
"handle changes on the enableChannel, change labels color." |
155 | 552 |
|
119
913df6ba1ccc
immediately change fg color when enableChannel is set
Claus Gittinger <cg@exept.de>
parents:
115
diff
changeset
|
553 |
|clr| |
913df6ba1ccc
immediately change fg color when enableChannel is set
Claus Gittinger <cg@exept.de>
parents:
115
diff
changeset
|
554 |
|
115
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
555 |
toggleView enabled ifTrue:[ |
318 | 556 |
clr := self labelForegroundColor |
115
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
557 |
] ifFalse:[ |
318 | 558 |
clr := self disabledLabelForegroundColor |
115
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
559 |
]. |
119
913df6ba1ccc
immediately change fg color when enableChannel is set
Claus Gittinger <cg@exept.de>
parents:
115
diff
changeset
|
560 |
labelView foregroundColor:clr |
115
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
561 |
|
318 | 562 |
"Modified: 3.3.1997 / 11:02:33 / cg" |
115
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
563 |
! ! |
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
564 |
|
209
448124e85ccd
keyboard delegation made explicit, for space only
Claus Gittinger <cg@exept.de>
parents:
192
diff
changeset
|
565 |
!CheckBox methodsFor:'event handling'! |
448124e85ccd
keyboard delegation made explicit, for space only
Claus Gittinger <cg@exept.de>
parents:
192
diff
changeset
|
566 |
|
341 | 567 |
invalidate |
484 | 568 |
super invalidate. |
341 | 569 |
toggleView invalidate. |
570 |
labelView invalidate |
|
571 |
||
572 |
"Created: 1.4.1997 / 13:22:09 / cg" |
|
484 | 573 |
"Modified: 6.8.1997 / 18:20:12 / cg" |
341 | 574 |
! |
575 |
||
209
448124e85ccd
keyboard delegation made explicit, for space only
Claus Gittinger <cg@exept.de>
parents:
192
diff
changeset
|
576 |
keyPress:aKey x:x y:y |
448124e85ccd
keyboard delegation made explicit, for space only
Claus Gittinger <cg@exept.de>
parents:
192
diff
changeset
|
577 |
aKey == Character space ifTrue:[ |
268 | 578 |
self hasFocus ifTrue:[ |
579 |
^ toggleView toggle |
|
580 |
] |
|
209
448124e85ccd
keyboard delegation made explicit, for space only
Claus Gittinger <cg@exept.de>
parents:
192
diff
changeset
|
581 |
]. |
448124e85ccd
keyboard delegation made explicit, for space only
Claus Gittinger <cg@exept.de>
parents:
192
diff
changeset
|
582 |
super keyPress:aKey x:x y:y |
448124e85ccd
keyboard delegation made explicit, for space only
Claus Gittinger <cg@exept.de>
parents:
192
diff
changeset
|
583 |
|
448124e85ccd
keyboard delegation made explicit, for space only
Claus Gittinger <cg@exept.de>
parents:
192
diff
changeset
|
584 |
"Created: 10.7.1996 / 11:24:16 / cg" |
448124e85ccd
keyboard delegation made explicit, for space only
Claus Gittinger <cg@exept.de>
parents:
192
diff
changeset
|
585 |
"Modified: 10.7.1996 / 11:54:52 / cg" |
448124e85ccd
keyboard delegation made explicit, for space only
Claus Gittinger <cg@exept.de>
parents:
192
diff
changeset
|
586 |
! ! |
448124e85ccd
keyboard delegation made explicit, for space only
Claus Gittinger <cg@exept.de>
parents:
192
diff
changeset
|
587 |
|
44 | 588 |
!CheckBox methodsFor:'initialization'! |
589 |
||
218
9b155a06f6e6
handle input to my label (allow clicking on it)
Claus Gittinger <cg@exept.de>
parents:
216
diff
changeset
|
590 |
defaultControllerClass |
9b155a06f6e6
handle input to my label (allow clicking on it)
Claus Gittinger <cg@exept.de>
parents:
216
diff
changeset
|
591 |
^ ToggleController |
9b155a06f6e6
handle input to my label (allow clicking on it)
Claus Gittinger <cg@exept.de>
parents:
216
diff
changeset
|
592 |
|
9b155a06f6e6
handle input to my label (allow clicking on it)
Claus Gittinger <cg@exept.de>
parents:
216
diff
changeset
|
593 |
"Created: 18.7.1996 / 11:57:01 / cg" |
9b155a06f6e6
handle input to my label (allow clicking on it)
Claus Gittinger <cg@exept.de>
parents:
216
diff
changeset
|
594 |
! |
9b155a06f6e6
handle input to my label (allow clicking on it)
Claus Gittinger <cg@exept.de>
parents:
216
diff
changeset
|
595 |
|
112
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
596 |
initStyle |
284 | 597 |
"setup viewStyle specifics" |
598 |
||
112
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
599 |
super initStyle. |
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
600 |
|
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
601 |
DefaultLabelForegroundColor notNil ifTrue:[ |
284 | 602 |
labelForegroundColor := DefaultLabelForegroundColor on:device. |
112
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
603 |
]. |
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
604 |
DefaultDisabledLabelForegroundColor notNil ifTrue:[ |
284 | 605 |
disabledLabelForegroundColor := DefaultDisabledLabelForegroundColor on:device. |
112
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
606 |
]. |
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
607 |
|
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
608 |
"Created: 14.12.1995 / 14:50:03 / cg" |
284 | 609 |
"Modified: 22.1.1997 / 11:57:03 / cg" |
112
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
610 |
! |
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
611 |
|
44 | 612 |
initialize |
273
01541272ce8d
resource spec updated; cache device form
Claus Gittinger <cg@exept.de>
parents:
268
diff
changeset
|
613 |
<resource: #style (#name)> |
01541272ce8d
resource spec updated; cache device form
Claus Gittinger <cg@exept.de>
parents:
268
diff
changeset
|
614 |
|
56 | 615 |
super initialize. |
44 | 616 |
|
56 | 617 |
borderWidth := 0. |
44 | 618 |
|
49 | 619 |
hLayout := #fixLeftSpace. |
44 | 620 |
vLayout := #center. |
621 |
||
320
bf5e928d027a
option to place the toggle at the right.
Claus Gittinger <cg@exept.de>
parents:
318
diff
changeset
|
622 |
CheckToggleLeft ~~ false ifTrue:[ |
bf5e928d027a
option to place the toggle at the right.
Claus Gittinger <cg@exept.de>
parents:
318
diff
changeset
|
623 |
"/ toggle first ... |
bf5e928d027a
option to place the toggle at the right.
Claus Gittinger <cg@exept.de>
parents:
318
diff
changeset
|
624 |
toggleView := CheckToggle in:self. |
bf5e928d027a
option to place the toggle at the right.
Claus Gittinger <cg@exept.de>
parents:
318
diff
changeset
|
625 |
]. |
44 | 626 |
|
627 |
labelView := Label in:self. |
|
282 | 628 |
"/ a kludge |
188 | 629 |
styleSheet name ~~ #motif ifTrue:[ |
273
01541272ce8d
resource spec updated; cache device form
Claus Gittinger <cg@exept.de>
parents:
268
diff
changeset
|
630 |
labelView label:'check'; borderWidth:0. |
188 | 631 |
]. |
44 | 632 |
labelView forceResize. |
633 |
labelView adjust:#left. |
|
246 | 634 |
self initialHeight:labelView preferredExtent y + ViewSpacing. |
55 | 635 |
|
320
bf5e928d027a
option to place the toggle at the right.
Claus Gittinger <cg@exept.de>
parents:
318
diff
changeset
|
636 |
CheckToggleLeft == false ifTrue:[ |
bf5e928d027a
option to place the toggle at the right.
Claus Gittinger <cg@exept.de>
parents:
318
diff
changeset
|
637 |
"/ toggle last ... |
bf5e928d027a
option to place the toggle at the right.
Claus Gittinger <cg@exept.de>
parents:
318
diff
changeset
|
638 |
toggleView := CheckToggle in:self. |
bf5e928d027a
option to place the toggle at the right.
Claus Gittinger <cg@exept.de>
parents:
318
diff
changeset
|
639 |
]. |
bf5e928d027a
option to place the toggle at the right.
Claus Gittinger <cg@exept.de>
parents:
318
diff
changeset
|
640 |
|
527 | 641 |
(StyleSheet at:'checkBoxStyle' default:StyleSheet name) == #motif ifTrue:[ |
642 |
toggleView activeLogo:nil. |
|
643 |
toggleView passiveLogo:nil. |
|
644 |
toggleView activeLevel:-2. |
|
645 |
toggleView passiveLevel:2. |
|
646 |
toggleView extent:10@10. |
|
647 |
toggleView sizeFixed:true. |
|
648 |
]. |
|
649 |
||
317
0f8f00dc025a
both components have the same controller
Claus Gittinger <cg@exept.de>
parents:
313
diff
changeset
|
650 |
"/ my controller handles both components |
218
9b155a06f6e6
handle input to my label (allow clicking on it)
Claus Gittinger <cg@exept.de>
parents:
216
diff
changeset
|
651 |
labelView setController:controller. |
317
0f8f00dc025a
both components have the same controller
Claus Gittinger <cg@exept.de>
parents:
313
diff
changeset
|
652 |
toggleView setController:controller. |
218
9b155a06f6e6
handle input to my label (allow clicking on it)
Claus Gittinger <cg@exept.de>
parents:
216
diff
changeset
|
653 |
|
579
ba6e90f651d8
pass down background changes to my components
Claus Gittinger <cg@exept.de>
parents:
566
diff
changeset
|
654 |
"/ the label can be clicked as well |
ba6e90f651d8
pass down background changes to my components
Claus Gittinger <cg@exept.de>
parents:
566
diff
changeset
|
655 |
labelView cursor:Cursor hand. |
ba6e90f651d8
pass down background changes to my components
Claus Gittinger <cg@exept.de>
parents:
566
diff
changeset
|
656 |
self cursor:Cursor hand. |
ba6e90f651d8
pass down background changes to my components
Claus Gittinger <cg@exept.de>
parents:
566
diff
changeset
|
657 |
|
56 | 658 |
" |
659 |
all of my input goes to the toggle |
|
209
448124e85ccd
keyboard delegation made explicit, for space only
Claus Gittinger <cg@exept.de>
parents:
192
diff
changeset
|
660 |
disabled - normally there is already an outer delegate |
56 | 661 |
" |
209
448124e85ccd
keyboard delegation made explicit, for space only
Claus Gittinger <cg@exept.de>
parents:
192
diff
changeset
|
662 |
"/ self delegate:(KeyboardForwarder toView:toggleView). |
44 | 663 |
|
664 |
" |
|
665 |
|b| |
|
666 |
||
667 |
b := CheckBox new. |
|
668 |
b label:'foo'. |
|
669 |
b open |
|
670 |
" |
|
188 | 671 |
|
579
ba6e90f651d8
pass down background changes to my components
Claus Gittinger <cg@exept.de>
parents:
566
diff
changeset
|
672 |
"Modified: / 26.10.1997 / 18:38:15 / cg" |
44 | 673 |
! ! |
100 | 674 |
|
675 |
!CheckBox methodsFor:'private'! |
|
676 |
||
677 |
sendChangeMessageWith:aValue |
|
678 |
"redefined to have mimic changes being sent from the toggle |
|
679 |
instead of myself" |
|
680 |
||
681 |
toggleView sendChangeMessageWith:aValue |
|
682 |
! ! |
|
683 |
||
684 |
!CheckBox methodsFor:'queries'! |
|
685 |
||
686 |
preferredExtent |
|
155 | 687 |
"compute & return the boxes preferredExtent from the components' sizes" |
153 | 688 |
|
100 | 689 |
|prefCheck prefLabel bw2| |
690 |
||
223 | 691 |
"/ If I have an explicit preferredExtent .. |
692 |
||
192
e060e80f8e24
care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents:
188
diff
changeset
|
693 |
preferredExtent notNil ifTrue:[ |
268 | 694 |
^ preferredExtent |
192
e060e80f8e24
care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents:
188
diff
changeset
|
695 |
]. |
e060e80f8e24
care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents:
188
diff
changeset
|
696 |
|
213
9c8f9be0956d
care for a nil LabelView when computing the preferredExtent
Claus Gittinger <cg@exept.de>
parents:
209
diff
changeset
|
697 |
(labelView isNil or:[labelView label isEmpty]) ifTrue:[ |
268 | 698 |
^ super preferredExtent |
188 | 699 |
]. |
153 | 700 |
^ super preferredExtent + (10@0). |
701 |
||
100 | 702 |
"/ prefCheck := toggleView preferredExtent. |
703 |
"/ prefLabel := labelView preferredExtent. |
|
704 |
"/ bw2 := borderWidth * 2. |
|
705 |
"/ ^ (prefCheck x + prefLabel x + (3 * ViewSpacing)) @ ((prefCheck y max:prefLabel y) + bw2 + 2) |
|
153 | 706 |
|
223 | 707 |
"Modified: 19.7.1996 / 20:43:47 / cg" |
100 | 708 |
! ! |
709 |
||
382
ea14fe927a8b
preps for native window support
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
710 |
!CheckBox methodsFor:'queries - internal'! |
ea14fe927a8b
preps for native window support
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
711 |
|
ea14fe927a8b
preps for native window support
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
712 |
nativeWindowType |
ea14fe927a8b
preps for native window support
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
713 |
"return a symbol describing my native window type |
ea14fe927a8b
preps for native window support
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
714 |
(may be used internally by the device as a native window creation hint)" |
ea14fe927a8b
preps for native window support
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
715 |
|
ea14fe927a8b
preps for native window support
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
716 |
^ #CheckBox |
ea14fe927a8b
preps for native window support
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
717 |
|
ea14fe927a8b
preps for native window support
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
718 |
"Created: 2.5.1997 / 14:41:00 / cg" |
ea14fe927a8b
preps for native window support
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
719 |
! ! |
ea14fe927a8b
preps for native window support
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
720 |
|
273
01541272ce8d
resource spec updated; cache device form
Claus Gittinger <cg@exept.de>
parents:
268
diff
changeset
|
721 |
!CheckBox class methodsFor:'documentation'! |
100 | 722 |
|
723 |
version |
|
579
ba6e90f651d8
pass down background changes to my components
Claus Gittinger <cg@exept.de>
parents:
566
diff
changeset
|
724 |
^ '$Header: /cvs/stx/stx/libwidg2/CheckBox.st,v 1.49 1997-10-28 19:27:21 cg Exp $' |
100 | 725 |
! ! |