author | Claus Gittinger <cg@exept.de> |
Sun, 04 Dec 2011 19:56:26 +0100 | |
changeset 2863 | eb998d836550 |
parent 2831 | 3dbef5687ae6 |
child 2904 | bd6cacbab203 |
permissions | -rw-r--r-- |
1840 | 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 |
" |
|
12 |
"{ Package: 'stx:libtool2' }" |
|
13 |
||
14 |
SimpleDialog subclass:#ColorEditDialog |
|
2224
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
15 |
instanceVariableNames:'red green blue hue light saturation colorNameHolder |
2831 | 16 |
htmlColorNameHolder colorDefinitionStringHolder previewBox |
17 |
brightnessStringHolder' |
|
1840 | 18 |
classVariableNames:'' |
19 |
poolDictionaries:'' |
|
20 |
category:'Interface-UIPainter' |
|
21 |
! |
|
22 |
||
23 |
!ColorEditDialog class methodsFor:'documentation'! |
|
24 |
||
25 |
copyright |
|
26 |
" |
|
27 |
COPYRIGHT (c) 1995 by eXept Software AG |
|
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 |
! |
|
38 |
||
39 |
documentation |
|
40 |
" |
|
41 |
An edit-dialog for colors. |
|
42 |
" |
|
43 |
! |
|
44 |
||
45 |
examples |
|
46 |
" |
|
47 |
[exBegin] |
|
48 |
|editor color| |
|
49 |
||
1846 | 50 |
editor := ColorEditDialog new. |
1840 | 51 |
editor color:(Color green). |
52 |
editor open. |
|
53 |
editor accepted ifTrue:[ |
|
54 |
editor color inspect. |
|
55 |
] |
|
56 |
[exEnd] |
|
57 |
" |
|
58 |
! ! |
|
59 |
||
2266
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
60 |
!ColorEditDialog class methodsFor:'help specs'! |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
61 |
|
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
62 |
flyByHelpSpec |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
63 |
"This resource specification was automatically generated |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
64 |
by the UIHelpTool of ST/X." |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
65 |
|
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
66 |
"Do not manually edit this!! If it is corrupted, |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
67 |
the UIHelpTool may not be able to read the specification." |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
68 |
|
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
69 |
" |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
70 |
UIHelpTool openOnClass:ColorEditDialog |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
71 |
" |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
72 |
|
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
73 |
<resource: #help> |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
74 |
|
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
75 |
^ super flyByHelpSpec addPairsFrom:#( |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
76 |
|
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
77 |
#pickColor |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
78 |
'Pick a Color from the Screen' |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
79 |
|
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
80 |
) |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
81 |
! |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
82 |
|
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
83 |
helpSpec |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
84 |
"This resource specification was automatically generated |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
85 |
by the UIHelpTool of ST/X." |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
86 |
|
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
87 |
"Do not manually edit this!! If it is corrupted, |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
88 |
the UIHelpTool may not be able to read the specification." |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
89 |
|
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
90 |
" |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
91 |
UIHelpTool openOnClass:ColorEditDialog |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
92 |
" |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
93 |
|
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
94 |
<resource: #help> |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
95 |
|
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
96 |
^ super helpSpec addPairsFrom:#( |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
97 |
|
2831 | 98 |
#brightness |
99 |
'The Color''s brightness value (0..1)' |
|
100 |
||
101 |
#colorDefinitionString |
|
102 |
'A Smalltalk expression to construct the color.' |
|
103 |
||
104 |
#colorName |
|
105 |
'The standard colorname (as used in the X-Window System), if known' |
|
106 |
||
2266
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
107 |
#copyToClipboard |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
108 |
'Copy the color to the clipboard' |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
109 |
|
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
110 |
#hlsMixer |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
111 |
'Mix color from hls (hue-light-saturation) components' |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
112 |
|
2831 | 113 |
#htmlColorName |
114 |
'The color as used in an HTML page.' |
|
115 |
||
2266
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
116 |
#pasteFromClipboard |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
117 |
'Paste color from the Clipboard' |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
118 |
|
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
119 |
#rgbMixer |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
120 |
'Mix color from rgb (red-green-blue) components' |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
121 |
|
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
122 |
) |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
123 |
! ! |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
124 |
|
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
125 |
!ColorEditDialog class methodsFor:'image specs'! |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
126 |
|
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
127 |
pickColorIcon |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
128 |
^ ToolbarIconLibrary pipette16x16Icon |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
129 |
! ! |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
130 |
|
1840 | 131 |
!ColorEditDialog class methodsFor:'interface specs'! |
132 |
||
133 |
windowSpec |
|
134 |
"This resource specification was automatically generated |
|
135 |
by the UIPainter of ST/X." |
|
136 |
||
137 |
"Do not manually edit this!! If it is corrupted, |
|
138 |
the UIPainter may not be able to read the specification." |
|
139 |
||
140 |
" |
|
2224
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
141 |
UIPainter new openOnClass:ColorEditDialog andSelector:#windowSpec |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
142 |
ColorEditDialog new openInterface:#windowSpec |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
143 |
ColorEditDialog open |
1840 | 144 |
" |
145 |
||
146 |
<resource: #canvas> |
|
147 |
||
148 |
^ |
|
149 |
#(FullSpec |
|
150 |
name: windowSpec |
|
151 |
window: |
|
152 |
(WindowSpec |
|
153 |
label: 'Define Color' |
|
154 |
name: 'Define Color' |
|
2831 | 155 |
min: (Point 440 360) |
156 |
max: (Point 440 360) |
|
157 |
bounds: (Rectangle 0 0 440 360) |
|
1840 | 158 |
) |
159 |
component: |
|
160 |
(SpecCollection |
|
161 |
collection: ( |
|
162 |
(VerticalPanelViewSpec |
|
163 |
name: 'RGBLabelPanel' |
|
2266
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
164 |
layout: (LayoutFrame 0 0 0 0 70 0 76 0) |
1840 | 165 |
horizontalLayout: fit |
166 |
verticalLayout: spreadSpace |
|
167 |
horizontalSpace: 3 |
|
168 |
verticalSpace: 3 |
|
169 |
component: |
|
170 |
(SpecCollection |
|
171 |
collection: ( |
|
172 |
(LabelSpec |
|
173 |
label: 'Red:' |
|
174 |
name: 'RedLabel' |
|
175 |
translateLabel: true |
|
176 |
adjust: right |
|
177 |
useDefaultExtent: true |
|
178 |
) |
|
179 |
(LabelSpec |
|
180 |
label: 'Green:' |
|
181 |
name: 'GreenLabel' |
|
182 |
translateLabel: true |
|
183 |
adjust: right |
|
184 |
useDefaultExtent: true |
|
185 |
) |
|
186 |
(LabelSpec |
|
187 |
label: 'Blue:' |
|
188 |
name: 'BlueLabel' |
|
189 |
translateLabel: true |
|
190 |
adjust: right |
|
191 |
useDefaultExtent: true |
|
192 |
) |
|
193 |
) |
|
194 |
||
195 |
) |
|
196 |
) |
|
197 |
(VerticalPanelViewSpec |
|
198 |
name: 'RGBSliderPanel' |
|
2266
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
199 |
layout: (LayoutFrame 70 0 0 0 -177 1 76 0) |
1840 | 200 |
horizontalLayout: fit |
201 |
verticalLayout: spreadSpace |
|
202 |
horizontalSpace: 3 |
|
203 |
verticalSpace: 3 |
|
204 |
component: |
|
205 |
(SpecCollection |
|
206 |
collection: ( |
|
207 |
(SliderSpec |
|
208 |
name: 'RedSlider' |
|
209 |
tabable: false |
|
210 |
model: red |
|
211 |
orientation: horizontal |
|
212 |
stop: 255 |
|
213 |
step: 1 |
|
214 |
backgroundColor: (Color 100.0 0.0 0.0) |
|
2266
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
215 |
extent: (Point 193 16) |
1840 | 216 |
) |
217 |
(SliderSpec |
|
218 |
name: 'GreenSlider' |
|
219 |
tabable: false |
|
220 |
model: green |
|
221 |
orientation: horizontal |
|
222 |
stop: 255 |
|
223 |
step: 1 |
|
224 |
backgroundColor: (Color 0.0 100.0 0.0) |
|
2266
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
225 |
extent: (Point 193 16) |
1840 | 226 |
) |
227 |
(SliderSpec |
|
228 |
name: 'BlueSlider' |
|
229 |
tabable: false |
|
230 |
model: blue |
|
231 |
orientation: horizontal |
|
232 |
stop: 255 |
|
233 |
step: 1 |
|
234 |
backgroundColor: (Color 0.0 0.0 100.0) |
|
2266
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
235 |
extent: (Point 193 16) |
1840 | 236 |
) |
237 |
) |
|
238 |
||
239 |
) |
|
240 |
) |
|
241 |
(VerticalPanelViewSpec |
|
242 |
name: 'RGBFieldPanel' |
|
2224
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
243 |
layout: (LayoutFrame -173 1 0 0 -143 1 76 0) |
1840 | 244 |
horizontalLayout: fit |
245 |
verticalLayout: spreadSpace |
|
246 |
horizontalSpace: 3 |
|
247 |
verticalSpace: 3 |
|
248 |
component: |
|
249 |
(SpecCollection |
|
250 |
collection: ( |
|
251 |
(InputFieldSpec |
|
252 |
name: 'RedField' |
|
253 |
model: red |
|
254 |
type: numberInRange |
|
255 |
numChars: 3 |
|
256 |
minValue: 0 |
|
257 |
maxValue: 255 |
|
258 |
acceptOnPointerLeave: false |
|
2831 | 259 |
extent: (Point 28 20) |
1840 | 260 |
) |
261 |
(InputFieldSpec |
|
262 |
name: 'GreenField' |
|
263 |
model: green |
|
264 |
type: numberInRange |
|
265 |
numChars: 3 |
|
266 |
minValue: 0 |
|
267 |
maxValue: 255 |
|
268 |
acceptOnPointerLeave: false |
|
2831 | 269 |
extent: (Point 28 20) |
1840 | 270 |
) |
271 |
(InputFieldSpec |
|
272 |
name: 'BlueField' |
|
273 |
model: blue |
|
274 |
type: numberInRange |
|
275 |
numChars: 3 |
|
276 |
minValue: 0 |
|
277 |
maxValue: 255 |
|
278 |
acceptOnPointerLeave: false |
|
2831 | 279 |
extent: (Point 28 20) |
2224
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
280 |
) |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
281 |
) |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
282 |
|
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
283 |
) |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
284 |
) |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
285 |
(VerticalPanelViewSpec |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
286 |
name: 'RGBFieldPanelHex' |
2274 | 287 |
layout: (LayoutFrame -141 1 0 0 -119 1 76 0) |
2224
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
288 |
horizontalLayout: fit |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
289 |
verticalLayout: spreadSpace |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
290 |
horizontalSpace: 3 |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
291 |
verticalSpace: 3 |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
292 |
component: |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
293 |
(SpecCollection |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
294 |
collection: ( |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
295 |
(InputFieldSpec |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
296 |
name: 'EntryField4' |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
297 |
model: red |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
298 |
type: hexIntegerInRange |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
299 |
numChars: 3 |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
300 |
minValue: 0 |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
301 |
maxValue: 255 |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
302 |
acceptOnPointerLeave: false |
2831 | 303 |
extent: (Point 20 20) |
2224
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
304 |
) |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
305 |
(InputFieldSpec |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
306 |
name: 'EntryField5' |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
307 |
model: green |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
308 |
type: hexIntegerInRange |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
309 |
numChars: 3 |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
310 |
minValue: 0 |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
311 |
maxValue: 255 |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
312 |
acceptOnPointerLeave: false |
2831 | 313 |
extent: (Point 20 20) |
2224
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
314 |
) |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
315 |
(InputFieldSpec |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
316 |
name: 'EntryField6' |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
317 |
model: blue |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
318 |
type: hexIntegerInRange |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
319 |
numChars: 3 |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
320 |
minValue: 0 |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
321 |
maxValue: 255 |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
322 |
acceptOnPointerLeave: false |
2831 | 323 |
extent: (Point 20 20) |
1840 | 324 |
) |
325 |
) |
|
326 |
||
327 |
) |
|
328 |
) |
|
329 |
(VerticalPanelViewSpec |
|
330 |
name: 'HLSLabelPanel' |
|
2266
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
331 |
layout: (LayoutFrame 0 0 86 0 70 0 163 0) |
1840 | 332 |
horizontalLayout: fit |
333 |
verticalLayout: spreadSpace |
|
334 |
horizontalSpace: 3 |
|
335 |
verticalSpace: 3 |
|
336 |
component: |
|
337 |
(SpecCollection |
|
338 |
collection: ( |
|
339 |
(LabelSpec |
|
340 |
label: 'Hue:' |
|
341 |
name: 'Label1' |
|
342 |
translateLabel: true |
|
343 |
adjust: right |
|
344 |
useDefaultExtent: true |
|
345 |
) |
|
346 |
(LabelSpec |
|
347 |
label: 'Light:' |
|
348 |
name: 'Label2' |
|
349 |
translateLabel: true |
|
350 |
adjust: right |
|
351 |
useDefaultExtent: true |
|
352 |
) |
|
353 |
(LabelSpec |
|
2266
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
354 |
label: 'Saturation:' |
1840 | 355 |
name: 'Label3' |
356 |
translateLabel: true |
|
357 |
adjust: right |
|
358 |
useDefaultExtent: true |
|
359 |
) |
|
360 |
) |
|
361 |
||
362 |
) |
|
363 |
) |
|
364 |
(VerticalPanelViewSpec |
|
365 |
name: 'HLSSliderPanel' |
|
2266
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
366 |
layout: (LayoutFrame 70 0 86 0 -177 1 163 0) |
1840 | 367 |
horizontalLayout: fit |
368 |
verticalLayout: spreadSpace |
|
369 |
horizontalSpace: 3 |
|
370 |
verticalSpace: 3 |
|
371 |
component: |
|
372 |
(SpecCollection |
|
373 |
collection: ( |
|
374 |
(SliderSpec |
|
375 |
name: 'Slider1' |
|
376 |
tabable: false |
|
377 |
model: hue |
|
378 |
orientation: horizontal |
|
379 |
stop: 359 |
|
380 |
step: 1 |
|
381 |
keyboardStep: 1 |
|
2266
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
382 |
extent: (Point 193 16) |
1840 | 383 |
) |
384 |
(SliderSpec |
|
385 |
name: 'Slider2' |
|
386 |
tabable: false |
|
387 |
model: light |
|
388 |
orientation: horizontal |
|
389 |
step: 1 |
|
2831 | 390 |
backgroundColor: (Color 66.9993133440146 66.9993133440146 66.9993133440146) |
1840 | 391 |
keyboardStep: 1 |
2266
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
392 |
extent: (Point 193 16) |
1840 | 393 |
) |
394 |
(SliderSpec |
|
395 |
name: 'Slider3' |
|
396 |
tabable: false |
|
397 |
model: saturation |
|
398 |
orientation: horizontal |
|
399 |
step: 1 |
|
2831 | 400 |
backgroundColor: (Color 66.9993133440146 66.9993133440146 66.9993133440146) |
1840 | 401 |
keyboardStep: 1 |
2266
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
402 |
extent: (Point 193 16) |
1840 | 403 |
) |
404 |
) |
|
405 |
||
406 |
) |
|
407 |
) |
|
408 |
(VerticalPanelViewSpec |
|
409 |
name: 'HLSFieldPanel' |
|
2224
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
410 |
layout: (LayoutFrame -173 1 86 0 -143 1 163 0) |
1840 | 411 |
horizontalLayout: fit |
412 |
verticalLayout: spreadSpace |
|
413 |
horizontalSpace: 3 |
|
414 |
verticalSpace: 3 |
|
415 |
component: |
|
416 |
(SpecCollection |
|
417 |
collection: ( |
|
418 |
(InputFieldSpec |
|
419 |
name: 'EntryField1' |
|
420 |
model: hue |
|
421 |
type: numberInRange |
|
422 |
numChars: 3 |
|
423 |
minValue: 0 |
|
424 |
maxValue: 359 |
|
425 |
acceptOnPointerLeave: false |
|
2831 | 426 |
extent: (Point 28 20) |
1840 | 427 |
) |
428 |
(InputFieldSpec |
|
429 |
name: 'EntryField2' |
|
430 |
model: light |
|
431 |
type: numberInRange |
|
432 |
numChars: 3 |
|
433 |
minValue: 0 |
|
434 |
maxValue: 100 |
|
435 |
acceptOnPointerLeave: false |
|
2831 | 436 |
extent: (Point 28 20) |
1840 | 437 |
) |
438 |
(InputFieldSpec |
|
439 |
name: 'EntryField3' |
|
440 |
model: saturation |
|
441 |
type: numberInRange |
|
442 |
numChars: 3 |
|
443 |
minValue: 0 |
|
444 |
maxValue: 100 |
|
445 |
acceptOnPointerLeave: false |
|
2831 | 446 |
extent: (Point 28 20) |
1840 | 447 |
) |
448 |
) |
|
449 |
||
450 |
) |
|
451 |
) |
|
452 |
(ViewSpec |
|
2266
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
453 |
name: 'PreviewBoxFrame' |
1840 | 454 |
layout: (LayoutFrame -117 1 4 0.0 -3 1.0 -39 1.0) |
455 |
level: 1 |
|
456 |
component: |
|
457 |
(SpecCollection |
|
458 |
collection: ( |
|
459 |
(LabelSpec |
|
460 |
label: 'Preview' |
|
461 |
name: 'PreviewBox' |
|
462 |
layout: (LayoutFrame 2 0.0 2 0.0 -2 1.0 -2 1.0) |
|
463 |
level: -1 |
|
464 |
translateLabel: true |
|
2266
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
465 |
postBuildCallback: postBuildPreviewBox: |
1840 | 466 |
) |
467 |
) |
|
468 |
||
469 |
) |
|
470 |
) |
|
471 |
(LabelSpec |
|
2831 | 472 |
label: 'Brightness:' |
473 |
name: 'Label5' |
|
474 |
layout: (LayoutFrame 0 0 175 0 70 0 197 0) |
|
475 |
activeHelpKey: brightness |
|
476 |
translateLabel: true |
|
477 |
adjust: right |
|
478 |
) |
|
479 |
(InputFieldSpec |
|
480 |
name: 'EntryField8' |
|
481 |
layout: (LayoutFrame 71 0 175 0 -296 1 197 0) |
|
482 |
activeHelpKey: brightness |
|
483 |
model: brightnessStringHolder |
|
484 |
isReadOnly: true |
|
485 |
immediateAccept: false |
|
486 |
acceptOnReturn: true |
|
487 |
acceptOnTab: true |
|
488 |
acceptOnLostFocus: true |
|
489 |
acceptOnPointerLeave: true |
|
490 |
) |
|
491 |
(LabelSpec |
|
1840 | 492 |
label: 'Color Name:' |
493 |
name: 'ColorNameLabel' |
|
2831 | 494 |
layout: (LayoutFrame 2 0 214 0 115 0 236 0) |
495 |
activeHelpKey: colorName |
|
1840 | 496 |
translateLabel: true |
497 |
adjust: right |
|
498 |
) |
|
499 |
(InputFieldSpec |
|
500 |
name: 'ColorNameField' |
|
2831 | 501 |
layout: (LayoutFrame 117 0 214 0 -122 1 236 0) |
502 |
activeHelpKey: colorName |
|
1840 | 503 |
model: colorNameHolder |
2326
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
504 |
immediateAccept: false |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
505 |
acceptOnReturn: true |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
506 |
acceptOnTab: true |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
507 |
acceptOnLostFocus: true |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
508 |
acceptOnPointerLeave: true |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
509 |
) |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
510 |
(LabelSpec |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
511 |
label: 'HTML Color Name:' |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
512 |
name: 'HTMLColorNameLabel' |
2831 | 513 |
layout: (LayoutFrame 2 0 240 0 115 0 262 0) |
514 |
activeHelpKey: htmlColorName |
|
2326
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
515 |
translateLabel: true |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
516 |
adjust: right |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
517 |
) |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
518 |
(InputFieldSpec |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
519 |
name: 'MLHTColorNameFieldField' |
2831 | 520 |
layout: (LayoutFrame 117 0 240 0 -122 1 262 0) |
521 |
activeHelpKey: htmlColorName |
|
2326
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
522 |
model: htmlColorNameHolder |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
523 |
immediateAccept: false |
1840 | 524 |
acceptOnReturn: true |
525 |
acceptOnTab: true |
|
526 |
acceptOnLostFocus: true |
|
2326
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
527 |
acceptOnPointerLeave: true |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
528 |
) |
2831 | 529 |
(LabelSpec |
530 |
label: 'Color Definition:' |
|
531 |
name: 'Label4' |
|
532 |
layout: (LayoutFrame 2 0 266 0 115 0 288 0) |
|
533 |
activeHelpKey: colorDefinitionString |
|
534 |
translateLabel: true |
|
535 |
adjust: right |
|
536 |
) |
|
537 |
(InputFieldSpec |
|
538 |
name: 'EntryField7' |
|
539 |
layout: (LayoutFrame 117 0 266 0 -122 1 288 0) |
|
540 |
activeHelpKey: colorDefinitionString |
|
541 |
model: colorDefinitionStringHolder |
|
542 |
isReadOnly: true |
|
543 |
immediateAccept: false |
|
544 |
acceptOnReturn: true |
|
545 |
acceptOnTab: true |
|
546 |
acceptOnLostFocus: true |
|
547 |
acceptOnPointerLeave: true |
|
548 |
) |
|
2326
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
549 |
(ActionButtonSpec |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
550 |
label: 'Copy Color' |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
551 |
name: 'CopyColor' |
2831 | 552 |
layout: (LayoutFrame 12 0 298 0 100 0 320 0) |
2326
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
553 |
activeHelpKey: hlsMixer |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
554 |
translateLabel: true |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
555 |
resizeForLabel: true |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
556 |
tabable: true |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
557 |
model: copyColor |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
558 |
) |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
559 |
(ActionButtonSpec |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
560 |
label: 'Paste Color' |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
561 |
name: 'PasteColor' |
2831 | 562 |
layout: (LayoutFrame 108 0 298 0 196 0 320 0) |
2326
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
563 |
translateLabel: true |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
564 |
resizeForLabel: true |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
565 |
tabable: true |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
566 |
model: pasteColor |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
567 |
) |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
568 |
(ActionButtonSpec |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
569 |
label: 'pickColorIcon' |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
570 |
name: 'Button1' |
2831 | 571 |
layout: (LayoutFrame 285 0 298 0 312 0 325 0) |
2326
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
572 |
activeHelpKey: pickColor |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
573 |
hasCharacterOrientedLabel: false |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
574 |
translateLabel: true |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
575 |
resizeForLabel: true |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
576 |
tabable: true |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
577 |
model: pickColor |
1840 | 578 |
) |
579 |
(HorizontalPanelViewSpec |
|
580 |
name: 'HorizontalPanel1' |
|
581 |
layout: (LayoutFrame 0 0.0 -32 1 0 1.0 0 1.0) |
|
582 |
horizontalLayout: fitSpace |
|
583 |
verticalLayout: centerMax |
|
584 |
horizontalSpace: 3 |
|
585 |
verticalSpace: 3 |
|
586 |
reverseOrderIfOKAtLeft: true |
|
587 |
component: |
|
588 |
(SpecCollection |
|
589 |
collection: ( |
|
590 |
(ActionButtonSpec |
|
591 |
label: 'Cancel' |
|
592 |
name: 'CancelButton' |
|
593 |
translateLabel: true |
|
594 |
resizeForLabel: false |
|
595 |
tabable: true |
|
596 |
model: cancel |
|
597 |
useDefaultExtent: true |
|
598 |
) |
|
599 |
(ActionButtonSpec |
|
600 |
label: 'OK' |
|
601 |
name: 'OKButton' |
|
602 |
translateLabel: true |
|
603 |
resizeForLabel: false |
|
604 |
tabable: true |
|
605 |
model: accept |
|
606 |
isDefault: true |
|
607 |
defaultable: true |
|
608 |
useDefaultExtent: true |
|
609 |
) |
|
610 |
) |
|
611 |
||
612 |
) |
|
613 |
) |
|
614 |
) |
|
615 |
||
616 |
) |
|
617 |
) |
|
618 |
! ! |
|
619 |
||
2347 | 620 |
!ColorEditDialog class methodsFor:'startup'! |
621 |
||
622 |
openOn:aColor |
|
623 |
^ self new |
|
624 |
color:aColor; |
|
625 |
open; |
|
626 |
yourself |
|
627 |
||
628 |
" |
|
629 |
self openOn:Color red |
|
630 |
" |
|
631 |
! ! |
|
632 |
||
1840 | 633 |
!ColorEditDialog methodsFor:'accessing'! |
634 |
||
635 |
color |
|
2279 | 636 |
|colorName| |
637 |
||
638 |
colorName := self colorName. |
|
639 |
colorName notEmptyOrNil ifTrue:[ |
|
2574
ae2448675efb
deliver a color, when asked for one !
Claus Gittinger <cg@exept.de>
parents:
2521
diff
changeset
|
640 |
^ Color name:(colorName asSymbol) |
2279 | 641 |
]. |
2326
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
642 |
^ Color redByte:(red value) greenByte:(green value) blueByte:(blue value) |
1840 | 643 |
! |
644 |
||
2279 | 645 |
color:aColor |
646 |
aColor isNil ifTrue:[ |
|
647 |
^ self |
|
648 |
]. |
|
649 |
||
650 |
aColor isSymbol ifTrue:[ |
|
651 |
self colorNameHolder value:aColor |
|
652 |
] ifFalse:[ |
|
1840 | 653 |
self red value:aColor redByte. |
654 |
self green value:aColor greenByte. |
|
655 |
self blue value:aColor blueByte. |
|
656 |
] |
|
657 |
! |
|
658 |
||
659 |
colorName |
|
660 |
^ colorNameHolder value |
|
2224
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
661 |
! |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
662 |
|
2574
ae2448675efb
deliver a color, when asked for one !
Claus Gittinger <cg@exept.de>
parents:
2521
diff
changeset
|
663 |
colorNameOrColor |
ae2448675efb
deliver a color, when asked for one !
Claus Gittinger <cg@exept.de>
parents:
2521
diff
changeset
|
664 |
|colorName| |
ae2448675efb
deliver a color, when asked for one !
Claus Gittinger <cg@exept.de>
parents:
2521
diff
changeset
|
665 |
|
ae2448675efb
deliver a color, when asked for one !
Claus Gittinger <cg@exept.de>
parents:
2521
diff
changeset
|
666 |
colorName := self colorName. |
ae2448675efb
deliver a color, when asked for one !
Claus Gittinger <cg@exept.de>
parents:
2521
diff
changeset
|
667 |
colorName notEmptyOrNil ifTrue:[ |
ae2448675efb
deliver a color, when asked for one !
Claus Gittinger <cg@exept.de>
parents:
2521
diff
changeset
|
668 |
"/ ^ Color name:(colorName asSymbol) |
ae2448675efb
deliver a color, when asked for one !
Claus Gittinger <cg@exept.de>
parents:
2521
diff
changeset
|
669 |
^ colorName asSymbol |
ae2448675efb
deliver a color, when asked for one !
Claus Gittinger <cg@exept.de>
parents:
2521
diff
changeset
|
670 |
]. |
ae2448675efb
deliver a color, when asked for one !
Claus Gittinger <cg@exept.de>
parents:
2521
diff
changeset
|
671 |
^ Color redByte:(red value) greenByte:(green value) blueByte:(blue value) |
ae2448675efb
deliver a color, when asked for one !
Claus Gittinger <cg@exept.de>
parents:
2521
diff
changeset
|
672 |
! |
ae2448675efb
deliver a color, when asked for one !
Claus Gittinger <cg@exept.de>
parents:
2521
diff
changeset
|
673 |
|
2224
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
674 |
htmlColorName |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
675 |
^ htmlColorNameHolder value |
1840 | 676 |
! ! |
677 |
||
678 |
!ColorEditDialog methodsFor:'actions'! |
|
679 |
||
680 |
colorChanged |
|
2831 | 681 |
|clr nm| |
1840 | 682 |
|
2574
ae2448675efb
deliver a color, when asked for one !
Claus Gittinger <cg@exept.de>
parents:
2521
diff
changeset
|
683 |
clr := self colorNameOrColor. |
2279 | 684 |
clr isColor ifTrue:[ |
685 |
"not a symbol" |
|
686 |
self setPreview:clr. |
|
2326
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
687 |
self htmlColorNameHolder value:(clr htmlPrintString) withoutNotifying:self. |
2831 | 688 |
|
689 |
nm := #(white red green blue black) detect:[:nm | clr = (Color perform:nm)] ifNone:nil. |
|
690 |
nm notNil ifTrue:[ |
|
691 |
self colorDefinitionStringHolder value:('Color ',nm). |
|
692 |
] ifFalse:[ |
|
693 |
self colorDefinitionStringHolder value:('Color rgbValue:16r',(clr rgbValue hexPrintString leftPaddedTo:6 with:$0)). |
|
694 |
]. |
|
695 |
self brightnessStringHolder value:((clr brightness asFixedPoint:3) printString). |
|
2279 | 696 |
]. |
2831 | 697 |
|
698 |
"Modified: / 27-01-2011 / 12:54:04 / cg" |
|
1840 | 699 |
! |
700 |
||
2326
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
701 |
colorChangedTo:clr |
1840 | 702 |
"compute rgb and hls (if possible)" |
703 |
||
2326
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
704 |
|h| |
1840 | 705 |
|
2279 | 706 |
self red value:clr redByte withoutNotifying:self. |
707 |
self green value:clr greenByte withoutNotifying:self. |
|
708 |
self blue value:clr blueByte withoutNotifying:self. |
|
1840 | 709 |
|
710 |
h := clr hue. |
|
711 |
h notNil ifTrue:[ |
|
2279 | 712 |
self hue value:(h rounded) withoutNotifying:self. |
1840 | 713 |
]. |
2279 | 714 |
self light value:(clr light rounded) withoutNotifying:self. |
715 |
self saturation value:(clr saturation rounded) withoutNotifying:self. |
|
1840 | 716 |
|
717 |
self colorChanged |
|
2831 | 718 |
|
719 |
"Modified: / 27-01-2011 / 12:48:28 / cg" |
|
1840 | 720 |
! |
721 |
||
2326
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
722 |
colorNameChanged |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
723 |
"compute rgb and hls (if possible)" |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
724 |
|
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
725 |
|clr| |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
726 |
|
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
727 |
clr := Color name:colorNameHolder value ifIllegal:nil. |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
728 |
clr isNil ifTrue:[ |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
729 |
^ self |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
730 |
]. |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
731 |
self colorChangedTo:clr. |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
732 |
! |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
733 |
|
2224
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
734 |
copyColor |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
735 |
self window setClipboardObject:self color |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
736 |
! |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
737 |
|
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
738 |
copyColorName |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
739 |
self window setClipboardText:self htmlColorName |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
740 |
! |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
741 |
|
1840 | 742 |
hlsSliderChanged |
743 |
"compute rgb" |
|
744 |
||
745 |
Color withRGBFromHue:hue value light:light value saturation:saturation value do:[:r :g :b | |
|
746 |
red value:(r * 255 / 100) rounded withoutNotifying:self. |
|
747 |
green value:(g * 255 / 100) rounded withoutNotifying:self. |
|
748 |
blue value:(b * 255 / 100) rounded withoutNotifying:self. |
|
749 |
]. |
|
750 |
colorNameHolder value:'' withoutNotifying:self. |
|
751 |
self colorChanged |
|
752 |
! |
|
753 |
||
2326
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
754 |
htmlColorNameChanged |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
755 |
"compute rgb and hls (if possible)" |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
756 |
|
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
757 |
|clr| |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
758 |
|
2417
cc89133cc041
changed #htmlColorNameChanged - ignore empty color names
Stefan Vogel <sv@exept.de>
parents:
2347
diff
changeset
|
759 |
htmlColorNameHolder value isEmptyOrNil ifTrue:[ |
cc89133cc041
changed #htmlColorNameChanged - ignore empty color names
Stefan Vogel <sv@exept.de>
parents:
2347
diff
changeset
|
760 |
^ self. |
cc89133cc041
changed #htmlColorNameChanged - ignore empty color names
Stefan Vogel <sv@exept.de>
parents:
2347
diff
changeset
|
761 |
]. |
cc89133cc041
changed #htmlColorNameChanged - ignore empty color names
Stefan Vogel <sv@exept.de>
parents:
2347
diff
changeset
|
762 |
|
2326
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
763 |
clr := Color rgbValue:(Integer |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
764 |
readFrom:(htmlColorNameHolder value copyFrom:2) |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
765 |
radix:16 |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
766 |
onError:nil). |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
767 |
clr isNil ifTrue:[ |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
768 |
^ self |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
769 |
]. |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
770 |
self colorNameHolder value:'' withoutNotifying:self. |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
771 |
self colorChangedTo:clr. |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
772 |
! |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
773 |
|
2224
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
774 |
pasteColor |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
775 |
|copyBufferColor| |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
776 |
|
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
777 |
copyBufferColor := self window getClipboardObject. |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
778 |
copyBufferColor isColor ifFalse:[ |
2521 | 779 |
UserPreferences current beepInEditor ifTrue:[ |
780 |
self window beep. |
|
781 |
]. |
|
2224
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
782 |
^ self |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
783 |
]. |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
784 |
self color:copyBufferColor |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
785 |
! |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
786 |
|
2266
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
787 |
pickColor |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
788 |
|color| |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
789 |
|
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
790 |
color := Color fromUserWithFeedBack:[:clr | self setPreview:clr]. |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
791 |
color notNil ifTrue:[ |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
792 |
self color:color. |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
793 |
] |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
794 |
! |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
795 |
|
1840 | 796 |
rgbSliderChanged |
797 |
"compute hls" |
|
798 |
||
799 |
|r g b| |
|
800 |
||
801 |
r := self red value. |
|
802 |
g := self green value. |
|
803 |
b := self blue value. |
|
804 |
||
805 |
Color withHLSFromRed:(r * 100 / 255) green:(g * 100 / 255) blue:(b * 100 / 255) do:[:h :l :s | |
|
806 |
h isNil ifTrue:[ |
|
807 |
"/ achromatic |
|
808 |
] ifFalse:[ |
|
809 |
self hue value:(h rounded) withoutNotifying:self. |
|
810 |
]. |
|
811 |
self light value:(l rounded) withoutNotifying:self. |
|
812 |
self saturation value:(s rounded) withoutNotifying:self. |
|
813 |
]. |
|
814 |
self colorNameHolder value:'' withoutNotifying:self. |
|
815 |
self colorChanged |
|
2266
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
816 |
! |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
817 |
|
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
818 |
setPreview:color |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
819 |
previewBox isNil ifTrue:[^ self "called before setup"]. |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
820 |
|
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
821 |
previewBox backgroundColor:color. |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
822 |
previewBox foregroundColor:(color brightness < 0.5 |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
823 |
ifTrue:[Color white] |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
824 |
ifFalse:[Color black]). |
1840 | 825 |
! ! |
826 |
||
827 |
!ColorEditDialog methodsFor:'aspects'! |
|
828 |
||
829 |
blue |
|
830 |
blue isNil ifTrue:[ |
|
831 |
blue := 0 asValue. |
|
832 |
blue addDependent:self. |
|
833 |
]. |
|
834 |
^blue |
|
835 |
! |
|
836 |
||
2831 | 837 |
brightnessStringHolder |
838 |
brightnessStringHolder isNil ifTrue:[ |
|
839 |
brightnessStringHolder := 0 asValue. |
|
840 |
"/ brightness addDependent:self. |
|
841 |
]. |
|
842 |
^ brightnessStringHolder |
|
843 |
||
844 |
"Created: / 27-01-2011 / 12:48:00 / cg" |
|
845 |
! |
|
846 |
||
847 |
colorDefinitionStringHolder |
|
848 |
colorDefinitionStringHolder isNil ifTrue:[ |
|
849 |
colorDefinitionStringHolder := '' asValue. |
|
850 |
"/ colorDefinitionStringHolder addDependent:self. |
|
851 |
]. |
|
852 |
^colorDefinitionStringHolder |
|
853 |
||
854 |
"Created: / 27-01-2011 / 12:38:12 / cg" |
|
855 |
! |
|
856 |
||
1840 | 857 |
colorNameHolder |
858 |
colorNameHolder isNil ifTrue:[ |
|
859 |
colorNameHolder := '' asValue. |
|
860 |
colorNameHolder addDependent:self. |
|
861 |
]. |
|
862 |
^colorNameHolder |
|
863 |
! |
|
864 |
||
865 |
green |
|
866 |
green isNil ifTrue:[ |
|
867 |
green := 0 asValue. |
|
868 |
green addDependent:self. |
|
869 |
]. |
|
870 |
^green |
|
871 |
! |
|
872 |
||
2224
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
873 |
htmlColorNameHolder |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
874 |
htmlColorNameHolder isNil ifTrue:[ |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
875 |
htmlColorNameHolder := '' asValue. |
2326
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
876 |
htmlColorNameHolder addDependent:self. |
2224
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
877 |
]. |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
878 |
^htmlColorNameHolder |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
879 |
! |
6ec083adc6bf
hex input; hex-name; copy & paste
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
880 |
|
1840 | 881 |
hue |
882 |
hue isNil ifTrue:[ |
|
883 |
hue := 0 asValue. |
|
884 |
hue addDependent:self. |
|
885 |
]. |
|
886 |
^hue |
|
887 |
! |
|
888 |
||
889 |
light |
|
890 |
light isNil ifTrue:[ |
|
891 |
light := 0 asValue. |
|
892 |
light addDependent:self. |
|
893 |
]. |
|
894 |
^light |
|
895 |
! |
|
896 |
||
897 |
red |
|
898 |
red isNil ifTrue:[ |
|
899 |
red := 0 asValue. |
|
900 |
red addDependent:self. |
|
901 |
]. |
|
902 |
^red |
|
903 |
! |
|
904 |
||
905 |
saturation |
|
906 |
saturation isNil ifTrue:[ |
|
907 |
saturation := 0 asValue. |
|
908 |
saturation addDependent:self. |
|
909 |
]. |
|
910 |
^saturation |
|
911 |
! ! |
|
912 |
||
913 |
!ColorEditDialog methodsFor:'change & update'! |
|
914 |
||
915 |
update:something with:aParameter from:changedObject |
|
916 |
(changedObject == red |
|
917 |
or:[changedObject == green |
|
918 |
or:[changedObject == blue]]) ifTrue:[ |
|
2326
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
919 |
self rgbSliderChanged. |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
920 |
^ self |
1840 | 921 |
]. |
922 |
||
923 |
(changedObject == hue |
|
924 |
or:[changedObject == light |
|
925 |
or:[changedObject == saturation]]) ifTrue:[ |
|
2326
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
926 |
self hlsSliderChanged. |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
927 |
^ self |
1840 | 928 |
]. |
929 |
||
930 |
(changedObject == colorNameHolder) ifTrue:[ |
|
2326
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
931 |
self colorNameChanged. |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
932 |
^ self |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
933 |
]. |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
934 |
(changedObject == htmlColorNameHolder) ifTrue:[ |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
935 |
self htmlColorNameChanged. |
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
936 |
^ self |
1840 | 937 |
]. |
938 |
||
2326
f23fac376621
allow hexcolor to be entered;
Claus Gittinger <cg@exept.de>
parents:
2279
diff
changeset
|
939 |
super update:something with:aParameter from:changedObject |
1840 | 940 |
! ! |
941 |
||
942 |
!ColorEditDialog methodsFor:'startup & release'! |
|
943 |
||
2266
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
944 |
postBuildPreviewBox:aView |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
945 |
previewBox := aView |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
946 |
! |
0234d226a06a
added pick (pipette) and feedback
Claus Gittinger <cg@exept.de>
parents:
2228
diff
changeset
|
947 |
|
1840 | 948 |
postBuildWith:aBuilder |
949 |
super postBuildWith:aBuilder. |
|
950 |
self colorChanged. |
|
951 |
||
952 |
"Modified: / 6.9.1998 / 22:55:25 / cg" |
|
953 |
! ! |
|
954 |
||
955 |
!ColorEditDialog class methodsFor:'documentation'! |
|
956 |
||
957 |
version |
|
958 |
^ '$Header$' |
|
2831 | 959 |
! |
960 |
||
961 |
version_CVS |
|
962 |
^ '$Header$' |
|
1840 | 963 |
! ! |