src/ui/polygonobjecteditor.h

Wed, 18 Mar 2020 15:54:30 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Wed, 18 Mar 2020 15:54:30 +0200
changeset 84
7137c20979af
parent 83
b8bd338eb602
child 86
4bec0525ef1b
permissions
-rw-r--r--

fix

#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