Files
envi-code/SourceCode/Code2026/tg_shs/shs_kerncmd/DoorLineDlg.h
T

63 lines
1.6 KiB
C++
Raw Normal View History

2026-10-04 00:04:20 +08:00
#ifndef _DOORLINE_DLG_H_
2026-09-28 15:28:50 +08:00
#define _DOORLINE_DLG_H_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "resource.h"
class CDoorLineDlg : public CModelessDialog
{
public:
CDoorLineDlg(CWnd* pParent = NULL);
virtual ~CDoorLineDlg();
//{{AFX_DATA(CDoorLineDlg)
enum { IDD = IDD_DIALOG_DOORLINE };
2026-10-04 00:04:20 +08:00
static int m_nLocation; // 记录门口线位置
static int m_nFunction; // 记录添加或者消除门口线的功能
CComboBox m_cmbOffsetDist; // 偏移距离控件
2026-09-28 15:28:50 +08:00
//}}AFX_DATA
2026-10-04 00:04:20 +08:00
static int m_nOffsetDist; // 记录偏移距离
2026-09-28 15:28:50 +08:00
2026-10-04 00:04:20 +08:00
bool m_bUseEsc; // 标记是否使用了ESC
2026-09-28 15:28:50 +08:00
public:
2026-10-04 00:04:20 +08:00
// 根据功能,控制对话框上的控件显示
2026-09-28 15:28:50 +08:00
void SetDlgFunctionShow();
2026-10-04 00:04:20 +08:00
// 初始化下拉列表控件
2026-09-28 15:28:50 +08:00
void InitCombox();
2026-10-04 00:04:20 +08:00
// 设置不允许修改门口线的侧
2026-09-28 15:28:50 +08:00
void SetLockLocation(bool bEnable);
public:
2026-10-04 00:04:20 +08:00
// 设置居中门口线
2026-09-28 15:28:50 +08:00
void SetMidLoc(bool bTrue, TDbOpening *pOpening);
2026-10-04 00:04:20 +08:00
// 设置双侧门口线
2026-09-28 15:28:50 +08:00
void SetBothSide(bool bTrue, TDbOpening *pOpening);
2026-10-04 00:04:20 +08:00
// 将对话框中的偏移距离,与墙体宽度进行比较,确定是否偏移距离过大,返回实际的偏移距离,并自动统计超过的个数
2026-09-28 15:28:50 +08:00
double GetOffsetWidth(AcDbObjectId idWall, int &nCountNum);
public:
//{{AFX_VIRTUAL(CDoorLineDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX);
//}}AFX_VIRTUAL
protected:
//{{AFX_MSG(CDoorLineDlg)
virtual BOOL OnInitDialog();
afx_msg void OnClose();
afx_msg void OnRadioFunction();
afx_msg void OnRadioLocation();
afx_msg void OnKillfocusComboOffsetDist();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#endif