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