EditorPropSheet.h 3.5 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. #if !defined(AFX_EDITORPROPSHEETCLASS_H__E2623E75_740A_11D2_9FD0_00104B791122__INCLUDED_)
  19. #define AFX_EDITORPROPSHEETCLASS_H__E2623E75_740A_11D2_9FD0_00104B791122__INCLUDED_
  20. #if _MSC_VER >= 1000
  21. #pragma once
  22. #endif // _MSC_VER >= 1000
  23. // EditorPropSheetClass.h : header file
  24. //
  25. #include "dockableform.h"
  26. #include "vector.h"
  27. #include "resource.h"
  28. #ifndef __AFXEXT_H__
  29. #include <afxext.h>
  30. #endif
  31. /////////////////////////////////////////////////////////////////////////////
  32. //
  33. // EditorPropSheetClass
  34. //
  35. /////////////////////////////////////////////////////////////////////////////
  36. class EditorPropSheetClass : public CDialog
  37. {
  38. public:
  39. EditorPropSheetClass (void);
  40. virtual ~EditorPropSheetClass (void);
  41. // Form Data
  42. public:
  43. //{{AFX_DATA(EditorPropSheetClass)
  44. enum { IDD = IDD_PROP_SHEET_TEMPLATE };
  45. CTabCtrl m_TabCtrl;
  46. //}}AFX_DATA
  47. // Attributes
  48. public:
  49. // Operations
  50. public:
  51. // Overrides
  52. // ClassWizard generated virtual function overrides
  53. //{{AFX_VIRTUAL(EditorPropSheetClass)
  54. protected:
  55. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  56. virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
  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(EditorPropSheetClass)
  66. afx_msg void OnSize(UINT nType, int cx, int cy);
  67. afx_msg void OnSelchangeTabCtrl(NMHDR* pNMHDR, LRESULT* pResult);
  68. virtual BOOL OnInitDialog();
  69. afx_msg void OnOk();
  70. virtual void OnCancel();
  71. //}}AFX_MSG
  72. DECLARE_MESSAGE_MAP()
  73. public:
  74. ///////////////////////////////////////////////////////
  75. // Public methods
  76. ///////////////////////////////////////////////////
  77. virtual void Add_Page (DockableFormClass *pnew_tab) { if (m_hWnd == NULL) m_TabList.Add (pnew_tab); }
  78. bool Is_Read_Only (void) const { return m_IsReadOnly; }
  79. void Set_Read_Only (bool onoff) { m_IsReadOnly = onoff; }
  80. protected:
  81. ///////////////////////////////////////////////////
  82. // Protected methods
  83. ///////////////////////////////////////////////////
  84. virtual void Reposition_Buttons (int cx, int cy);
  85. virtual bool Apply_Changes (void);
  86. ///////////////////////////////////////////////////
  87. // Protected member data
  88. ///////////////////////////////////////////////////
  89. DynamicVectorClass<DockableFormClass *> m_TabList;
  90. private:
  91. ///////////////////////////////////////////////////
  92. // Private member data
  93. ///////////////////////////////////////////////////
  94. int m_iCurrentTab;
  95. bool m_IsReadOnly;
  96. };
  97. /////////////////////////////////////////////////////////////////////////////
  98. //{{AFX_INSERT_LOCATION}}
  99. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  100. #endif // !defined(AFX_EDITORPROPSHEETCLASS_H__E2623E75_740A_11D2_9FD0_00104B791122__INCLUDED_)