Info.cpp 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. /*
  2. FinalSun/FinalAlert 2 Mission Editor
  3. Copyright (C) 1999-2024 Electronic Arts, Inc.
  4. Authored by Matthias Wagner
  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. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <https://www.gnu.org/licenses/>.
  15. */
  16. // Info.cpp: Implementierungsdatei
  17. //
  18. #include "stdafx.h"
  19. #include "FinalSun.h"
  20. #include "Info.h"
  21. #ifdef _DEBUG
  22. #define new DEBUG_NEW
  23. #undef THIS_FILE
  24. static char THIS_FILE[] = __FILE__;
  25. #endif
  26. /////////////////////////////////////////////////////////////////////////////
  27. // Dialogfeld CInfo
  28. CInfo::CInfo(CWnd* pParent /*=NULL*/)
  29. : CDialog(CInfo::IDD, pParent)
  30. {
  31. //{{AFX_DATA_INIT(CInfo)
  32. // HINWEIS: Der Klassen-Assistent fügt hier Elementinitialisierung ein
  33. //}}AFX_DATA_INIT
  34. }
  35. void CInfo::DoDataExchange(CDataExchange* pDX)
  36. {
  37. CDialog::DoDataExchange(pDX);
  38. //{{AFX_DATA_MAP(CInfo)
  39. // HINWEIS: Der Klassen-Assistent fügt hier DDX- und DDV-Aufrufe ein
  40. //}}AFX_DATA_MAP
  41. }
  42. BEGIN_MESSAGE_MAP(CInfo, CDialog)
  43. //{{AFX_MSG_MAP(CInfo)
  44. // HINWEIS: Der Klassen-Assistent fügt hier Zuordnungsmakros für Nachrichten ein
  45. //}}AFX_MSG_MAP
  46. // ON_EN_CHANGE(IDC_EDIT1, &CInfo::OnEnChangeEdit1)
  47. END_MESSAGE_MAP()
  48. /////////////////////////////////////////////////////////////////////////////
  49. // Behandlungsroutinen für Nachrichten CInfo
  50. BOOL CInfo::OnInitDialog()
  51. {
  52. CDialog::OnInitDialog();
  53. #ifdef YR_MODE
  54. CStringA license = R"(FinalAlert 2: Yuri's Revenge Mission Editor
  55. Copyright (C) 1999-2024 Electronic Arts, Inc.
  56. Authored by Matthias Wagner
  57. This program is free software: you can redistribute it and/or modify
  58. it under the terms of the GNU General Public License as published by
  59. the Free Software Foundation, either version 3 of the License, or
  60. (at your option) any later version.
  61. This program is distributed in the hope that it will be useful,
  62. but WITHOUT ANY WARRANTY; without even the implied warranty of
  63. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  64. GNU General Public License for more details.
  65. You should have received a copy of the GNU General Public License
  66. along with this program. If not, see <https://www.gnu.org/licenses/>.)";
  67. #elif RA2_MODE
  68. CStringA license = R"(FinalAlert 2 Mission Editor
  69. Copyright (C) 1999-2024 Electronic Arts, Inc.
  70. Authored by Matthias Wagner
  71. This program is free software: you can redistribute it and/or modify
  72. it under the terms of the GNU General Public License as published by
  73. the Free Software Foundation, either version 3 of the License, or
  74. (at your option) any later version.
  75. This program is distributed in the hope that it will be useful,
  76. but WITHOUT ANY WARRANTY; without even the implied warranty of
  77. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  78. GNU General Public License for more details.
  79. You should have received a copy of the GNU General Public License
  80. along with this program. If not, see <https://www.gnu.org/licenses/>.)";
  81. #else // TS_MODE
  82. CStringA license = R"(FinalSun Mission Editor
  83. Copyright (C) 1999-2024 Electronic Arts, Inc.
  84. Authored by Matthias Wagner
  85. This program is free software: you can redistribute it and/or modify
  86. it under the terms of the GNU General Public License as published by
  87. the Free Software Foundation, either version 3 of the License, or
  88. (at your option) any later version.
  89. This program is distributed in the hope that it will be useful,
  90. but WITHOUT ANY WARRANTY; without even the implied warranty of
  91. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  92. GNU General Public License for more details.
  93. You should have received a copy of the GNU General Public License
  94. along with this program. If not, see <https://www.gnu.org/licenses/>.)";
  95. #endif
  96. license.Replace("\n", "\r\n");
  97. GetDlgItem(IDC_LICENSE_AND_COPYRIGHT)->SetWindowTextA(license);
  98. return TRUE;
  99. }