MapValidator.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. #if !defined(AFX_MAPVALIDATOR_H__B290D180_F761_11D3_B63B_00485453E8BA__INCLUDED_)
  17. #define AFX_MAPVALIDATOR_H__B290D180_F761_11D3_B63B_00485453E8BA__INCLUDED_
  18. #if _MSC_VER > 1000
  19. #pragma once
  20. #endif // _MSC_VER > 1000
  21. // MapValidator.h : Header file
  22. //
  23. #include "resource.h"
  24. /////////////////////////////////////////////////////////////////////////////
  25. // dialog field CMapValidator
  26. class CMapValidator : public CDialog
  27. {
  28. // construction
  29. public:
  30. CMapValidator(CWnd* pParent = NULL); // standard constructor
  31. // dialog field data
  32. //{{AFX_DATA(CMapValidator)
  33. enum { IDD = IDD_MAPVALIDATOR };
  34. //}}AFX_DATA
  35. // overwriteables
  36. //{{AFX_VIRTUAL(CMapValidator)
  37. protected:
  38. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  39. //}}AFX_VIRTUAL
  40. // implementation
  41. protected:
  42. // generated message maps
  43. //{{AFX_MSG(CMapValidator)
  44. virtual BOOL OnInitDialog();
  45. //}}AFX_MSG
  46. DECLARE_MESSAGE_MAP()
  47. private:
  48. CImageList m_ProblemImages;
  49. CListCtrl m_MapProblemList;
  50. void UpdateStrings();
  51. BOOL CheckMap();
  52. };
  53. //{{AFX_INSERT_LOCATION}}
  54. #endif // AFX_MAPVALIDATOR_H__B290D180_F761_11D3_B63B_00485453E8BA__INCLUDED_
  55. CString TranslateTubeString(const char* error_, const CTube& tube, int count);