author | Claus Gittinger <cg@exept.de> |
Fri, 15 Jun 2018 10:54:35 +0200 | |
changeset 5816 | 7876c07931a7 |
parent 5642 | c7b964aa14df |
child 5883 | c441a78650db |
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 |
" |
|
1769
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
12 |
"{ Package: 'stx:libwidg2' }" |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
13 |
|
4913 | 14 |
"{ NameSpace: Smalltalk }" |
15 |
||
44 | 16 |
HorizontalPanelView subclass:#CheckBox |
112
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
17 |
instanceVariableNames:'toggleView labelView labelForegroundColor |
2060
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
18 |
disabledLabelForegroundColor disabledLabelEtchedForegroundColor |
4120
fcbdc6b3998d
class definition (backgroundChannel pushed up to PanelView)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4018
diff
changeset
|
19 |
foregroundChannel resizeForLabel' |
320
bf5e928d027a
option to place the toggle at the right.
Claus Gittinger <cg@exept.de>
parents:
318
diff
changeset
|
20 |
classVariableNames:'DefaultLabelForegroundColor DefaultDisabledLabelForegroundColor |
2060
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
21 |
DefaultDisabledLabelEtchedForegroundColor CheckToggleLeft' |
112
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
22 |
poolDictionaries:'' |
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
23 |
category:'Views-Interactors' |
44 | 24 |
! |
25 |
||
273
01541272ce8d
resource spec updated; cache device form
Claus Gittinger <cg@exept.de>
parents:
268
diff
changeset
|
26 |
!CheckBox class methodsFor:'documentation'! |
44 | 27 |
|
100 | 28 |
copyright |
29 |
" |
|
30 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
31 |
All Rights Reserved |
|
32 |
||
33 |
This software is furnished under a license and may be used |
|
34 |
only in accordance with the terms of that license and with the |
|
35 |
inclusion of the above copyright notice. This software may not |
|
36 |
be provided or otherwise made available to, or used by, any |
|
37 |
other person. No title to or ownership of the software is |
|
38 |
hereby transferred. |
|
39 |
" |
|
40 |
||
44 | 41 |
! |
42 |
||
43 |
documentation |
|
44 |
" |
|
313 | 45 |
CheckBoxes consist of a checkToggle and a label; |
46 |
if used without a model, its action block is evaluated |
|
47 |
when toggled (see Toggle for more information). |
|
48 |
Otherwise, a valueHolder on a boolean is the preferred model |
|
49 |
(other models are possible - this may required different aspect |
|
50 |
and/or changeMessage settings; make certain to set those before |
|
51 |
a model is assigned, since the toggle fetches the value when |
|
52 |
a new model is assigned.) |
|
155 | 53 |
|
54 |
[author:] |
|
313 | 55 |
Claus Gittinger |
155 | 56 |
|
57 |
[see also:] |
|
313 | 58 |
Button CheckToggle |
59 |
DialogBox |
|
60 |
ValueHolder |
|
44 | 61 |
" |
62 |
! |
|
63 |
||
64 |
examples |
|
65 |
" |
|
188 | 66 |
no-op checkBox without a label: |
313 | 67 |
[exBegin] |
188 | 68 |
|b| |
69 |
||
70 |
b := CheckBox new. |
|
71 |
b open |
|
313 | 72 |
[exEnd] |
188 | 73 |
|
74 |
||
44 | 75 |
no-op checkBox: |
313 | 76 |
[exBegin] |
44 | 77 |
|b| |
78 |
||
79 |
b := CheckBox new. |
|
80 |
b label:'foo'. |
|
81 |
b open |
|
313 | 82 |
[exEnd] |
83 |
||
84 |
||
85 |
combined instance creation & label setup: |
|
86 |
[exBegin] |
|
87 |
|b| |
|
88 |
||
89 |
b := CheckBox label:'foo'. |
|
90 |
b open |
|
91 |
[exEnd] |
|
44 | 92 |
|
93 |
||
56 | 94 |
no-op checkBox, disabled: |
313 | 95 |
[exBegin] |
56 | 96 |
|b| |
97 |
||
313 | 98 |
b := CheckBox label:'foo'. |
56 | 99 |
b disable. |
100 |
b open |
|
313 | 101 |
[exEnd] |
56 | 102 |
|
103 |
||
4659
4c833dabb9f8
Access device and drawableId wia message send.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4658
diff
changeset
|
104 |
changing colors |
56 | 105 |
(a demo only: it is no good style to fight the styleSheet): |
313 | 106 |
[exBegin] |
44 | 107 |
|panel b| |
108 |
||
109 |
panel := VerticalPanelView new. |
|
110 |
||
313 | 111 |
b := CheckBox label:'foo' in:panel. |
44 | 112 |
|
313 | 113 |
b := CheckBox label:'bar' in:panel. |
44 | 114 |
b labelView foregroundColor:Color red. |
115 |
||
313 | 116 |
b := CheckBox label:'baz' in:panel. |
44 | 117 |
b toggleView activeForegroundColor:Color blue. |
118 |
||
119 |
panel open |
|
313 | 120 |
[exEnd] |
44 | 121 |
|
122 |
||
123 |
using action-blocks: |
|
313 | 124 |
[exBegin] |
49 | 125 |
|b| |
44 | 126 |
|
313 | 127 |
b := CheckBox label:'check'. |
184 | 128 |
b action:[:value | Transcript show:'set to: '; showCR:value]. |
44 | 129 |
b open. |
313 | 130 |
[exEnd] |
44 | 131 |
|
132 |
||
49 | 133 |
with a model (default ST-80 behavior, sending #value: to the model): |
134 |
(see changing value in the inspector) |
|
313 | 135 |
[exBegin] |
136 |
|b model| |
|
137 |
||
138 |
model := ValueHolder newBoolean. |
|
139 |
||
140 |
b := CheckBox label:'check'. |
|
141 |
b model:model. |
|
142 |
b open. |
|
143 |
model inspect. |
|
144 |
[exEnd] |
|
145 |
||
146 |
||
147 |
combined instance creation & model setup: |
|
148 |
[exBegin] |
|
49 | 149 |
|b model| |
150 |
||
151 |
model := ValueHolder newBoolean. |
|
152 |
||
313 | 153 |
b := CheckBox label:'check' model:model . |
49 | 154 |
b open. |
155 |
model inspect. |
|
313 | 156 |
[exEnd] |
49 | 157 |
|
56 | 158 |
|
313 | 159 |
with a model and different aspect & changeSelector |
160 |
setting the aspect to nil suppresses fetching the value from the model. |
|
49 | 161 |
(using a plug here, for demonstration only): |
313 | 162 |
[exBegin] |
44 | 163 |
|b model| |
164 |
||
165 |
model := Plug new. |
|
184 | 166 |
model respondTo:#changeCheck: with:[:arg | Transcript showCR:'change to ' , arg printString]. |
313 | 167 |
model respondTo:#value with:[false]. |
44 | 168 |
|
313 | 169 |
b := CheckBox label:'check'. |
170 |
b aspectMessage:nil; model:model; changeMessage:#changeCheck:. |
|
44 | 171 |
b open. |
313 | 172 |
[exEnd] |
44 | 173 |
|
56 | 174 |
|
313 | 175 |
with an enableChannel |
176 |
[exBegin] |
|
115
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
177 |
|b enaToggle enaHolder| |
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
178 |
|
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
179 |
enaHolder := true asValue. |
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
180 |
|
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
181 |
enaToggle := Toggle label:'enable'. |
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
182 |
enaToggle model:enaHolder. |
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
183 |
enaToggle open. |
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
184 |
|
313 | 185 |
b := CheckBox label:'check'. |
184 | 186 |
b action:[:value | Transcript show:'set to: '; showCR:value]. |
115
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
187 |
b enableChannel:enaHolder. |
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
188 |
b open. |
313 | 189 |
[exEnd] |
115
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
190 |
|
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
191 |
|
56 | 192 |
with models, one checkBox disabling the others: |
313 | 193 |
[exBegin] |
56 | 194 |
|dialog translator enableChannel val1 val2 val3 eBox box1 box2 box3| |
195 |
||
196 |
translator := Plug new. |
|
4659
4c833dabb9f8
Access device and drawableId wia message send.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4658
diff
changeset
|
197 |
translator respondTo:#enableDisable |
313 | 198 |
with:[ |
199 |
enableChannel value |
|
200 |
ifTrue:[ |
|
201 |
box1 enable. |
|
202 |
box2 enable. |
|
203 |
box3 enable. |
|
204 |
] |
|
205 |
ifFalse:[ |
|
206 |
box1 disable. |
|
207 |
box2 disable. |
|
208 |
box3 disable. |
|
209 |
] |
|
210 |
]. |
|
56 | 211 |
|
212 |
enableChannel := true asValue. |
|
213 |
enableChannel onChangeSend:#enableDisable to:translator. |
|
214 |
val1 := true asValue. |
|
215 |
val2 := false asValue. |
|
216 |
val3 := true asValue. |
|
217 |
||
218 |
dialog := Dialog new. |
|
219 |
dialog addCheckBox:'enable' on:enableChannel. |
|
220 |
dialog addVerticalSpace. |
|
221 |
dialog leftIndent:30. |
|
222 |
box1 := dialog addCheckBox:'value1' on:val1. |
|
223 |
dialog addVerticalSpace. |
|
224 |
box2 := dialog addCheckBox:'value2' on:val2. |
|
225 |
dialog addVerticalSpace. |
|
226 |
box3 := dialog addCheckBox:'value3' on:val3. |
|
227 |
dialog addVerticalSpace. |
|
228 |
dialog addOkButton. |
|
229 |
||
230 |
dialog open. |
|
313 | 231 |
[exEnd] |
56 | 232 |
|
233 |
||
49 | 234 |
multiple checkBoxes on a single model (using different aspects) |
313 | 235 |
[exBegin] |
79 | 236 |
|top panel b model value1 value2| |
49 | 237 |
|
238 |
value1 := true. |
|
239 |
value2 := false. |
|
240 |
model := Plug new. |
|
241 |
model respondTo:#value1 with:[value1]. |
|
242 |
model respondTo:#value1: with:[:val | value1 := val]. |
|
243 |
model respondTo:#value2 with:[value2]. |
|
244 |
model respondTo:#value2: with:[:val | value2 := val]. |
|
245 |
||
246 |
top := DialogBox new. |
|
247 |
top extent:200@300. |
|
248 |
||
249 |
panel := VerticalPanelView new. |
|
250 |
||
251 |
b := CheckBox in:panel. |
|
252 |
b label:'check1'. |
|
313 | 253 |
b aspect:#value1; model:model; changeMessage:#value1:. |
49 | 254 |
|
255 |
b := CheckBox in:panel. |
|
256 |
b label:'check2'. |
|
313 | 257 |
b aspect:#value2; model:model; changeMessage:#value2:. |
49 | 258 |
|
259 |
top addComponent:panel. |
|
260 |
top addAbortButton; addOkButton. |
|
261 |
top openModal. |
|
262 |
||
79 | 263 |
top accepted ifTrue:[ |
313 | 264 |
Transcript show:'value1: '; showCR:model value1. |
265 |
Transcript show:'value2: '; showCR:model value2. |
|
49 | 266 |
] |
313 | 267 |
[exEnd] |
44 | 268 |
" |
269 |
! ! |
|
270 |
||
273
01541272ce8d
resource spec updated; cache device form
Claus Gittinger <cg@exept.de>
parents:
268
diff
changeset
|
271 |
!CheckBox class methodsFor:'instance creation'! |
62 | 272 |
|
76 | 273 |
label:aStringOrImage model:aModel |
274 |
"create & return a new checkBox, on aModel (typically a ValueHolder), |
|
275 |
with aStringOrImage as label." |
|
276 |
||
313 | 277 |
^ (self model:aModel) label:aStringOrImage |
76 | 278 |
|
279 |
"Created: 17.9.1995 / 14:20:58 / claus" |
|
313 | 280 |
"Modified: 28.2.1997 / 19:23:59 / cg" |
56 | 281 |
! ! |
282 |
||
273
01541272ce8d
resource spec updated; cache device form
Claus Gittinger <cg@exept.de>
parents:
268
diff
changeset
|
283 |
!CheckBox class methodsFor:'defaults'! |
112
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
284 |
|
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
285 |
updateStyleCache |
134
049f033265f9
added style resource directive
Claus Gittinger <cg@exept.de>
parents:
119
diff
changeset
|
286 |
"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
|
287 |
|
4659
4c833dabb9f8
Access device and drawableId wia message send.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4658
diff
changeset
|
288 |
<resource: #style (#'checkBox.labelForegroundColor' |
566 | 289 |
#'checkBox.disabledLabelForegroundColor' |
2777 | 290 |
#'checkBox.disabledLabelEtchedForegroundColor' |
566 | 291 |
#'checkBox.toggleLeft')> |
134
049f033265f9
added style resource directive
Claus Gittinger <cg@exept.de>
parents:
119
diff
changeset
|
292 |
|
4659
4c833dabb9f8
Access device and drawableId wia message send.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4658
diff
changeset
|
293 |
DefaultFont := StyleSheet fontAt:'label.font'. |
830 | 294 |
DefaultLabelForegroundColor := StyleSheet colorAt:'checkBox.labelForegroundColor'. |
566 | 295 |
DefaultDisabledLabelForegroundColor := StyleSheet colorAt:'checkBox.disabledLabelForegroundColor'. |
2060
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
296 |
DefaultDisabledLabelForegroundColor isNil ifTrue:[ |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
297 |
DefaultDisabledLabelForegroundColor := StyleSheet colorAt:'button.disabledForegroundColor'. |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
298 |
]. |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
299 |
DefaultDisabledLabelEtchedForegroundColor := StyleSheet colorAt:'checkBox.disabledLabelEtchedForegroundColor'. |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
300 |
DefaultDisabledLabelEtchedForegroundColor isNil ifTrue:[ |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
301 |
DefaultDisabledLabelEtchedForegroundColor := StyleSheet colorAt:'button.disabledEtchedForegroundColor'. |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
302 |
]. |
830 | 303 |
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
|
304 |
|
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
305 |
" |
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
306 |
self updateStyleCache |
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
307 |
" |
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
308 |
|
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
309 |
"Created: 14.12.1995 / 14:47:22 / cg" |
566 | 310 |
"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
|
311 |
! ! |
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
312 |
|
100 | 313 |
!CheckBox methodsFor:'accessing-behavior'! |
314 |
||
315 |
action:aBlock |
|
155 | 316 |
"set the actionBlock; forwarded to the toggle" |
100 | 317 |
|
318 |
toggleView action:aBlock |
|
155 | 319 |
|
320 |
"Modified: 25.4.1996 / 16:31:19 / cg" |
|
100 | 321 |
! |
322 |
||
299 | 323 |
enabled |
324 |
"return true, if the checkBox is enabled. |
|
325 |
forwarded to toggle" |
|
326 |
||
327 |
^ toggleView enabled. |
|
328 |
! |
|
329 |
||
1297 | 330 |
enabled:aBoolean |
331 |
"enable/diable the checkBox; forwarded to toggle & change labels color" |
|
332 |
||
1505 | 333 |
|clr cursor| |
1297 | 334 |
|
335 |
toggleView enabled:aBoolean. |
|
2060
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
336 |
self enableStateChanged. |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
337 |
"/ aBoolean ifTrue:[ |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
338 |
"/ labelView etchedForegroundColor:nil. |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
339 |
"/ clr := labelForegroundColor. |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
340 |
"/ clr isNil ifTrue:[ clr := labelView foregroundColor ]. |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
341 |
"/ cursor := Cursor hand. |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
342 |
"/ ] ifFalse:[ |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
343 |
"/ disabledLabelEtchedForegroundColor notNil ifTrue:[ labelView etchedForegroundColor:disabledLabelEtchedForegroundColor ]. |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
344 |
"/ clr := disabledLabelForegroundColor. |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
345 |
"/ clr isNil ifTrue:[ clr := toggleView disabledForegroundColor ]. |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
346 |
"/ cursor := Cursor normal. |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
347 |
"/ ]. |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
348 |
"/ labelView cursor:cursor. |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
349 |
"/ self cursor:cursor. |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
350 |
"/ toggleView cursor:cursor. |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
351 |
"/ labelView foregroundColor:clr. |
1297 | 352 |
|
353 |
"Modified: / 25.4.1996 / 16:31:40 / cg" |
|
354 |
"Created: / 30.3.1999 / 14:54:48 / stefan" |
|
355 |
! |
|
356 |
||
100 | 357 |
pressAction:aBlock |
155 | 358 |
"set the pressAction; forwarded to the toggle" |
359 |
||
100 | 360 |
toggleView pressAction:aBlock. |
361 |
||
362 |
"Created: 22.9.1995 / 15:54:04 / claus" |
|
155 | 363 |
"Modified: 25.4.1996 / 16:31:52 / cg" |
100 | 364 |
! |
365 |
||
366 |
releaseAction:aBlock |
|
155 | 367 |
"set the releaseAction; forwarded to the toggle" |
368 |
||
100 | 369 |
toggleView releaseAction:aBlock. |
370 |
||
371 |
"Created: 22.9.1995 / 15:54:11 / claus" |
|
155 | 372 |
"Modified: 25.4.1996 / 16:32:00 / cg" |
78 | 373 |
! ! |
374 |
||
115
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
375 |
!CheckBox methodsFor:'accessing-channels'! |
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
376 |
|
817 | 377 |
backgroundChannel |
378 |
||
379 |
^labelView backgroundChannel |
|
380 |
! |
|
381 |
||
382 |
backgroundChannel:aChannel |
|
383 |
||
384 |
labelView backgroundChannel: (backgroundChannel := aChannel). |
|
1675
355c448a2570
no need for an extra block to send #enableStateChanged
Claus Gittinger <cg@exept.de>
parents:
1652
diff
changeset
|
385 |
aChannel onChangeSend:#enableStateChanged to:self. |
817 | 386 |
! |
387 |
||
164 | 388 |
enableChannel |
389 |
"return a valueHolder for enable/disable" |
|
390 |
||
391 |
^ toggleView enableChannel |
|
392 |
||
393 |
"Created: 30.4.1996 / 15:11:13 / cg" |
|
394 |
! |
|
395 |
||
115
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
396 |
enableChannel:aChannel |
155 | 397 |
"set the enableChannel" |
398 |
||
119
913df6ba1ccc
immediately change fg color when enableChannel is set
Claus Gittinger <cg@exept.de>
parents:
115
diff
changeset
|
399 |
|wasEnabled| |
913df6ba1ccc
immediately change fg color when enableChannel is set
Claus Gittinger <cg@exept.de>
parents:
115
diff
changeset
|
400 |
|
913df6ba1ccc
immediately change fg color when enableChannel is set
Claus Gittinger <cg@exept.de>
parents:
115
diff
changeset
|
401 |
wasEnabled := toggleView enabled. |
115
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
402 |
toggleView enableChannel:aChannel. |
1675
355c448a2570
no need for an extra block to send #enableStateChanged
Claus Gittinger <cg@exept.de>
parents:
1652
diff
changeset
|
403 |
aChannel onChangeSend:#enableStateChanged to:self. |
817 | 404 |
|
119
913df6ba1ccc
immediately change fg color when enableChannel is set
Claus Gittinger <cg@exept.de>
parents:
115
diff
changeset
|
405 |
aChannel value ~~ wasEnabled ifTrue:[ |
817 | 406 |
self enableStateChanged |
119
913df6ba1ccc
immediately change fg color when enableChannel is set
Claus Gittinger <cg@exept.de>
parents:
115
diff
changeset
|
407 |
] |
817 | 408 |
! |
115
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
409 |
|
817 | 410 |
foregroundChannel |
411 |
||
412 |
^labelView foregroundChannel |
|
413 |
! |
|
414 |
||
415 |
foregroundChannel:aChannel |
|
416 |
||
417 |
labelView foregroundChannel: (foregroundChannel := aChannel). |
|
1675
355c448a2570
no need for an extra block to send #enableStateChanged
Claus Gittinger <cg@exept.de>
parents:
1652
diff
changeset
|
418 |
aChannel onChangeSend:#enableStateChanged to:self. |
4659
4c833dabb9f8
Access device and drawableId wia message send.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4658
diff
changeset
|
419 |
|
817 | 420 |
! |
421 |
||
422 |
labelChannel |
|
423 |
||
424 |
^labelView labelChannel |
|
425 |
! |
|
426 |
||
427 |
labelChannel:aChannel |
|
1769
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
428 |
labelView labelChannel notNil ifTrue:[ |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
429 |
labelView labelChannel removeDependent:self |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
430 |
]. |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
431 |
labelView labelChannel: aChannel. |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
432 |
aChannel notNil ifTrue:[ |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
433 |
aChannel addDependent:self |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
434 |
]. |
817 | 435 |
|
436 |
! ! |
|
437 |
||
5642 | 438 |
!CheckBox methodsFor:'accessing-color & font'! |
817 | 439 |
|
851 | 440 |
backgroundColor |
441 |
"get backgroundColor of the label view" |
|
442 |
||
443 |
^labelView backgroundColor |
|
444 |
! |
|
445 |
||
3528 | 446 |
backgroundColor:aColor |
447 |
"set backgroundColor only for myself and the label view" |
|
817 | 448 |
|
3528 | 449 |
super backgroundColor:aColor. |
450 |
labelView backgroundColor:aColor. |
|
817 | 451 |
! |
452 |
||
2060
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
453 |
disabledLabelEtchedForegroundColor |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
454 |
"get the disabledLabelForegroundColor; forwarded to the toggle" |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
455 |
|
4659
4c833dabb9f8
Access device and drawableId wia message send.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4658
diff
changeset
|
456 |
^ toggleView disabledEtchedForegroundColor |
2060
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
457 |
! |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
458 |
|
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
459 |
disabledLabelForegroundColor |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
460 |
"get the disabledLabelForegroundColor; forwarded to the toggle" |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
461 |
|
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
462 |
disabledLabelForegroundColor isNil ifTrue:[ ^ toggleView disabledForegroundColor ]. |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
463 |
^ disabledLabelForegroundColor |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
464 |
|
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
465 |
"Created: 16.12.1995 / 19:47:45 / cg" |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
466 |
"Modified: 22.5.1996 / 13:16:55 / cg" |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
467 |
! |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
468 |
|
851 | 469 |
foregroundColor |
470 |
"get foregroundColor of the label view" |
|
471 |
||
472 |
^labelView foregroundColor |
|
473 |
! |
|
474 |
||
817 | 475 |
foregroundColor: foregroundColor |
851 | 476 |
"set foregroundColor only for the label view" |
817 | 477 |
|
478 |
labelView foregroundColor: (labelForegroundColor := foregroundColor). |
|
479 |
foregroundChannel notNil ifTrue: [foregroundChannel value: foregroundColor] |
|
903
77a51b230754
viewBackground setting must change mine too
Claus Gittinger <cg@exept.de>
parents:
851
diff
changeset
|
480 |
! |
77a51b230754
viewBackground setting must change mine too
Claus Gittinger <cg@exept.de>
parents:
851
diff
changeset
|
481 |
|
2060
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
482 |
labelForegroundColor |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
483 |
"get the labels foregroundColor" |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
484 |
|
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
485 |
labelForegroundColor isNil ifTrue:[ ^ labelView foregroundColor ]. |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
486 |
^ labelForegroundColor |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
487 |
|
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
488 |
"Created: 16.12.1995 / 19:47:20 / cg" |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
489 |
"Modified: 25.4.1996 / 16:33:26 / cg" |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
490 |
! |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
491 |
|
903
77a51b230754
viewBackground setting must change mine too
Claus Gittinger <cg@exept.de>
parents:
851
diff
changeset
|
492 |
viewBackground: backgroundColor |
77a51b230754
viewBackground setting must change mine too
Claus Gittinger <cg@exept.de>
parents:
851
diff
changeset
|
493 |
"set backgroundColor" |
77a51b230754
viewBackground setting must change mine too
Claus Gittinger <cg@exept.de>
parents:
851
diff
changeset
|
494 |
|
77a51b230754
viewBackground setting must change mine too
Claus Gittinger <cg@exept.de>
parents:
851
diff
changeset
|
495 |
labelView backgroundColor: backgroundColor. |
3287 | 496 |
super viewBackground: backgroundColor. |
817 | 497 |
! ! |
498 |
||
499 |
!CheckBox methodsFor:'accessing-components'! |
|
500 |
||
501 |
labelView |
|
502 |
"return the labelView; allows manipulation of the |
|
503 |
labels attributes (colors etc.)" |
|
504 |
||
505 |
^ labelView |
|
506 |
! |
|
507 |
||
508 |
toggleView |
|
509 |
"return the toggleView; allows manipulation of the |
|
510 |
toggles attributes (colors etc.)" |
|
511 |
||
512 |
^ toggleView |
|
115
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
513 |
! ! |
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
514 |
|
56 | 515 |
!CheckBox methodsFor:'accessing-look'! |
44 | 516 |
|
100 | 517 |
activeLogo:anImageOrString |
155 | 518 |
"set the activeLogo; forwarded to the toggle" |
519 |
||
100 | 520 |
toggleView activeLogo:anImageOrString |
56 | 521 |
|
100 | 522 |
"Created: 22.9.1995 / 15:44:08 / claus" |
155 | 523 |
"Modified: 25.4.1996 / 16:32:50 / cg" |
100 | 524 |
! |
525 |
||
526 |
font |
|
185 | 527 |
"return the font. Forward from label" |
100 | 528 |
|
529 |
^ labelView font |
|
185 | 530 |
|
531 |
"Modified: 22.5.1996 / 13:17:07 / cg" |
|
49 | 532 |
! |
44 | 533 |
|
56 | 534 |
font:aFont |
185 | 535 |
"set the font. Forward to the label & resize myself. |
536 |
CAVEAT: with the addition of Text objects, |
|
268 | 537 |
this method is going to be obsoleted by a textStyle |
538 |
method, which allows specific control over |
|
539 |
normalFont/boldFont/italicFont parameters." |
|
55 | 540 |
|
56 | 541 |
labelView font:aFont. |
542 |
labelView forceResize. |
|
79 | 543 |
self layoutChanged. |
544 |
self resize. |
|
185 | 545 |
|
546 |
"Modified: 22.5.1996 / 13:17:28 / cg" |
|
49 | 547 |
! |
548 |
||
56 | 549 |
label |
4658 | 550 |
"return the label's logo" |
56 | 551 |
|
552 |
^ labelView label |
|
155 | 553 |
|
554 |
"Modified: 25.4.1996 / 16:33:08 / cg" |
|
79 | 555 |
! |
556 |
||
1879 | 557 |
label:aStringOrImageOrForm |
155 | 558 |
"set the logo; forward to label & resize" |
79 | 559 |
|
1879 | 560 |
|xlatedLabel| |
561 |
||
562 |
xlatedLabel := self defineShortcutAndTranslateLabelStringFrom:aStringOrImageOrForm. |
|
4658 | 563 |
self isNativeWidget ifTrue:[ |
4659
4c833dabb9f8
Access device and drawableId wia message send.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4658
diff
changeset
|
564 |
gc drawableId notNil ifTrue:[ |
4996 | 565 |
device changeLabel:xlatedLabel in:gc drawableId |
4658 | 566 |
] |
567 |
]. |
|
1879 | 568 |
labelView label:xlatedLabel. |
1769
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
569 |
self resizeForChangedLabel. |
79 | 570 |
! |
571 |
||
572 |
passiveLogo:anImageOrString |
|
155 | 573 |
"set the passiveLogo; forwarded to the toggle" |
574 |
||
79 | 575 |
toggleView passiveLogo:anImageOrString |
576 |
||
577 |
"Created: 22.9.1995 / 15:44:14 / claus" |
|
155 | 578 |
"Modified: 25.4.1996 / 16:33:41 / cg" |
1769
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
579 |
! |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
580 |
|
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
581 |
resizeForLabel |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
582 |
^ resizeForLabel ? false |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
583 |
! |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
584 |
|
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
585 |
resizeForLabel:aBoolean |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
586 |
resizeForLabel := aBoolean |
56 | 587 |
! ! |
588 |
||
100 | 589 |
!CheckBox methodsFor:'accessing-mvc'! |
63 | 590 |
|
100 | 591 |
aspectMessage:aspectSymbol |
155 | 592 |
"set the aspectMessage; forward to label & toggle" |
100 | 593 |
|
313 | 594 |
labelView aspectMessage:aspectSymbol. "/ in case the label updates its logo from the model |
100 | 595 |
toggleView aspectMessage:aspectSymbol |
155 | 596 |
|
313 | 597 |
"Modified: 28.2.1997 / 19:50:53 / cg" |
100 | 598 |
! |
63 | 599 |
|
100 | 600 |
changeMessage:aChangeSelector |
155 | 601 |
"set the changeMessage; forward to toggle" |
100 | 602 |
|
603 |
toggleView changeMessage:aChangeSelector |
|
155 | 604 |
|
605 |
"Modified: 25.4.1996 / 16:33:55 / cg" |
|
100 | 606 |
! |
607 |
||
608 |
model:aModel |
|
155 | 609 |
"set the model; forward to label & toggle" |
100 | 610 |
|
611 |
labelView model:aModel. |
|
612 |
toggleView model:aModel |
|
155 | 613 |
|
614 |
"Modified: 25.4.1996 / 16:34:00 / cg" |
|
63 | 615 |
! ! |
616 |
||
100 | 617 |
!CheckBox methodsFor:'accessing-state'! |
55 | 618 |
|
100 | 619 |
isOn |
155 | 620 |
"return true, if the check is on; false otherwise" |
621 |
||
100 | 622 |
^ toggleView isOn |
155 | 623 |
|
624 |
"Modified: 25.4.1996 / 16:34:15 / cg" |
|
159 | 625 |
! |
626 |
||
627 |
turnOff |
|
628 |
"turn the check off; forwarded to the toggle" |
|
629 |
||
630 |
toggleView turnOff |
|
631 |
||
632 |
"Modified: 25.4.1996 / 16:32:14 / cg" |
|
633 |
! |
|
634 |
||
635 |
turnOn |
|
636 |
"turn the check on; forwarded to the toggle" |
|
637 |
||
638 |
toggleView turnOn |
|
639 |
||
640 |
"Modified: 25.4.1996 / 16:32:21 / cg" |
|
44 | 641 |
! ! |
642 |
||
115
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
643 |
!CheckBox methodsFor:'change & update'! |
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
644 |
|
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
645 |
enableStateChanged |
1675
355c448a2570
no need for an extra block to send #enableStateChanged
Claus Gittinger <cg@exept.de>
parents:
1652
diff
changeset
|
646 |
"handle changes on the enableChannel or fg/bg color, change labels color." |
155 | 647 |
|
119
913df6ba1ccc
immediately change fg color when enableChannel is set
Claus Gittinger <cg@exept.de>
parents:
115
diff
changeset
|
648 |
|clr| |
913df6ba1ccc
immediately change fg color when enableChannel is set
Claus Gittinger <cg@exept.de>
parents:
115
diff
changeset
|
649 |
|
4659
4c833dabb9f8
Access device and drawableId wia message send.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4658
diff
changeset
|
650 |
self enabled ifTrue:[ |
2060
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
651 |
labelView etchedForegroundColor:nil. |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
652 |
|
4659
4c833dabb9f8
Access device and drawableId wia message send.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4658
diff
changeset
|
653 |
(foregroundChannel notNil and: [foregroundChannel value notNil]) |
820 | 654 |
ifTrue: [labelView foregroundChannel: foregroundChannel] |
1652
311b68620aff
foregroundColor of label (if not black; i.e. decWindowsStyle)
Claus Gittinger <cg@exept.de>
parents:
1505
diff
changeset
|
655 |
ifFalse: [labelView foregroundColor:(labelForegroundColor ? (Label defaultForegroundColor))]. |
817 | 656 |
labelForegroundColor := labelView foregroundColor |
4659
4c833dabb9f8
Access device and drawableId wia message send.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4658
diff
changeset
|
657 |
] ifFalse:[ |
2060
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
658 |
disabledLabelEtchedForegroundColor notNil ifTrue:[ labelView etchedForegroundColor:disabledLabelEtchedForegroundColor ]. |
817 | 659 |
labelView foregroundChannel: nil |
660 |
]. |
|
661 |
||
115
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
662 |
toggleView enabled ifTrue:[ |
817 | 663 |
clr := self labelForegroundColor. |
1505 | 664 |
cursor := Cursor hand. |
115
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
665 |
] ifFalse:[ |
1505 | 666 |
clr := self disabledLabelForegroundColor. |
667 |
cursor := Cursor normal. |
|
4659
4c833dabb9f8
Access device and drawableId wia message send.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4658
diff
changeset
|
668 |
]. |
817 | 669 |
labelView foregroundColor:clr. |
1505 | 670 |
labelView cursor:cursor. |
671 |
self cursor:cursor. |
|
672 |
toggleView cursor:cursor. |
|
1769
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
673 |
! |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
674 |
|
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
675 |
update:something with:aParameter from:changedObject |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
676 |
changedObject == labelView ifTrue:[ |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
677 |
something == #sizeOfView ifTrue:[ |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
678 |
self resizeForChangedLabel. |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
679 |
^ self |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
680 |
] |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
681 |
]. |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
682 |
"/ changedObject == labelView labelChannel ifTrue:[ |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
683 |
"/ self resizeForChangedLabel. |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
684 |
"/ ^ self |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
685 |
"/ ]. |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
686 |
super update:something with:aParameter from:changedObject |
115
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
687 |
! ! |
0147e9d06caa
added support for enableChannel
Claus Gittinger <cg@exept.de>
parents:
114
diff
changeset
|
688 |
|
209
448124e85ccd
keyboard delegation made explicit, for space only
Claus Gittinger <cg@exept.de>
parents:
192
diff
changeset
|
689 |
!CheckBox methodsFor:'event handling'! |
448124e85ccd
keyboard delegation made explicit, for space only
Claus Gittinger <cg@exept.de>
parents:
192
diff
changeset
|
690 |
|
341 | 691 |
invalidate |
484 | 692 |
super invalidate. |
341 | 693 |
toggleView invalidate. |
694 |
labelView invalidate |
|
695 |
||
696 |
"Created: 1.4.1997 / 13:22:09 / cg" |
|
484 | 697 |
"Modified: 6.8.1997 / 18:20:12 / cg" |
341 | 698 |
! |
699 |
||
209
448124e85ccd
keyboard delegation made explicit, for space only
Claus Gittinger <cg@exept.de>
parents:
192
diff
changeset
|
700 |
keyPress:aKey x:x y:y |
2868 | 701 |
"forward some key-events to my toggle-button" |
702 |
||
209
448124e85ccd
keyboard delegation made explicit, for space only
Claus Gittinger <cg@exept.de>
parents:
192
diff
changeset
|
703 |
aKey == Character space ifTrue:[ |
2868 | 704 |
self hasFocus ifTrue:[ |
705 |
^ toggleView toggle |
|
706 |
] |
|
209
448124e85ccd
keyboard delegation made explicit, for space only
Claus Gittinger <cg@exept.de>
parents:
192
diff
changeset
|
707 |
]. |
448124e85ccd
keyboard delegation made explicit, for space only
Claus Gittinger <cg@exept.de>
parents:
192
diff
changeset
|
708 |
super keyPress:aKey x:x y:y |
448124e85ccd
keyboard delegation made explicit, for space only
Claus Gittinger <cg@exept.de>
parents:
192
diff
changeset
|
709 |
|
448124e85ccd
keyboard delegation made explicit, for space only
Claus Gittinger <cg@exept.de>
parents:
192
diff
changeset
|
710 |
"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
|
711 |
"Modified: 10.7.1996 / 11:54:52 / cg" |
1879 | 712 |
! |
713 |
||
714 |
performShortcutAction |
|
2060
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
715 |
toggleView toggle |
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
716 |
! ! |
209
448124e85ccd
keyboard delegation made explicit, for space only
Claus Gittinger <cg@exept.de>
parents:
192
diff
changeset
|
717 |
|
1265 | 718 |
!CheckBox methodsFor:'focus handling'! |
1138
14dc9f6791d2
use a checkLabel for win95 style
Claus Gittinger <cg@exept.de>
parents:
903
diff
changeset
|
719 |
|
14dc9f6791d2
use a checkLabel for win95 style
Claus Gittinger <cg@exept.de>
parents:
903
diff
changeset
|
720 |
showFocus:explicit |
4659
4c833dabb9f8
Access device and drawableId wia message send.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4658
diff
changeset
|
721 |
"the button got the keyboard focus |
1265 | 722 |
(either explicit, via tabbing; or implicit, by pointer movement) |
723 |
- change any display attributes as req'd." |
|
724 |
||
1696
f1bae6d68ffe
eliminated styleSheet name = win95 queries
Claus Gittinger <cg@exept.de>
parents:
1675
diff
changeset
|
725 |
(styleSheet at:#'focusHighlightStyle') == #win95 ifTrue:[ |
1138
14dc9f6791d2
use a checkLabel for win95 style
Claus Gittinger <cg@exept.de>
parents:
903
diff
changeset
|
726 |
labelView hasFocus:true. |
14dc9f6791d2
use a checkLabel for win95 style
Claus Gittinger <cg@exept.de>
parents:
903
diff
changeset
|
727 |
labelView invalidate. |
14dc9f6791d2
use a checkLabel for win95 style
Claus Gittinger <cg@exept.de>
parents:
903
diff
changeset
|
728 |
] ifFalse:[ |
4684 | 729 |
super showFocus:explicit |
1138
14dc9f6791d2
use a checkLabel for win95 style
Claus Gittinger <cg@exept.de>
parents:
903
diff
changeset
|
730 |
] |
14dc9f6791d2
use a checkLabel for win95 style
Claus Gittinger <cg@exept.de>
parents:
903
diff
changeset
|
731 |
|
14dc9f6791d2
use a checkLabel for win95 style
Claus Gittinger <cg@exept.de>
parents:
903
diff
changeset
|
732 |
"Created: / 17.9.1998 / 14:11:49 / cg" |
14dc9f6791d2
use a checkLabel for win95 style
Claus Gittinger <cg@exept.de>
parents:
903
diff
changeset
|
733 |
"Modified: / 17.9.1998 / 14:19:33 / cg" |
14dc9f6791d2
use a checkLabel for win95 style
Claus Gittinger <cg@exept.de>
parents:
903
diff
changeset
|
734 |
! |
14dc9f6791d2
use a checkLabel for win95 style
Claus Gittinger <cg@exept.de>
parents:
903
diff
changeset
|
735 |
|
14dc9f6791d2
use a checkLabel for win95 style
Claus Gittinger <cg@exept.de>
parents:
903
diff
changeset
|
736 |
showNoFocus:explicit |
4659
4c833dabb9f8
Access device and drawableId wia message send.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4658
diff
changeset
|
737 |
"the button lost the keyboard focus |
1265 | 738 |
(either explicit, via tabbing; or implicit, by pointer movement) |
739 |
- change any display attributes as req'd." |
|
740 |
||
2066 | 741 |
(styleSheet at:#'focusHighlightStyle') == #win95 ifTrue:[ |
1138
14dc9f6791d2
use a checkLabel for win95 style
Claus Gittinger <cg@exept.de>
parents:
903
diff
changeset
|
742 |
labelView hasFocus:false. |
14dc9f6791d2
use a checkLabel for win95 style
Claus Gittinger <cg@exept.de>
parents:
903
diff
changeset
|
743 |
labelView invalidate. |
14dc9f6791d2
use a checkLabel for win95 style
Claus Gittinger <cg@exept.de>
parents:
903
diff
changeset
|
744 |
] ifFalse:[ |
14dc9f6791d2
use a checkLabel for win95 style
Claus Gittinger <cg@exept.de>
parents:
903
diff
changeset
|
745 |
^ super showNoFocus:explicit |
14dc9f6791d2
use a checkLabel for win95 style
Claus Gittinger <cg@exept.de>
parents:
903
diff
changeset
|
746 |
] |
14dc9f6791d2
use a checkLabel for win95 style
Claus Gittinger <cg@exept.de>
parents:
903
diff
changeset
|
747 |
|
14dc9f6791d2
use a checkLabel for win95 style
Claus Gittinger <cg@exept.de>
parents:
903
diff
changeset
|
748 |
"Created: / 17.9.1998 / 14:11:49 / cg" |
14dc9f6791d2
use a checkLabel for win95 style
Claus Gittinger <cg@exept.de>
parents:
903
diff
changeset
|
749 |
"Modified: / 17.9.1998 / 14:19:22 / cg" |
14dc9f6791d2
use a checkLabel for win95 style
Claus Gittinger <cg@exept.de>
parents:
903
diff
changeset
|
750 |
! ! |
14dc9f6791d2
use a checkLabel for win95 style
Claus Gittinger <cg@exept.de>
parents:
903
diff
changeset
|
751 |
|
2500 | 752 |
!CheckBox methodsFor:'initialization & release'! |
44 | 753 |
|
3287 | 754 |
defaultCheckToggleClass |
755 |
^ CheckToggle |
|
756 |
! |
|
757 |
||
218
9b155a06f6e6
handle input to my label (allow clicking on it)
Claus Gittinger <cg@exept.de>
parents:
216
diff
changeset
|
758 |
defaultControllerClass |
9b155a06f6e6
handle input to my label (allow clicking on it)
Claus Gittinger <cg@exept.de>
parents:
216
diff
changeset
|
759 |
^ ToggleController |
9b155a06f6e6
handle input to my label (allow clicking on it)
Claus Gittinger <cg@exept.de>
parents:
216
diff
changeset
|
760 |
|
9b155a06f6e6
handle input to my label (allow clicking on it)
Claus Gittinger <cg@exept.de>
parents:
216
diff
changeset
|
761 |
"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
|
762 |
! |
9b155a06f6e6
handle input to my label (allow clicking on it)
Claus Gittinger <cg@exept.de>
parents:
216
diff
changeset
|
763 |
|
112
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
764 |
initStyle |
284 | 765 |
"setup viewStyle specifics" |
766 |
||
4502 | 767 |
|graphicsDevice| |
768 |
||
112
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
769 |
super initStyle. |
4996 | 770 |
graphicsDevice := device. |
112
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
771 |
|
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
772 |
DefaultLabelForegroundColor notNil ifTrue:[ |
4502 | 773 |
labelForegroundColor := DefaultLabelForegroundColor onDevice:graphicsDevice. |
112
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
774 |
]. |
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
775 |
DefaultDisabledLabelForegroundColor notNil ifTrue:[ |
4502 | 776 |
disabledLabelForegroundColor := DefaultDisabledLabelForegroundColor onDevice:graphicsDevice. |
112
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
777 |
]. |
2060
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
778 |
DefaultDisabledLabelEtchedForegroundColor notNil ifTrue:[ |
4502 | 779 |
disabledLabelEtchedForegroundColor := DefaultDisabledLabelEtchedForegroundColor onDevice:graphicsDevice. |
2060
ec6351a7cb37
support etched color (win32 style)
Claus Gittinger <cg@exept.de>
parents:
1879
diff
changeset
|
780 |
]. |
112
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
781 |
|
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
782 |
"Created: 14.12.1995 / 14:50:03 / cg" |
284 | 783 |
"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
|
784 |
! |
bb2cb6c553d2
allow labels colors to be set from styleSheet
Claus Gittinger <cg@exept.de>
parents:
100
diff
changeset
|
785 |
|
44 | 786 |
initialize |
273
01541272ce8d
resource spec updated; cache device form
Claus Gittinger <cg@exept.de>
parents:
268
diff
changeset
|
787 |
<resource: #style (#name)> |
5455 | 788 |
<modifier: #super> "must be called if redefined" |
273
01541272ce8d
resource spec updated; cache device form
Claus Gittinger <cg@exept.de>
parents:
268
diff
changeset
|
789 |
|
3287 | 790 |
|checkToggleClass| |
791 |
||
56 | 792 |
super initialize. |
44 | 793 |
|
3822 | 794 |
self borderWidth:0. |
49 | 795 |
hLayout := #fixLeftSpace. |
44 | 796 |
vLayout := #center. |
797 |
||
4658 | 798 |
checkToggleClass := self defaultCheckToggleClass. |
799 |
||
800 |
self isNativeWidget ifTrue:[ |
|
801 |
toggleView := checkToggleClass new. "/ but not in self - never realized |
|
4659
4c833dabb9f8
Access device and drawableId wia message send.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4658
diff
changeset
|
802 |
labelView := CheckLabel new. "/ but not in self - never realized |
4658 | 803 |
] ifFalse:[ |
804 |
CheckToggleLeft ~~ false ifTrue:[ |
|
805 |
"/ toggle first ... |
|
806 |
toggleView := checkToggleClass in:self. |
|
807 |
]. |
|
808 |
||
809 |
labelView := CheckLabel in:self. |
|
810 |
"/ a kludge |
|
811 |
styleSheet name ~~ #motif ifTrue:[ |
|
812 |
labelView label:'check'; borderWidth:0. |
|
813 |
]. |
|
814 |
labelView forceResize. |
|
815 |
labelView adjust:#left. |
|
816 |
self initialHeight:labelView preferredHeight + ViewSpacing. |
|
817 |
||
818 |
CheckToggleLeft == false ifTrue:[ |
|
819 |
"/ toggle last ... |
|
820 |
toggleView := checkToggleClass in:self. |
|
821 |
]. |
|
822 |
||
823 |
(styleSheet at:'checkBoxStyle' default:styleSheet name) == #motif ifTrue:[ |
|
824 |
toggleView activeLogo:nil. |
|
825 |
toggleView passiveLogo:nil. |
|
826 |
toggleView activeLevel:-2. |
|
827 |
toggleView passiveLevel:2. |
|
828 |
toggleView extent:10@10. |
|
829 |
toggleView sizeFixed:true. |
|
830 |
]. |
|
831 |
||
832 |
"/ my controller handles both components |
|
833 |
labelView setController:controller. |
|
834 |
toggleView setController:controller. |
|
835 |
"/ the label can be clicked as well |
|
836 |
labelView cursor:Cursor hand. |
|
320
bf5e928d027a
option to place the toggle at the right.
Claus Gittinger <cg@exept.de>
parents:
318
diff
changeset
|
837 |
]. |
44 | 838 |
|
579
ba6e90f651d8
pass down background changes to my components
Claus Gittinger <cg@exept.de>
parents:
566
diff
changeset
|
839 |
self cursor:Cursor hand. |
ba6e90f651d8
pass down background changes to my components
Claus Gittinger <cg@exept.de>
parents:
566
diff
changeset
|
840 |
|
56 | 841 |
" |
842 |
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
|
843 |
disabled - normally there is already an outer delegate |
56 | 844 |
" |
209
448124e85ccd
keyboard delegation made explicit, for space only
Claus Gittinger <cg@exept.de>
parents:
192
diff
changeset
|
845 |
"/ self delegate:(KeyboardForwarder toView:toggleView). |
44 | 846 |
|
847 |
" |
|
848 |
|b| |
|
849 |
||
850 |
b := CheckBox new. |
|
851 |
b label:'foo'. |
|
852 |
b open |
|
853 |
" |
|
188 | 854 |
|
5455 | 855 |
"Modified: / 08-02-2017 / 00:35:24 / cg" |
2157 | 856 |
! |
857 |
||
858 |
release |
|
859 |
"release dependencies" |
|
860 |
||
861 |
|channel| |
|
862 |
||
863 |
toggleView notNil ifTrue:[ |
|
864 |
(channel := toggleView enableChannel) notNil ifTrue:[ |
|
865 |
channel retractInterestsFor:self |
|
866 |
] |
|
867 |
]. |
|
868 |
super release |
|
44 | 869 |
! ! |
100 | 870 |
|
2742 | 871 |
!CheckBox methodsFor:'native widget support'! |
872 |
||
873 |
beNativeWidget |
|
874 |
super beNativeWidget. |
|
875 |
"/ self makeElementsInvisible. |
|
876 |
! |
|
877 |
||
878 |
makeElementsInvisible |
|
879 |
"when using native widget, my toggle is not visible. |
|
880 |
(it is not destroyed, to keep a place for its attributes, |
|
881 |
and to allow future dynamic switching and snapshot restore on |
|
882 |
a non-native system)" |
|
883 |
||
884 |
toggleView notNil ifTrue:[ |
|
885 |
toggleView beInvisible. |
|
886 |
]. |
|
4658 | 887 |
! |
888 |
||
889 |
nativeWindowType |
|
4659
4c833dabb9f8
Access device and drawableId wia message send.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4658
diff
changeset
|
890 |
"return a symbol describing my native window type |
4913 | 891 |
(may be used internally by the device as a native window creation hint, |
892 |
if the device supports native windows)" |
|
4658 | 893 |
|
894 |
^ #CheckBox |
|
895 |
||
896 |
"Created: 2.5.1997 / 14:41:00 / cg" |
|
2742 | 897 |
! ! |
898 |
||
100 | 899 |
!CheckBox methodsFor:'private'! |
900 |
||
1769
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
901 |
resizeForChangedLabel |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
902 |
labelView forceResize. |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
903 |
resizeForLabel == true ifTrue:[ |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
904 |
self extent:(self preferredExtent) |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
905 |
]. |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
906 |
self layoutChanged. |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
907 |
self resize. |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
908 |
! |
68d65f17df56
added resizeForLabel attribute
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
909 |
|
100 | 910 |
sendChangeMessageWith:aValue |
911 |
"redefined to have mimic changes being sent from the toggle |
|
912 |
instead of myself" |
|
913 |
||
3952
c50a70a511c3
changed: #sendChangeMessageWith:
Claus Gittinger <cg@exept.de>
parents:
3822
diff
changeset
|
914 |
toggleView sendChangeMessageWith:aValue. |
c50a70a511c3
changed: #sendChangeMessageWith:
Claus Gittinger <cg@exept.de>
parents:
3822
diff
changeset
|
915 |
toggleView invalidate. |
c50a70a511c3
changed: #sendChangeMessageWith:
Claus Gittinger <cg@exept.de>
parents:
3822
diff
changeset
|
916 |
|
c50a70a511c3
changed: #sendChangeMessageWith:
Claus Gittinger <cg@exept.de>
parents:
3822
diff
changeset
|
917 |
"Modified: / 22-10-2010 / 15:53:45 / cg" |
100 | 918 |
! ! |
919 |
||
920 |
!CheckBox methodsFor:'queries'! |
|
921 |
||
922 |
preferredExtent |
|
155 | 923 |
"compute & return the boxes preferredExtent from the components' sizes" |
153 | 924 |
|
3569
0e01d084e624
changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents:
3528
diff
changeset
|
925 |
"/ If I have an explicit preferredExtent.. |
0e01d084e624
changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents:
3528
diff
changeset
|
926 |
explicitExtent notNil ifTrue:[ |
0e01d084e624
changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents:
3528
diff
changeset
|
927 |
^ explicitExtent |
0e01d084e624
changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents:
3528
diff
changeset
|
928 |
]. |
100 | 929 |
|
3569
0e01d084e624
changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents:
3528
diff
changeset
|
930 |
"/ If I have a cached preferredExtent value.. |
192
e060e80f8e24
care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents:
188
diff
changeset
|
931 |
preferredExtent notNil ifTrue:[ |
3317 | 932 |
^ preferredExtent |
192
e060e80f8e24
care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents:
188
diff
changeset
|
933 |
]. |
e060e80f8e24
care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents:
188
diff
changeset
|
934 |
|
3317 | 935 |
(labelView isNil or:[labelView label isEmptyOrNil]) ifTrue:[ |
936 |
^ super preferredExtent |
|
188 | 937 |
]. |
153 | 938 |
^ super preferredExtent + (10@0). |
939 |
||
100 | 940 |
"/ prefCheck := toggleView preferredExtent. |
941 |
"/ prefLabel := labelView preferredExtent. |
|
942 |
"/ bw2 := borderWidth * 2. |
|
943 |
"/ ^ (prefCheck x + prefLabel x + (3 * ViewSpacing)) @ ((prefCheck y max:prefLabel y) + bw2 + 2) |
|
153 | 944 |
|
3317 | 945 |
"Modified: / 12-01-2008 / 23:27:45 / cg" |
100 | 946 |
! ! |
947 |
||
273
01541272ce8d
resource spec updated; cache device form
Claus Gittinger <cg@exept.de>
parents:
268
diff
changeset
|
948 |
!CheckBox class methodsFor:'documentation'! |
100 | 949 |
|
950 |
version |
|
4913 | 951 |
^ '$Header$' |
3818 | 952 |
! |
953 |
||
954 |
version_CVS |
|
4913 | 955 |
^ '$Header$' |
100 | 956 |
! ! |
4432 | 957 |