summaryrefslogtreecommitdiff
path: root/hammer/mapinfodlg.h
blob: 35f4cd09fc8fed355b29617e3ee80a184faa640a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $Workfile:     $
// $Date:         $
//
//-----------------------------------------------------------------------------
// $Log: $
//
// $NoKeywords: $
//=============================================================================//

#ifndef MAPINFODLG_H
#define MAPINFODLG_H
#pragma once


class CMapInfoDlg : public CDialog
{
	// Construction
	public:
		CMapInfoDlg(CMapWorld *, CWnd* pParent = NULL);   // standard constructor

		void CountEntity(CMapEntity *pEntity);
		void CountFace(CMapFace *pFace);
		void CountSolid(CMapSolid *pSolid);
		void CountTexture(IEditorTexture *pTex);

	// Dialog Data
		//{{AFX_DATA(CMapInfoDlg)
		enum { IDD = IDD_MAPINFO };
		CStatic	m_Faces;
		CStatic	m_Solids;
		CStatic	m_SolidEntities;
		CStatic	m_PointEntities;
		CStatic	m_TextureMemory;
		CStatic	m_UniqueTextures;
		CListBox m_WadsUsed;
		//}}AFX_DATA

		CMapWorld *pWorld;

	// Overrides
		// ClassWizard generated virtual function overrides
		//{{AFX_VIRTUAL(CMapInfoDlg)
		protected:
		virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
		//}}AFX_VIRTUAL

		UINT m_uSolidCount;
		UINT m_uPointEntityCount;
		UINT m_uSolidEntityCount;
		UINT m_uFaceCount;
		UINT m_uUniqueTextures;
		UINT m_uTextureMemory;

		IEditorTexture *m_pTextures[1024];

	// Implementation
	protected:

		// Generated message map functions
		//{{AFX_MSG(CMapInfoDlg)
		virtual BOOL OnInitDialog();
		//}}AFX_MSG
		DECLARE_MESSAGE_MAP()
};

#endif // MAPINFODLG_H