You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

160 lines
4.6 KiB
C

1 year ago
#ifndef MAINPAGE_TEMP_H
#define MAINPAGE_TEMP_H
#include <QWidget>
#include <QLabel>
#include <QPushButton>
#include <QComboBox>
#include <uart1.h>
extern QString wireless_name[60];
class mainpage_Temp : public QWidget
{
Q_OBJECT
public:
explicit mainpage_Temp(QWidget *parent = nullptr);
private:
QLabel *label_disconnect_wuxian;//无线测温未连接
QLabel *label_6_1;//页面6无线测温label1
QLabel *label_6_2;
QLabel *label_6_3;
QLabel *label_6_4;
QLabel *label_6_5;
QLabel *label_6_6;
QLabel *label_6_7;
QLabel *label_6_8;
QLabel *label_6_9;
QLabel *label_6_10;
QLabel *label_6_11;
QLabel *label_6_12;
QLabel *label_6_13;
QLabel *label_6_14;
QLabel *label_6_15;
QLabel *label_6_16;
QLabel *label_6_17;
QLabel *label_6_18;
QLabel *label_6_19;
QLabel *label_6_20;
QLabel *label_6_21;
QLabel *label_6_22;
QLabel *label_6_23;
QLabel *label_6_24;
QLabel *label_6_25;
QLabel *label_6_26;
QLabel *label_6_27;
QLabel *label_6_28;
QLabel *label_6_29;
QLabel *label_6_30;
QLabel *label_6_31;//页面6无线测温label31
QLabel *label_6_32;
QLabel *label_6_33;
QLabel *label_6_34;
QLabel *label_6_35;
QLabel *label_6_36;
QLabel *label_6_37;
QLabel *label_6_38;
QLabel *label_6_39;
QLabel *label_6_40;
QLabel *label_6_41;
QLabel *label_6_42;
QLabel *label_6_43;
QLabel *label_6_44;
QLabel *label_6_45;
QLabel *label_6_46;
QLabel *label_6_47;
QLabel *label_6_48;
QLabel *label_6_49;
QLabel *label_6_50;
QLabel *label_6_51;
QLabel *label_6_52;
QLabel *label_6_53;
QLabel *label_6_54;
QLabel *label_6_55;
QLabel *label_6_56;
QLabel *label_6_57;
QLabel *label_6_58;
QLabel *label_6_59;
QLabel *label_6_60;
QPushButton *button6_1;//页面6无线测温上一页按钮
QPushButton *button6_2;//页面6无线测温下一页按钮
QLabel* label_6_array[60];
float Wireless_Temperature_data[60];
float Wireless_Temperature_1_3;
float Wireless_Temperature_2_3;
float Wireless_Temperature_3_3;
float Wireless_Temperature_4_3;
float Wireless_Temperature_5_3;
float Wireless_Temperature_6_3;
float Wireless_Temperature_7_3;
float Wireless_Temperature_8_3;
float Wireless_Temperature_9_3;
float Wireless_Temperature_10_3;
float Wireless_Temperature_11_3;
float Wireless_Temperature_12_3;
float Wireless_Temperature_13_3;
float Wireless_Temperature_14_3;
float Wireless_Temperature_15_3;
float Wireless_Temperature_16_3;
float Wireless_Temperature_17_3;
float Wireless_Temperature_18_3;
float Wireless_Temperature_19_3;
float Wireless_Temperature_20_3;
float Wireless_Temperature_21_3;
float Wireless_Temperature_22_3;
float Wireless_Temperature_23_3;
float Wireless_Temperature_24_3;
float Wireless_Temperature_25_3;
float Wireless_Temperature_26_3;
float Wireless_Temperature_27_3;
float Wireless_Temperature_28_3;
float Wireless_Temperature_29_3;
float Wireless_Temperature_30_3;
float Wireless_Temperature_31_3;
float Wireless_Temperature_32_3;
float Wireless_Temperature_33_3;
float Wireless_Temperature_34_3;
float Wireless_Temperature_35_3;
float Wireless_Temperature_36_3;
float Wireless_Temperature_37_3;
float Wireless_Temperature_38_3;
float Wireless_Temperature_39_3;
float Wireless_Temperature_40_3;
float Wireless_Temperature_41_3;
float Wireless_Temperature_42_3;
float Wireless_Temperature_43_3;
float Wireless_Temperature_44_3;
float Wireless_Temperature_45_3;
float Wireless_Temperature_46_3;
float Wireless_Temperature_47_3;
float Wireless_Temperature_48_3;
float Wireless_Temperature_49_3;
float Wireless_Temperature_50_3;
float Wireless_Temperature_51_3;
float Wireless_Temperature_52_3;
float Wireless_Temperature_53_3;
float Wireless_Temperature_54_3;
float Wireless_Temperature_55_3;
float Wireless_Temperature_56_3;
float Wireless_Temperature_57_3;
float Wireless_Temperature_58_3;
float Wireless_Temperature_59_3;
float Wireless_Temperature_60_3;
QComboBox *comboBox_6_1;
int count=0;//无线测温地址计数
signals:
void sigPageFiveSend();
void sigDispWirelessAlarm(bool);
void sigCountSend(int);
private slots:
void onPageFiveDataUpdate();
void button6_1_clicked();//页面6无线测温上一页按钮槽函数
void button6_2_clicked();//页面6无线测温下一页按钮槽函数
void onWirelessStateCheck();
};
#endif // MAINPAGE_TEMP_H