From bc7f1c4e028e69be51079b59dae4ae5c4d43f5bb Mon Sep 17 00:00:00 2001
From: chenluhua1980 <Chenluhua@qq.com>
Date: 星期六, 31 一月 2026 21:54:56 +0800
Subject: [PATCH] 1.状态指示图,目前灰色表示掉线,绿色表示在线。增加Slot的小点表示有没有料,及加工状态 。 2.增加图示

---
 SourceCode/Bond/Servo/CPageGraph1.h |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/SourceCode/Bond/Servo/CPageGraph1.h b/SourceCode/Bond/Servo/CPageGraph1.h
index ffd2aeb..1d6f9b8 100644
--- a/SourceCode/Bond/Servo/CPageGraph1.h
+++ b/SourceCode/Bond/Servo/CPageGraph1.h
@@ -2,6 +2,11 @@
 #include "ServoGraph.h"
 #include "ServoCommo.h"
 
+namespace SERVO {
+	class CEquipment;
+	class CGlass;
+}
+
 enum DeviceStatus {
 	ONLINE,       // 鍦ㄧ嚎
 	OFFLINE,      // 绂荤嚎
@@ -38,12 +43,20 @@
 	POINT LoadArmOffset(const std::string& armName);
 	void SaveArmOffset(const std::string& armName, const POINT& pt);
 
+	void UpdateSlotBars();
+	void BuildSlotColors(SERVO::CEquipment* pEq, std::vector<COLORREF>& colors);
+	COLORREF GetSlotColor(SERVO::CGlass* pGlass, BOOL isProcessing);
+
+	void ApplySlotBarTestPattern(int mode);
+	void UpdateLegendPosition();
+
 private:
 	IObserver* m_pObserver;
 	CServoGraph* m_pGraph;
 	BOOL m_bIsRobotMoving;
 	COLORREF m_crBkgnd;
 	HBRUSH m_hbrBkgnd;
+	int m_slotBarTestMode;
 
 	// ===== 鏈哄櫒浜哄姩鐢荤浉鍏虫垚鍛樺彉閲� =====
 

--
Gitblit v1.9.3