--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/widgets/colorindexinput.h Sun Mar 13 14:51:39 2022 +0200 @@ -0,0 +1,17 @@ +#pragma once +#include "document.h" + +class ColorIndexInput : public QWidget +{ + Q_OBJECT +public: + ColorIndexInput(Document *document, ldraw::Color color = ldraw::MAIN_COLOR, QWidget *parent = nullptr); + ~ColorIndexInput(); + ldraw::Color selectedColor() const; + void setSelectedColor(ldraw::Color color); +Q_SIGNALS: + void colorChanged(ldraw::Color color); +private: + Document* const document; + class Ui_ColorIndexInput& ui; +};