src/CalibrateiSpindel.h

changeset 506
ea07f6c97a69
parent 505
7ae4d022cf8f
child 510
080524ab2fe8
equal deleted inserted replaced
505:7ae4d022cf8f 506:ea07f6c97a69
1 #ifndef _CALIBRATEISPINDEL_H 1 #ifndef _CALIBRATEISPINDEL_H
2 #define _CALIBRATEISPINDEL_H 2 #define _CALIBRATEISPINDEL_H
3 3
4 #include <QDialog> 4 #include "MainWindow.h"
5 // #include <QDoubleSpinBox> 5
6 // #include <QCheckBox>
7 // #include <QComboBox>
8 // #include <QRadioButton>
9 // #include <QLineEdit>
10 #include <QDialogButtonBox>
11 #include <QJsonDocument>
12 6
13 struct Calibrate { 7 struct Calibrate {
14 double sg; 8 double sg;
15 double plato; 9 double plato;
16 double angle; 10 double angle;
41 void cell_Changed(int nRow, int nCol); 35 void cell_Changed(int nRow, int nCol);
42 36
43 private: 37 private:
44 Ui::CalibrateiSpindel *ui; 38 Ui::CalibrateiSpindel *ui;
45 QString _node, _alias, _data_old, _data_new; 39 QString _node, _alias, _data_old, _data_new;
46 int recno, totaldata; 40 QChartView *chartView;
41 QChart *chart;
42 QLineSeries *new_plot, *old_plot;
43 int recno, oldtotal, newtotal;
47 QJsonDocument data; 44 QJsonDocument data;
48 bool ignoreChanges = false; 45 bool ignoreChanges = false;
49 bool textIsChanged = false; 46 bool textIsChanged = false;
50 double Old[4], New[4]; 47 double Old[4], New[4];
51 Calibrate oCal[12], nCal[12]; 48 Calibrate oCal[12], nCal[12];

mercurial