RingPropertySheet.h 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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 : W3DView *
  23. * *
  24. * $Archive:: /Commando/Code/Tools/W3DView/RingPropertySheet.h $*
  25. * *
  26. * Author:: Patrick Smith *
  27. * *
  28. * $Modtime:: 3/14/00 10:25p $*
  29. * *
  30. * $Revision:: 2 $*
  31. * *
  32. *---------------------------------------------------------------------------------------------*
  33. * Functions: *
  34. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  35. #if defined(_MSC_VER)
  36. #pragma once
  37. #endif
  38. #ifndef __RING_PROPERTY_SHEET_H
  39. #define __RING_PROPERTY_SHEET_H
  40. #include "RingColorPropPage.H"
  41. #include "RingGeneralPropPage.H"
  42. #include "RingSizePropPage.H"
  43. // Forward declarations
  44. class ParticleEmitterClass;
  45. class EmitterInstanceListClass;
  46. class AssetInfoClass;
  47. /////////////////////////////////////////////////////////////////////////////
  48. //
  49. // RingPropertySheetClass
  50. //
  51. /////////////////////////////////////////////////////////////////////////////
  52. class RingPropertySheetClass : public CPropertySheet
  53. {
  54. DECLARE_DYNAMIC(RingPropertySheetClass)
  55. // Construction
  56. public:
  57. RingPropertySheetClass (RingRenderObjClass *ring, UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
  58. RingPropertySheetClass (RingRenderObjClass *ring, LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
  59. // Attributes
  60. public:
  61. // Operations
  62. public:
  63. // Overrides
  64. // ClassWizard generated virtual function overrides
  65. //{{AFX_VIRTUAL(RingPropertySheetClass)
  66. protected:
  67. virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
  68. //}}AFX_VIRTUAL
  69. // Implementation
  70. public:
  71. virtual ~RingPropertySheetClass();
  72. // Generated message map functions
  73. protected:
  74. //{{AFX_MSG(RingPropertySheetClass)
  75. //}}AFX_MSG
  76. DECLARE_MESSAGE_MAP()
  77. public:
  78. //////////////////////////////////////////////////////////////////////
  79. // Public methods
  80. //////////////////////////////////////////////////////////////////////
  81. protected:
  82. //////////////////////////////////////////////////////////////////////
  83. // Protected methods
  84. //////////////////////////////////////////////////////////////////////
  85. void Initialize (void);
  86. RingRenderObjClass * Create_Object (void);
  87. void Update_Object (void);
  88. void Add_Object_To_Viewer (void);
  89. void Create_New_Object (void);
  90. private:
  91. //////////////////////////////////////////////////////////////////////
  92. // Private member data
  93. //////////////////////////////////////////////////////////////////////
  94. RingGeneralPropPageClass m_GeneralPage;
  95. RingColorPropPageClass m_ColorPage;
  96. RingSizePropPageClass m_ScalePage;
  97. RingRenderObjClass * m_RenderObj;
  98. CString m_LastSavedName;
  99. };
  100. /////////////////////////////////////////////////////////////////////////////
  101. #endif //__RING_PROPERTY_SHEET_H