2025-08-20 23:06:28 +08:00
|
|
|
#ifndef P02_SHIELDPAGE_H
|
|
|
|
|
#define P02_SHIELDPAGE_H
|
|
|
|
|
|
|
|
|
|
#include <QWidget>
|
2025-09-15 22:28:43 +08:00
|
|
|
#include <QCheckBox>
|
|
|
|
|
#include <DataCenter/DataCenter.h>
|
2025-09-28 17:14:34 +08:00
|
|
|
|
2025-08-20 23:06:28 +08:00
|
|
|
namespace Ui {
|
|
|
|
|
class P02_ShieldPage;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class P02_ShieldPage : public QWidget
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit P02_ShieldPage(QWidget *parent = nullptr);
|
|
|
|
|
~P02_ShieldPage();
|
2025-09-15 22:28:43 +08:00
|
|
|
void WinInit();
|
|
|
|
|
void WriteShield(uint8_t var,uint8_t Index,bool Checked);
|
2025-09-28 17:14:34 +08:00
|
|
|
|
2025-10-14 20:05:38 +08:00
|
|
|
|
2025-09-15 22:28:43 +08:00
|
|
|
private slots:
|
|
|
|
|
void on_But_Shield_0_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_1_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_2_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_3_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_4_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_5_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_6_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_7_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_8_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_9_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_10_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_11_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_12_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_13_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_14_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_15_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_16_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_17_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_18_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_19_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_20_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_21_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_22_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_23_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_24_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_25_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_26_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_27_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_28_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_29_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_30_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_31_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_32_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_33_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_34_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_35_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_36_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_37_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_38_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_39_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_40_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_41_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_42_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_43_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_44_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_45_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_46_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_47_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_48_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_49_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_50_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_51_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_52_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_53_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_54_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_55_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_56_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_57_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_58_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_59_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_60_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_61_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_62_clicked(bool checked);
|
|
|
|
|
void on_But_Shield_63_clicked(bool checked);
|
2025-10-21 11:11:52 +08:00
|
|
|
|
2025-09-15 22:28:43 +08:00
|
|
|
void UIRefreshTimeOut();
|
2025-08-20 23:06:28 +08:00
|
|
|
private:
|
|
|
|
|
Ui::P02_ShieldPage *ui;
|
2025-09-15 22:28:43 +08:00
|
|
|
OpcUaManager* m_OpcUaManager; // 全局唯一OPC实例
|
|
|
|
|
DataCenter* m_DataCenter; // 全局唯一DataCenter实例
|
|
|
|
|
QStringList unShieldText;
|
|
|
|
|
QStringList ShieldText;
|
|
|
|
|
QStringList TrueColor;
|
|
|
|
|
QStringList FalseColor;
|
2025-10-14 20:05:38 +08:00
|
|
|
uint32_t Status1,Status2,Shield1,Shield2;
|
|
|
|
|
|
2025-08-20 23:06:28 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // P02_SHIELDPAGE_H
|