54 bool operator<= (LDColor other) const { return index() <= other.index(); } |
76 bool operator<= (LDColor other) const { return index() <= other.index(); } |
55 bool operator> (LDColor other) const { return index() > other.index(); } |
77 bool operator> (LDColor other) const { return index() > other.index(); } |
56 bool operator>= (LDColor other) const { return index() >= other.index(); } |
78 bool operator>= (LDColor other) const { return index() >= other.index(); } |
57 |
79 |
58 private: |
80 private: |
|
81 const ColorData::Entry& data() const; |
|
82 |
59 qint32 m_index; |
83 qint32 m_index; |
60 }; |
84 }; |
61 |
85 |
62 // |
86 // |
63 // Parses ldconfig.ldr |
87 // Parses ldconfig.ldr |
68 LDConfigParser (QString inText, char sep); |
92 LDConfigParser (QString inText, char sep); |
69 |
93 |
70 bool getToken (QString& val, const int pos); |
94 bool getToken (QString& val, const int pos); |
71 bool findToken (int& result, char const* needle, int args); |
95 bool findToken (int& result, char const* needle, int args); |
72 bool compareToken (int inPos, QString text); |
96 bool compareToken (int inPos, QString text); |
73 bool parseLDConfigTag (char const* tag, QString& val); |
97 bool parseTag (char const* tag, QString& val); |
74 |
98 |
75 inline QString operator[] (const int idx) |
99 inline QString operator[] (const int idx) |
76 { |
100 { |
77 return m_tokens[idx]; |
101 return m_tokens[idx]; |
78 } |
102 } |