EmitterUserPropPage.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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_EMITTERUSERPROPPAGE_H__83A8B840_BA3B_11D2_9FFA_00104B791122__INCLUDED_)
  19. #define AFX_EMITTERUSERPROPPAGE_H__83A8B840_BA3B_11D2_9FFA_00104B791122__INCLUDED_
  20. #if _MSC_VER > 1000
  21. #pragma once
  22. #endif // _MSC_VER > 1000
  23. // EmitterUserPropPage.h : header file
  24. //
  25. #include "Resource.H"
  26. // Forward delcarations
  27. class EmitterInstanceListClass;
  28. /////////////////////////////////////////////////////////////////////////////
  29. // EmitterUserPropPageClass dialog
  30. class EmitterUserPropPageClass : public CPropertyPage
  31. {
  32. DECLARE_DYNCREATE(EmitterUserPropPageClass)
  33. // Construction
  34. public:
  35. EmitterUserPropPageClass (EmitterInstanceListClass *pemitter_list = NULL);
  36. ~EmitterUserPropPageClass ();
  37. // Dialog Data
  38. //{{AFX_DATA(EmitterUserPropPageClass)
  39. enum { IDD = IDD_PROP_PAGE_EMITTER_USER };
  40. CComboBox m_TypeCombo;
  41. //}}AFX_DATA
  42. // Overrides
  43. // ClassWizard generate virtual function overrides
  44. //{{AFX_VIRTUAL(EmitterUserPropPageClass)
  45. public:
  46. virtual BOOL OnApply();
  47. protected:
  48. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  49. //}}AFX_VIRTUAL
  50. // Implementation
  51. protected:
  52. // Generated message map functions
  53. //{{AFX_MSG(EmitterUserPropPageClass)
  54. virtual BOOL OnInitDialog();
  55. afx_msg void OnChangeProgrammerSettingsEdit();
  56. afx_msg void OnSelchangeTypeCombo();
  57. //}}AFX_MSG
  58. DECLARE_MESSAGE_MAP()
  59. public:
  60. /////////////////////////////////////////////////////////
  61. //
  62. // Public methods
  63. //
  64. //
  65. // Inline accessors
  66. //
  67. EmitterInstanceListClass * Get_Emitter (void) const { return m_pEmitterList; }
  68. void Set_Emitter (EmitterInstanceListClass *pemitter_list) { m_pEmitterList = pemitter_list; Initialize (); }
  69. bool Is_Data_Valid (void) const { return m_bValid; }
  70. int Get_Type (void) const { return m_iType; }
  71. const CString & Get_String (void) const { return m_UserString; }
  72. void Set_Type (int type) { m_iType = type; }
  73. void Set_String (LPCTSTR string) { m_UserString = string; }
  74. protected:
  75. /////////////////////////////////////////////////////////
  76. //
  77. // Protected methods
  78. //
  79. void Initialize (void);
  80. private:
  81. /////////////////////////////////////////////////////////
  82. //
  83. // Private member data
  84. //
  85. EmitterInstanceListClass * m_pEmitterList;
  86. bool m_bValid;
  87. int m_iType;
  88. CString m_UserString;
  89. };
  90. //{{AFX_INSERT_LOCATION}}
  91. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  92. #endif // !defined(AFX_EMITTERUSERPROPPAGE_H__83A8B840_BA3B_11D2_9FFA_00104B791122__INCLUDED_)