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 }; |