Files
envi-code/SourceCode/Code2026/tg_shs/shs_TwtKernal/PipeVMultDrawDlg.h
T

79 lines
2.1 KiB
C++
Raw Normal View History

2026-10-04 00:04:20 +08:00
#if !defined(AFX_PIPEVMULTDRAWDLG_H__35031D91_DA99_47B9_BBBF_B4574A47629F__INCLUDED_)
2026-09-28 15:28:50 +08:00
#define AFX_PIPEVMULTDRAWDLG_H__35031D91_DA99_47B9_BBBF_B4574A47629F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PipeVMultDrawDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CPipeVMultDrawDlg dialog
#include "Resource.h"
#include "WDGRID.h"
class TGridMultiPipe: public WDGrid
{
protected:
virtual void OnCellComboString(WDGridCell&cell,CComboBox&combo);
public:
TGridMultiPipe();
2026-10-04 00:04:20 +08:00
//设置管道名 cet 2011.12.9 add
2026-09-28 15:28:50 +08:00
void SetPipeName(const std::vector<CString> &data);
private:
2026-10-04 00:04:20 +08:00
// 图层管道名cet 2011.12.9 add
2026-09-28 15:28:50 +08:00
std::vector<CString> m_vecPipeName;
};
class CPipeVMultDrawDlg : public CDialog
{
// Construction
public:
CPipeVMultDrawDlg(CWnd* pParent = NULL); // standard constructor
2026-10-04 00:04:20 +08:00
// 获得管道图层索引号 cet 2011.12.9 add
2026-09-28 15:28:50 +08:00
int GetPipeIdxByPipeName(const CString &sPipeName);
// Dialog Data
//{{AFX_DATA(CPipeVMultDrawDlg)
enum { IDD = IDD_PIPE_MULT_V };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
TGridMultiPipe m_grid;
BOOL m_bIsSuperposable;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPipeVMultDrawDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
void Save();
void LoadLast();
// Generated message map functions
//{{AFX_MSG(CPipeVMultDrawDlg)
virtual BOOL OnInitDialog();
afx_msg void OnButtonAdd();
afx_msg void OnButtonDel();
virtual void OnOK();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
2026-10-04 00:04:20 +08:00
// 初始化图层管道名 cet 2011.12.9 add
2026-09-28 15:28:50 +08:00
void InitLayerPipeName();
2026-10-04 00:04:20 +08:00
// 获取管道名 cet 2011.12.9 add
2026-09-28 15:28:50 +08:00
void GetPipeName(std::vector<CString> &vecPipeName);
private:
2026-10-04 00:04:20 +08:00
// 图层管道名cet 2011.12.9 add
2026-09-28 15:28:50 +08:00
std::map<CString,CString> m_mapLayerPipeName;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PIPEVMULTDRAWDLG_H__35031D91_DA99_47B9_BBBF_B4574A47629F__INCLUDED_)