PatchDialog.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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_PATCHDIALOG_H__DE62DFB4_E9EC_11D2_A509_0020AFEB881A__INCLUDED_)
  19. #define AFX_PATCHDIALOG_H__DE62DFB4_E9EC_11D2_A509_0020AFEB881A__INCLUDED_
  20. #if _MSC_VER > 1000
  21. #pragma once
  22. #endif // _MSC_VER > 1000
  23. // PatchDialog.h : header file
  24. //
  25. /////////////////////////////////////////////////////////////////////////////
  26. // CPatchDialog dialog
  27. class CPatchDialog : public CDialog
  28. {
  29. patchMesh_t *m_Patch;
  30. // Construction
  31. public:
  32. void UpdateInfo();
  33. void SetPatchInfo();
  34. void GetPatchInfo();
  35. CPatchDialog(CWnd* pParent = NULL); // standard constructor
  36. void UpdateSpinners(bool bUp, int nID);
  37. // Dialog Data
  38. //{{AFX_DATA(CPatchDialog)
  39. enum { IDD = IDD_DIALOG_PATCH };
  40. CSpinButtonCtrl m_wndVShift;
  41. CSpinButtonCtrl m_wndVScale;
  42. CSpinButtonCtrl m_wndRotate;
  43. CSpinButtonCtrl m_wndHShift;
  44. CSpinButtonCtrl m_wndHScale;
  45. CComboBox m_wndType;
  46. CComboBox m_wndRows;
  47. CComboBox m_wndCols;
  48. CString m_strName;
  49. float m_fS;
  50. float m_fT;
  51. float m_fX;
  52. float m_fY;
  53. float m_fZ;
  54. float m_fHScale;
  55. float m_fHShift;
  56. float m_fRotate;
  57. float m_fVScale;
  58. float m_fVShift;
  59. //}}AFX_DATA
  60. // Overrides
  61. // ClassWizard generated virtual function overrides
  62. //{{AFX_VIRTUAL(CPatchDialog)
  63. protected:
  64. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  65. //}}AFX_VIRTUAL
  66. // Implementation
  67. protected:
  68. void UpdateRowColInfo();
  69. // Generated message map functions
  70. //{{AFX_MSG(CPatchDialog)
  71. afx_msg void OnBtnPatchdetails();
  72. afx_msg void OnBtnPatchfit();
  73. afx_msg void OnBtnPatchnatural();
  74. afx_msg void OnBtnPatchreset();
  75. afx_msg void OnSelchangeComboCol();
  76. afx_msg void OnSelchangeComboRow();
  77. afx_msg void OnSelchangeComboType();
  78. virtual void OnOK();
  79. afx_msg void OnDeltaposSpin(NMHDR* pNMHDR, LRESULT* pResult);
  80. virtual BOOL OnInitDialog();
  81. afx_msg void OnDestroy();
  82. afx_msg void OnApply();
  83. //}}AFX_MSG
  84. DECLARE_MESSAGE_MAP()
  85. };
  86. //{{AFX_INSERT_LOCATION}}
  87. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  88. #endif // !defined(AFX_PATCHDIALOG_H__DE62DFB4_E9EC_11D2_A509_0020AFEB881A__INCLUDED_)