SurfaceDlg.h 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. /*
  2. ===========================================================================
  3. Doom 3 GPL Source Code
  4. Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company.
  5. This file is part of the Doom 3 GPL Source Code (?Doom 3 Source Code?).
  6. Doom 3 Source Code is free software: you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation, either version 3 of the License, or
  9. (at your option) any later version.
  10. Doom 3 Source Code is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with Doom 3 Source Code. If not, see <http://www.gnu.org/licenses/>.
  16. In addition, the Doom 3 Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the Doom 3 Source Code. If not, please request a copy in writing from id Software at the address below.
  17. If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA.
  18. ===========================================================================
  19. */
  20. #if !defined(AFX_SURFACEDLG_H__D84E0C22_9EEA_11D1_B570_00AA00A410FC__INCLUDED_)
  21. #define AFX_SURFACEDLG_H__D84E0C22_9EEA_11D1_B570_00AA00A410FC__INCLUDED_
  22. #if _MSC_VER >= 1000
  23. #pragma once
  24. #endif // _MSC_VER >= 1000
  25. // SurfaceDlg.h : header file
  26. //
  27. /////////////////////////////////////////////////////////////////////////////
  28. // CSurfaceDlg dialog
  29. class CSurfaceDlg : public CDialog
  30. {
  31. bool m_bPatchMode;
  32. CWnd *focusControl;
  33. // Construction
  34. public:
  35. CSurfaceDlg(CWnd* pParent = NULL); // standard constructor
  36. void SetTexMods();
  37. // Dialog Data
  38. //{{AFX_DATA(CSurfaceDlg)
  39. enum { IDD = IDD_SURFACE };
  40. CEdit m_wndRotateEdit;
  41. CEdit m_wndVert;
  42. CEdit m_wndHorz;
  43. CSliderCtrl m_wndVerticalSubdivisions;
  44. CSliderCtrl m_wndHorzSubdivisions;
  45. CSpinButtonCtrl m_wndWidth;
  46. CSpinButtonCtrl m_wndHeight;
  47. CSpinButtonCtrl m_wndVShift;
  48. CSpinButtonCtrl m_wndVScale;
  49. CSpinButtonCtrl m_wndRotate;
  50. CSpinButtonCtrl m_wndHShift;
  51. CSpinButtonCtrl m_wndHScale;
  52. int m_nHorz;
  53. int m_nVert;
  54. float m_horzScale;
  55. float m_horzShift;
  56. float m_rotate;
  57. float m_vertScale;
  58. float m_vertShift;
  59. CString m_strMaterial;
  60. BOOL m_subdivide;
  61. float m_fHeight;
  62. float m_fWidth;
  63. BOOL m_absolute;
  64. //}}AFX_DATA
  65. // Overrides
  66. // ClassWizard generated virtual function overrides
  67. //{{AFX_VIRTUAL(CSurfaceDlg)
  68. public:
  69. virtual BOOL PreTranslateMessage(MSG* pMsg);
  70. protected:
  71. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  72. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  73. //}}AFX_VIRTUAL
  74. // Implementation
  75. protected:
  76. void UpdateSpinners(int nScrollCode, int nPos, CScrollBar* pBar);
  77. void UpdateSpinners(bool bUp, int nID);
  78. // Generated message map functions
  79. //{{AFX_MSG(CSurfaceDlg)
  80. virtual BOOL OnInitDialog();
  81. afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  82. afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
  83. afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  84. afx_msg void OnApply();
  85. virtual void OnOK();
  86. afx_msg void OnClose();
  87. virtual void OnCancel();
  88. afx_msg void OnDestroy();
  89. afx_msg void OnBtnCancel();
  90. afx_msg void OnBtnColor();
  91. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  92. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  93. afx_msg void OnDeltaPosSpin(NMHDR* pNMHDR, LRESULT* pResult);
  94. afx_msg void OnBtnPatchdetails();
  95. afx_msg void OnBtnPatchnatural();
  96. afx_msg void OnBtnPatchreset();
  97. afx_msg void OnBtnAxial();
  98. afx_msg void OnBtnBrushfit();
  99. afx_msg void OnBtnFacefit();
  100. afx_msg void OnCheckSubdivide();
  101. afx_msg void OnChangeEditHorz();
  102. afx_msg void OnChangeEditVert();
  103. afx_msg void OnSetfocusHscale();
  104. afx_msg void OnKillfocusHscale();
  105. afx_msg void OnKillfocusVscale();
  106. afx_msg void OnSetfocusVscale();
  107. afx_msg void OnKillfocusEditWidth();
  108. afx_msg void OnSetfocusEditWidth();
  109. afx_msg void OnKillfocusEditHeight();
  110. afx_msg void OnSetfocusEditHeight();
  111. afx_msg void OnBtnFlipx();
  112. afx_msg void OnBtnFlipy();
  113. afx_msg void OnKillfocusRotate();
  114. afx_msg void OnSetfocusRotate();
  115. //}}AFX_MSG
  116. DECLARE_MESSAGE_MAP()
  117. };
  118. //{{AFX_INSERT_LOCATION}}
  119. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  120. #endif // !defined(AFX_SURFACEDLG_H__D84E0C22_9EEA_11D1_B570_00AA00A410FC__INCLUDED_)