Tue, 15 Mar 2022 18:52:48 +0200
- Add editors for string and bool properties
- Add invert action
178 | 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 | }; |