209 lines
5.4 KiB
C++
209 lines
5.4 KiB
C++
#if !defined(AFX_SETWALL_H__FB435F54_DB17_11D1_8171_0000E82EB017__INCLUDED_)
|
|
#define AFX_SETWALL_H__FB435F54_DB17_11D1_8171_0000E82EB017__INCLUDED_
|
|
|
|
#if _MSC_VER >= 1000
|
|
#pragma once
|
|
#endif // _MSC_VER >= 1000
|
|
// SetWall.h : header file
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CDrawWallDlg dialog
|
|
|
|
class CDrawWallDlg;
|
|
|
|
struct tbButtom
|
|
{
|
|
UINT tbID;
|
|
int BitmapID;
|
|
int Style;
|
|
};
|
|
|
|
struct selMaterial {
|
|
double LeftWidth;
|
|
double RightWidth;
|
|
double TotalWidth;
|
|
int BasePosition;
|
|
};
|
|
|
|
class CDrawWallDlg : public CModelessDialog
|
|
{
|
|
protected:
|
|
BOOL m_bSendChar;
|
|
CString m_csWallHeight;
|
|
// modify by xly on 101223,当前实体底高保存到dbf文件中,每次启动命令,直接从文件中读取。
|
|
//static CString m_csWallElev;
|
|
CString m_csWallElev;
|
|
|
|
// Construction
|
|
public:
|
|
CDrawWallDlg(CWnd* pParent = NULL); // standard constructor
|
|
DECLARE_DYNAMIC(CDrawWallDlg)
|
|
void EnableSendChar(BOOL bTrue) {
|
|
m_bSendChar=bTrue;
|
|
}
|
|
|
|
double GetLeftWidth(); // 取左宽度
|
|
double GetRightWidth(); // 取右宽度
|
|
double GetHeight();
|
|
double GetElev();
|
|
TWallData::TWallStyle GetStyle(CString &sT20Mat);
|
|
TWallData::UsageFlag GetUsage(TDbWall::Catalog &nCatalog);
|
|
|
|
// Zyu add on 101115
|
|
bool LoadCurWallMaterial(); // 读取当前墙体材料
|
|
bool SaveCurWallMaterial(); // 保存当前墙体材料
|
|
|
|
// add by xly on 101223
|
|
bool LoadCurWallElev(); // 读取墙体底高
|
|
bool SaveCurWallElev(); // 保存墙体底高
|
|
|
|
// add by xly on 101223
|
|
bool LoadCurWallUsage(); // 读取墙体用途
|
|
bool SaveCurWallUsage(); // 保存墙体用途
|
|
|
|
void SaveSettings();
|
|
CToolTipCtrl m_wndToolTip;
|
|
DList<selMaterial> m_lstMat;
|
|
// Dialog Data
|
|
//{{AFX_DATA(CDrawWallDlg)
|
|
enum { IDD = IDD_SETWALL };
|
|
CComboBox m_comHeight;
|
|
CListBox m_listCtrl;
|
|
CComboBox m_material;
|
|
double m_nLeftWidth;
|
|
double m_nRightWidth;
|
|
CComboBox m_wndUsage;// add by xly on 101223 关联墙体用途控件
|
|
// Zyu add on 100625
|
|
int m_iOldOsMode; // 保存系统里的对象捕捉设置
|
|
//}}AFX_DATA
|
|
|
|
// modify by xly on 101223,当前实体用途保存到dbf文件中,每次启动命令,直接从文件中读取。
|
|
//static int g_nSelUsage;
|
|
int m_nSelUsage;
|
|
|
|
// Zyu modify on 101115,当前实体材料保存到dbf文件中,每次启动命令,直接从文件中读取。
|
|
//static int g_nSelStyle;
|
|
int m_nSelStyle;
|
|
static int g_nWallShape;
|
|
static BOOL g_bAutoSnap;
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CDrawWallDlg)
|
|
public:
|
|
virtual BOOL PreTranslateMessage(MSG* pMsg);
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CDrawWallDlg)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnSelchangeMaterial();
|
|
afx_msg void OnSelchangeUsage();
|
|
afx_msg void OnButtonLinewall();
|
|
afx_msg void OnButtonArcwall();
|
|
afx_msg void OnButtonRectwall();
|
|
afx_msg void OnButtonSnap();
|
|
afx_msg void OnClose();
|
|
afx_msg void OnKillFocus(CWnd* pNewWnd);
|
|
afx_msg void OnSelchangeListData();
|
|
afx_msg void OnButtonLeft();
|
|
afx_msg void OnButtonMid();
|
|
afx_msg void OnButtonRight();
|
|
afx_msg void OnButtonChange();
|
|
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
|
|
afx_msg void OnSelchangeHeight();
|
|
afx_msg void OnDestroy();
|
|
//add by xlc on 070511
|
|
afx_msg void OnButtonModule();
|
|
// Zyu add on 100621
|
|
afx_msg void OnButtonInquire();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
afx_msg BOOL OnToolTipText(UINT nID, NMHDR* pNMHDR, LRESULT* pResult);
|
|
public:
|
|
CToolBarCtrl m_toolbar;
|
|
//tbButtom tbButtm[7]; // 6+1 -> 1=D(Default)
|
|
tbButtom tbButtm[9]; // 8+1 -> 1=D(Default), Zyu modify on 100621
|
|
|
|
public:
|
|
// Zyu add on 100621
|
|
// 通过选择墙实体,更新对话框的参数
|
|
void PickToUpdate();
|
|
};
|
|
class CPartWallDlg : public CModelessDialog
|
|
{
|
|
protected:
|
|
BOOL m_bSendChar;
|
|
CString m_csWallHeight;
|
|
static CString m_csWallElev;
|
|
|
|
// Construction
|
|
public:
|
|
CPartWallDlg(CWnd* pParent = NULL); // standard constructor
|
|
DECLARE_DYNAMIC(CPartWallDlg)
|
|
void EnableSendChar(BOOL bTrue) {
|
|
m_bSendChar=bTrue;
|
|
}
|
|
|
|
double GetLeftWidth(); // 取左宽度
|
|
double GetRightWidth(); // 取右宽度
|
|
double GetHeight();
|
|
double GetElev();
|
|
TWallData::TWallStyle GetStyle();
|
|
TWallData::UsageFlag GetUsage();
|
|
void SaveSettings();
|
|
void SetData(TDbWall*pWall);
|
|
void GetData(CString &sWallHeight,CString &sWallElev);
|
|
DList<selMaterial> m_lstMat;
|
|
|
|
enum { IDD = IDD_PARTWALL };
|
|
CComboBox m_comHeight;
|
|
CListBox m_listCtrl;
|
|
CComboBox m_material;
|
|
double m_nLeftWidth;
|
|
double m_nRightWidth;
|
|
CString m_csRadius;
|
|
static int m_nUse;
|
|
static int m_nStyle;
|
|
|
|
public:
|
|
virtual BOOL PreTranslateMessage(MSG* pMsg);
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
|
|
|
|
// Implementation
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CDrawWallDlg)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnSelchangeMaterial();
|
|
afx_msg void OnSelchangeUsage();
|
|
afx_msg void OnClose();
|
|
afx_msg void OnKillFocus(CWnd* pNewWnd);
|
|
afx_msg void OnSelchangeListData();
|
|
afx_msg void OnButtonLeft();
|
|
afx_msg void OnButtonMid();
|
|
afx_msg void OnButtonRight();
|
|
afx_msg void OnButtonChange();
|
|
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
|
|
afx_msg void OnSelchangeHeight();
|
|
afx_msg void OnDestroy();
|
|
//add by xlc on 070511
|
|
afx_msg void OnButtonModule();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
};
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_SETWALL_H__FB435F54_DB17_11D1_8171_0000E82EB017__INCLUDED_)
|