363:75583c9f289d | 364:7c3af0a6f8ab |
---|---|
22 #include <qcolor.h> | 22 #include <qcolor.h> |
23 #include "common.h" | 23 #include "common.h" |
24 | 24 |
25 #define MAX_COLORS 512 | 25 #define MAX_COLORS 512 |
26 | 26 |
27 class color | 27 class LDColor |
28 { | 28 { |
29 public: | 29 public: |
30 str name, hexcode; | 30 str name, hexcode; |
31 QColor faceColor, edgeColor; | 31 QColor faceColor, edgeColor; |
32 short index; | 32 short index; |
35 void initColors(); | 35 void initColors(); |
36 void parseLDConfig(); | 36 void parseLDConfig(); |
37 uchar luma( QColor& col ); | 37 uchar luma( QColor& col ); |
38 | 38 |
39 // Safely gets a color with the given number or null if no such color. | 39 // Safely gets a color with the given number or null if no such color. |
40 color* getColor( short colnum ); | 40 LDColor* getColor( short colnum ); |
41 | 41 |
42 #endif // COLORS_H | 42 #endif // COLORS_H |