TextureBar.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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_TEXTUREBAR_H__86220273_B656_11D1_B59F_00AA00A410FC__INCLUDED_)
  19. #define AFX_TEXTUREBAR_H__86220273_B656_11D1_B59F_00AA00A410FC__INCLUDED_
  20. #if _MSC_VER >= 1000
  21. #pragma once
  22. #endif // _MSC_VER >= 1000
  23. // TextureBar.h : header file
  24. //
  25. /////////////////////////////////////////////////////////////////////////////
  26. // CTextureBar dialog
  27. class CTextureBar : public CDialogBar
  28. {
  29. // Construction
  30. public:
  31. void GetSurfaceAttributes();
  32. void SetSurfaceAttributes();
  33. CTextureBar();
  34. // Dialog Data
  35. //{{AFX_DATA(CTextureBar)
  36. enum { IDD = IDD_TEXTUREBAR };
  37. CSpinButtonCtrl m_spinRotate;
  38. CSpinButtonCtrl m_spinVScale;
  39. CSpinButtonCtrl m_spinVShift;
  40. CSpinButtonCtrl m_spinHScale;
  41. CSpinButtonCtrl m_spinHShift;
  42. int m_nHShift;
  43. int m_nHScale;
  44. int m_nRotate;
  45. int m_nVShift;
  46. int m_nVScale;
  47. int m_nRotateAmt;
  48. //}}AFX_DATA
  49. // Overrides
  50. // ClassWizard generated virtual function overrides
  51. //{{AFX_VIRTUAL(CTextureBar)
  52. protected:
  53. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  54. //}}AFX_VIRTUAL
  55. // Implementation
  56. protected:
  57. // Generated message map functions
  58. //{{AFX_MSG(CTextureBar)
  59. afx_msg void OnDeltaposSpinHshift(NMHDR* pNMHDR, LRESULT* pResult);
  60. afx_msg void OnDeltaposSpinVshift(NMHDR* pNMHDR, LRESULT* pResult);
  61. afx_msg void OnDeltaposSpinHScale(NMHDR* pNMHDR, LRESULT* pResult);
  62. afx_msg void OnDeltaposSpinVScale(NMHDR* pNMHDR, LRESULT* pResult);
  63. afx_msg void OnDeltaposSpinRotate(NMHDR* pNMHDR, LRESULT* pResult);
  64. afx_msg void OnSelectionPrint();
  65. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  66. afx_msg void OnBtnApplytexturestuff();
  67. //}}AFX_MSG
  68. DECLARE_MESSAGE_MAP()
  69. };
  70. //{{AFX_INSERT_LOCATION}}
  71. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  72. #endif // !defined(AFX_TEXTUREBAR_H__86220273_B656_11D1_B59F_00AA00A410FC__INCLUDED_)