2 #include "document.h" |
2 #include "document.h" |
3 |
3 |
4 class ColorIndexInput : public QWidget |
4 class ColorIndexInput : public QWidget |
5 { |
5 { |
6 Q_OBJECT |
6 Q_OBJECT |
|
7 const ColorTable* colorTable = nullptr; |
|
8 class Ui_ColorIndexInput& ui; |
7 public: |
9 public: |
8 ColorIndexInput(ColorTable *colorTable, ColorIndex color = MAIN_COLOR, QWidget *parent = nullptr); |
10 ColorIndexInput(QWidget *parent = nullptr); |
9 ~ColorIndexInput(); |
11 ~ColorIndexInput(); |
10 ldraw::Color selectedColor() const; |
12 ldraw::Color selectedColor() const; |
11 void setSelectedColor(ldraw::Color color); |
13 void setSelectedColor(ldraw::Color color); |
12 Q_SIGNALS: |
14 Q_SIGNALS: |
13 void colorChanged(ldraw::Color color); |
15 void colorChanged(ldraw::Color color); |
14 private: |
16 private: |
15 ColorTable* const colorTable; |
|
16 class Ui_ColorIndexInput& ui; |
|
17 }; |
17 }; |