File indexing completed on 2025-11-30 11:38:11
0001 0002 #define TORGB( Qt::red, Qt::green, Qt::blue ) \ 0003 { \ 0004 r = Qt::red; \ 0005 b = Qt::blue; \ 0006 g = Qt::green; \ 0007 } 0008 0009 void keywordToRGB(QString rgbColor, int &r, int &g, int &b) 0010 { 0011 if (rgbColor == "aliceblue") 0012 TORGB(240, 248, 255) 0013 else if (rgbColor == "antiquewhite") 0014 TORGB(250, 235, 215) 0015 else if (rgbColor == "aqua") 0016 TORGB(0, 255, 255) 0017 else if (rgbColor == "aquamarine") 0018 TORGB(127, 255, 212) 0019 else if (rgbColor == "azure") 0020 TORGB(240, 255, 255) 0021 else if (rgbColor == "beige") 0022 TORGB(245, 245, 220) 0023 else if (rgbColor == "bisque") 0024 TORGB(255, 228, 196) 0025 else if (rgbColor == "black") 0026 TORGB(0, 0, 0) 0027 else if (rgbColor == "blanchedalmond") 0028 TORGB(255, 235, 205) 0029 else if (rgbColor == "blue") 0030 TORGB(0, 0, 255) 0031 else if (rgbColor == "blueviolet") 0032 TORGB(138, 43, 226) 0033 else if (rgbColor == "brown") 0034 TORGB(165, 42, 42) 0035 else if (rgbColor == "burlywood") 0036 TORGB(222, 184, 135) 0037 else if (rgbColor == "cadetblue") 0038 TORGB(95, 158, 160) 0039 else if (rgbColor == "chartreuse") 0040 TORGB(127, 255, 0) 0041 else if (rgbColor == "chocolate") 0042 TORGB(210, 105, 30) 0043 else if (rgbColor == "coral") 0044 TORGB(255, 127, 80) 0045 else if (rgbColor == "cornflowerblue") 0046 TORGB(100, 149, 237) 0047 else if (rgbColor == "cornsilk") 0048 TORGB(255, 248, 220) 0049 else if (rgbColor == "crimson") 0050 TORGB(220, 20, 60) 0051 else if (rgbColor == "cyan") 0052 TORGB(0, 255, 255) 0053 else if (rgbColor == "darkblue") 0054 TORGB(0, 0, 139) 0055 else if (rgbColor == "darkcyan") 0056 TORGB(0, 139, 139) 0057 else if (rgbColor == "darkgoldenrod") 0058 TORGB(184, 134, 11) 0059 else if (rgbColor == "darkgray") 0060 TORGB(169, 169, 169) 0061 else if (rgbColor == "darkgrey") 0062 TORGB(169, 169, 169) 0063 else if (rgbColor == "darkgreen") 0064 TORGB(0, 100, 0) 0065 else if (rgbColor == "darkkhaki") 0066 TORGB(189, 183, 107) 0067 else if (rgbColor == "darkmagenta") 0068 TORGB(139, 0, 139) 0069 else if (rgbColor == "darkolivegreen") 0070 TORGB(85, 107, 47) 0071 else if (rgbColor == "darkorange") 0072 TORGB(255, 140, 0) 0073 else if (rgbColor == "darkorchid") 0074 TORGB(153, 50, 204) 0075 else if (rgbColor == "darkred") 0076 TORGB(139, 0, 0) 0077 else if (rgbColor == "darksalmon") 0078 TORGB(233, 150, 122) 0079 else if (rgbColor == "darkseagreen") 0080 TORGB(143, 188, 143) 0081 else if (rgbColor == "darkslateblue") 0082 TORGB(72, 61, 139) 0083 else if (rgbColor == "darkslategray") 0084 TORGB(47, 79, 79) 0085 else if (rgbColor == "darkslategrey") 0086 TORGB(47, 79, 79) 0087 else if (rgbColor == "darkturquoise") 0088 TORGB(0, 206, 209) 0089 else if (rgbColor == "darkviolet") 0090 TORGB(148, 0, 211) 0091 else if (rgbColor == "deeppink") 0092 TORGB(255, 20, 147) 0093 else if (rgbColor == "deepskyblue") 0094 TORGB(0, 191, 255) 0095 else if (rgbColor == "dimgray") 0096 TORGB(105, 105, 105) 0097 else if (rgbColor == "dimgrey") 0098 TORGB(105, 105, 105) 0099 else if (rgbColor == "dodgerblue") 0100 TORGB(30, 144, 255) 0101 else if (rgbColor == "firebrick") 0102 TORGB(178, 34, 34) 0103 else if (rgbColor == "floralwhite") 0104 TORGB(255, 250, 240) 0105 else if (rgbColor == "forestgreen") 0106 TORGB(34, 139, 34) 0107 else if (rgbColor == "fuchsia") 0108 TORGB(255, 0, 255) 0109 else if (rgbColor == "gainsboro") 0110 TORGB(220, 220, 220) 0111 else if (rgbColor == "ghostwhite") 0112 TORGB(248, 248, 255) 0113 else if (rgbColor == "gold") 0114 TORGB(255, 215, 0) 0115 else if (rgbColor == "goldenrod") 0116 TORGB(218, 165, 32) 0117 else if (rgbColor == "gray") 0118 TORGB(128, 128, 128) 0119 else if (rgbColor == "grey") 0120 TORGB(128, 128, 128) 0121 else if (rgbColor == "green") 0122 TORGB(0, 128, 0) 0123 else if (rgbColor == "greenyellow") 0124 TORGB(173, 255, 47) 0125 else if (rgbColor == "honeydew") 0126 TORGB(240, 255, 240) 0127 else if (rgbColor == "hotpink") 0128 TORGB(255, 105, 180) 0129 else if (rgbColor == "indianred") 0130 TORGB(205, 92, 92) 0131 else if (rgbColor == "indigo") 0132 TORGB(75, 0, 130) 0133 else if (rgbColor == "ivory") 0134 TORGB(255, 255, 240) 0135 else if (rgbColor == "khaki") 0136 TORGB(240, 230, 140) 0137 else if (rgbColor == "lavender") 0138 TORGB(230, 230, 250) 0139 else if (rgbColor == "lavenderblush") 0140 TORGB(255, 240, 245) 0141 else if (rgbColor == "lawngreen") 0142 TORGB(124, 252, 0) 0143 else if (rgbColor == "lemonchiffon") 0144 TORGB(255, 250, 205) 0145 else if (rgbColor == "lightblue") 0146 TORGB(173, 216, 230) 0147 else if (rgbColor == "lightcoral") 0148 TORGB(240, 128, 128) 0149 else if (rgbColor == "lightcyan") 0150 TORGB(224, 255, 255) 0151 else if (rgbColor == "lightgoldenrodyellow") 0152 TORGB(250, 250, 210) 0153 else if (rgbColor == "lightgray") 0154 TORGB(211, 211, 211) 0155 else if (rgbColor == "lightgrey") 0156 TORGB(211, 211, 211) 0157 else if (rgbColor == "lightgreen") 0158 TORGB(144, 238, 144) 0159 else if (rgbColor == "lightpink") 0160 TORGB(255, 182, 193) 0161 else if (rgbColor == "lightsalmon") 0162 TORGB(255, 160, 122) 0163 else if (rgbColor == "lightseagreen") 0164 TORGB(32, 178, 170) 0165 else if (rgbColor == "lightskyblue") 0166 TORGB(135, 206, 250) 0167 else if (rgbColor == "lightslategray") 0168 TORGB(119, 136, 153) 0169 else if (rgbColor == "lightslategrey") 0170 TORGB(119, 136, 153) 0171 else if (rgbColor == "lightsteelblue") 0172 TORGB(176, 196, 222) 0173 else if (rgbColor == "lightyellow") 0174 TORGB(255, 255, 224) 0175 else if (rgbColor == "lime") 0176 TORGB(0, 255, 0) 0177 else if (rgbColor == "limegreen") 0178 TORGB(50, 205, 50) 0179 else if (rgbColor == "linen") 0180 TORGB(250, 240, 230) 0181 else if (rgbColor == "magenta") 0182 TORGB(255, 0, 255) 0183 else if (rgbColor == "maroon") 0184 TORGB(128, 0, 0) 0185 else if (rgbColor == "mediumaquamarine") 0186 TORGB(102, 205, 170) 0187 else if (rgbColor == "mediumblue") 0188 TORGB(0, 0, 205) 0189 else if (rgbColor == "mediumorchid") 0190 TORGB(186, 85, 211) 0191 else if (rgbColor == "mediumpurple") 0192 TORGB(147, 112, 219) 0193 else if (rgbColor == "mediumseagreen") 0194 TORGB(60, 179, 113) 0195 else if (rgbColor == "mediumslateblue") 0196 TORGB(123, 104, 238) 0197 else if (rgbColor == "mediumspringgreen") 0198 TORGB(0, 250, 154) 0199 else if (rgbColor == "mediumturquoise") 0200 TORGB(72, 209, 204) 0201 else if (rgbColor == "mediumvioletred") 0202 TORGB(199, 21, 133) 0203 else if (rgbColor == "midnightblue") 0204 TORGB(25, 25, 112) 0205 else if (rgbColor == "mintcream") 0206 TORGB(245, 255, 250) 0207 else if (rgbColor == "mistyrose") 0208 TORGB(255, 228, 225) 0209 else if (rgbColor == "moccasin") 0210 TORGB(255, 228, 181) 0211 else if (rgbColor == "navajowhite") 0212 TORGB(255, 222, 173) 0213 else if (rgbColor == "navy") 0214 TORGB(0, 0, 128) 0215 else if (rgbColor == "oldlace") 0216 TORGB(253, 245, 230) 0217 else if (rgbColor == "olive") 0218 TORGB(128, 128, 0) 0219 else if (rgbColor == "olivedrab") 0220 TORGB(107, 142, 35) 0221 else if (rgbColor == "orange") 0222 TORGB(255, 165, 0) 0223 else if (rgbColor == "orangered") 0224 TORGB(255, 69, 0) 0225 else if (rgbColor == "orchid") 0226 TORGB(218, 112, 214) 0227 else if (rgbColor == "palegoldenrod") 0228 TORGB(238, 232, 170) 0229 else if (rgbColor == "palegreen") 0230 TORGB(152, 251, 152) 0231 else if (rgbColor == "paleturquoise") 0232 TORGB(175, 238, 238) 0233 else if (rgbColor == "palevioletred") 0234 TORGB(219, 112, 147) 0235 else if (rgbColor == "papayawhip") 0236 TORGB(255, 239, 213) 0237 else if (rgbColor == "peachpuff") 0238 TORGB(255, 218, 185) 0239 else if (rgbColor == "peru") 0240 TORGB(205, 133, 63) 0241 else if (rgbColor == "pink") 0242 TORGB(255, 192, 203) 0243 else if (rgbColor == "plum") 0244 TORGB(221, 160, 221) 0245 else if (rgbColor == "powderblue") 0246 TORGB(176, 224, 230) 0247 else if (rgbColor == "purple") 0248 TORGB(128, 0, 128) 0249 else if (rgbColor == "red") 0250 TORGB(255, 0, 0) 0251 else if (rgbColor == "rosybrown") 0252 TORGB(188, 143, 143) 0253 else if (rgbColor == "royalblue") 0254 TORGB(65, 105, 225) 0255 else if (rgbColor == "saddlebrown") 0256 TORGB(139, 69, 19) 0257 else if (rgbColor == "salmon") 0258 TORGB(250, 128, 114) 0259 else if (rgbColor == "sandybrown") 0260 TORGB(244, 164, 96) 0261 else if (rgbColor == "seagreen") 0262 TORGB(46, 139, 87) 0263 else if (rgbColor == "seashell") 0264 TORGB(255, 245, 238) 0265 else if (rgbColor == "sienna") 0266 TORGB(160, 82, 45) 0267 else if (rgbColor == "silver") 0268 TORGB(192, 192, 192) 0269 else if (rgbColor == "skyblue") 0270 TORGB(135, 206, 235) 0271 else if (rgbColor == "slateblue") 0272 TORGB(106, 90, 205) 0273 else if (rgbColor == "slategray") 0274 TORGB(112, 128, 144) 0275 else if (rgbColor == "slategrey") 0276 TORGB(112, 128, 144) 0277 else if (rgbColor == "snow") 0278 TORGB(255, 250, 250) 0279 else if (rgbColor == "springgreen") 0280 TORGB(0, 255, 127) 0281 else if (rgbColor == "steelblue") 0282 TORGB(70, 130, 180) 0283 else if (rgbColor == "tan") 0284 TORGB(210, 180, 140) 0285 else if (rgbColor == "teal") 0286 TORGB(0, 128, 128) 0287 else if (rgbColor == "thistle") 0288 TORGB(216, 191, 216) 0289 else if (rgbColor == "tomato") 0290 TORGB(255, 99, 71) 0291 else if (rgbColor == "turquoise") 0292 TORGB(64, 224, 208) 0293 else if (rgbColor == "violet") 0294 TORGB(238, 130, 238) 0295 else if (rgbColor == "wheat") 0296 TORGB(245, 222, 179) 0297 else if (rgbColor == "white") 0298 TORGB(255, 255, 255) 0299 else if (rgbColor == "whitesmoke") 0300 TORGB(245, 245, 245) 0301 else if (rgbColor == "yellow") 0302 TORGB(255, 255, 0) 0303 else if (rgbColor == "yellowgreen") 0304 TORGB(154, 205, 50) 0305 } 0306