From 656228d05e6fa5200ae41621d2250de210d95600 Mon Sep 17 00:00:00 2001
From: chenluhua1980 <Chenluhua@qq.com>
Date: 星期二, 03 二月 2026 15:34:43 +0800
Subject: [PATCH] 1.Slot小方块大小用两种配置,LoadPort和其它的分开

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

diff --git a/SourceCode/Bond/Servo/CPageGraph1.h b/SourceCode/Bond/Servo/CPageGraph1.h
index ffd2aeb..fac346d 100644
--- a/SourceCode/Bond/Servo/CPageGraph1.h
+++ b/SourceCode/Bond/Servo/CPageGraph1.h
@@ -1,6 +1,12 @@
 锘�#pragma once
 #include "ServoGraph.h"
 #include "ServoCommo.h"
+#include "CSlotTableCtrl.h"
+
+namespace SERVO {
+	class CEquipment;
+	class CGlass;
+}
 
 enum DeviceStatus {
 	ONLINE,       // 鍦ㄧ嚎
@@ -38,12 +44,22 @@
 	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();
+	void UpdateSlotTable(SERVO::CEquipment* pEquipment);
+	void LayoutSlotTable();
+
 private:
 	IObserver* m_pObserver;
 	CServoGraph* m_pGraph;
 	BOOL m_bIsRobotMoving;
 	COLORREF m_crBkgnd;
 	HBRUSH m_hbrBkgnd;
+	int m_slotBarTestMode;
 
 	// ===== 鏈哄櫒浜哄姩鐢荤浉鍏虫垚鍛樺彉閲� =====
 
@@ -73,6 +89,13 @@
 	// 涓や釜鏈烘鑷傜浉瀵逛簬鏈哄櫒浜轰腑蹇冪殑鍋忕Щ锛堝儚绱犲潗鏍囷級
 	POINT m_arm1Offset;
 	POINT m_arm2Offset;
+	SERVO::CEquipment* m_pSelectedEquipment;
+	CSlotTableCtrl m_slotTable;
+	int m_slotTableRowCount;
+	int m_slotTableRowHeight;
+	int m_slotTablePadding;
+	int m_slotTableHeaderHeight;
+	int m_slotTableTitleHeight;
 
 
 // 瀵硅瘽妗嗘暟鎹�

--
Gitblit v1.9.3