|
1 #pragma once |
|
2 #include <QDialog> |
|
3 #include "vec3editor.h" |
|
4 |
|
5 namespace Ui |
|
6 { |
|
7 class MultiplyFactorDialog; |
|
8 } |
|
9 |
|
10 class MultiplyFactorDialog : public QDialog |
|
11 { |
|
12 Q_OBJECT |
|
13 public: |
|
14 explicit MultiplyFactorDialog(const glm::vec3& baseVector = glm::vec3{}, QWidget *parent = nullptr); |
|
15 ~MultiplyFactorDialog(); |
|
16 glm::vec3 value() const; |
|
17 private: |
|
18 Q_SLOT void updatePreview(); |
|
19 std::unique_ptr<Ui::MultiplyFactorDialog> ui; |
|
20 const glm::vec3 baseVector; |
|
21 Vec3Editor preview; |
|
22 }; |