26 |
26 |
27 class LDColor |
27 class LDColor |
28 { public: |
28 { public: |
29 str name, hexcode; |
29 str name, hexcode; |
30 QColor faceColor, edgeColor; |
30 QColor faceColor, edgeColor; |
31 short index; |
31 int index; |
32 }; |
32 }; |
33 |
33 |
34 void initColors(); |
34 void initColors(); |
35 int luma (QColor& col); |
35 int luma (QColor& col); |
36 |
36 |
37 // Safely gets a color with the given number or null if no such color. |
37 // Safely gets a color with the given number or null if no such color. |
38 LDColor* getColor (short colnum); |
38 LDColor* getColor (int colnum); |
39 void setColor (short colnum, LDColor* col); |
39 void setColor (int colnum, LDColor* col); |
40 |
40 |
41 // Main and edge color identifiers |
41 // Main and edge color identifiers |
42 static const short maincolor = 16; |
42 static const int maincolor = 16; |
43 static const short edgecolor = 24; |
43 static const int edgecolor = 24; |
44 |
44 |
45 #endif // LDFORGE_COLORS_H |
45 #endif // LDFORGE_COLORS_H |