121 lines
3.6 KiB
C++
121 lines
3.6 KiB
C++
#ifndef __CROSSSTAIRDLG_H__
|
||
#define __CROSSSTAIRDLG_H__
|
||
#if _MSC_VER >1000
|
||
#pragma once
|
||
#endif
|
||
//-------------------------交叉楼梯---------------------------------
|
||
#include "basestairdlg.h"
|
||
#include "resource.h"
|
||
#include "dbcrossstair.h"
|
||
#include "WGroupCtrl.h"
|
||
class CCrossStairDlg: public CBaseStairDlg
|
||
{
|
||
public:
|
||
//共有数据成员声明
|
||
DECLARE_DYNAMIC(CCrossStairDlg)
|
||
enum{ IDD = IDD_CROSSSTAIR};
|
||
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;//显示模式控制
|
||
CSpinButtonCtrl spin;
|
||
//楼层的设置
|
||
static int m_iSelectFloor;
|
||
//首层
|
||
static BOOL m_bHasCellar;
|
||
static BOOL m_bLeftDown;
|
||
static int m_iLRDown;//选择上行或下行
|
||
//顶层
|
||
static BOOL m_bHasOutRoof;
|
||
static BOOL m_bLeftUp;
|
||
int m_iLRUp;//选择上行或下行
|
||
//上楼方向
|
||
BOOL m_bSetUpDir;//标注上楼方向
|
||
static BOOL m_bSelectUpDir;//选择上楼方向
|
||
BOOL m_bHasArrow;//标注箭头
|
||
//组成员
|
||
WGroupCtrl m_group1;
|
||
BOOL m_bGroupStatus;//组状态
|
||
//楼梯高度的组件
|
||
CComboBox m_ctrlStairHeight;
|
||
//梯井宽度
|
||
CString m_strStairWellWidth;
|
||
//平台长度1,2,3
|
||
double m_dSlabLength;
|
||
double m_dSlabLengthUR;
|
||
double m_dSlabLengthLR;
|
||
//保留
|
||
static int m_isaveStepNum;
|
||
static CString m_strsaveStepHeight;
|
||
static CString m_strsaveStairHeight;
|
||
//以下用于备份和判断是否编辑状态的参数
|
||
BOOL m_bEdit;//是否处于编辑状态
|
||
TDbCrossStair *m_pBakObj;//备份状态
|
||
public:
|
||
//接口声明
|
||
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:
|
||
BOOL CheckENChange(UINT ctrlID,const CString pStr);//判断是否改变了CEdit中的文本
|
||
//处理事件声明
|
||
void DoDataExchange(CDataExchange* pDX);
|
||
BOOL OnInitDialog();//初始化函数
|
||
void OnClickSpaceWidth();
|
||
void OnClickStairWidth();
|
||
//梯段处理函数
|
||
void OnChangeStairHeight();
|
||
void OnChangeStairWidth();
|
||
void OnChangeSpaceWidth();
|
||
//踏步的处理函数
|
||
void OnChangeStepHeight();
|
||
void OnChangeStepNum();
|
||
void OnChangeStepWidth();
|
||
void OnChangePouNum();
|
||
void OnKFStepNum();//踏步失去焦点操作
|
||
//扶手的处理函数
|
||
void OnChangeRailOutDis();
|
||
void OnChangeRailHeight();
|
||
void OnChangeRailWidth();
|
||
void OnChangeRailDistoSide();
|
||
void OnClickRailOut();
|
||
//楼层的处理函数
|
||
void OnControlRange(UINT ctrlID);
|
||
void OnClickHasCellar();//有地下室
|
||
void OnClickHasRoof();//有屋顶
|
||
//对楼层高度的ComboBox的处理函数
|
||
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 |