// LayerManBar.h: interface for the CTwtLayerManBar class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_LAYERMANBAR_H__98D9CEE9_590C_4A41_BD71_AFDD5081F874__INCLUDED_) #define AFX_LAYERMANBAR_H__98D9CEE9_590C_4A41_BD71_AFDD5081F874__INCLUDED_ #include #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CTwtLayerManBar : public CAcUiDockControlBar { DECLARE_DYNAMIC(CTwtLayerManBar) public: CTwtLayerManBar(); virtual ~CTwtLayerManBar(); // CButtonST m_butOpen; // CButtonST m_butClose; // CButtonST m_butDel; CButtonST m_butOpenAll; CButtonST m_butTch; CButtonST m_butTwt; CButtonST m_butTg; CButtonST m_butPipeJ; CButtonST m_butAddJ; CButtonST m_butPipeRJ; CButtonST m_butAddRJ; CButtonST m_butPipeRH; CButtonST m_butAddRH; CButtonST m_butPipeW; CButtonST m_butAddW; CButtonST m_butPipeF; CButtonST m_butAddF; CButtonST m_butPipeY; CButtonST m_butAddY; CButtonST m_butPipeZ; CButtonST m_butAddZ; CButtonST m_butPipeX; CButtonST m_butAddX; CButtonST m_butPipeH; CButtonST m_butAddH; CButtonST m_butPipeN; CButtonST m_butAddN; CButtonST m_butPipeD; CButtonST m_butAddD; CButtonST m_butPipePW; CButtonST m_butAddPW; CButtonST m_butPipePF; CButtonST m_butAddPF; CButtonST m_butPipePY; CButtonST m_butAddPY; CButtonST m_butPipeO; CButtonST m_butAddO; // cet 2011.12.12 add CButtonST m_butPipeXH; CButtonST m_butAddXH; CButtonST m_butPipeType; void ShowLayer(XStringList &lstShow, BOOL open); CString m_csCurLay; CSize m_sizeDlg; // 对话框尺寸 void Initial(); void SetCenter(); afx_msg LONG OnLayerChanged ( UINT, LONG ); // cet 2012.4.12 add 所有管线图层控制按钮为打开状态 void ShowOpenBtnAll(); //{{AFX_VIRTUAL(CAmountSettingDlg) protected: virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam); //}}AFX_VIRTUAL protected: BOOL m_bIsTchOn, m_bIsTwtOn, m_bIsPipeJOn, m_bIsPipeRJOn, m_bIsPipeRHOn, m_bIsPipeWOn, m_bIsPipeFOn, m_bIsPipeYOn, m_bIsPipeZOn, m_bIsPipeXOn, m_bIsPipeHOn, m_bIsPipeNOn, m_bIsPipeDOn, m_bIsPipePWOn, m_bIsPipePFOn, m_bIsPipePYOn, m_bIsPipeOOn; //{{AFX_MSG(CTwtLayerManBar) afx_msg void OnWindowPosChanged(WINDOWPOS FAR* lpwndpos); afx_msg void OnButOpenAll(); // afx_msg void OnButTchLayer(); // afx_msg void OnButTwtLayer(); afx_msg void OnButDel(); afx_msg void OnButTchEntity(); afx_msg void OnButTwtEntity(); afx_msg void OnButPipeJ(); afx_msg void OnButPipeRJ(); afx_msg void OnButPipeRH(); afx_msg void OnButPipeW(); afx_msg void OnButPipeF(); afx_msg void OnButPipeY(); afx_msg void OnButPipeZ(); afx_msg void OnButPipeX(); afx_msg void OnButPipeH(); afx_msg void OnButPipeN(); afx_msg void OnButPipeD(); afx_msg void OnButPipeO(); afx_msg void OnButPipePW(); afx_msg void OnButPipePF(); afx_msg void OnButPipePY(); afx_msg void OnButPipeXH(); afx_msg void OnButPipeType(); afx_msg void OnButAddJ(); afx_msg void OnButAddRJ(); afx_msg void OnButAddRH(); afx_msg void OnButAddW(); afx_msg void OnButAddF(); afx_msg void OnButAddY(); afx_msg void OnButAddZ(); afx_msg void OnButAddX(); afx_msg void OnButAddH(); afx_msg void OnButAddN(); afx_msg void OnButAddD(); afx_msg void OnButAddO(); afx_msg void OnButAddPW(); afx_msg void OnButAddPF(); afx_msg void OnButAddPY(); afx_msg void OnButAddXH(); afx_msg void OnButAddTg(); //}}AFX_MSG DECLARE_MESSAGE_MAP() private: // cet 2011.12.12 add void PullMenu(); // cet 2011.12.12 add void InitMenu(); // cet 2011.12.12 根据菜单选项设置图层显示 void UpdateLayer(UINT nId); // cet 2011.12.12 根据菜单选择更新按钮名称 void UpdateButXHName(UINT nId); // cet 2011.12.12 add 显示图层 void ShowUserPipeLayer(const CString &sLayer, BOOL bShow); private: // cet 2011.12.12 add 图层管道名 std::map m_mapLayerPipeName; // cet 2011.12.12 add 新加图层以下拉菜单形式添加 CMenu *m_pMenu; // cet 2011.12.12 add 菜单项id及选择情况 std::map m_mapCheck; // cet 2011.12.12 add std::map m_mapMenuIdLayer; // cet 2011.12.12 add 记录当前下拉菜单选择的图层 CString m_sLayer; }; #endif // !defined(AFX_LAYERMANBAR_H__98D9CEE9_590C_4A41_BD71_AFDD5081F874__INCLUDED_)