Counter Strike : Global Offensive Source Code
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.

77 lines
1.9 KiB

  1. //========= Copyright � 1996-2005, 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. float fOuterPoints[ARC_MAX_POINTS][2];
  20. float fInnerPoints[ARC_MAX_POINTS][2];
  21. Vector bmins, bmaxs;
  22. // Dialog Data
  23. //{{AFX_DATA(CArchDlg)
  24. enum { IDD = IDD_ARCH };
  25. CSpinButtonCtrl m_cStartAngleSpin;
  26. CSpinButtonCtrl m_cWallWidthSpin;
  27. CEdit m_cWallWidth;
  28. CSpinButtonCtrl m_cSidesSpin;
  29. CEdit m_cSides;
  30. CSpinButtonCtrl m_cArcSpin;
  31. CEdit m_cArc;
  32. CStatic m_cPreview;
  33. int m_iSides;
  34. int m_iWallWidth;
  35. int m_iAddHeight;
  36. float m_fArc;
  37. float m_fAngle;
  38. //}}AFX_DATA
  39. void SetMaxWallWidth(int iMaxWallWidth) { m_iMaxWallWidth = iMaxWallWidth; }
  40. void SaveValues();
  41. // Overrides
  42. // ClassWizard generated virtual function overrides
  43. //{{AFX_VIRTUAL(CArchDlg)
  44. protected:
  45. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  46. //}}AFX_VIRTUAL
  47. // Implementation
  48. protected:
  49. int m_iMaxWallWidth;
  50. // Generated message map functions
  51. //{{AFX_MSG(CArchDlg)
  52. afx_msg void OnChangeArc();
  53. afx_msg void OnCircle();
  54. afx_msg void OnUpdateSides();
  55. afx_msg void OnUpdateWallwidth();
  56. virtual BOOL OnInitDialog();
  57. afx_msg void OnPaint();
  58. afx_msg void OnArchPreview();
  59. //}}AFX_MSG
  60. DECLARE_MESSAGE_MAP()
  61. };
  62. //{{AFX_INSERT_LOCATION}}
  63. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  64. #endif // !defined(AFX_ARCHDLG_H__C146AA5D_38FE_11D1_AFC9_0060979D2F4E__INCLUDED_)