19 #include <QMouseEvent> |
19 #include <QMouseEvent> |
20 #include "canvas.h" |
20 #include "canvas.h" |
21 #include "grid.h" |
21 #include "grid.h" |
22 #include "lddocument.h" |
22 #include "lddocument.h" |
23 #include "primitives.h" |
23 #include "primitives.h" |
|
24 #include "algorithms/geometry.h" |
|
25 #include "generics/ring.h" |
24 |
26 |
25 Canvas::Canvas(LDDocument* document, QWidget* parent) : |
27 Canvas::Canvas(LDDocument* document, QWidget* parent) : |
26 GLRenderer {document, parent}, |
28 GLRenderer {document, parent}, |
27 m_document {*document}, |
29 m_document {*document}, |
28 m_currentEditMode {AbstractEditMode::createByType (this, EditModeType::Select)} {} |
30 m_currentEditMode {AbstractEditMode::createByType (this, EditModeType::Select)} {} |