PresetGeneralTab.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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_PRESETGENERALTAB_H__9CC8BAE8_7052_11D3_A05A_00104B791122__INCLUDED_)
  19. #define AFX_PRESETGENERALTAB_H__9CC8BAE8_7052_11D3_A05A_00104B791122__INCLUDED_
  20. #if _MSC_VER > 1000
  21. #pragma once
  22. #endif // _MSC_VER > 1000
  23. // PresetGeneralTab.h : header file
  24. //
  25. #ifndef __AFXEXT_H__
  26. #include <afxext.h>
  27. #endif
  28. #include "resource.h"
  29. #include "dockableform.h"
  30. // Forward declarations
  31. class PresetClass;
  32. /////////////////////////////////////////////////////////////////////////////
  33. //
  34. // PresetGeneralTabClass
  35. //
  36. /////////////////////////////////////////////////////////////////////////////
  37. class PresetGeneralTabClass : public DockableFormClass
  38. {
  39. public:
  40. PresetGeneralTabClass (PresetClass *preset);
  41. virtual ~PresetGeneralTabClass (void);
  42. // Form Data
  43. public:
  44. //{{AFX_DATA(PresetGeneralTabClass)
  45. enum { IDD = IDD_PRESET_GENERAL_TAB };
  46. // NOTE: the ClassWizard will add data members here
  47. //}}AFX_DATA
  48. // Attributes
  49. public:
  50. // Operations
  51. public:
  52. // Overrides
  53. // ClassWizard generated virtual function overrides
  54. //{{AFX_VIRTUAL(PresetGeneralTabClass)
  55. protected:
  56. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  57. //}}AFX_VIRTUAL
  58. // Implementation
  59. protected:
  60. #ifdef _DEBUG
  61. virtual void AssertValid() const;
  62. virtual void Dump(CDumpContext& dc) const;
  63. #endif
  64. // Generated message map functions
  65. //{{AFX_MSG(PresetGeneralTabClass)
  66. // NOTE - the ClassWizard will add and remove member functions here.
  67. //}}AFX_MSG
  68. DECLARE_MESSAGE_MAP()
  69. public:
  70. /////////////////////////////////////////////////////////////////////////////
  71. // Private member data
  72. /////////////////////////////////////////////////////////////////////////////
  73. void HandleInitDialog (void);
  74. bool Apply_Changes (void);
  75. bool Is_Read_Only (void) const { return m_IsReadOnly; }
  76. void Set_Read_Only (bool onoff) { m_IsReadOnly = onoff; }
  77. private:
  78. /////////////////////////////////////////////////////////////////////////////
  79. // Private member data
  80. /////////////////////////////////////////////////////////////////////////////
  81. PresetClass * m_Preset;
  82. bool m_IsReadOnly;
  83. };
  84. /////////////////////////////////////////////////////////////////////////////
  85. //{{AFX_INSERT_LOCATION}}
  86. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  87. #endif // !defined(AFX_PRESETGENERALTAB_H__9CC8BAE8_7052_11D3_A05A_00104B791122__INCLUDED_)