SurfaceDlg.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. /*
  2. ===========================================================================
  3. Copyright (C) 1999-2005 Id Software, Inc.
  4. This file is part of Quake III Arena source code.
  5. Quake III Arena source code is free software; you can redistribute it
  6. and/or modify it under the terms of the GNU General Public License as
  7. published by the Free Software Foundation; either version 2 of the License,
  8. or (at your option) any later version.
  9. Quake III Arena source code is distributed in the hope that it will be
  10. useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with Foobar; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  16. ===========================================================================
  17. */
  18. #if !defined(AFX_SURFACEDLG_H__D84E0C22_9EEA_11D1_B570_00AA00A410FC__INCLUDED_)
  19. #define AFX_SURFACEDLG_H__D84E0C22_9EEA_11D1_B570_00AA00A410FC__INCLUDED_
  20. #if _MSC_VER >= 1000
  21. #pragma once
  22. #endif // _MSC_VER >= 1000
  23. // SurfaceDlg.h : header file
  24. //
  25. /////////////////////////////////////////////////////////////////////////////
  26. // CSurfaceDlg dialog
  27. class CSurfaceDlg : public CDialog
  28. {
  29. bool m_bPatchMode;
  30. // brush primitive fake shift scale rot coords
  31. float m_shift[2];
  32. float m_rotate;
  33. float m_scale[2];
  34. // Construction
  35. public:
  36. CSurfaceDlg(CWnd* pParent = NULL); // standard constructor
  37. void SetTexMods();
  38. void GetTexMods();
  39. void GrabPatchMods();
  40. // Dialog Data
  41. //{{AFX_DATA(CSurfaceDlg)
  42. enum { IDD = IDD_SURFACE };
  43. CSpinButtonCtrl m_wndWidth;
  44. CSpinButtonCtrl m_wndHeight;
  45. CSpinButtonCtrl m_wndVShift;
  46. CSpinButtonCtrl m_wndVScale;
  47. CSpinButtonCtrl m_wndRotate;
  48. CSpinButtonCtrl m_wndHShift;
  49. CSpinButtonCtrl m_wndHScale;
  50. int m_nHeight;
  51. int m_nWidth;
  52. //}}AFX_DATA
  53. // Overrides
  54. // ClassWizard generated virtual function overrides
  55. //{{AFX_VIRTUAL(CSurfaceDlg)
  56. protected:
  57. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  58. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  59. //}}AFX_VIRTUAL
  60. // Implementation
  61. protected:
  62. void UpdateSpinners(int nScrollCode, int nPos, CScrollBar* pBar);
  63. void UpdateSpinners(bool bUp, int nID);
  64. // Generated message map functions
  65. //{{AFX_MSG(CSurfaceDlg)
  66. virtual BOOL OnInitDialog();
  67. afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  68. afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
  69. afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  70. afx_msg void OnApply();
  71. virtual void OnOK();
  72. afx_msg void OnClose();
  73. virtual void OnCancel();
  74. afx_msg void OnDestroy();
  75. afx_msg void OnBtnCancel();
  76. afx_msg void OnBtnColor();
  77. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  78. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  79. afx_msg void OnDeltaPosSpin(NMHDR* pNMHDR, LRESULT* pResult);
  80. afx_msg void OnBtnPatchdetails();
  81. afx_msg void OnBtnPatchnatural();
  82. afx_msg void OnBtnPatchreset();
  83. afx_msg void OnBtnPatchfit();
  84. afx_msg void OnBtnAxial();
  85. afx_msg void OnBtnBrushfit();
  86. afx_msg void OnBtnFacefit();
  87. //}}AFX_MSG
  88. DECLARE_MESSAGE_MAP()
  89. };
  90. //{{AFX_INSERT_LOCATION}}
  91. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  92. #endif // !defined(AFX_SURFACEDLG_H__D84E0C22_9EEA_11D1_B570_00AA00A410FC__INCLUDED_)