32 static bool selectColor (QWidget* parent, LDColor& val, LDColor defval = LDColor::nullColor); |
32 static bool selectColor (QWidget* parent, LDColor& val, LDColor defval = LDColor::nullColor); |
33 LDColor selection() const; |
33 LDColor selection() const; |
34 |
34 |
35 private: |
35 private: |
36 class Ui_ColorSelUi& ui; |
36 class Ui_ColorSelUi& ui; |
37 QMap<int, QPushButton*> m_buttons; |
37 QMap<LDColor, QPushButton*> m_buttons; |
38 QMap<QPushButton*, int> m_buttonsReversed; |
38 QMap<QPushButton*, LDColor> m_buttonsReversed; |
39 bool m_firstResize; |
39 bool m_firstResize; |
40 LDColor m_selection; |
40 LDColor m_selection; |
41 |
41 |
42 void drawColorInfo(); |
42 void drawColorInfo(); |
43 void selectDirectColor (QColor col); |
43 void selectDirectColor (QColor col); |