新版布局

This commit is contained in:
xu
2026-10-16 09:06:03 +08:00
parent e5efdea06e
commit 1ec93e42cb
37 changed files with 1785 additions and 977 deletions
+6 -9
View File
@@ -11,7 +11,6 @@ class ParamControl;
class QPushButton;
class QLabel;
class QVBoxLayout;
class QTimer;
// ===================== 洗消页(⑨消除作业 / ⑩消毒作业 共用) =====================
// 自包含页面:三列骨架、中央洗消卡、右侧启停与参数区、底部指示灯条都在本文件里。
@@ -30,10 +29,10 @@ private slots:
void onBack();
void onFactory();
void refresh();
void rotateFaults();
private:
void updateGating();
void updateLeds(); // 底栏指示灯(启停 / 泵 / 液位低 / 球阀 / 系统故障)
void resetFactory();
void refreshPumpValues(); // 刷新底部三个泵的数值
QString washModeTag() const; // "clean" / "disinfect"
@@ -58,15 +57,17 @@ private:
ParamControl* m_foamPercent = nullptr;
ParamControl* m_airFlow = nullptr;
// 底部指示灯
// 底部指示灯(第一行)
LedIndicator* m_ledRun = nullptr;
LedIndicator* m_ledPlunger = nullptr;
LedIndicator* m_ledAir = nullptr;
LedIndicator* m_ledLeaf = nullptr;
LedIndicator* m_ledLevel = nullptr;
LedIndicator* m_ledD1 = nullptr;
LedIndicator* m_ledD2 = nullptr;
LedIndicator* m_ledFault = nullptr;
// 底部第二行:两路液位低(协议里 A_LiquidLevel_Low / B_LiquidLevel_Low 本就是两个位)
LedIndicator* m_ledLevelA = nullptr;
LedIndicator* m_ledLevelB = nullptr;
// 底部第二行:三个泵的当前流量值
QLabel* m_valPlunger = nullptr;
@@ -77,10 +78,6 @@ private:
int m_fMode = -1, m_fLevelA = -1, m_fLevelFoam = -1;
int m_fFlowA = -1, m_fFlowB = -1, m_fGasFlow = -1;
int m_fPress = -1, m_fAirPress = -1, m_fFoam = -1;
int m_fAirFault = -1, m_fPlungerFault = -1;
QTimer* m_faultTimer = nullptr;
int m_faultIndex = 0;
};
#endif // WASHPAGE_H