1097:9a9e6ce0c5dc | 1098:0b837bed121d |
---|---|
18 | 18 |
19 #include <QMouseEvent> | 19 #include <QMouseEvent> |
20 #include "selectMode.h" | 20 #include "selectMode.h" |
21 #include "../glRenderer.h" | 21 #include "../glRenderer.h" |
22 #include "../mainwindow.h" | 22 #include "../mainwindow.h" |
23 #include "../glRenderer.h" | 23 #include "../ldDocument.h" |
24 | 24 |
25 SelectMode::SelectMode (GLRenderer* renderer) : | 25 SelectMode::SelectMode (GLRenderer* renderer) : |
26 Super (renderer), | 26 Super (renderer), |
27 m_rangepick (false) {} | 27 m_rangepick (false) {} |
28 | 28 |
114 if (Super::mouseDoubleClicked (ev)) | 114 if (Super::mouseDoubleClicked (ev)) |
115 return true; | 115 return true; |
116 | 116 |
117 if (ev->buttons() & Qt::LeftButton) | 117 if (ev->buttons() & Qt::LeftButton) |
118 { | 118 { |
119 renderer()->document()->clearSelection(); | 119 currentDocument()->clearSelection(); |
120 LDObject* obj = renderer()->pickOneObject (ev->x(), ev->y()); | 120 LDObject* obj = renderer()->pickOneObject (ev->x(), ev->y()); |
121 | 121 |
122 if (obj) | 122 if (obj) |
123 { | 123 { |
124 // TODO: | 124 // TODO: |