5 class SelectTool : public BaseTool |
5 class SelectTool : public BaseTool |
6 { |
6 { |
7 Q_OBJECT |
7 Q_OBJECT |
8 |
8 |
9 public: |
9 public: |
10 Q_INVOKABLE SelectTool(Model* model, QObject* parent = nullptr); |
10 Q_INVOKABLE SelectTool(Model* model, QWidget* parent = nullptr); |
11 |
|
12 QString name() const override; |
11 QString name() const override; |
13 QString toolTip() const override; |
12 QString toolTip() const override; |
14 bool mouseClick(Document*, Canvas*, QMouseEvent*) override; |
13 bool mouseClick(Document*, Canvas*, QMouseEvent*) override; |
15 QWidget* toolWidget() override; |
14 QWidget* toolWidget() override; |
16 void selectionChanged(const QSet<ldraw::id_t> &newSelection) override; |
15 void selectionChanged(const QSet<ldraw::id_t> &newSelection) override; |
17 ObjectEditor objectEditor; |
16 ObjectEditor* objectEditor; |
18 }; |
17 }; |