src/ui/canvas.h

changeset 57
5c0005f63319
parent 51
1a9eac27698d
child 61
4585d8d7a7ec
equal deleted inserted replaced
56:fad4a5dd8dee 57:5c0005f63319
14 void handleSelectionChange(const QSet<ldraw::Id>& selectedIds, const QSet<ldraw::Id>& deselectedIds); 14 void handleSelectionChange(const QSet<ldraw::Id>& selectedIds, const QSet<ldraw::Id>& deselectedIds);
15 protected: 15 protected:
16 void mouseMoveEvent(QMouseEvent* event) override; 16 void mouseMoveEvent(QMouseEvent* event) override;
17 void mousePressEvent(QMouseEvent* event) override; 17 void mousePressEvent(QMouseEvent* event) override;
18 void mouseReleaseEvent(QMouseEvent* event) override; 18 void mouseReleaseEvent(QMouseEvent* event) override;
19 void paintGL() override;
19 signals: 20 signals:
20 void newStatusText(const QString& newStatusText); 21 void newStatusText(const QString& newStatusText);
21 void selectionChanged(const QSet<ldraw::Id>& newSelection); 22 void selectionChanged(const QSet<ldraw::Id>& newSelection);
22 private: 23 private:
23 QPoint lastMousePosition; 24 QPoint lastMousePosition;
25 std::optional<glm::vec3> worldPosition;
24 int totalMouseMove = 0; 26 int totalMouseMove = 0;
25 QSet<ldraw::Id> selection; 27 QSet<ldraw::Id> selection;
26 }; 28 };

mercurial