src/ui/objecteditor.h

Sat, 05 Mar 2022 13:55:12 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Sat, 05 Mar 2022 13:55:12 +0200
changeset 165
f6eab2bd46c2
parent 152
03f8e6d42e13
child 177
f69d53c053df
permissions
-rw-r--r--

fixed the grid not being black on startup if settings has bright background color

#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;
};

mercurial