127 lines
3.9 KiB
C++
127 lines
3.9 KiB
C++
#if !defined(__PARELLELSTAIRDLG__)
|
|
#define __PARELLELSTAIRDLG__
|
|
#if _MSC_VER >1000
|
|
#pragma once
|
|
#endif
|
|
//------------------------------------------------双分平行楼梯-----------------------------------
|
|
#include "basestairdlg.h"
|
|
#include "resource.h"
|
|
#include "wgroupctrl.h"
|
|
#include "dbParallelStair.h"
|
|
class CParallelStairDlg:public CBaseStairDlg
|
|
{
|
|
public:
|
|
DECLARE_DYNAMIC(CParallelStairDlg)
|
|
enum {IDD=IDD_PARALLELSTAIR};
|
|
//休息平台
|
|
static int m_iSlab;//平台类型
|
|
static CString m_strSlabWidth;//平台宽度
|
|
//扶手
|
|
static CString m_strRailHeight;//扶手高度
|
|
static CString m_strRailWidth;//扶手宽度
|
|
static CString m_strRailDistToSide;//扶手距边
|
|
static CString m_strRailOutDis;//扶手伸出距离(偏移)
|
|
static BOOL m_bAutoRail;//自动生成栏杆
|
|
static BOOL m_bHasOutRail;//有外侧扶手
|
|
static BOOL m_bInsideRail;//内侧栏杆
|
|
static CString m_strRailOutDisMid;//转角伸出距离
|
|
static BOOL m_bHasInsideHandRail;//内侧扶手
|
|
//踏步取齐
|
|
static int m_iStepAlign;//取齐方式
|
|
//楼侧设置
|
|
static int m_iSelectFloor;//选择楼层0-首层,1-中层,2-顶层
|
|
//踏步参数
|
|
static int m_iStepNum1;//一跑
|
|
static int m_iStepNum2;//二跑
|
|
static int m_iSectStepNum;//剖切步数
|
|
static CString m_strStepWidth;//踏步宽度
|
|
//上楼位置
|
|
static BOOL m_bUpPostion;//上楼位置
|
|
BOOL m_bHasArrow;//标注
|
|
//楼梯参数
|
|
static CString m_strStairWidth;//楼梯总宽
|
|
static CString m_strSideStairWidth;//边梯宽度
|
|
static CString m_strMidStairWidth;//中梯宽度
|
|
CString m_strStairWell;//梯井宽
|
|
//左右边梁
|
|
static BOOL m_bLeftBeam;
|
|
static BOOL m_bRightBeam;
|
|
//组合窗
|
|
BOOL m_bGroupStatus;
|
|
WGroupCtrl m_group1;
|
|
//保护成员
|
|
CSpinButtonCtrl stepNum1;
|
|
CSpinButtonCtrl stepNum2;
|
|
CSpinButtonCtrl m_ctrlSectStepSpin;//剖切控制
|
|
CComboBox m_ctrlStairHeight;//
|
|
CString m_strSlabSize1;//平台一的宽度
|
|
CString m_strSlabSize2;//平台二的宽度
|
|
//2D或3D的显示模式
|
|
int m_iViewCtrl;
|
|
//保留结果
|
|
static int m_isaveStepNum;
|
|
static CString m_strsaveStepHeight;
|
|
static CString m_strsaveStairHeight;
|
|
//以下用于备份和判断是否编辑状态的参数
|
|
BOOL m_bEdit;//是否处于编辑状态
|
|
TDbParallelStair *m_pBakObj;//备份状态
|
|
public:
|
|
CParallelStairDlg(CWnd*pParent=NULL);
|
|
CParallelStairDlg(UINT idd,CWnd*pParent=NULL);
|
|
~CParallelStairDlg();
|
|
virtual BOOL OnInitDialog();
|
|
virtual void DoDataExchange(CDataExchange* pDX);
|
|
virtual void Obj2Dlg(const AcDbEntity *pStep);//fill the dialog's childcontrols with the attributes of obj
|
|
virtual void Dlg2Obj(AcDbEntity *pStep);// in opposition to the up
|
|
virtual AcDbEntity *NewObject();
|
|
virtual bool UpdateEdit(UINT ctrlID,bool bReportError=false);
|
|
virtual void UpdateSel();
|
|
protected:
|
|
//事件处理函数
|
|
void OnChangeStairHeight();
|
|
void OnChangeStairWidth();
|
|
void OnChangeStepHeight();
|
|
void OnChangeStepWidth();
|
|
void OnChangeStepNum();//踏步总数
|
|
void OnChangeStepNum1();
|
|
void OnChangeStepNum2();
|
|
void OnChangeRailHeight();
|
|
void OnChangeRailWidth();
|
|
void OnChangeRailDistToSide();
|
|
void OnChangeRailOutDist();//扶手伸出距离
|
|
void OnChangeRailOutDisMid();//转角伸出距离
|
|
void OnChangeSideStairWidth();
|
|
void OnChangeMidStairWidth();
|
|
void OnChangeSlabWidth();//休息平台宽度
|
|
void OnChangeSectStepNum();//剖切步数
|
|
|
|
//modify by xlc on 090318
|
|
void OnStepHeightKillFocus();//踏步高
|
|
void OnKFStairWidth();
|
|
void OnKFRailHeight();
|
|
void OnKFRailWidth();
|
|
void OnKFSideStairWidth();
|
|
void OnKFMidStairWidth();
|
|
void OnKFStepWidth();
|
|
void OnKFStepNum1();
|
|
void OnKFStepNum2();
|
|
void OnKFRailDistToSide();
|
|
void OnKFSlabWidth();
|
|
void OnKFStepNum();
|
|
void OnKFSectStepNum();
|
|
void OnKFRailOutDist();//扶手伸出距离
|
|
void OnKFRailOutDisMid();//转角伸出距离
|
|
void OnKFStairHeight();
|
|
|
|
afx_msg void OnClose();
|
|
|
|
//梯段按钮的处理
|
|
void OnClickStairWidth();
|
|
void OnClickSideStairWidth();
|
|
void OnClickMidStairWidth();
|
|
//楼梯高度
|
|
void OnSelChange();
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
#endif |