src/ui/polygonobjecteditor.h

Wed, 18 Mar 2020 17:11:23 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Wed, 18 Mar 2020 17:11:23 +0200
changeset 85
40e2940605a3
parent 83
b8bd338eb602
child 86
4bec0525ef1b
permissions
-rw-r--r--

added a matrix editing widget

#pragma once
#include <QWidget>
#include "main.h"
#include "../widgets/vec3editor.h"

class Model;

class PolygonObjectEditor : public QWidget
{
public:
	PolygonObjectEditor(Model* model, ldraw::id_t id, QWidget* parent = nullptr);
	~PolygonObjectEditor();
	ldraw::id_t objectId() const;
	void setObjectId(ldraw::id_t id);
private:
	void updateNumRows();
	Model* model;
	ldraw::id_t storedObjectId;
	std::optional<Vec3Editor> vec3Editors[4];
};

mercurial