EmitterPropertySheet.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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. #if !defined(AFX_EMITTERPROPERTYSHEET_H__83A8B844_BA3B_11D2_9FFA_00104B791122__INCLUDED_)
  19. #define AFX_EMITTERPROPERTYSHEET_H__83A8B844_BA3B_11D2_9FFA_00104B791122__INCLUDED_
  20. #if _MSC_VER > 1000
  21. #pragma once
  22. #endif // _MSC_VER > 1000
  23. // EmitterPropertySheet.h : header file
  24. //
  25. #include "EmitterColorPropPage.H"
  26. #include "EmitterGeneralPropPage.H"
  27. #include "EmitterParticlePropPage.H"
  28. #include "EmitterPhysicsPropPage.H"
  29. #include "EmitterSizePropPage.H"
  30. #include "EmitterUserPropPage.H"
  31. #include "EmitterLinePropPage.H"
  32. #include "EmitterRotationPropPage.H"
  33. #include "EmitterFramePropPage.H"
  34. #include "EmitterLineGroupPropPage.H"
  35. // Forward declarations
  36. class ParticleEmitterClass;
  37. class EmitterInstanceListClass;
  38. class AssetInfoClass;
  39. /////////////////////////////////////////////////////////////////////////////
  40. //
  41. // EmitterPropertySheetClass
  42. //
  43. class EmitterPropertySheetClass : public CPropertySheet
  44. {
  45. DECLARE_DYNAMIC(EmitterPropertySheetClass)
  46. // Construction
  47. public:
  48. EmitterPropertySheetClass (EmitterInstanceListClass *emitter_list, UINT nIDCaption, CWnd* pParentWnd = NULL);
  49. EmitterPropertySheetClass (EmitterInstanceListClass *emitter_list, LPCTSTR pszCaption, CWnd* pParentWnd = NULL);
  50. // Attributes
  51. public:
  52. // Operations
  53. public:
  54. // Overrides
  55. // ClassWizard generated virtual function overrides
  56. //{{AFX_VIRTUAL(EmitterPropertySheetClass)
  57. protected:
  58. virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
  59. //}}AFX_VIRTUAL
  60. // Implementation
  61. public:
  62. virtual ~EmitterPropertySheetClass();
  63. // Generated message map functions
  64. protected:
  65. //{{AFX_MSG(EmitterPropertySheetClass)
  66. // NOTE - the ClassWizard will add and remove member functions here.
  67. //}}AFX_MSG
  68. DECLARE_MESSAGE_MAP()
  69. public:
  70. //////////////////////////////////////////////////////////////////////
  71. //
  72. // Public methods
  73. //
  74. void Notify_Render_Mode_Changed(int new_mode);
  75. protected:
  76. //////////////////////////////////////////////////////////////////////
  77. //
  78. // Protected methods
  79. //
  80. void Initialize (void);
  81. ParticleEmitterClass * Create_Emitter (void);
  82. void Update_Emitter (void);
  83. void Add_Emitter_To_Viewer (void);
  84. void Create_New_Emitter (void);
  85. private:
  86. //////////////////////////////////////////////////////////////////////
  87. //
  88. // Private member data
  89. //
  90. EmitterGeneralPropPageClass m_GeneralPage;
  91. EmitterParticlePropPageClass m_ParticlePage;
  92. EmitterPhysicsPropPageClass m_PhysicsPage;
  93. EmitterColorPropPageClass m_ColorPage;
  94. EmitterUserPropPageClass m_UserPage;
  95. EmitterSizePropPageClass m_SizePage;
  96. EmitterLinePropPageClass m_LinePage;
  97. EmitterRotationPropPageClass m_RotationPage;
  98. EmitterFramePropPageClass m_FramePage;
  99. EmitterLineGroupPropPageClass m_LineGroupPage;
  100. EmitterInstanceListClass * m_pEmitterList;
  101. CString m_LastSavedName;
  102. };
  103. /////////////////////////////////////////////////////////////////////////////
  104. //{{AFX_INSERT_LOCATION}}
  105. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  106. #endif // !defined(AFX_EMITTERPROPERTYSHEET_H__83A8B844_BA3B_11D2_9FFA_00104B791122__INCLUDED_)