ZoneInfoPage.cpp 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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. // ZoneInfoPage.cpp : implementation file
  19. //
  20. #include "stdafx.h"
  21. #include "leveledit.h"
  22. #include "ZoneInfoPage.h"
  23. #ifdef _DEBUG
  24. #define new DEBUG_NEW
  25. #undef THIS_FILE
  26. static char THIS_FILE[] = __FILE__;
  27. #endif
  28. /////////////////////////////////////////////////////////////////////////////
  29. //
  30. // ZoneInfoPageClass
  31. //
  32. ZoneInfoPageClass::ZoneInfoPageClass ()
  33. : m_pZone (NULL),
  34. DockableFormClass(ZoneInfoPageClass::IDD)
  35. {
  36. //{{AFX_DATA_INIT(ZoneInfoPageClass)
  37. // NOTE: the ClassWizard will add member initialization here
  38. //}}AFX_DATA_INIT
  39. return ;
  40. }
  41. /////////////////////////////////////////////////////////////////////////////
  42. //
  43. // ZoneInfoPageClass
  44. //
  45. ZoneInfoPageClass::ZoneInfoPageClass (ZoneInstanceClass *pzone)
  46. : m_pZone (pzone),
  47. DockableFormClass(ZoneInfoPageClass::IDD)
  48. {
  49. return ;
  50. }
  51. /////////////////////////////////////////////////////////////////////////////
  52. //
  53. // ~ZoneInfoPageClass
  54. //
  55. ZoneInfoPageClass::~ZoneInfoPageClass ()
  56. {
  57. return ;
  58. }
  59. /////////////////////////////////////////////////////////////////////////////
  60. //
  61. // DoDataExchange
  62. //
  63. void
  64. ZoneInfoPageClass::DoDataExchange (CDataExchange* pDX)
  65. {
  66. DockableFormClass::DoDataExchange(pDX);
  67. //{{AFX_DATA_MAP(ZoneInfoPageClass)
  68. // NOTE: the ClassWizard will add DDX and DDV calls here
  69. //}}AFX_DATA_MAP
  70. return ;
  71. }
  72. BEGIN_MESSAGE_MAP(ZoneInfoPageClass, DockableFormClass)
  73. //{{AFX_MSG_MAP(ZoneInfoPageClass)
  74. // NOTE - the ClassWizard will add and remove mapping macros here.
  75. //}}AFX_MSG_MAP
  76. END_MESSAGE_MAP()
  77. /////////////////////////////////////////////////////////////////////////////
  78. // ZoneInfoPageClass diagnostics
  79. #ifdef _DEBUG
  80. void ZoneInfoPageClass::AssertValid() const
  81. {
  82. DockableFormClass::AssertValid();
  83. }
  84. void ZoneInfoPageClass::Dump(CDumpContext& dc) const
  85. {
  86. DockableFormClass::Dump(dc);
  87. }
  88. #endif //_DEBUG
  89. /////////////////////////////////////////////////////////////////////////////
  90. //
  91. // HandleInitDialog
  92. //
  93. void
  94. ZoneInfoPageClass::HandleInitDialog (void)
  95. {
  96. return ;
  97. }
  98. /////////////////////////////////////////////////////////////////////////////
  99. //
  100. // Apply_Changes
  101. //
  102. bool
  103. ZoneInfoPageClass::Apply_Changes (void)
  104. {
  105. // Return true to allow the dialog to close
  106. return true;
  107. }