Files
envi-code/SourceCode/Code2026/tg_shs/shs_kerncmd/DormerDlg.h
T
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

123 lines
3.0 KiB
C++

#if !defined(AFX_DORMERDLG_H__1101D57E_AD59_413E_BCA1_09D60FD2A47F__INCLUDED_)
#define AFX_DORMERDLG_H__1101D57E_AD59_413E_BCA1_09D60FD2A47F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DormerDlg.h : header file
//
#include "NumEdit.h"
class CDormerDlg : public GlwCAcUiDialog
{
public:
CDormerDlg(CString sTitle="加老虎窗",CWnd* pParent=NULL);
// Dialog Data
//{{AFX_DATA(CDormerDlg)
enum { IDD = IDD_DORMER };
int m_nDormerType;
CString m_sEaves;
CString m_sFloor;
CString m_sGlass;
CString m_sRoof;
CString m_sWall;
CString m_sWindow;
BOOL m_bShowWindow;
CString m_sExtendEaves;
CString m_sExtendHill;
CString m_sSlopeGrade;
CString m_sSlopeHeight;
CString m_sSlopeThickness;
CString m_sWallHeight;
CString m_sWallThickness;
CString m_sWallWidth;
CString m_sWindowWidth;
CString m_sWindowHeight;
//}}AFX_DATA
CString m_csLabel; //编号
// Overrides
//{{AFX_VIRTUAL(CDormerDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
protected:
// Generated message map functions
//{{AFX_MSG(CDormerDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSelchangeDormerType();
virtual void OnOK();
afx_msg void OnPaint();
afx_msg void OnCheckShowWindow();
afx_msg void OnChangeEditSlopeGrade();
afx_msg void OnChangeEditWallWidth();
afx_msg void OnChangeEditWindowWidth();
afx_msg void OnSelChangeLabel();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
//类型
void SetDormerType(TDormerPar::DormerType dormerType);
TDormerPar::DormerType GetDormerType() const;
//老虎窗参数
void SetDormerPar(const TDormerPar& dormerPar);
void GetDormerPar(TDormerPar& dormerPar) const;
//墙上开窗
void SetShowWindow(BOOL bShow=TRUE);
BOOL IsShowWindow() const;
//老虎窗图层
void SetDormerLayer(const TDormerLayer& dormerLayer);
void GetDormerLayer(TDormerLayer& dormerLayer) const;
CString GetDormerLabel(TDbDormer &dormer);
void SetDefaultLabel(bool bUseDefaultLabel = false, CString strDefaultLabel = _T(""));
void AfterModelAdded(TDbDormer *pDormer);
protected:
void ResetLabelCombox();
CString GetRegLocation() const;
BOOL ReadParamFromRegistry();
BOOL WriteParamToRegistry() const;
protected:
CNumEdit m_ctrlWindowHeight;
CNumEdit m_ctrlWindowWidth;
CNumEdit m_ctrlWallWidth;
CNumEdit m_ctrlWallThickness;
CNumEdit m_ctrlWallHeight;
CNumEdit m_ctrlSlopeThickness;
CNumEdit m_ctrlSlopeHeight;
CNumEdit m_ctrlSlopeGrade;
CNumEdit m_ctrlExtendHill;
CNumEdit m_ctrlExtendEaves;
CComboBox m_comboWall;
CComboBox m_comboRoof;
CComboBox m_comboGlass;
CComboBox m_comboFloor;
CComboBox m_comboEaves;
CComboBox m_comboWindow;
CComboBox m_cmbLabel;
CString m_sTitle;
CImageDC m_slideDc;
CString m_strDefaultlabel; // 默认标签
bool m_bUseDefaultLabel; // 是否使用默认标签
protected:
void UpdateWindow();
void UpdateParameter();
void OpenSlide(XString sFilePath);
};
//{{AFX_INSERT_LOCATION}}
#endif // !defined(AFX_DORMERDLG_H__1101D57E_AD59_413E_BCA1_09D60FD2A47F__INCLUDED_)