--- a/src/ui/polygonobjecteditor.h Sun Mar 13 14:53:14 2022 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,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); - void clear(); -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<Vec3Editor>> widgets; - std::optional<QSplitter> splitter; - class QFormLayout* formLayout = nullptr; -};