widgets/matrixeditor.h

changeset 253
8b994c917f69
parent 252
da4876bfd822
equal deleted inserted replaced
252:da4876bfd822 253:8b994c917f69
1 #pragma once 1 #pragma once
2 #include <QWidget> 2 #include <QWidget>
3 #include <glm/glm.hpp> 3 #include <glm/glm.hpp>
4
5 namespace Ui {
6 class MatrixEditor;
7 }
8 4
9 class MatrixEditor : public QWidget 5 class MatrixEditor : public QWidget
10 { 6 {
11 Q_OBJECT 7 Q_OBJECT
12 public: 8 public:
19 void valueChanged(const glm::mat4& value); 15 void valueChanged(const glm::mat4& value);
20 private: 16 private:
21 constexpr int matrixSize() const; 17 constexpr int matrixSize() const;
22 Q_SLOT void multiplyButtonPressed(); 18 Q_SLOT void multiplyButtonPressed();
23 class QDoubleSpinBox* spinboxes[4][3]; 19 class QDoubleSpinBox* spinboxes[4][3];
24 Ui::MatrixEditor *ui; 20 class Ui_MatrixEditor *ui;
25 }; 21 };
26 22
27 constexpr int MatrixEditor::matrixSize() const 23 constexpr int MatrixEditor::matrixSize() const
28 { 24 {
29 return 4; 25 return 4;

mercurial