81 lines
2.0 KiB
C++
81 lines
2.0 KiB
C++
#if !defined(AFX_RAILDLG_H__B0E431D5_6AA0_4194_A79B_6DE71FE91059__INCLUDED_)
|
|
#define AFX_RAILDLG_H__B0E431D5_6AA0_4194_A79B_6DE71FE91059__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// RailDlg.h : header file
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CRailDlg dialog
|
|
#include "Resource.h"
|
|
#include "DbRail.h"
|
|
|
|
class CRailDlg : public GlwCAcUiDialog
|
|
{
|
|
// Construction
|
|
public:
|
|
CRailDlg(CWnd* pParent = NULL); // standard constructor
|
|
|
|
// Dialog Data
|
|
//{{AFX_DATA(CRailDlg)
|
|
enum { IDD = IDD_RAIL };
|
|
CButton m_ctrlPickCell;
|
|
CButton m_ctrlPick;
|
|
CString m_csUnitWidth;
|
|
CString m_csInitDist;
|
|
int m_nAlignment;
|
|
BOOL m_bAutoExpand;
|
|
CString m_csPtX;
|
|
CString m_csPtY;
|
|
CString m_csMoveDist;
|
|
BOOL m_bDelPoly;
|
|
//}}AFX_DATA
|
|
static BOOL m_iViewType;
|
|
|
|
void HideDialog(BOOL Flag);
|
|
XPoint m_ptBase, m_ptCen, m_ptPrevious;
|
|
AcDbObjectId m_idBind, m_idRail, m_idUnit;
|
|
HICON m_hIcon1, m_hIcon2;
|
|
// PickSet m_ssUnit;
|
|
Entity m_ent;
|
|
CToolTipCtrl m_wndToolTip;
|
|
void GetUnitID(PickSet& ssUnit);
|
|
void SelectPickcell();
|
|
void ChangeBase();
|
|
|
|
//TDbRail *pRail;
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CRailDlg)
|
|
public:
|
|
virtual BOOL PreTranslateMessage(MSG* pMsg);
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
void DoDrawRail();
|
|
void DoChangeRail();
|
|
// Implementation
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CRailDlg)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnButtonPick();
|
|
virtual void OnOK();
|
|
afx_msg void OnButtonCellwidth();
|
|
afx_msg void OnButtonInitdist();
|
|
afx_msg void OnButtonPreview();
|
|
virtual void OnCancel();
|
|
afx_msg void OnButtonPickcell();
|
|
afx_msg void OnDestroy();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_RAILDLG_H__B0E431D5_6AA0_4194_A79B_6DE71FE91059__INCLUDED_)
|