|
1 #include <QMouseEvent> |
1 #include <stdexcept> |
2 #include <stdexcept> |
2 #include "abstracteditmode.h" |
3 #include "abstracteditmode.h" |
3 #include "selectmode.h" |
4 #include "selectmode.h" |
4 #include "drawmode.h" |
5 #include "drawmode.h" |
5 #include "circlemode.h" |
6 #include "circlemode.h" |
6 #include "magicwandmode.h" |
7 #include "magicwandmode.h" |
7 #include "../mainWindow.h" |
8 #include "../mainWindow.h" |
|
9 #include "../glRenderer.h" |
8 |
10 |
9 AbstractEditMode::AbstractEditMode (GLRenderer* renderer) : |
11 AbstractEditMode::AbstractEditMode (GLRenderer* renderer) : |
10 _renderer (renderer) {} |
12 _renderer (renderer) {} |
|
13 |
|
14 AbstractEditMode::~AbstractEditMode() {} |
11 |
15 |
12 AbstractEditMode* AbstractEditMode::createByType (GLRenderer* renderer, EditModeType type) |
16 AbstractEditMode* AbstractEditMode::createByType (GLRenderer* renderer, EditModeType type) |
13 { |
17 { |
14 switch (type) |
18 switch (type) |
15 { |
19 { |