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.

99 lines
2.2 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef ENTITYREPORTDLG_H
  7. #define ENTITYREPORTDLG_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include <afxtempl.h>
  12. #include "resource.h"
  13. #include "MapDoc.h"
  14. class CEntityReportDlg : public CDialog
  15. {
  16. public:
  17. static void ShowEntityReport(CMapDoc *pDoc, CWnd* pParent = NULL);
  18. private:
  19. CEntityReportDlg(CMapDoc *pDoc, CWnd* pParent = NULL); // standard constructor
  20. void GenerateReport();
  21. void SaveToIni();
  22. //{{AFX_DATA(CEntityReportDlg)
  23. enum { IDD = IDD_ENTITYREPORT };
  24. CButton m_cExact;
  25. CComboBox m_cFilterClass;
  26. CButton m_cFilterByClass;
  27. CListBox m_cEntities;
  28. CEdit m_cFilterValue;
  29. CEdit m_cFilterKey;
  30. CButton m_cFilterByType;
  31. CButton m_cFilterByKeyvalue;
  32. CButton m_cFilterByHidden;
  33. //}}AFX_DATA
  34. // ClassWizard generated virtual function overrides
  35. //{{AFX_VIRTUAL(CEntityReportDlg)
  36. protected:
  37. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  38. virtual void OnOK();
  39. //}}AFX_VIRTUAL
  40. protected:
  41. CMapDoc *m_pDoc;
  42. void UpdateEntityList();
  43. BOOL m_bFilterByKeyvalue;
  44. BOOL m_bFilterByClass;
  45. BOOL m_bFilterByHidden;
  46. BOOL m_bExact;
  47. int m_iFilterByType;
  48. CString m_szFilterKey;
  49. CString m_szFilterValue;
  50. CString m_szFilterClass;
  51. BOOL m_bFilterTextChanged;
  52. DWORD m_dwFilterTime;
  53. // Generated message map functions
  54. //{{AFX_MSG(CEntityReportDlg)
  55. afx_msg void OnDelete();
  56. afx_msg void OnFilterbyhidden();
  57. afx_msg void OnFilterbykeyvalue();
  58. afx_msg void OnFilterbytype();
  59. afx_msg void OnChangeFilterkey();
  60. afx_msg void OnChangeFiltervalue();
  61. afx_msg void OnGoto();
  62. afx_msg void OnProperties();
  63. afx_msg void OnTimer(UINT nIDEvent);
  64. afx_msg void OnEditchangeFilterclass();
  65. afx_msg void OnFilterbyclass();
  66. afx_msg void OnSelchangeFilterclass();
  67. afx_msg void OnExactvalue();
  68. afx_msg void OnDestroy();
  69. afx_msg void OnClose();
  70. afx_msg void OnSelChangeEntityList();
  71. afx_msg void OnDblClkEntityList();
  72. //}}AFX_MSG
  73. DECLARE_MESSAGE_MAP()
  74. private:
  75. CMapDoc *MarkSelectedEntities( void );
  76. friend BOOL AddEntityToList(CMapEntity *pEntity, CEntityReportDlg *pDlg);
  77. };
  78. #endif // ENTITYREPORTDLG_H