Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.5 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. //
  8. //-----------------------------------------------------------------------------
  9. // $Log: $
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #ifndef MAPINFODLG_H
  14. #define MAPINFODLG_H
  15. #pragma once
  16. class CMapInfoDlg : public CDialog
  17. {
  18. // Construction
  19. public:
  20. CMapInfoDlg(CMapWorld *, CWnd* pParent = NULL); // standard constructor
  21. void CountEntity(CMapEntity *pEntity);
  22. void CountFace(CMapFace *pFace);
  23. void CountSolid(CMapSolid *pSolid);
  24. void CountTexture(IEditorTexture *pTex);
  25. // Dialog Data
  26. //{{AFX_DATA(CMapInfoDlg)
  27. enum { IDD = IDD_MAPINFO };
  28. CStatic m_Faces;
  29. CStatic m_Solids;
  30. CStatic m_SolidEntities;
  31. CStatic m_PointEntities;
  32. CStatic m_TextureMemory;
  33. CStatic m_UniqueTextures;
  34. CListBox m_WadsUsed;
  35. //}}AFX_DATA
  36. CMapWorld *pWorld;
  37. // Overrides
  38. // ClassWizard generated virtual function overrides
  39. //{{AFX_VIRTUAL(CMapInfoDlg)
  40. protected:
  41. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  42. //}}AFX_VIRTUAL
  43. UINT m_uSolidCount;
  44. UINT m_uPointEntityCount;
  45. UINT m_uSolidEntityCount;
  46. UINT m_uFaceCount;
  47. UINT m_uUniqueTextures;
  48. UINT m_uTextureMemory;
  49. IEditorTexture *m_pTextures[1024];
  50. // Implementation
  51. protected:
  52. // Generated message map functions
  53. //{{AFX_MSG(CMapInfoDlg)
  54. virtual BOOL OnInitDialog();
  55. //}}AFX_MSG
  56. DECLARE_MESSAGE_MAP()
  57. };
  58. #endif // MAPINFODLG_H