src/ui/polygonobjecteditor.h

Tue, 17 Mar 2020 23:13:47 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Tue, 17 Mar 2020 23:13:47 +0200
changeset 82
70c67c2c4e36
parent 81
62373840e33a
child 83
b8bd338eb602
permissions
-rw-r--r--

added doublespinbox

#pragma once
#include <QWidget>
#include "main.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::vector<std::unique_ptr<class Vec3Editor>> vec3Editors;
};

mercurial