VolumeRandomDialog.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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_VOLUMERANDOMDIALOG_H__F22DB07B_0EFF_11D3_A034_00104B791122__INCLUDED_)
  19. #define AFX_VOLUMERANDOMDIALOG_H__F22DB07B_0EFF_11D3_A034_00104B791122__INCLUDED_
  20. #if _MSC_VER > 1000
  21. #pragma once
  22. #endif // _MSC_VER > 1000
  23. // VolumeRandomDialog.h : header file
  24. //
  25. // Forward declarations
  26. class Vector3Randomizer;
  27. /////////////////////////////////////////////////////////////////////////////
  28. //
  29. // VolumeRandomDialogClass dialog
  30. //
  31. /////////////////////////////////////////////////////////////////////////////
  32. class VolumeRandomDialogClass : public CDialog
  33. {
  34. // Construction
  35. public:
  36. VolumeRandomDialogClass (Vector3Randomizer *randomizer, CWnd *pParent = NULL); // standard constructor
  37. // Dialog Data
  38. //{{AFX_DATA(VolumeRandomDialogClass)
  39. enum { IDD = IDD_VOLUME_RANDOMIZER };
  40. CSpinButtonCtrl m_SphereRadiusSpin;
  41. CSpinButtonCtrl m_CylinderRadiusSpin;
  42. CSpinButtonCtrl m_CylinderHeightSpin;
  43. CSpinButtonCtrl m_BoxZSpin;
  44. CSpinButtonCtrl m_BoxYSpin;
  45. CSpinButtonCtrl m_BoxXSpin;
  46. //}}AFX_DATA
  47. // Overrides
  48. // ClassWizard generated virtual function overrides
  49. //{{AFX_VIRTUAL(VolumeRandomDialogClass)
  50. protected:
  51. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  52. virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
  53. //}}AFX_VIRTUAL
  54. // Implementation
  55. protected:
  56. // Generated message map functions
  57. //{{AFX_MSG(VolumeRandomDialogClass)
  58. virtual void OnOK();
  59. virtual BOOL OnInitDialog();
  60. afx_msg void OnBoxRadio();
  61. afx_msg void OnCylinderRadio();
  62. afx_msg void OnSphereRadio();
  63. //}}AFX_MSG
  64. DECLARE_MESSAGE_MAP()
  65. public:
  66. //////////////////////////////////////////////////////////////////////////////
  67. // Public methods
  68. //////////////////////////////////////////////////////////////////////////////
  69. Vector3Randomizer * Get_Randomizer (void) const { return m_Randomizer; }
  70. protected:
  71. //////////////////////////////////////////////////////////////////////////////
  72. // Protected methods
  73. //////////////////////////////////////////////////////////////////////////////
  74. void Update_Enable_State (void);
  75. private:
  76. //////////////////////////////////////////////////////////////////////////////
  77. // Private member data
  78. //////////////////////////////////////////////////////////////////////////////
  79. Vector3Randomizer * m_Randomizer;
  80. };
  81. //{{AFX_INSERT_LOCATION}}
  82. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  83. #endif // !defined(AFX_VOLUMERANDOMDIALOG_H__F22DB07B_0EFF_11D3_A034_00104B791122__INCLUDED_)