diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /hammer/entityreportdlg.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'hammer/entityreportdlg.h')
| -rw-r--r-- | hammer/entityreportdlg.h | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/hammer/entityreportdlg.h b/hammer/entityreportdlg.h new file mode 100644 index 0000000..d9d7df6 --- /dev/null +++ b/hammer/entityreportdlg.h @@ -0,0 +1,99 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#ifndef ENTITYREPORTDLG_H +#define ENTITYREPORTDLG_H +#ifdef _WIN32 +#pragma once +#endif + +#include <afxtempl.h> +#include "resource.h" +#include "MapDoc.h" + + +class CEntityReportDlg : public CDialog +{ +public: + + static void ShowEntityReport(CMapDoc *pDoc, CWnd* pParent = NULL); + +private: + + CEntityReportDlg(CMapDoc *pDoc, CWnd* pParent = NULL); // standard constructor + void GenerateReport(); + + void SaveToIni(); + + //{{AFX_DATA(CEntityReportDlg) + enum { IDD = IDD_ENTITYREPORT }; + CButton m_cExact; + CComboBox m_cFilterClass; + CButton m_cFilterByClass; + CListBox m_cEntities; + CEdit m_cFilterValue; + CEdit m_cFilterKey; + CButton m_cFilterByType; + CButton m_cFilterByKeyvalue; + CButton m_cFilterByHidden; + //}}AFX_DATA + + // ClassWizard generated virtual function overrides + //{{AFX_VIRTUAL(CEntityReportDlg) + protected: + virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support + virtual void OnOK(); + //}}AFX_VIRTUAL + +protected: + + CMapDoc *m_pDoc; + void UpdateEntityList(); + + BOOL m_bFilterByKeyvalue; + BOOL m_bFilterByClass; + BOOL m_bFilterByHidden; + BOOL m_bExact; + int m_iFilterByType; + + CString m_szFilterKey; + CString m_szFilterValue; + CString m_szFilterClass; + + BOOL m_bFilterTextChanged; + DWORD m_dwFilterTime; + + // Generated message map functions + //{{AFX_MSG(CEntityReportDlg) + afx_msg void OnDelete(); + afx_msg void OnFilterbyhidden(); + afx_msg void OnFilterbykeyvalue(); + afx_msg void OnFilterbytype(); + afx_msg void OnChangeFilterkey(); + afx_msg void OnChangeFiltervalue(); + afx_msg void OnGoto(); + afx_msg void OnProperties(); + afx_msg void OnTimer(UINT nIDEvent); + afx_msg void OnEditchangeFilterclass(); + afx_msg void OnFilterbyclass(); + afx_msg void OnSelchangeFilterclass(); + afx_msg void OnExactvalue(); + afx_msg void OnDestroy(); + afx_msg void OnClose(); + afx_msg void OnSelChangeEntityList(); + afx_msg void OnDblClkEntityList(); + //}}AFX_MSG + DECLARE_MESSAGE_MAP() + +private: + + CMapDoc *MarkSelectedEntities( void ); + + friend BOOL AddEntityToList(CMapEntity *pEntity, CEntityReportDlg *pDlg); +}; + + +#endif // ENTITYREPORTDLG_H |