Wed, 08 Jun 2022 22:29:44 +0300
More refactor, merged main.h, basics.h and utility.h into one header file basics.h and removed plenty of unused code
| 178 | 1 | #pragma once |
| 2 | #include "document.h" | |
| 3 | ||
| 4 | class ColorIndexInput : public QWidget | |
| 5 | { | |
| 6 | Q_OBJECT | |
| 7 | public: | |
| 205 | 8 | ColorIndexInput(EditorTabWidget *document, ColorIndex color = MAIN_COLOR, QWidget *parent = nullptr); |
| 178 | 9 | ~ColorIndexInput(); |
| 10 | ldraw::Color selectedColor() const; | |
| 11 | void setSelectedColor(ldraw::Color color); | |
| 12 | Q_SIGNALS: | |
| 13 | void colorChanged(ldraw::Color color); | |
| 14 | private: | |
| 200 | 15 | EditorTabWidget* const document; |
| 178 | 16 | class Ui_ColorIndexInput& ui; |
| 17 | }; |