src/widgets/colorindexinput.h

Sun, 12 Jun 2022 23:59:37 +0300

author
Teemu Piippo <teemu.s.piippo@gmail.com>
date
Sun, 12 Jun 2022 23:59:37 +0300
changeset 215
34c6e7bc4ee1
parent 214
8e1fe64ce4e3
child 258
fe094d0687ad
permissions
-rw-r--r--

Reimplement the axes program as a layer that can be added to PartRenderer

#pragma once
#include "document.h"

class ColorIndexInput : public QWidget
{
	Q_OBJECT
public:
	ColorIndexInput(ColorTable *colorTable, ColorIndex color = MAIN_COLOR, QWidget *parent = nullptr);
	~ColorIndexInput();
	ldraw::Color selectedColor() const;
	void setSelectedColor(ldraw::Color color);
Q_SIGNALS:
	void colorChanged(ldraw::Color color);
private:
	ColorTable* const colorTable;
	class Ui_ColorIndexInput& ui;
};

mercurial