You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
2.4 KiB
C++
54 lines
2.4 KiB
C++
#pragma once
|
|
#include "ObjComponentMgr.h"
|
|
|
|
class CDlgObjComponentArr : public CDialogEx
|
|
{
|
|
DECLARE_DYNAMIC(CDlgObjComponentArr)
|
|
|
|
public:
|
|
CDlgObjComponentArr(CObjComponentMgr &Mgr,CWnd* pParent = NULL); // 标准构造函数
|
|
virtual ~CDlgObjComponentArr();
|
|
|
|
// 对话框数据
|
|
enum { IDD = IDD_OBJ_COMPONENT_A_DLG };
|
|
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
|
|
virtual BOOL OnInitDialog();
|
|
DECLARE_MESSAGE_MAP()
|
|
private:
|
|
void SetCtrlState();
|
|
private:
|
|
CObjComponentMgr &m_ObjComponentMgr;
|
|
CObjComponentMgr m_ObjComponentMgrBak;//设置之前的对象,用于恢复
|
|
|
|
//元件阵列
|
|
int m_ArrayXcntZ;//X 正方向阵列数量
|
|
int m_ArrayXcntF;//X 负方向阵列数量
|
|
int m_ArrayYcntZ;//Y 正方向阵列数量
|
|
int m_ArrayYcntF;//Y 负方向阵列数量
|
|
double m_OffsetX;//X 方向间隔
|
|
double m_OffsetY;//Y 方向间隔
|
|
//限定元件的范围
|
|
CButton m_UseArea;
|
|
bool m_bUseArea;//是否使用限定范围
|
|
bool m_bRectArea;//true 为矩形范围,false 为圆形范围
|
|
Dbxy m_AreaBasePt;//范围的基准点
|
|
DbSize m_AreaSize;//矩形范围的尺寸
|
|
double m_AreaRadius;//圆形范围的直径
|
|
|
|
|
|
double m_AutoArrOffset;//自动排布间隔
|
|
bool m_bAutoArr;//是否自动排布
|
|
public:
|
|
afx_msg void OnBnClickedZoomIn();
|
|
afx_msg void OnBnClickedZoomOut();
|
|
afx_msg void OnBnClickedUseArea();
|
|
afx_msg void OnBnClickedRect();
|
|
afx_msg void OnBnClickedCircle();
|
|
afx_msg void OnBnClickedOk();
|
|
afx_msg void OnBnClickedCancel();
|
|
afx_msg void OnBnClickedRadioArray();
|
|
afx_msg void OnBnClickedRadioAutoArray();
|
|
};
|