heightfieldpage.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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/LevelEdit/heightfieldpage.h $*
  25. * *
  26. * Author:: Patrick Smith *
  27. * *
  28. * $Modtime:: 2/27/02 12:21p $*
  29. * *
  30. * $Revision:: 2 $*
  31. * *
  32. *---------------------------------------------------------------------------------------------*
  33. * Functions: *
  34. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  35. #if defined(_MSC_VER)
  36. #pragma once
  37. #endif
  38. #ifndef __HEIGHTFIELDPAGE_H
  39. #define __HEIGHTFIELDPAGE_H
  40. #include "nodetypes.h"
  41. #include "resource.h"
  42. #include "bittype.h"
  43. #include "vector.h"
  44. //////////////////////////////////////////////////////////
  45. // Forward declarations
  46. //////////////////////////////////////////////////////////
  47. class NodeClass;
  48. class DefinitionFactoryClass;
  49. //////////////////////////////////////////////////////////
  50. //
  51. // HeightfieldPageClass
  52. //
  53. //////////////////////////////////////////////////////////
  54. class HeightfieldPageClass : public CDialog
  55. {
  56. public:
  57. HeightfieldPageClass (CWnd *parent_wnd);
  58. virtual ~HeightfieldPageClass (void);
  59. // Form Data
  60. public:
  61. //{{AFX_DATA(HeightfieldPageClass)
  62. enum { IDD = IDD_HEIGHTFIELD_FORM };
  63. //}}AFX_DATA
  64. // Attributes
  65. public:
  66. // Operations
  67. public:
  68. // Overrides
  69. // ClassWizard generated virtual function overrides
  70. //{{AFX_VIRTUAL(HeightfieldPageClass)
  71. protected:
  72. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  73. virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
  74. //}}AFX_VIRTUAL
  75. // Implementation
  76. protected:
  77. #ifdef _DEBUG
  78. virtual void AssertValid() const;
  79. virtual void Dump(CDumpContext& dc) const;
  80. #endif
  81. // Generated message map functions
  82. //{{AFX_MSG(HeightfieldPageClass)
  83. afx_msg void OnSize(UINT nType, int cx, int cy);
  84. afx_msg void OnDestroy();
  85. virtual BOOL OnInitDialog();
  86. afx_msg void OnCreateNewButton();
  87. afx_msg void OnMaterialSettingsButton();
  88. //}}AFX_MSG
  89. DECLARE_MESSAGE_MAP()
  90. public:
  91. ///////////////////////////////////////////////////////
  92. // Public methods
  93. ///////////////////////////////////////////////////////
  94. //
  95. // Static methods
  96. //
  97. static HeightfieldPageClass * Get_Instance (void) { return _TheInstance; }
  98. //
  99. // Material UI configuration
  100. //
  101. void Update_Material_Button (int index);
  102. protected:
  103. ///////////////////////////////////////////////////////
  104. // Protected methods
  105. ///////////////////////////////////////////////////////
  106. private:
  107. ///////////////////////////////////////////////////////
  108. // Private member data
  109. ///////////////////////////////////////////////////////
  110. static HeightfieldPageClass * _TheInstance;
  111. bool IsInitialized;
  112. };
  113. #endif //__HEIGHTFIELDPAGE_H