89 lines
2.2 KiB
C++
89 lines
2.2 KiB
C++
#if !defined(AFX_DIMMUTIPIPEEDITDLG_H__FD914F81_E680_4819_993D_DB9563B1032E__INCLUDED_)
|
|
#define AFX_DIMMUTIPIPEEDITDLG_H__FD914F81_E680_4819_993D_DB9563B1032E__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// DimMutiPipeEditDlg.h : header file
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CDimMutiPipeEditDlg dialog
|
|
#include "Resource.h"
|
|
#include "WDGRID.h"
|
|
|
|
class CDimMutiPipeEditDlg;
|
|
class WDGridClick : public WDGrid
|
|
{
|
|
public:
|
|
|
|
WDGridClick();
|
|
void SetWnd(CDimMutiPipeEditDlg* pWnd);
|
|
protected:
|
|
|
|
virtual void OnDblClick(WDGridRow&row);
|
|
CDimMutiPipeEditDlg *m_pWnd;
|
|
};
|
|
|
|
class CDimMutiPipeEditDlg : public CDialog
|
|
{
|
|
// Construction
|
|
public:
|
|
CDimMutiPipeEditDlg(CWnd* pParent = NULL); // standard constructor
|
|
|
|
void SetShowEle(BOOL bShow); // cet 2011.4.26 add 控制是否显示标高选项
|
|
afx_msg void OnButtonLocat();
|
|
inline void SetElevs(std::vector<double> vecElev)
|
|
{
|
|
m_vecElev = vecElev;
|
|
}
|
|
|
|
// Dialog Data
|
|
//{{AFX_DATA(CDimMutiPipeEditDlg)
|
|
enum { IDD = IDD_DIM_MPIPE_EDIT };
|
|
CComboBox m_comboStyle;
|
|
double m_dHeight;
|
|
int m_nStyle;
|
|
int m_nDimType;
|
|
//}}AFX_DATA
|
|
CString m_csTextStyle;
|
|
WDGridClick m_grid;
|
|
DList<AcDbObjectId> m_lstId;
|
|
std::vector<double> m_vecElev;//zxl 2012.09.07 add
|
|
AcDbObjectId m_idDim;
|
|
|
|
// zxl 2013.01.21 add
|
|
double m_dDist2Line;
|
|
int m_nAlignType;
|
|
CComboBox m_comPipePreFix;
|
|
CString m_sPipePrefix;
|
|
int m_nDimFloorNumType;// ZXL 2013.11.12 ADD
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CDimMutiPipeEditDlg)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CDimMutiPipeEditDlg)
|
|
virtual BOOL OnInitDialog();
|
|
virtual void OnOK();
|
|
afx_msg void OnButtonAdd();
|
|
afx_msg void OnButtonDel();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
private:
|
|
|
|
BOOL m_bShowEle; // cet 2011.4.26 add 控制是否显示标高选项
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_DIMMUTIPIPEEDITDLG_H__FD914F81_E680_4819_993D_DB9563B1032E__INCLUDED_)
|