66 QColor edgeColor() const; |
65 QColor edgeColor() const; |
67 qint32 index() const; |
66 qint32 index() const; |
68 bool isDirect() const; |
67 bool isDirect() const; |
69 QString indexString() const; |
68 QString indexString() const; |
70 |
69 |
71 static LDColor nullColor(); |
70 static const LDColor nullColor; |
|
71 static void initColors(); |
72 |
72 |
73 LDColor& operator=(qint32 index) { m_index = index; return *this; } |
73 LDColor& operator=(qint32 index) { m_index = index; return *this; } |
74 LDColor& operator=(const LDColor &other) = default; |
74 LDColor& operator=(const LDColor &other) = default; |
75 LDColor operator++() { return ++m_index; } |
75 LDColor operator++() { return ++m_index; } |
76 LDColor operator++(int) { return m_index++; } |
76 LDColor operator++(int) { return m_index++; } |
82 bool operator<=(LDColor other) const { return index() <= other.index(); } |
82 bool operator<=(LDColor other) const { return index() <= other.index(); } |
83 bool operator>(LDColor other) const { return index() > other.index(); } |
83 bool operator>(LDColor other) const { return index() > other.index(); } |
84 bool operator>=(LDColor other) const { return index() >= other.index(); } |
84 bool operator>=(LDColor other) const { return index() >= other.index(); } |
85 |
85 |
86 private: |
86 private: |
|
87 static ColorData* colorData; |
87 const ColorData::Entry& data() const; |
88 const ColorData::Entry& data() const; |
88 |
89 |
89 qint32 m_index; |
90 qint32 m_index; |
90 }; |
91 }; |
91 |
92 |