src/dialogs/subfilereferenceeditor.h

changeset 1386
c59dac18b06b
parent 1326
69a90bd2dba2
child 1391
5fa4bf1fc781
equal deleted inserted replaced
1384:4c134708be05 1386:c59dac18b06b
18 18
19 #pragma once 19 #pragma once
20 #include <QDialog> 20 #include <QDialog>
21 #include "../main.h" 21 #include "../main.h"
22 22
23 class QDoubleSpinBox;
24
23 class SubfileReferenceEditor : public QDialog 25 class SubfileReferenceEditor : public QDialog
24 { 26 {
25 Q_OBJECT 27 Q_OBJECT
26 28
27 public: 29 public:
29 ~SubfileReferenceEditor(); 31 ~SubfileReferenceEditor();
30 32
31 void accept() override; 33 void accept() override;
32 void setPrimitivesTree(class PrimitiveManager* primitives); 34 void setPrimitivesTree(class PrimitiveManager* primitives);
33 35
36 private slots:
37 void scalingChanged();
38 void matrixChanged();
39
34 private: 40 private:
41 QDoubleSpinBox* matrixCell(int row, int column) const;
42 double matrixScaling(int column) const;
43 QPair<int, int> cellPosition(QDoubleSpinBox* cellWidget);
44 QDoubleSpinBox* vectorElement(int index);
45
35 class Ui_SubfileReferenceEditor& ui; 46 class Ui_SubfileReferenceEditor& ui;
36 class LDSubfileReference* const reference; 47 class LDSubfileReference* const reference;
37 LDColor color; 48 LDColor color;
38 }; 49 };

mercurial