2026-10-04 00:04:20 +08:00
|
|
|
|
#ifndef __CROSSSTAIRDLG_H__
|
2026-09-28 15:28:50 +08:00
|
|
|
|
#define __CROSSSTAIRDLG_H__
|
|
|
|
|
|
#if _MSC_VER >1000
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
#endif
|
2026-10-04 00:04:20 +08:00
|
|
|
|
//-------------------------交叉楼梯---------------------------------
|
2026-09-28 15:28:50 +08:00
|
|
|
|
#include "basestairdlg.h"
|
|
|
|
|
|
#include "resource.h"
|
|
|
|
|
|
#include "dbcrossstair.h"
|
|
|
|
|
|
#include "WGroupCtrl.h"
|
|
|
|
|
|
class CCrossStairDlg: public CBaseStairDlg
|
|
|
|
|
|
{
|
|
|
|
|
|
public:
|
2026-10-04 00:04:20 +08:00
|
|
|
|
//共有数据成员声明
|
2026-09-28 15:28:50 +08:00
|
|
|
|
DECLARE_DYNAMIC(CCrossStairDlg)
|
|
|
|
|
|
enum{ IDD = IDD_CROSSSTAIR};
|
2026-10-04 00:04:20 +08:00
|
|
|
|
static CString m_strRailOutDis;//扶手伸出距离
|
|
|
|
|
|
static CString m_strRailHeight;//扶手高度
|
|
|
|
|
|
static CString m_strRailWidth;//扶手宽度
|
|
|
|
|
|
static CString m_strRailDistToSide;//扶手距边
|
|
|
|
|
|
static int m_iSectStepNum;//剖切步数
|
|
|
|
|
|
static CString m_strStepWidth;//踏步宽度
|
|
|
|
|
|
static CString m_strStairWidth;//梯段宽
|
|
|
|
|
|
static CString m_strStairLength;//梯段长
|
|
|
|
|
|
static CString m_strSpaceWidth;//梯间宽
|
|
|
|
|
|
BOOL m_bLeftBeam;//有左边梁
|
|
|
|
|
|
BOOL m_bRightBeam;//有右边梁
|
|
|
|
|
|
static BOOL m_bRailOut;//是否有外侧扶手
|
|
|
|
|
|
static BOOL m_bAutoOutRail;//是否自动生成外侧栏杆
|
|
|
|
|
|
static BOOL m_bInsideRail;//是否有内侧栏杆
|
|
|
|
|
|
static BOOL m_bHasInsideHandRail;//有内侧扶手
|
|
|
|
|
|
int m_iViewCtrl;//显示模式控制
|
2026-09-28 15:28:50 +08:00
|
|
|
|
CSpinButtonCtrl spin;
|
2026-10-04 00:04:20 +08:00
|
|
|
|
//楼层的设置
|
2026-09-28 15:28:50 +08:00
|
|
|
|
static int m_iSelectFloor;
|
2026-10-04 00:04:20 +08:00
|
|
|
|
//首层
|
2026-09-28 15:28:50 +08:00
|
|
|
|
static BOOL m_bHasCellar;
|
|
|
|
|
|
static BOOL m_bLeftDown;
|
2026-10-04 00:04:20 +08:00
|
|
|
|
static int m_iLRDown;//选择上行或下行
|
|
|
|
|
|
//顶层
|
2026-09-28 15:28:50 +08:00
|
|
|
|
static BOOL m_bHasOutRoof;
|
|
|
|
|
|
static BOOL m_bLeftUp;
|
2026-10-04 00:04:20 +08:00
|
|
|
|
int m_iLRUp;//选择上行或下行
|
|
|
|
|
|
//上楼方向
|
|
|
|
|
|
BOOL m_bSetUpDir;//标注上楼方向
|
|
|
|
|
|
static BOOL m_bSelectUpDir;//选择上楼方向
|
|
|
|
|
|
BOOL m_bHasArrow;//标注箭头
|
|
|
|
|
|
//组成员
|
2026-09-28 15:28:50 +08:00
|
|
|
|
WGroupCtrl m_group1;
|
2026-10-04 00:04:20 +08:00
|
|
|
|
BOOL m_bGroupStatus;//组状态
|
|
|
|
|
|
//楼梯高度的组件
|
2026-09-28 15:28:50 +08:00
|
|
|
|
CComboBox m_ctrlStairHeight;
|
2026-10-04 00:04:20 +08:00
|
|
|
|
//梯井宽度
|
2026-09-28 15:28:50 +08:00
|
|
|
|
CString m_strStairWellWidth;
|
2026-10-04 00:04:20 +08:00
|
|
|
|
//平台长度1,2,3
|
2026-09-28 15:28:50 +08:00
|
|
|
|
double m_dSlabLength;
|
|
|
|
|
|
double m_dSlabLengthUR;
|
|
|
|
|
|
double m_dSlabLengthLR;
|
2026-10-04 00:04:20 +08:00
|
|
|
|
//保留
|
2026-09-28 15:28:50 +08:00
|
|
|
|
static int m_isaveStepNum;
|
|
|
|
|
|
static CString m_strsaveStepHeight;
|
|
|
|
|
|
static CString m_strsaveStairHeight;
|
2026-10-04 00:04:20 +08:00
|
|
|
|
//以下用于备份和判断是否编辑状态的参数
|
|
|
|
|
|
BOOL m_bEdit;//是否处于编辑状态
|
|
|
|
|
|
TDbCrossStair *m_pBakObj;//备份状态
|
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
|
|
|
|
CCrossStairDlg(CWnd *pParent=NULL);
|
|
|
|
|
|
CCrossStairDlg(UINT idd,CWnd*pParent=NULL);
|
|
|
|
|
|
~CCrossStairDlg();
|
|
|
|
|
|
void Obj2Dlg(const TDbEntity *pStep);//fill the dialog's childcontrols with the attributes of obj
|
|
|
|
|
|
void Dlg2Obj(AcDbEntity *pStep);// in opposition to the up
|
|
|
|
|
|
bool UpdateEdit(UINT ctrlID,bool bReportError=false);
|
|
|
|
|
|
void UpdateSel();
|
|
|
|
|
|
AcDbEntity *NewObject();
|
|
|
|
|
|
protected:
|
2026-10-04 00:04:20 +08:00
|
|
|
|
BOOL CheckENChange(UINT ctrlID,const CString pStr);//判断是否改变了CEdit中的文本
|
|
|
|
|
|
//处理事件声明
|
2026-09-28 15:28:50 +08:00
|
|
|
|
void DoDataExchange(CDataExchange* pDX);
|
2026-10-04 00:04:20 +08:00
|
|
|
|
BOOL OnInitDialog();//初始化函数
|
2026-09-28 15:28:50 +08:00
|
|
|
|
void OnClickSpaceWidth();
|
|
|
|
|
|
void OnClickStairWidth();
|
2026-10-04 00:04:20 +08:00
|
|
|
|
//梯段处理函数
|
2026-09-28 15:28:50 +08:00
|
|
|
|
void OnChangeStairHeight();
|
|
|
|
|
|
void OnChangeStairWidth();
|
|
|
|
|
|
void OnChangeSpaceWidth();
|
2026-10-04 00:04:20 +08:00
|
|
|
|
//踏步的处理函数
|
2026-09-28 15:28:50 +08:00
|
|
|
|
void OnChangeStepHeight();
|
|
|
|
|
|
void OnChangeStepNum();
|
|
|
|
|
|
void OnChangeStepWidth();
|
|
|
|
|
|
void OnChangePouNum();
|
2026-10-04 00:04:20 +08:00
|
|
|
|
void OnKFStepNum();//踏步失去焦点操作
|
|
|
|
|
|
//扶手的处理函数
|
2026-09-28 15:28:50 +08:00
|
|
|
|
void OnChangeRailOutDis();
|
|
|
|
|
|
void OnChangeRailHeight();
|
|
|
|
|
|
void OnChangeRailWidth();
|
|
|
|
|
|
void OnChangeRailDistoSide();
|
|
|
|
|
|
void OnClickRailOut();
|
2026-10-04 00:04:20 +08:00
|
|
|
|
//楼层的处理函数
|
2026-09-28 15:28:50 +08:00
|
|
|
|
void OnControlRange(UINT ctrlID);
|
2026-10-04 00:04:20 +08:00
|
|
|
|
void OnClickHasCellar();//有地下室
|
|
|
|
|
|
void OnClickHasRoof();//有屋顶
|
|
|
|
|
|
//对楼层高度的ComboBox的处理函数
|
2026-09-28 15:28:50 +08:00
|
|
|
|
void OnSelChangeStairHeightComBox();
|
|
|
|
|
|
void OnChangeStairHeightComBox();
|
|
|
|
|
|
void OnKFStairHeight();
|
|
|
|
|
|
void OnKFSpaceWidth();
|
|
|
|
|
|
void OnKFStepHeight();
|
|
|
|
|
|
|
|
|
|
|
|
void OnKFRailHeight();
|
|
|
|
|
|
void OnKFRailWidth();
|
|
|
|
|
|
void OnKFRailDistoSide();
|
|
|
|
|
|
void OnKFRailOutDis();
|
|
|
|
|
|
void OnKFStairWidth();
|
|
|
|
|
|
void OnKFStepWidth();
|
|
|
|
|
|
void OnKFPouNum();
|
|
|
|
|
|
|
|
|
|
|
|
afx_msg void OnClose();
|
|
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
|
|
};
|
|
|
|
|
|
#endif
|