Wed, 25 Mar 2020 16:07:20 +0200
added PolygonObject and refactored away a lot of boilerplate
#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; };