WndTerrainTilePalette.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /* Copyright (c) 2002-2012 Croteam Ltd.
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of version 2 of the GNU General Public License as published by
  4. the Free Software Foundation
  5. This program is distributed in the hope that it will be useful,
  6. but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. GNU General Public License for more details.
  9. You should have received a copy of the GNU General Public License along
  10. with this program; if not, write to the Free Software Foundation, Inc.,
  11. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
  12. #if !defined(AFX_WNDTERRAINTILEPALETTE_H__C3228E4D_AEA7_4300_B202_77149FD3B92C__INCLUDED_)
  13. #define AFX_WNDTERRAINTILEPALETTE_H__C3228E4D_AEA7_4300_B202_77149FD3B92C__INCLUDED_
  14. #if _MSC_VER > 1000
  15. #pragma once
  16. #endif // _MSC_VER > 1000
  17. // WndTerrainTilePalette.h : header file
  18. //
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CWndTerrainTilePalette window
  21. class CWndTerrainTilePalette : public CWnd
  22. {
  23. // Construction
  24. public:
  25. CWndTerrainTilePalette();
  26. // Attributes
  27. public:
  28. CTextureData *m_ptd;
  29. CDrawPort *m_pDrawPort;
  30. CViewPort *m_pViewPort;
  31. INDEX m_ctPaletteTilesH;
  32. INDEX m_ctTilesPerRaw;
  33. CDynamicContainer<CTileInfo> m_dcTileInfo;
  34. INDEX m_iTimerID;
  35. // Operations
  36. public:
  37. // Overrides
  38. // ClassWizard generated virtual function overrides
  39. //{{AFX_VIRTUAL(CWndTerrainTilePalette)
  40. public:
  41. virtual BOOL PreTranslateMessage(MSG* pMsg);
  42. //}}AFX_VIRTUAL
  43. // Implementation
  44. public:
  45. virtual ~CWndTerrainTilePalette();
  46. BOOL Initialize(PIX pixX, PIX pixY, CTextureData *ptd, BOOL bCenter=TRUE);
  47. PIXaabbox2D GetTileBBox( INDEX iTile);
  48. // Generated message map functions
  49. protected:
  50. //{{AFX_MSG(CWndTerrainTilePalette)
  51. afx_msg void OnPaint();
  52. afx_msg void OnKillFocus(CWnd* pNewWnd);
  53. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  54. afx_msg void OnTimer(UINT nIDEvent);
  55. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  56. //}}AFX_MSG
  57. DECLARE_MESSAGE_MAP()
  58. };
  59. /////////////////////////////////////////////////////////////////////////////
  60. //{{AFX_INSERT_LOCATION}}
  61. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  62. #endif // !defined(AFX_WNDTERRAINTILEPALETTE_H__C3228E4D_AEA7_4300_B202_77149FD3B92C__INCLUDED_)