Wed, 09 Mar 2022 14:07:58 +0200
Simplify parsing (removed header parsing)
Removed ldraw::Comment (MetaCommand handles line type 0)
#pragma once #include <QWidget> #include <QSplitter> #include "main.h" #include "../widgets/vec3editor.h" class Document; class PolygonObjectEditor : public QWidget { public: PolygonObjectEditor(Document* document, ldraw::id_t id); ~PolygonObjectEditor(); ldraw::id_t objectId() const; void setObjectId(ldraw::id_t id); private: void buildWidgets(); void setupPointWidget(int n); Q_SLOT void pointChanged(const glm::vec3& value); Document* document; ldraw::id_t storedObjectId; std::vector<std::unique_ptr<QWidget>> widgets; std::optional<QSplitter> splitter; };