Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
1.8 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #if !defined(AFX_ARCHDLG_H__C146AA5D_38FE_11D1_AFC9_0060979D2F4E__INCLUDED_)
  7. #define AFX_ARCHDLG_H__C146AA5D_38FE_11D1_AFC9_0060979D2F4E__INCLUDED_
  8. #if _MSC_VER >= 1000
  9. #pragma once
  10. #endif // _MSC_VER >= 1000
  11. #define ARC_MAX_POINTS 4096
  12. class CArchDlg : public CDialog
  13. {
  14. // Construction
  15. public:
  16. CArchDlg(Vector& bmins, Vector& bmaxs, CWnd* pParent = NULL); // standard constructor
  17. ~CArchDlg(); // standard constructor
  18. void DrawArch(CDC *pDC);
  19. Vector bmins, bmaxs;
  20. // Dialog Data
  21. //{{AFX_DATA(CArchDlg)
  22. enum { IDD = IDD_ARCH };
  23. CSpinButtonCtrl m_cStartAngleSpin;
  24. CSpinButtonCtrl m_cWallWidthSpin;
  25. CEdit m_cWallWidth;
  26. CSpinButtonCtrl m_cSidesSpin;
  27. CEdit m_cSides;
  28. CSpinButtonCtrl m_cArcSpin;
  29. CEdit m_cArc;
  30. CStatic m_cPreview;
  31. int m_iSides;
  32. int m_iWallWidth;
  33. int m_iAddHeight;
  34. float m_fArc;
  35. float m_fAngle;
  36. //}}AFX_DATA
  37. void SetMaxWallWidth(int iMaxWallWidth) { m_iMaxWallWidth = iMaxWallWidth; }
  38. void SaveValues();
  39. // Overrides
  40. // ClassWizard generated virtual function overrides
  41. //{{AFX_VIRTUAL(CArchDlg)
  42. protected:
  43. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  44. //}}AFX_VIRTUAL
  45. // Implementation
  46. protected:
  47. int m_iMaxWallWidth;
  48. // Generated message map functions
  49. //{{AFX_MSG(CArchDlg)
  50. afx_msg void OnChangeArc();
  51. afx_msg void OnCircle();
  52. afx_msg void OnUpdateSides();
  53. afx_msg void OnUpdateWallwidth();
  54. virtual BOOL OnInitDialog();
  55. afx_msg void OnPaint();
  56. afx_msg void OnArchPreview();
  57. //}}AFX_MSG
  58. DECLARE_MESSAGE_MAP()
  59. };
  60. //{{AFX_INSERT_LOCATION}}
  61. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  62. #endif // !defined(AFX_ARCHDLG_H__C146AA5D_38FE_11D1_AFC9_0060979D2F4E__INCLUDED_)