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, ldraw::Color color = ldraw::MAIN_COLOR, QWidget *parent = nullptr); |
8 ColorIndexInput(EditorTabWidget *document, 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); |