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