|
1 /* |
|
2 * LDForge: LDraw parts authoring CAD |
|
3 * Copyright (C) 2013, 2014 Santeri Piippo |
|
4 * |
|
5 * This program is free software: you can redistribute it and/or modify |
|
6 * it under the terms of the GNU General Public License as published by |
|
7 * the Free Software Foundation, either version 3 of the License, or |
|
8 * (at your option) any later version. |
|
9 * |
|
10 * This program is distributed in the hope that it will be useful, |
|
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 * GNU General Public License for more details. |
|
14 * |
|
15 * You should have received a copy of the GNU General Public License |
|
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
17 */ |
|
18 |
|
19 #pragma once |
|
20 #include "abstractEditMode.h" |
|
21 |
|
22 class SelectMode : public AbstractSelectMode |
|
23 { |
|
24 QPoint _rangeStart; |
|
25 bool _rangepick; |
|
26 bool _addpick; |
|
27 |
|
28 DEFINE_CLASS (SelectMode, AbstractSelectMode) |
|
29 |
|
30 public: |
|
31 SelectMode (GLRenderer* renderer); |
|
32 |
|
33 virtual void render (QPainter& painter) const override; |
|
34 virtual bool mousePressed (QMouseEvent* ev); |
|
35 virtual bool mouseReleased (MouseEventData const& data) override; |
|
36 virtual bool mouseDoubleClicked (QMouseEvent* ev); |
|
37 virtual bool mouseMoved (QMouseEvent*) override; |
|
38 virtual EditModeType type() const override; |
|
39 }; |