src/ui/canvas.h

changeset 104
cd4df75924b7
parent 73
97df974b5ed5
child 105
6ca6e8c647d4
--- a/src/ui/canvas.h	Sun May 16 22:41:00 2021 +0300
+++ b/src/ui/canvas.h	Mon Jul 19 19:28:16 2021 +0300
@@ -7,6 +7,7 @@
 {
 	Q_OBJECT
 public:
+	struct MouseClickInfo;
 	Canvas(
 		Model* model,
 		DocumentManager* documents,
@@ -23,6 +24,7 @@
 signals:
 	void newStatusText(const QString& newStatusText);
 	void selectionChanged(const QSet<ldraw::id_t>& newSelection);
+	void mouseClick(const MouseClickInfo& info);
 private:
 	void updateGridMatrix();
 	glm::vec3 cameraVector() const;
@@ -35,3 +37,8 @@
 	int totalMouseMove = 0;
 	QSet<ldraw::id_t> selection;
 };
+
+struct Canvas::MouseClickInfo
+{
+	bool click;
+};

mercurial