11 public: |
11 public: |
12 PolygonObjectEditor(Document* document, ldraw::id_t id); |
12 PolygonObjectEditor(Document* document, ldraw::id_t id); |
13 ~PolygonObjectEditor(); |
13 ~PolygonObjectEditor(); |
14 ldraw::id_t objectId() const; |
14 ldraw::id_t objectId() const; |
15 void setObjectId(ldraw::id_t id); |
15 void setObjectId(ldraw::id_t id); |
|
16 void clear(); |
16 private: |
17 private: |
17 void buildWidgets(); |
18 void buildWidgets(); |
18 void setupPointWidget(int n); |
19 void setupPointWidget(int n); |
19 Q_SLOT void pointChanged(const glm::vec3& value); |
20 Q_SLOT void pointChanged(const glm::vec3& value); |
20 Document* document; |
21 Document* document; |
21 ldraw::id_t storedObjectId; |
22 ldraw::id_t storedObjectId; |
22 std::vector<std::unique_ptr<QWidget>> widgets; |
23 std::vector<std::unique_ptr<Vec3Editor>> widgets; |
23 std::optional<QSplitter> splitter; |
24 std::optional<QSplitter> splitter; |
|
25 class QFormLayout* formLayout = nullptr; |
24 }; |
26 }; |