src/ui/polygonobjecteditor.h

changeset 89
7abaf1d64719
parent 86
4bec0525ef1b
child 100
43ce3672648a
equal deleted inserted replaced
88:14e51640c189 89:7abaf1d64719
11 PolygonObjectEditor(Model* model, ldraw::id_t id, QWidget* parent = nullptr); 11 PolygonObjectEditor(Model* model, ldraw::id_t id, QWidget* parent = nullptr);
12 ~PolygonObjectEditor(); 12 ~PolygonObjectEditor();
13 ldraw::id_t objectId() const; 13 ldraw::id_t objectId() const;
14 void setObjectId(ldraw::id_t id); 14 void setObjectId(ldraw::id_t id);
15 private: 15 private:
16 Q_SLOT void vectorChanged(const glm::vec3& value); 16 void buildWidgets();
17 void updateNumRows(); 17 void setupPointWidget(int n);
18 Q_SLOT void pointChanged(const glm::vec3& value);
18 Model* model; 19 Model* model;
19 ldraw::id_t storedObjectId; 20 ldraw::id_t storedObjectId;
20 std::optional<Vec3Editor> vec3Editors[4]; 21 std::vector<std::unique_ptr<QWidget>> widgets;
22 std::optional<class QSplitter> splitter;
21 }; 23 };

mercurial