| 1 #pragma once |
|
| 2 #include <QPushButton> |
|
| 3 #include "basetool.h" |
|
| 4 #include "widgets/matrixeditor.h" |
|
| 5 |
|
| 6 class TransformTool : public BaseTool |
|
| 7 { |
|
| 8 Q_OBJECT |
|
| 9 public: |
|
| 10 Q_INVOKABLE TransformTool(Document *document); |
|
| 11 virtual QString name() const override; |
|
| 12 virtual QString toolTip() const override; |
|
| 13 void selectionChanged(const QSet<ldraw::id_t> &newSelection) override; |
|
| 14 QWidget *toolWidget() override; |
|
| 15 QString iconName() const override; |
|
| 16 private: |
|
| 17 Q_SLOT void applyButtonClicked(); |
|
| 18 MatrixEditor* matrixEditor; |
|
| 19 QPushButton* button; |
|
| 20 QWidget* widget; |
|
| 21 QSet<ldraw::id_t> selection; |
|
| 22 }; |
|