初始化提交
This commit is contained in:
commit
345044cb46
7744 files changed
+4018766
No files matched your search
@@ -0,0 +1,109 @@
|
||||
#if !defined(AFX_DIMPIPESERIALDLG_H__08BF5B3C_7374_4D5E_8AEC_13872B68255E__INCLUDED_)
|
||||
#define AFX_DIMPIPESERIALDLG_H__08BF5B3C_7374_4D5E_8AEC_13872B68255E__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
|
||||
#include <MySpin.h>
|
||||
#include "Resource.h"
|
||||
|
||||
class SPipeSerial
|
||||
{
|
||||
public:
|
||||
SPipeSerial(){};
|
||||
int m_iSerial;
|
||||
XPoint m_pt;
|
||||
CString m_csName;
|
||||
CString m_csSerial;
|
||||
AcDbObjectId m_ID; //入户水管
|
||||
static int SortByItem(const SPipeSerial *, const SPipeSerial *);
|
||||
static int SortByItem1(const SPipeSerial *, const SPipeSerial *);
|
||||
static int SortByItem2(const SPipeSerial *, const SPipeSerial *);
|
||||
static int SortByItem3(const SPipeSerial *, const SPipeSerial *);
|
||||
};
|
||||
|
||||
|
||||
|
||||
inline int SPipeSerial::SortByItem(const SPipeSerial *p1, const SPipeSerial *p2)
|
||||
{
|
||||
int ret = DoubleCmp(&p1->m_pt.x, &p2->m_pt.x);
|
||||
return ret;
|
||||
}
|
||||
|
||||
inline int SPipeSerial::SortByItem1(const SPipeSerial *p1, const SPipeSerial *p2)
|
||||
{
|
||||
int ret = DoubleCmp(&p2->m_pt.x, &p1->m_pt.x);
|
||||
return ret;
|
||||
}
|
||||
|
||||
inline int SPipeSerial::SortByItem2(const SPipeSerial *p1, const SPipeSerial *p2)
|
||||
{
|
||||
int ret = DoubleCmp(&p2->m_pt.y, &p1->m_pt.y);
|
||||
return ret;
|
||||
}
|
||||
|
||||
inline int SPipeSerial::SortByItem3(const SPipeSerial *p1, const SPipeSerial *p2)
|
||||
{
|
||||
int ret = DoubleCmp(&p1->m_pt.y, &p2->m_pt.y);
|
||||
return ret;
|
||||
}
|
||||
|
||||
class CDimPipeSerialDlg : public CModelessDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
CDimPipeSerialDlg(CWnd* pParent = NULL); // standard constructor
|
||||
DECLARE_DYNAMIC(CDimPipeSerialDlg)
|
||||
~CDimPipeSerialDlg()
|
||||
{
|
||||
if(::IsWindow(m_hWnd))
|
||||
DestroyWindow();
|
||||
}
|
||||
|
||||
// 出圈文字样式 cet 2013.3.14 add
|
||||
int GetTextType() const;
|
||||
// 文字字高系数 cet 2013.3.14 add
|
||||
double GetTextHeightCoefficient() const;
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CDimPipeSerialDlg)
|
||||
enum { IDD = IDD_DIM_PIPE_SERIAL };
|
||||
CMySpin m_spinWidth;
|
||||
CMySpin m_spinCir;
|
||||
CComboBox m_comboStyle;
|
||||
int m_iStyle;
|
||||
CString m_csY;
|
||||
static int m_nTextType;
|
||||
static double m_dTextHeight;
|
||||
//}}AFX_DATA
|
||||
double m_nRadius;
|
||||
double m_nWidth;
|
||||
static CString m_csX;
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CDimPipeSerialDlg)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
virtual void PostNcDestroy();
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CDimPipeSerialDlg)
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnClose();
|
||||
afx_msg void OnPaint();
|
||||
afx_msg void OnDestroy();
|
||||
afx_msg void OnSelChangeComboText();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_DIMPIPESERIALDLG_H__08BF5B3C_7374_4D5E_8AEC_13872B68255E__INCLUDED_)
|
||||
Reference in new issue
Block a user