59 lines
2.0 KiB
C++
59 lines
2.0 KiB
C++
#ifndef THERMALWIDGET_H
|
|
#define THERMALWIDGET_H
|
|
|
|
#include <QWidget>
|
|
#include <QLabel>
|
|
#include <QLineEdit>
|
|
#include <QCheckBox>
|
|
#include <QPushButton>
|
|
|
|
struct QuadraticFitResult {
|
|
float a;
|
|
float b;
|
|
float c;
|
|
};
|
|
|
|
|
|
class ThermalWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
ThermalWidget(QWidget *parent = 0);
|
|
~ThermalWidget();
|
|
|
|
protected:
|
|
|
|
public slots:
|
|
|
|
private slots:
|
|
void fit_test();
|
|
void deal_checkbox_data();
|
|
void redo_deal_checkbox_data();
|
|
|
|
private:
|
|
QLineEdit *m_ttlineEdit1, *m_ttlineEdit2, *m_ttlineEdit3, *m_ttlineEdit4, *m_ttlineEdit5, *m_ttlineEdit6, *m_ttlineEdit7, *m_ttlineEdit8, *m_ttlineEdit9, *m_ttlineEdit10,
|
|
*m_ttlineEdit11, *m_ttlineEdit12, *m_ttlineEdit13, *m_ttlineEdit14, *m_ttlineEdit15, *m_ttlineEdit16, *m_ttlineEdit17, *m_ttlineEdit18;
|
|
QLineEdit *m_rtlineEdit1, *m_rtlineEdit2, *m_rtlineEdit3, *m_rtlineEdit4, *m_rtlineEdit5, *m_rtlineEdit6, *m_rtlineEdit7, *m_rtlineEdit8, *m_rtlineEdit9, *m_rtlineEdit10,
|
|
*m_rtlineEdit11, *m_rtlineEdit12, *m_rtlineEdit13, *m_rtlineEdit14, *m_rtlineEdit15, *m_rtlineEdit16, *m_rtlineEdit17, *m_rtlineEdit18;
|
|
QLabel *m_label;
|
|
QCheckBox *checkBox1, *checkBox2, *checkBox3, *checkBox4, *checkBox5, *checkBox6, *checkBox7, *checkBox8, *checkBox9, *checkBox10, *checkBox11, *checkBox12, *checkBox13,
|
|
*checkBox14, *checkBox15, *checkBox16, *checkBox17, *checkBox18;
|
|
QLabel *tlabel1, *tlabel2, *tlabel3, *tlabel4, *tlabel5, *tlabel6, *tlabel7, *tlabel8, *tlabel9, *tlabel10, *tlabel11, *tlabel12, *tlabel13, *tlabel14, *tlabel15, *tlabel16,
|
|
*tlabel17, *tlabel18;
|
|
QPushButton *saveButton, *exitButton, *deal1Button,*deal2Button;
|
|
double thermal4, thermal5, thermal8, thermal10;
|
|
|
|
QString start4string, start5string, start8string, start10string;
|
|
QString qua4string, qua5string, qua8string, qua10string;
|
|
QString area4string, area5string, area8string, area10string;
|
|
|
|
QuadraticFitResult result1, result2;
|
|
|
|
QuadraticFitResult quadraticFit(const QVector<QPointF>& points);
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // THERMALWIDGET_H
|