author | Claus Gittinger <cg@exept.de> |
Sun, 27 Jan 2008 17:08:51 +0100 | |
changeset 3322 | 1a51da8de402 |
parent 3304 | f589791dd24c |
child 3323 | b4aef3ba5d24 |
permissions | -rw-r--r-- |
422 | 1 |
" |
2 |
COPYRIGHT (c) 1995 by eXept Software AG |
|
3 |
All Rights Reserved |
|
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 |
" |
|
2935
e3fa9d1a7a64
Moved ColorMenu and FontMenu from libtool2
Stefan Vogel <sv@exept.de>
parents:
2704
diff
changeset
|
12 |
"{ Package: 'stx:libwidg2' }" |
1803 | 13 |
|
412 | 14 |
MenuPanel subclass:#ColorMenu |
2183
5c69691590eb
code cleanup; now inherit model instVar.
Claus Gittinger <cg@exept.de>
parents:
2167
diff
changeset
|
15 |
instanceVariableNames:'enabledChannel labelsAreColored' |
3322 | 16 |
classVariableNames:'ColorMenuSpec RecentlyUsedColors' |
412 | 17 |
poolDictionaries:'' |
18 |
category:'Interface-UIPainter' |
|
19 |
! |
|
20 |
||
21 |
!ColorMenu class methodsFor:'documentation'! |
|
22 |
||
422 | 23 |
copyright |
24 |
" |
|
25 |
COPYRIGHT (c) 1995 by eXept Software AG |
|
26 |
All Rights Reserved |
|
27 |
||
28 |
This software is furnished under a license and may be used |
|
29 |
only in accordance with the terms of that license and with the |
|
30 |
inclusion of the above copyright notice. This software may not |
|
31 |
be provided or otherwise made available to, or used by, any |
|
32 |
other person. No title to or ownership of the software is |
|
33 |
hereby transferred. |
|
34 |
" |
|
35 |
||
36 |
||
37 |
! |
|
38 |
||
412 | 39 |
documentation |
40 |
" |
|
2183
5c69691590eb
code cleanup; now inherit model instVar.
Claus Gittinger <cg@exept.de>
parents:
2167
diff
changeset
|
41 |
A simple ColorMenu used by the UIPainter |
412 | 42 |
|
43 |
[see also:] |
|
44 |
UIPainter |
|
45 |
ColorMenuSpec |
|
422 | 46 |
|
47 |
[author:] |
|
48 |
Claus Atzkern |
|
412 | 49 |
" |
50 |
! |
|
51 |
||
52 |
examples |
|
53 |
" |
|
2183
5c69691590eb
code cleanup; now inherit model instVar.
Claus Gittinger <cg@exept.de>
parents:
2167
diff
changeset
|
54 |
very simple example |
412 | 55 |
[exBegin] |
56 |
|tool top channel| |
|
57 |
||
58 |
top := StandardSystemView new. |
|
59 |
top extent:250@30. |
|
2183
5c69691590eb
code cleanup; now inherit model instVar.
Claus Gittinger <cg@exept.de>
parents:
2167
diff
changeset
|
60 |
|
412 | 61 |
channel := (Color red) asValue. |
62 |
tool := self origin:0.0@0.0 corner:1.0@1.0 in:top. |
|
63 |
tool model:channel. |
|
2183
5c69691590eb
code cleanup; now inherit model instVar.
Claus Gittinger <cg@exept.de>
parents:
2167
diff
changeset
|
64 |
|
412 | 65 |
top open. |
66 |
[exEnd] |
|
67 |
" |
|
68 |
! ! |
|
69 |
||
3322 | 70 |
!ColorMenu class methodsFor:'instance creation'! |
71 |
||
72 |
colorMenu:labelAreColored value:aValue |
|
73 |
"returns a color menu |
|
74 |
" |
|
75 |
|menu| |
|
76 |
||
77 |
menu := Menu new. |
|
78 |
||
79 |
self colorMenu itemsDo:[:el| |
|
80 |
menu addItem:(self resolveMenuItem:el value:aValue labelAreColored:labelAreColored). |
|
81 |
]. |
|
82 |
^ menu |
|
83 |
||
84 |
" |
|
85 |
(ColorMenu colorMenu:true value:nil) startUp |
|
86 |
(ColorMenu colorMenu:false value:#aSelector:) startUp |
|
87 |
" |
|
88 |
! ! |
|
89 |
||
90 |
!ColorMenu class methodsFor:'adding & removing user defined items'! |
|
3280 | 91 |
|
3292 | 92 |
addUserDefinedColors:aColors labels:labelsOrNil title:aTitle |
3322 | 93 |
"add user colors to ALL colormenus" |
94 |
||
95 |
"cg: I think this is a bad hack, as it is too global." |
|
96 |
||
3292 | 97 |
|size submenu item label fgColor bgColor labels defLabel| |
98 |
||
99 |
submenu := self userDefinedSubmenu. |
|
100 |
size := aColors size. |
|
101 |
||
102 |
size == 0 ifTrue:[ "/ separator |
|
103 |
submenu addItem:(MenuItem label:'-'). |
|
104 |
^ self |
|
105 |
]. |
|
106 |
||
107 |
labels := labelsOrNil ? #(). |
|
108 |
bgColor := aColors first. |
|
109 |
defLabel := ' '. |
|
110 |
||
111 |
bgColor brightness < 0.5 ifTrue:[ fgColor := Color white ] |
|
112 |
ifFalse:[ fgColor := Color black ]. |
|
113 |
||
114 |
aTitle isEmptyOrNil ifTrue:[ label := labels at:1 ifAbsent:defLabel ] |
|
115 |
ifFalse:[ label := aTitle ]. |
|
3280 | 116 |
|
3294 | 117 |
label := Text string:(' ', label, ' ') foregroundColor:fgColor backgroundColor:bgColor. |
3292 | 118 |
item := MenuItem labeled:label. |
119 |
submenu addItem:item. |
|
120 |
||
121 |
size == 1 ifTrue:[ |
|
122 |
item argument:bgColor. |
|
123 |
] ifFalse:[ |
|
124 |
item submenu:(submenu := Menu new). |
|
3280 | 125 |
|
3292 | 126 |
aColors keysAndValuesDo:[:idx :aBgColor| |
127 |
aBgColor brightness < 0.5 ifTrue:[ fgColor := Color white ] |
|
128 |
ifFalse:[ fgColor := Color black ]. |
|
129 |
||
130 |
label := labels at:idx ifAbsent:defLabel. |
|
3294 | 131 |
label := Text string:(' ', label, ' ') foregroundColor:fgColor backgroundColor:aBgColor. |
3292 | 132 |
item := MenuItem labeled:label. |
3293 | 133 |
item argument:aBgColor. |
3292 | 134 |
|
135 |
submenu addItem:item. |
|
136 |
]. |
|
137 |
]. |
|
3280 | 138 |
|
139 |
" |
|
3292 | 140 |
ColorMenu removeAllUserDefinedColors. |
3280 | 141 |
|
3292 | 142 |
#( |
143 |
#( Black 16r000000 ) |
|
144 |
#( Red 16rff0000 ) |
|
145 |
nil |
|
146 |
#( Rust 16rff6600 16rff8533 16rffa366 16rffc299 16rffe0cc ) |
|
147 |
#( Tangerine 16rff9933 16rffad5c 16rffc285 16rffd6ad 16rffebd6 ) |
|
148 |
#( Sunflower 16rffcc00 16rfed633 16rfee066 16rffeb99 16rfff5cc ) |
|
149 |
#( Mango 16rffcc99 16rffd6ad 16rffe0c2 16rffebd6 16rfff5eb ) |
|
150 |
#( Buttercup 16rffff66 16rffff85 16rffffa3 16rffffc2 16rffffe0 ) |
|
151 |
#( Lemon 16rffffcc 16rffffd6 16rffffe0 16rffffeb 16rfffff5 ) |
|
3280 | 152 |
|
3292 | 153 |
) do:[:aDef| |colors title labels percentage| |
154 |
aDef isEmptyOrNil ifTrue:[ |
|
155 |
colors := labels := title := nil. |
|
156 |
] ifFalse:[ |
|
157 |
title := aDef first. |
|
158 |
colors := OrderedCollection new. |
|
159 |
labels := OrderedCollection new. |
|
160 |
percentage := 100. |
|
161 |
||
162 |
aDef from:2 do:[:rgb| |
|
163 |
colors add:(Color rgbValue:rgb). |
|
164 |
labels add:('%1 %2 %%' bindWith:title with:percentage). |
|
165 |
percentage := percentage - 20. |
|
166 |
]. |
|
167 |
]. |
|
168 |
ColorMenu addUserDefinedColors:colors labels:labels title:title. |
|
3280 | 169 |
]. |
3292 | 170 |
" |
3280 | 171 |
! |
172 |
||
3283 | 173 |
removeAllUserDefinedColors |
3322 | 174 |
"flush user defined colors" |
175 |
||
3292 | 176 |
ColorMenuSpec := nil. |
3322 | 177 |
! |
178 |
||
179 |
userDefinedSubmenu |
|
180 |
"answer the menu entry under which the userdefined color entries are placed" |
|
181 |
||
182 |
|menu submenu item icon| |
|
183 |
||
184 |
menu := self colorMenu. |
|
185 |
item := menu detectItem:[:el| (el nameKey == #userDefined and:[el submenu notNil]) ] |
|
186 |
ifNone:nil. |
|
187 |
||
188 |
item isNil ifTrue:[ |
|
189 |
icon := XPToolbarIconLibrary changesBrowser24x24Icon. |
|
190 |
item := MenuItem labeled:icon. |
|
191 |
item nameKey:#userDefined. |
|
192 |
item activeHelpKey:#userDefinedColors. |
|
193 |
menu addItem:item beforeIndex:1. |
|
194 |
]. |
|
195 |
||
196 |
(submenu := item submenu) isNil ifTrue:[ |
|
197 |
submenu := Menu new. |
|
198 |
item submenu:submenu. |
|
199 |
]. |
|
200 |
^ submenu |
|
3280 | 201 |
! ! |
202 |
||
412 | 203 |
!ColorMenu class methodsFor:'menu spec'! |
204 |
||
3322 | 205 |
colorMenuSpec |
206 |
"color definitions used to build a color menu |
|
3292 | 207 |
" |
3322 | 208 |
" |
209 |
ColorMenuSpec := nil. |
|
210 |
" |
|
211 |
^ #( |
|
212 |
#( gray |
|
213 |
gray: |
|
214 |
#( white |
|
215 |
veryLightGray |
|
216 |
lightGray |
|
217 |
gray |
|
218 |
darkGray |
|
219 |
veryDarkGray |
|
220 |
black |
|
221 |
) |
|
222 |
) |
|
223 |
"/ nil "/ separator |
|
224 |
#( red |
|
225 |
red: |
|
226 |
#( veryLight lightened 100 87 67 50 33) |
|
227 |
) |
|
228 |
#( green |
|
229 |
green: |
|
230 |
#( veryLight lightened 100 87 67 50 33) |
|
231 |
) |
|
232 |
#( blue |
|
233 |
blue: |
|
234 |
#( veryLight lightened 100 87 67 50 33) |
|
235 |
) |
|
236 |
"/ nil "/ separator |
|
237 |
#( cyan |
|
238 |
cyan: |
|
239 |
#( veryLight lightened 100 87 67 50 33) |
|
240 |
) |
|
241 |
#( magenta |
|
242 |
magenta: |
|
243 |
#( veryLight lightened 100 87 67 50 33) |
|
244 |
) |
|
245 |
#( yellow |
|
246 |
yellow: |
|
247 |
#( veryLight lightened 100 87 67 50 33) |
|
248 |
) |
|
3292 | 249 |
|
3322 | 250 |
) |
3292 | 251 |
! ! |
252 |
||
253 |
!ColorMenu class methodsFor:'private'! |
|
254 |
||
3280 | 255 |
colorMenu |
256 |
|menuItem subItem baseColor color label getColSel submenu colorId| |
|
3292 | 257 |
|
3280 | 258 |
ColorMenuSpec notNil ifTrue:[ ^ ColorMenuSpec ]. |
259 |
||
260 |
ColorMenuSpec := Menu new. |
|
261 |
||
262 |
self colorMenuSpec do:[:aSlice| |
|
263 |
ColorMenuSpec addItem:(menuItem := MenuItem new). |
|
264 |
||
265 |
aSlice notNil ifTrue:[ |
|
266 |
colorId := aSlice at:1. |
|
267 |
getColSel := aSlice at:2. |
|
268 |
baseColor := Color perform:colorId. |
|
269 |
||
270 |
menuItem label:(Text string:' ' emphasis:(#backgroundColor->baseColor)). |
|
271 |
menuItem submenu:(submenu := Menu new). |
|
3292 | 272 |
menuItem isButton:true. |
3280 | 273 |
|
274 |
aSlice last do:[:el| |
|
275 |
color := label := nil. |
|
276 |
||
277 |
el isSymbol ifTrue:[ |
|
3322 | 278 |
el == #veryLight ifTrue:[ |
279 |
color := baseColor lightened lightened |
|
280 |
] ifFalse:[ el == #lightened ifTrue:[ |
|
281 |
color := baseColor perform:el |
|
282 |
] ifFalse:[ |
|
283 |
color := Color perform:el |
|
284 |
]]. |
|
3280 | 285 |
colorId == #gray ifTrue:[ label := el ]. |
286 |
] ifFalse:[ |
|
287 |
el isNumber ifTrue:[ |
|
288 |
color := Color perform:getColSel with:el. |
|
289 |
]. |
|
290 |
]. |
|
291 |
color notNil ifTrue:[ |
|
292 |
label isNil ifTrue:[ |
|
293 |
label := getColSel, ' ', el printString. |
|
294 |
]. |
|
3322 | 295 |
subItem := MenuItem label:' ',label,' '. |
3280 | 296 |
subItem argument:color. |
297 |
submenu addItem:subItem. |
|
298 |
]. |
|
299 |
] |
|
300 |
]. |
|
301 |
]. |
|
302 |
^ ColorMenuSpec |
|
303 |
! |
|
304 |
||
3292 | 305 |
resolveMenuItem:aMenuItem value:aValue labelAreColored:labelAreColored |
306 |
|menuItem label color fgColor submenu| |
|
307 |
||
308 |
label := aMenuItem rawLabel ? ''. |
|
309 |
menuItem := MenuItem label:label. |
|
310 |
menuItem isButton:(aMenuItem isButton). |
|
311 |
||
312 |
aMenuItem hasSubmenu ifFalse:[ |
|
313 |
color := aMenuItem argument. |
|
314 |
menuItem argument:color. |
|
315 |
||
316 |
(color isColor and:[label isText not]) ifTrue:[ |
|
317 |
labelAreColored ifTrue:[ |
|
318 |
label := Text string:label color:color. |
|
319 |
] ifFalse:[ |
|
320 |
color brightness < 0.5 ifTrue:[ fgColor := Color white ] |
|
321 |
ifFalse:[ fgColor := Color black ]. |
|
322 |
||
323 |
label := Text string:label foregroundColor:fgColor backgroundColor:color. |
|
324 |
]. |
|
325 |
menuItem label:label. |
|
326 |
menuItem value:aValue. |
|
327 |
]. |
|
328 |
^ menuItem |
|
329 |
]. |
|
330 |
submenu := Menu new. |
|
331 |
aMenuItem submenu itemsDo:[:el| |
|
332 |
submenu addItem:(self resolveMenuItem:el value:aValue labelAreColored:labelAreColored). |
|
333 |
]. |
|
334 |
menuItem submenu:submenu. |
|
335 |
^ menuItem |
|
592 | 336 |
! ! |
337 |
||
1808 | 338 |
!ColorMenu methodsFor:'accepting'! |
412 | 339 |
|
340 |
accept:anItem |
|
3322 | 341 |
"accept the current selected item" |
664 | 342 |
|
412 | 343 |
|item holder color| |
344 |
||
3322 | 345 |
((item := super accept:anItem) notNil |
346 |
and: [((item nameKey ? '') startsWith:'pseudo') not]) |
|
347 |
ifTrue:[ |
|
348 |
(holder := self colorHolder) == item ifTrue:[ |
|
412 | 349 |
enabledChannel value ifTrue:[color := self color] |
3322 | 350 |
] ifFalse:[ |
666 | 351 |
color := item argument. |
692 | 352 |
holder label:(Text string:' ' emphasis:(#backgroundColor->color)). |
412 | 353 |
]. |
3322 | 354 |
self choseColor:color. |
355 |
] |
|
356 |
! |
|
357 |
||
358 |
choseColor:aColor |
|
359 |
"accept the current selected item" |
|
360 |
||
361 |
model notNil ifTrue:[ |
|
362 |
model value:aColor. |
|
363 |
RecentlyUsedColors isNil ifTrue:[ |
|
364 |
RecentlyUsedColors := OrderedCollection new. |
|
365 |
]. |
|
366 |
RecentlyUsedColors remove:aColor ifAbsent:[]. |
|
367 |
RecentlyUsedColors addFirst:aColor. |
|
368 |
RecentlyUsedColors size > 20 ifTrue:[ |
|
369 |
RecentlyUsedColors removeLast |
|
370 |
]. |
|
412 | 371 |
] |
372 |
! ! |
|
373 |
||
374 |
!ColorMenu methodsFor:'accessing'! |
|
375 |
||
376 |
color |
|
664 | 377 |
"get current color" |
378 |
||
379 |
|firstEmphasis| |
|
380 |
(firstEmphasis := (self colorHolder label emphasis at:1)) isAssociation ifTrue: [^firstEmphasis value]. |
|
381 |
^(firstEmphasis at: 1) value |
|
412 | 382 |
! |
383 |
||
384 |
color:aColor |
|
664 | 385 |
"set current color" |
386 |
||
412 | 387 |
|holder label| |
388 |
||
2184 | 389 |
aColor isColor ifFalse:[ |
412 | 390 |
enabledChannel value:false |
2184 | 391 |
] ifTrue:[ |
392 |
self |
|
393 |
disabledRedrawDo: |
|
394 |
[ |
|
395 |
holder := self colorHolder. |
|
396 |
label := Text string: ' ' emphasis:(#backgroundColor->aColor). |
|
397 |
enabledChannel value:true. |
|
398 |
holder label:label. |
|
3322 | 399 |
self choseColor:aColor |
2184 | 400 |
] |
412 | 401 |
] |
664 | 402 |
! |
403 |
||
404 |
labelsAreColored: aBoolean |
|
405 |
"sets whether labels or their backgrounds will be colored" |
|
406 |
||
3280 | 407 |
|bool| |
408 |
||
409 |
bool := aBoolean ? false. |
|
664 | 410 |
|
3280 | 411 |
labelsAreColored ~~ bool ifTrue:[ |
412 |
labelsAreColored := bool. |
|
413 |
self setupMenu |
|
414 |
]. |
|
412 | 415 |
! ! |
416 |
||
1818 | 417 |
!ColorMenu methodsFor:'accessing-channels'! |
412 | 418 |
|
419 |
model:aValueHolder |
|
664 | 420 |
"set my color channel" |
421 |
||
2184 | 422 |
super model:aValueHolder. |
2183
5c69691590eb
code cleanup; now inherit model instVar.
Claus Gittinger <cg@exept.de>
parents:
2167
diff
changeset
|
423 |
model notNil ifTrue:[ |
2186 | 424 |
self updateFromModel |
664 | 425 |
] |
412 | 426 |
! ! |
427 |
||
428 |
!ColorMenu methodsFor:'change & update'! |
|
429 |
||
2186 | 430 |
updateFromModel |
2184 | 431 |
self color:(model value) |
412 | 432 |
! ! |
433 |
||
434 |
!ColorMenu methodsFor:'initialization'! |
|
435 |
||
3322 | 436 |
colorHistorySubmenu |
437 |
|menu| |
|
438 |
||
439 |
RecentlyUsedColors isEmptyOrNil ifTrue:[^ nil]. |
|
440 |
||
441 |
menu := Menu new. |
|
442 |
||
443 |
RecentlyUsedColors do:[:clr | |
|
444 |
|label fgColor item| |
|
445 |
||
446 |
clr brightness < 0.5 ifTrue:[ fgColor := Color white ] |
|
447 |
ifFalse:[ fgColor := Color black ]. |
|
448 |
||
449 |
label := clr htmlPrintString. |
|
450 |
label := Text string:(' ', label, ' ') foregroundColor:fgColor backgroundColor:clr. |
|
451 |
item := MenuItem labeled:label. |
|
452 |
item argument:clr. |
|
453 |
||
454 |
menu addItem:item. |
|
455 |
]. |
|
456 |
||
457 |
^ menu. |
|
458 |
! |
|
459 |
||
412 | 460 |
destroy |
664 | 461 |
"release color channel dependency" |
462 |
||
412 | 463 |
self model:nil. |
664 | 464 |
super destroy |
412 | 465 |
|
466 |
! |
|
467 |
||
468 |
initialize |
|
469 |
super initialize. |
|
3322 | 470 |
labelsAreColored := true. "false." |
2254 | 471 |
verticalLayout := false. |
472 |
||
412 | 473 |
self fitFirstPanel:false. |
895 | 474 |
enabledChannel := ValueHolder with:false. |
412 | 475 |
self setupMenu. |
895 | 476 |
|
477 |
"Modified: / 21.5.1998 / 03:07:26 / cg" |
|
412 | 478 |
! |
479 |
||
480 |
setupMenu |
|
666 | 481 |
|menu item| |
412 | 482 |
|
666 | 483 |
menu := self class colorMenu:labelsAreColored value:nil. |
3280 | 484 |
|
2183
5c69691590eb
code cleanup; now inherit model instVar.
Claus Gittinger <cg@exept.de>
parents:
2167
diff
changeset
|
485 |
menu |
5c69691590eb
code cleanup; now inherit model instVar.
Claus Gittinger <cg@exept.de>
parents:
2167
diff
changeset
|
486 |
addItem:( |
3322 | 487 |
(MenuItem labeled:nil) |
488 |
labelImage:(ToolbarIconLibrary palette16x16Icon); |
|
489 |
value:[ self openColorEditDialog ]; |
|
490 |
nameKey:#pseudoDef; |
|
3280 | 491 |
isButton: true). |
806 | 492 |
|
3322 | 493 |
menu |
494 |
addItem:( |
|
495 |
(MenuItem labeled:nil) |
|
496 |
labelImage:(ToolbarIconLibrary pipette16x16Icon); |
|
497 |
value:[ self pickColorFromScreen ]; |
|
498 |
nameKey:#pseudoPick; |
|
499 |
isButton: true). |
|
500 |
||
501 |
menu |
|
502 |
addItem:( |
|
503 |
(MenuItem labeled:nil) |
|
504 |
labelImage:(ToolbarIconLibrary colorHistory16x16Icon); |
|
505 |
submenuChannel:[ self colorHistorySubmenu ]; |
|
506 |
nameKey:#seudoHhistory; |
|
507 |
isButton: false) |
|
508 |
beforeIndex:1. |
|
509 |
||
510 |
"/ menu addItem:(MenuItem label:'') beforeIndex:1. |
|
511 |
||
512 |
item := MenuItem labeled:(Text string:' ' emphasis:(#backgroundColor->DefaultViewBackgroundColor)). |
|
666 | 513 |
item value:#selection. |
514 |
menu addItem:item beforeIndex:1. |
|
806 | 515 |
|
412 | 516 |
self menu:menu. |
517 |
||
666 | 518 |
self do:[:anItem| |
3322 | 519 |
anItem value == #selection ifTrue:[ |
520 |
anItem indication:enabledChannel |
|
666 | 521 |
] ifFalse:[ |
3322 | 522 |
anItem enabled:enabledChannel. |
412 | 523 |
] |
664 | 524 |
] |
412 | 525 |
! ! |
526 |
||
527 |
!ColorMenu methodsFor:'private'! |
|
528 |
||
529 |
colorHolder |
|
530 |
"returns the item which keeps the selected color in its label |
|
531 |
" |
|
532 |
^ self itemAt:#selection |
|
3322 | 533 |
! |
534 |
||
535 |
openColorEditDialog |
|
536 |
|defineColorDialog| |
|
537 |
||
538 |
defineColorDialog := ColorEditDialog new color: self color. |
|
539 |
defineColorDialog open. |
|
540 |
defineColorDialog accept value ifTrue: [ |
|
541 |
self color:defineColorDialog color |
|
542 |
] |
|
543 |
! |
|
544 |
||
545 |
pickColorFromScreen |
|
546 |
|color| |
|
547 |
||
548 |
color := Color fromUser. |
|
549 |
color notNil ifTrue:[ |
|
550 |
self color:color. |
|
551 |
] |
|
412 | 552 |
! ! |
553 |
||
554 |
!ColorMenu class methodsFor:'documentation'! |
|
555 |
||
556 |
version |
|
3322 | 557 |
^ '$Header: /cvs/stx/stx/libwidg2/ColorMenu.st,v 1.42 2008-01-27 16:08:51 cg Exp $' |
412 | 558 |
! ! |