MyViewFrame.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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_MYVIEWFRAME_H__98929AE1_9B75_11D3_B63B_D046A7216340__INCLUDED_)
  17. #define AFX_MYVIEWFRAME_H__98929AE1_9B75_11D3_B63B_D046A7216340__INCLUDED_
  18. #include "IsoView.h"
  19. #if _MSC_VER > 1000
  20. #pragma once
  21. #endif
  22. // MyViewFrame.h : Header file
  23. //
  24. #include "isoview.h"
  25. #include "viewobjects.h"
  26. #include "MiniMap.h"
  27. #include "RightFrame.h"
  28. #include "TileSetBrowserFrame.h"
  29. /////////////////////////////////////////////////////////////////////////////
  30. // Frame CMyViewFrame
  31. class CMyViewFrame : public CFrameWnd
  32. {
  33. DECLARE_DYNCREATE(CMyViewFrame)
  34. protected:
  35. // attributes
  36. public:
  37. CMiniMap m_minimap;
  38. CStatusBar m_statbar;
  39. CViewObjects* m_objectview;
  40. CIsoView* m_isoview;
  41. CSplitterWnd m_Splitter;
  42. // operations
  43. public:
  44. CTileSetBrowserFrame* m_browser;
  45. CRightFrame* m_rightFrame;
  46. CMyViewFrame();
  47. ~CMyViewFrame();
  48. // overwriteables
  49. //{{AFX_VIRTUAL(CMyViewFrame)
  50. protected:
  51. virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
  52. virtual void PostNcDestroy();
  53. //}}AFX_VIRTUAL
  54. // implementation
  55. protected:
  56. // generated message maps
  57. //{{AFX_MSG(CMyViewFrame)
  58. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  59. afx_msg void OnSize(UINT nType, int cx, int cy);
  60. afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
  61. afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
  62. afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
  63. afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
  64. //}}AFX_MSG
  65. DECLARE_MESSAGE_MAP()
  66. };
  67. /////////////////////////////////////////////////////////////////////////////
  68. //{{AFX_INSERT_LOCATION}}
  69. #endif // AFX_MYVIEWFRAME_H__98929AE1_9B75_11D3_B63B_D046A7216340__INCLUDED_