90 lines
2.5 KiB
C++
90 lines
2.5 KiB
C++
#if !defined(AFX_INSERTBLOCKDLG_H__510278D9_3C55_4A43_AD6D_CC1C8F172523__INCLUDED_)
|
|
#define AFX_INSERTBLOCKDLG_H__510278D9_3C55_4A43_AD6D_CC1C8F172523__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// InsertBlockDlg.h : header file
|
|
//
|
|
#include "resource.h"
|
|
#include "TchBaseDlg.h"
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CInsertBlockDlg dialog
|
|
|
|
class CInsertBlockDlg : public CModelessDialog
|
|
{
|
|
// Construction
|
|
public:
|
|
DECLARE_DYNAMIC(CInsertBlockDlg)
|
|
CInsertBlockDlg(AcDbEntity *pInsert, CWnd* pParent = NULL); // standard constructor
|
|
CInsertBlockDlg(AcDbObjectId idInsert,CWnd* pParent = NULL); // standard constructor
|
|
void SetFromBlockInfo();
|
|
void UpdateInsert();
|
|
void UpdateScales();
|
|
void UpdateSizes();
|
|
// Zyu add on 100819,获得用户选择的图块类型0->ACAD图块,1->上华图块
|
|
int GetBlockType();
|
|
|
|
// Dialog Data
|
|
//{{AFX_DATA(CInsertBlockDlg)
|
|
enum { IDD = IDD_INSERT_BLOCK };
|
|
CString m_csRotation;
|
|
CString m_csScaleX;
|
|
CString m_csScaleY;
|
|
CString m_csScaleZ;
|
|
CString m_csSizeX;
|
|
CString m_csSizeY;
|
|
CString m_csSizeZ;
|
|
BOOL m_bEqualScale;
|
|
BOOL m_bMultiView;
|
|
//}}AFX_DATA
|
|
static int m_nInputMethod;
|
|
// Zyu add on 100819,块的类型
|
|
static int m_iBlockType;
|
|
|
|
XPoint m_ptBase, m_ptCen;
|
|
double m_nOldSizeX, m_nOldSizeY, m_nOldSizeZ;
|
|
double m_nOldScaleX, m_nOldScaleY, m_nOldScaleZ;
|
|
|
|
AcDbEntity *m_pInsert;
|
|
|
|
//新模式数据
|
|
AcDbObjectId m_idInsert;
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CInsertBlockDlg)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CInsertBlockDlg)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnInputSize();
|
|
afx_msg void OnInputScale();
|
|
// Zyu modify on 100716
|
|
//afx_msg void OnKillfocusScalex();
|
|
//afx_msg void OnKillfocusScaley();
|
|
//afx_msg void OnKillfocusScalez();
|
|
afx_msg void OnEnKillfocusRotation();
|
|
afx_msg void OnKillfocusSizex();
|
|
afx_msg void OnKillfocusSizey();
|
|
afx_msg void OnKillfocusSizez();
|
|
afx_msg void OnKillFocus(CWnd* pNewWnd);
|
|
// sg add 110504,解决切换关键字时,图块类型不更新的问题
|
|
afx_msg void OnRadioBlockType();
|
|
afx_msg void OnApply();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_INSERTBLOCKDLG_H__510278D9_3C55_4A43_AD6D_CC1C8F172523__INCLUDED_)
|