Sun, 12 Sep 2021 13:50:28 +0300
Add documentation
96 | 1 | #pragma once |
2 | #include "basetool.h" | |
126
a7c720aff97c
moved ObjectEditor under SelectTool
Teemu Piippo <teemu@hecknology.net>
parents:
121
diff
changeset
|
3 | #include "ui/objecteditor.h" |
96 | 4 | |
5 | class SelectTool : public BaseTool | |
6 | { | |
7 | Q_OBJECT | |
8 | ||
9 | public: | |
126
a7c720aff97c
moved ObjectEditor under SelectTool
Teemu Piippo <teemu@hecknology.net>
parents:
121
diff
changeset
|
10 | Q_INVOKABLE SelectTool(Model* model, QObject* parent = nullptr); |
96 | 11 | |
107
02f142b399b1
Move selection logic into select tool
Teemu Piippo <teemu@hecknology.net>
parents:
96
diff
changeset
|
12 | QString name() const override; |
02f142b399b1
Move selection logic into select tool
Teemu Piippo <teemu@hecknology.net>
parents:
96
diff
changeset
|
13 | QString toolTip() const override; |
121
000781318c36
added right click support for draw tool
Teemu Piippo <teemu@hecknology.net>
parents:
111
diff
changeset
|
14 | bool mouseClick(Document*, Canvas*, QMouseEvent*) override; |
126
a7c720aff97c
moved ObjectEditor under SelectTool
Teemu Piippo <teemu@hecknology.net>
parents:
121
diff
changeset
|
15 | QWidget* toolWidget() override; |
a7c720aff97c
moved ObjectEditor under SelectTool
Teemu Piippo <teemu@hecknology.net>
parents:
121
diff
changeset
|
16 | void selectionChanged(const QSet<ldraw::id_t> &newSelection) override; |
a7c720aff97c
moved ObjectEditor under SelectTool
Teemu Piippo <teemu@hecknology.net>
parents:
121
diff
changeset
|
17 | ObjectEditor objectEditor; |
96 | 18 | }; |