src/ui/objecteditor.h

Sun, 29 Aug 2021 20:05:24 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Sun, 29 Aug 2021 20:05:24 +0300
changeset 124
f9f308c8e0c5
parent 81
62373840e33a
child 152
03f8e6d42e13
permissions
-rw-r--r--

esc with draw mode now clears the polygon

#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