src/ui/objecteditor.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 152
03f8e6d42e13
permissions
-rw-r--r--

added doublespinbox

#pragma once
#include <QWidget>
#include "../main.h"
#include "../model.h"
#include "polygonobjecteditor.h"

class ObjectEditor : public QWidget
{
	Q_OBJECT
public:
	explicit ObjectEditor(Model* model, ldraw::id_t id = ldraw::NULL_ID, QWidget* parent = nullptr);
	void setObjectId(ldraw::id_t id);
private:
	Model* const model;
	ldraw::id_t objectId = ldraw::NULL_ID;
	std::optional<PolygonObjectEditor> polygonEditor;
};

mercurial