TextureSettingsDialog.h 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. /*
  2. ** Command & Conquer Renegade(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program 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. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /***********************************************************************************************
  19. *** C O N F I D E N T I A L --- W E S T W O O D S T U D I O S ***
  20. ***********************************************************************************************
  21. * *
  22. * Project Name : LevelEdit *
  23. * *
  24. * $Archive:: /Commando/Code/Tools/W3DView/TextureSettingsDialog.h $Modtime:: $*
  25. * *
  26. * $Revision:: 3 $*
  27. * *
  28. *---------------------------------------------------------------------------------------------*
  29. * Functions: *
  30. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  31. #if !defined(AFX_TEXTURESETTINGSDIALOG_H__362C7398_D199_11D2_9FFD_00104B791122__INCLUDED_)
  32. #define AFX_TEXTURESETTINGSDIALOG_H__362C7398_D199_11D2_9FFD_00104B791122__INCLUDED_
  33. #if _MSC_VER > 1000
  34. #pragma once
  35. #endif // _MSC_VER > 1000
  36. #ifdef WW3D_DX8
  37. // Forward delcarations
  38. class TextureClass;
  39. #include "Resource.H"
  40. /////////////////////////////////////////////////////////////////////////////
  41. //
  42. // TextureSettingsDialogClass
  43. //
  44. class TextureSettingsDialogClass : public CDialog
  45. {
  46. // Construction
  47. public:
  48. TextureSettingsDialogClass (IndirectTextureClass *ptexture, IndirectTextureClass *poriginal_texture, CWnd *pParent = NULL);
  49. virtual ~TextureSettingsDialogClass (void);
  50. // Dialog Data
  51. //{{AFX_DATA(TextureSettingsDialogClass)
  52. enum { IDD = IDD_TEXTURE_SETTINGS };
  53. CComboBox m_TypeCombo;
  54. CSpinButtonCtrl m_FrameRateSpin;
  55. CSpinButtonCtrl m_FrameCountSpin;
  56. //}}AFX_DATA
  57. // Overrides
  58. // ClassWizard generated virtual function overrides
  59. //{{AFX_VIRTUAL(TextureSettingsDialogClass)
  60. protected:
  61. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  62. virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
  63. //}}AFX_VIRTUAL
  64. // Implementation
  65. protected:
  66. // Generated message map functions
  67. //{{AFX_MSG(TextureSettingsDialogClass)
  68. virtual BOOL OnInitDialog();
  69. virtual void OnOK();
  70. virtual void OnCancel();
  71. afx_msg void OnAnimationCheck();
  72. afx_msg void OnDestroy();
  73. afx_msg void OnBrowseButton();
  74. afx_msg void OnRestore();
  75. afx_msg void OnApply();
  76. //}}AFX_MSG
  77. DECLARE_MESSAGE_MAP()
  78. public:
  79. ////////////////////////////////////////////////////////////
  80. //
  81. // Private methods
  82. //
  83. bool Were_Settings_Modified (void) const { return m_bWereSettingsModified; }
  84. protected:
  85. ////////////////////////////////////////////////////////////
  86. //
  87. // Protected methods
  88. //
  89. void Fill_Controls (TextureClass *ptexture);
  90. void Fill_Animation_Controls (TextureClass *ptexture);
  91. void Load_Textures_Into_Combo (void);
  92. void Load_Texture_Settings (void);
  93. void Paint_Thumbnail (void);
  94. private:
  95. ////////////////////////////////////////////////////////////
  96. //
  97. // Private member data
  98. //
  99. IndirectTextureClass * m_pTexture;
  100. IndirectTextureClass * m_pOriginalTexture;
  101. TextureClass * m_pStartingTexture;
  102. HBITMAP m_hThumbnail;
  103. bool m_bWereSettingsModified;
  104. };
  105. #endif //WW3D_DX8
  106. //{{AFX_INSERT_LOCATION}}
  107. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  108. #endif // !defined(AFX_TEXTURESETTINGSDIALOG_H__362C7398_D199_11D2_9FFD_00104B791122__INCLUDED_)