src/ui/objecteditor.h

Wed, 09 Mar 2022 14:22:22 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Wed, 09 Mar 2022 14:22:22 +0200
changeset 177
f69d53c053df
parent 152
03f8e6d42e13
child 178
a23024fc98e0
permissions
-rw-r--r--

Show type of object in the object editor

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

class Document;

class ObjectEditor : public QWidget
{
	Q_OBJECT
public:
	explicit ObjectEditor(Document* document, ldraw::id_t id = ldraw::NULL_ID);
	void setObjectId(ldraw::id_t id);
private:
	Document* const document;
	ldraw::id_t objectId = ldraw::NULL_ID;
	std::optional<PolygonObjectEditor> polygonEditor;
	class QLabel* objectTypeNameLabel;
	class QLabel* objectTypeIconLabel;
};

mercurial