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