119 lines
3.9 KiB
C++
119 lines
3.9 KiB
C++
#if !defined(AFX_RECTSTAIRDLG_H__A40660EA_C66C_4F88_826F_4910890BDD28__INCLUDED_)
|
|
#define AFX_RECTSTAIRDLG_H__A40660EA_C66C_4F88_826F_4910890BDD28__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// RectStairDlg.h : header file
|
|
//
|
|
#include "LineStairDlg.h"
|
|
#include "afxwin.h"
|
|
#include "dbstair.h"
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CRectStairDlg dialog
|
|
class CRectStairDlg : public CLineStairDlg
|
|
{
|
|
protected:
|
|
BOOL m_bNeed2D0,m_bNeed3D0;//备份
|
|
public:
|
|
DECLARE_DYNAMIC(CRectStairDlg)
|
|
CRectStairDlg(CWnd* pParent = NULL);
|
|
virtual ~CRectStairDlg();
|
|
virtual void UpdateSel();
|
|
virtual bool UpdateEdit(UINT ctrlID,bool bReportError=false);
|
|
virtual void Dlg2Obj(AcDbEntity *pStep);
|
|
virtual void Obj2Dlg(const AcDbEntity *pStep);
|
|
virtual AcDbEntity *NewObject();
|
|
|
|
// Dialog Data
|
|
//{{AFX_DATA(CRectStairDlg)
|
|
enum { IDD = IDD_RECTSTAIR };
|
|
CComboBox m_stairHeightBox;
|
|
CString m_csStairHeight;
|
|
//}}AFX_DATA
|
|
CSpinButtonCtrl stepNum1Spin,stepNum2Spin,m_ctrlSectNum;
|
|
static int m_nStairFlag;
|
|
static int m_nStairSide;
|
|
static int m_nAlignment;
|
|
static int m_nStepNum1;
|
|
static int m_nStepNum2;
|
|
static CString m_strStairWidth3;//双跑楼梯自身的梯段宽
|
|
static CString m_strSpaceLength;
|
|
static CString m_strSpaceWidth;
|
|
static CString m_strSlabWidth;
|
|
static CString m_strRailHeight;
|
|
static CString m_strRailWidth;
|
|
static CString m_strRailDistToSide;
|
|
static int m_iSlabType; //0-Rect, 1-Arc, 2-None
|
|
static BOOL m_bAutoRail;
|
|
static BOOL m_bOutRail;
|
|
static BOOL m_bOutHandRail;//外侧扶手
|
|
static BOOL m_bUpDir;//标注上楼方向
|
|
// [7/9/2008 nsh]
|
|
static CString m_strRoationRailDist;//转角伸出距离
|
|
static CString m_strFloorRailDist;//层间伸出距离
|
|
double m_dSectNumOK;//剖切高度
|
|
int m_iSectNum;//剖切步数
|
|
//---------------
|
|
//add by whl on 03/08/15
|
|
static CString m_strStepHeight1;//踏步高度
|
|
static int m_nStepNum3;//踏步数
|
|
static CString m_strStairHeight1;//高度
|
|
CString m_strSlabSize1;//平台一的宽度
|
|
CString m_strSlabSize2;//平台二的宽度
|
|
BOOL m_bRailConnection;//扶手是否连接
|
|
|
|
// ---------------------------- [9/28/2007 nsh]
|
|
/*WGroupCtrl m_group5;
|
|
static BOOL m_bgroup5Status;*/
|
|
WGroupCtrl m_group6;
|
|
static BOOL m_bgroup6Status;
|
|
|
|
CString m_strStairWidth2;//井宽
|
|
//以下用于备份和判断是否编辑状态的参数
|
|
BOOL m_bEdit;//是否处于编辑状态
|
|
TDbRectStair *m_pBakObj;//备份状态
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CRectStairDlg)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX);
|
|
//}}AFX_VIRTUAL
|
|
protected:
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CRectStairDlg)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnPickSpaceWidth();
|
|
afx_msg void OnPickStairWidth2();
|
|
afx_msg void OnKFSpaceWidth();
|
|
afx_msg void OnKFStairWidth();
|
|
afx_msg void OnKFStairWidth2();
|
|
afx_msg void OnKFStepNum1();
|
|
afx_msg void OnKFStepNum2();
|
|
afx_msg void OnKFStepWidth();//消除踏步宽度的
|
|
afx_msg void OnKFStepHeight();//踏步高度
|
|
afx_msg void OnKFStepNum();//踏步总数
|
|
afx_msg void OnKFSlabWidth();
|
|
afx_msg void OnChangeSpaceWidth();
|
|
afx_msg void OnChangeStairWidth();
|
|
afx_msg void OnChangeStairWidth2();
|
|
afx_msg void OnChangeStepNum1();
|
|
afx_msg void OnChangeStepNum2();
|
|
afx_msg void OnKillfocusStairHeightCombo();
|
|
afx_msg void OnEditchangeStairHeightCombo();
|
|
afx_msg void OnSelchangeStairHeightCombo();
|
|
afx_msg void OnChangeStepHeight();
|
|
// [7/9/2008 nsh]
|
|
void OnChangeRoationRailDist();//转角伸出
|
|
void OnChangeFloorRailDist();//层间伸出
|
|
void OnChangeSectNum();//剖切步数
|
|
void OnChangeSectNum2();//剖切步数
|
|
void OnClickOutHandRail();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_RECTSTAIRDLG_H__A40660EA_C66C_4F88_826F_4910890BDD28__INCLUDED_)
|