chenluhua1980
3 天以前 415ad67bb66ca2d99fb21a8eeb32f942ad2cd7b0
SourceCode/Bond/Servo/CProcessDataListDlg.h
@@ -1,5 +1,7 @@
#pragma once
#include "ListCtrlEx.h"
#include <vector>
#include <utility>
// CProcessDataListDlg 对话框
@@ -13,13 +15,42 @@
   virtual ~CProcessDataListDlg();
public:
   struct PathRow {
      CString step;
      CString chamber;
      CString enterTime;
      CString leaveTime;
      bool isArmStep = false;
   };
   void setRawText(CString& strRawText);
   void setPathRows(const std::vector<PathRow>& rows);
   void setUnifiedData(const std::vector<std::pair<CString, CString>>& basicRows,
      const std::vector<PathRow>& pathRows,
      const std::vector<std::pair<CString, CString>>& processRows);
   void setInitialTab(int tabIndex);
   void InsertParamsToListCtrl(CListCtrl& listCtrl, const CString& data);
   bool CopyListCtrlToClipboard(CListCtrl& listCtrl, bool includeHeader = false);
private:
   CString m_strRawText;
   CListCtrlEx m_listCtrl;
   CTabCtrl m_tabCtrl;
   std::vector<PathRow> m_pathRows;
   std::vector<std::pair<CString, CString>> m_basicRows;
   std::vector<std::pair<CString, CString>> m_processRows;
   CButton m_chkShowArm;
   bool m_showArmSteps = false;
   int m_initialTab = 0;
private:
   void LoadArmStepOption();
   void SaveArmStepOption() const;
   void SetupListCtrlStyle();
   void BuildNameValueList(const std::vector<std::pair<CString, CString>>& rows);
   void BuildPathList();
   void InitUnifiedLayout();
   void RenderUnifiedTab();
// 对话框数据
@@ -34,4 +65,6 @@
public:
   virtual BOOL OnInitDialog();
   afx_msg void OnBnClickedButton1();
   afx_msg void OnBnClickedCheckShowArm();
   afx_msg void OnTcnSelchangeTabUnified(NMHDR* pNMHDR, LRESULT* pResult);
};