filters

xaml/color.h
1
2#define TORGB( red, green, blue ) \
3{ \
4 r = red; \
5 b = blue; \
6 g = green; \
7}
8
9void keywordToRGB( TQString rgbColor, int &r, int &g, int &b )
10{
11 if( rgbColor == "aliceblue" )
12 TORGB( 240, 248, 255)
13 else if( rgbColor == "antiquewhite" )
14 TORGB( 250, 235, 215)
15 else if( rgbColor == "aqua" )
16 TORGB( 0, 255, 255)
17 else if( rgbColor == "aquamarine" )
18 TORGB( 127, 255, 212 )
19 else if( rgbColor == "azure" )
20 TORGB( 240, 255, 255 )
21 else if( rgbColor == "beige" )
22 TORGB( 245, 245, 220 )
23 else if( rgbColor == "bisque" )
24 TORGB( 255, 228, 196 )
25 else if( rgbColor == "black" )
26 TORGB( 0, 0, 0 )
27 else if( rgbColor == "blanchedalmond" )
28 TORGB( 255, 235, 205 )
29 else if( rgbColor == "blue" )
30 TORGB( 0, 0, 255 )
31 else if( rgbColor == "blueviolet" )
32 TORGB( 138, 43, 226 )
33 else if( rgbColor == "brown" )
34 TORGB( 165, 42, 42 )
35 else if( rgbColor == "burlywood" )
36 TORGB( 222, 184, 135 )
37 else if( rgbColor == "cadetblue" )
38 TORGB( 95, 158, 160 )
39 else if( rgbColor == "chartreuse" )
40 TORGB( 127, 255, 0 )
41 else if( rgbColor == "chocolate" )
42 TORGB( 210, 105, 30 )
43 else if( rgbColor == "coral" )
44 TORGB( 255, 127, 80 )
45 else if( rgbColor == "cornflowerblue" )
46 TORGB( 100, 149, 237 )
47 else if( rgbColor == "cornsilk" )
48 TORGB( 255, 248, 220 )
49 else if( rgbColor == "crimson" )
50 TORGB( 220, 20, 60 )
51 else if( rgbColor == "cyan" )
52 TORGB( 0, 255, 255 )
53 else if( rgbColor == "darkblue" )
54 TORGB( 0, 0, 139 )
55 else if( rgbColor == "darkcyan" )
56 TORGB( 0, 139, 139 )
57 else if( rgbColor == "darkgoldenrod" )
58 TORGB( 184, 134, 11 )
59 else if( rgbColor == "darkgray" )
60 TORGB( 169, 169, 169 )
61 else if( rgbColor == "darkgrey" )
62 TORGB( 169, 169, 169 )
63 else if( rgbColor == "darkgreen" )
64 TORGB( 0, 100, 0 )
65 else if( rgbColor == "darkkhaki" )
66 TORGB( 189, 183, 107 )
67 else if( rgbColor == "darkmagenta" )
68 TORGB( 139, 0, 139 )
69 else if( rgbColor == "darkolivegreen" )
70 TORGB( 85, 107, 47 )
71 else if( rgbColor == "darkorange" )
72 TORGB( 255, 140, 0 )
73 else if( rgbColor == "darkorchid" )
74 TORGB( 153, 50, 204 )
75 else if( rgbColor == "darkred" )
76 TORGB( 139, 0, 0 )
77 else if( rgbColor == "darksalmon" )
78 TORGB( 233, 150, 122 )
79 else if( rgbColor == "darkseagreen" )
80 TORGB( 143, 188, 143 )
81 else if( rgbColor == "darkslateblue" )
82 TORGB( 72, 61, 139 )
83 else if( rgbColor == "darkslategray" )
84 TORGB( 47, 79, 79 )
85 else if( rgbColor == "darkslategrey" )
86 TORGB( 47, 79, 79 )
87 else if( rgbColor == "darkturquoise" )
88 TORGB( 0, 206, 209 )
89 else if( rgbColor == "darkviolet" )
90 TORGB( 148, 0, 211 )
91 else if( rgbColor == "deeppink" )
92 TORGB( 255, 20, 147 )
93 else if( rgbColor == "deepskyblue" )
94 TORGB( 0, 191, 255 )
95 else if( rgbColor == "dimgray" )
96 TORGB( 105, 105, 105 )
97 else if( rgbColor == "dimgrey" )
98 TORGB( 105, 105, 105 )
99 else if( rgbColor == "dodgerblue" )
100 TORGB( 30, 144, 255 )
101 else if( rgbColor == "firebrick" )
102 TORGB( 178, 34, 34 )
103 else if( rgbColor == "floralwhite" )
104 TORGB( 255, 250, 240 )
105 else if( rgbColor == "forestgreen" )
106 TORGB( 34, 139, 34 )
107 else if( rgbColor == "fuchsia" )
108 TORGB( 255, 0, 255 )
109 else if( rgbColor == "gainsboro" )
110 TORGB( 220, 220, 220 )
111 else if( rgbColor == "ghostwhite" )
112 TORGB( 248, 248, 255 )
113 else if( rgbColor == "gold" )
114 TORGB( 255, 215, 0 )
115 else if( rgbColor == "goldenrod" )
116 TORGB( 218, 165, 32 )
117 else if( rgbColor == "gray" )
118 TORGB( 128, 128, 128 )
119 else if( rgbColor == "grey" )
120 TORGB( 128, 128, 128 )
121 else if( rgbColor == "green" )
122 TORGB( 0, 128, 0 )
123 else if( rgbColor == "greenyellow" )
124 TORGB( 173, 255, 47 )
125 else if( rgbColor == "honeydew" )
126 TORGB( 240, 255, 240 )
127 else if( rgbColor == "hotpink" )
128 TORGB( 255, 105, 180 )
129 else if( rgbColor == "indianred" )
130 TORGB( 205, 92, 92 )
131 else if( rgbColor == "indigo" )
132 TORGB( 75, 0, 130 )
133 else if( rgbColor == "ivory" )
134 TORGB( 255, 255, 240 )
135 else if( rgbColor == "khaki" )
136 TORGB( 240, 230, 140 )
137 else if( rgbColor == "lavender" )
138 TORGB( 230, 230, 250 )
139 else if( rgbColor == "lavenderblush" )
140 TORGB( 255, 240, 245 )
141 else if( rgbColor == "lawngreen" )
142 TORGB( 124, 252, 0 )
143 else if( rgbColor == "lemonchiffon" )
144 TORGB( 255, 250, 205 )
145 else if( rgbColor == "lightblue" )
146 TORGB( 173, 216, 230 )
147 else if( rgbColor == "lightcoral" )
148 TORGB( 240, 128, 128 )
149 else if( rgbColor == "lightcyan" )
150 TORGB( 224, 255, 255 )
151 else if( rgbColor == "lightgoldenrodyellow" )
152 TORGB( 250, 250, 210 )
153 else if( rgbColor == "lightgray" )
154 TORGB( 211, 211, 211 )
155 else if( rgbColor == "lightgrey" )
156 TORGB( 211, 211, 211 )
157 else if( rgbColor == "lightgreen" )
158 TORGB( 144, 238, 144 )
159 else if( rgbColor == "lightpink" )
160 TORGB( 255, 182, 193 )
161 else if( rgbColor == "lightsalmon" )
162 TORGB( 255, 160, 122 )
163 else if( rgbColor == "lightseagreen" )
164 TORGB( 32, 178, 170 )
165 else if( rgbColor == "lightskyblue" )
166 TORGB( 135, 206, 250 )
167 else if( rgbColor == "lightslategray" )
168 TORGB( 119, 136, 153 )
169 else if( rgbColor == "lightslategrey" )
170 TORGB( 119, 136, 153 )
171 else if( rgbColor == "lightsteelblue" )
172 TORGB( 176, 196, 222 )
173 else if( rgbColor == "lightyellow" )
174 TORGB( 255, 255, 224 )
175 else if( rgbColor == "lime" )
176 TORGB( 0, 255, 0 )
177 else if( rgbColor == "limegreen" )
178 TORGB( 50, 205, 50 )
179 else if( rgbColor == "linen" )
180 TORGB( 250, 240, 230 )
181 else if( rgbColor == "magenta" )
182 TORGB( 255, 0, 255 )
183 else if( rgbColor == "maroon" )
184 TORGB( 128, 0, 0 )
185 else if( rgbColor == "mediumaquamarine" )
186 TORGB( 102, 205, 170 )
187 else if( rgbColor == "mediumblue" )
188 TORGB( 0, 0, 205 )
189 else if( rgbColor == "mediumorchid" )
190 TORGB( 186, 85, 211 )
191 else if( rgbColor == "mediumpurple" )
192 TORGB( 147, 112, 219 )
193 else if( rgbColor == "mediumseagreen" )
194 TORGB( 60, 179, 113 )
195 else if( rgbColor == "mediumslateblue" )
196 TORGB( 123, 104, 238 )
197 else if( rgbColor == "mediumspringgreen" )
198 TORGB( 0, 250, 154 )
199 else if( rgbColor == "mediumturquoise" )
200 TORGB( 72, 209, 204 )
201 else if( rgbColor == "mediumvioletred" )
202 TORGB( 199, 21, 133 )
203 else if( rgbColor == "midnightblue" )
204 TORGB( 25, 25, 112 )
205 else if( rgbColor == "mintcream" )
206 TORGB( 245, 255, 250 )
207 else if( rgbColor == "mistyrose" )
208 TORGB( 255, 228, 225 )
209 else if( rgbColor == "moccasin" )
210 TORGB( 255, 228, 181 )
211 else if( rgbColor == "navajowhite" )
212 TORGB( 255, 222, 173 )
213 else if( rgbColor == "navy" )
214 TORGB( 0, 0, 128 )
215 else if( rgbColor == "oldlace" )
216 TORGB( 253, 245, 230 )
217 else if( rgbColor == "olive" )
218 TORGB( 128, 128, 0 )
219 else if( rgbColor == "olivedrab" )
220 TORGB( 107, 142, 35 )
221 else if( rgbColor == "orange" )
222 TORGB( 255, 165, 0 )
223 else if( rgbColor == "orangered" )
224 TORGB( 255, 69, 0 )
225 else if( rgbColor == "orchid" )
226 TORGB( 218, 112, 214 )
227 else if( rgbColor == "palegoldenrod" )
228 TORGB( 238, 232, 170 )
229 else if( rgbColor == "palegreen" )
230 TORGB( 152, 251, 152 )
231 else if( rgbColor == "paleturquoise" )
232 TORGB( 175, 238, 238 )
233 else if( rgbColor == "palevioletred" )
234 TORGB( 219, 112, 147 )
235 else if( rgbColor == "papayawhip" )
236 TORGB( 255, 239, 213 )
237 else if( rgbColor == "peachpuff" )
238 TORGB( 255, 218, 185 )
239 else if( rgbColor == "peru" )
240 TORGB( 205, 133, 63 )
241 else if( rgbColor == "pink" )
242 TORGB( 255, 192, 203 )
243 else if( rgbColor == "plum" )
244 TORGB( 221, 160, 221 )
245 else if( rgbColor == "powderblue" )
246 TORGB( 176, 224, 230 )
247 else if( rgbColor == "purple" )
248 TORGB( 128, 0, 128 )
249 else if( rgbColor == "red" )
250 TORGB( 255, 0, 0 )
251 else if( rgbColor == "rosybrown" )
252 TORGB( 188, 143, 143 )
253 else if( rgbColor == "royalblue" )
254 TORGB( 65, 105, 225 )
255 else if( rgbColor == "saddlebrown" )
256 TORGB( 139, 69, 19 )
257 else if( rgbColor == "salmon" )
258 TORGB( 250, 128, 114 )
259 else if( rgbColor == "sandybrown" )
260 TORGB( 244, 164, 96 )
261 else if( rgbColor == "seagreen" )
262 TORGB( 46, 139, 87 )
263 else if( rgbColor == "seashell" )
264 TORGB( 255, 245, 238 )
265 else if( rgbColor == "sienna" )
266 TORGB( 160, 82, 45 )
267 else if( rgbColor == "silver" )
268 TORGB( 192, 192, 192 )
269 else if( rgbColor == "skyblue" )
270 TORGB( 135, 206, 235 )
271 else if( rgbColor == "slateblue" )
272 TORGB( 106, 90, 205 )
273 else if( rgbColor == "slategray" )
274 TORGB( 112, 128, 144 )
275 else if( rgbColor == "slategrey" )
276 TORGB( 112, 128, 144 )
277 else if( rgbColor == "snow" )
278 TORGB( 255, 250, 250 )
279 else if( rgbColor == "springgreen" )
280 TORGB( 0, 255, 127 )
281 else if( rgbColor == "steelblue" )
282 TORGB( 70, 130, 180 )
283 else if( rgbColor == "tan" )
284 TORGB( 210, 180, 140 )
285 else if( rgbColor == "teal" )
286 TORGB( 0, 128, 128 )
287 else if( rgbColor == "thistle" )
288 TORGB( 216, 191, 216 )
289 else if( rgbColor == "tomato" )
290 TORGB( 255, 99, 71 )
291 else if( rgbColor == "turquoise" )
292 TORGB( 64, 224, 208 )
293 else if( rgbColor == "violet" )
294 TORGB( 238, 130, 238 )
295 else if( rgbColor == "wheat" )
296 TORGB( 245, 222, 179 )
297 else if( rgbColor == "white" )
298 TORGB( 255, 255, 255 )
299 else if( rgbColor == "whitesmoke" )
300 TORGB( 245, 245, 245 )
301 else if( rgbColor == "yellow" )
302 TORGB( 255, 255, 0 )
303 else if( rgbColor == "yellowgreen" )
304 TORGB( 154, 205, 50 )
305}
306