summaryrefslogtreecommitdiff
path: root/hammer/mapcheckdlg.h
diff options
context:
space:
mode:
Diffstat (limited to 'hammer/mapcheckdlg.h')
-rw-r--r--hammer/mapcheckdlg.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/hammer/mapcheckdlg.h b/hammer/mapcheckdlg.h
new file mode 100644
index 0000000..43f4d5f
--- /dev/null
+++ b/hammer/mapcheckdlg.h
@@ -0,0 +1,71 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#ifndef MAPCHECKDLG_H
+#define MAPCHECKDLG_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "mapdoc.h"
+
+
+struct MapError;
+class CMapClass;
+
+
+class CMapCheckDlg : public CDialog
+{
+public:
+
+ static void CheckForProblems(CWnd *pwndParent);
+
+private:
+
+ CMapCheckDlg(CWnd *pParent = NULL);
+ enum { IDD = IDD_MAPCHECK };
+ bool DoCheck();
+
+protected:
+
+ //{{AFX_DATA(CMapCheckDlg)
+ CButton m_cFixAll;
+ CButton m_Fix;
+ CButton m_Go;
+ CEdit m_Description;
+ CListBox m_Errors;
+ BOOL m_bCheckVisible;
+ //}}AFX_DATA
+
+ // ClassWizard generated virtual function overrides
+ //{{AFX_VIRTUAL(CMapCheckDlg)
+ protected:
+ virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
+ virtual void OnOK();
+ //}}AFX_VIRTUAL
+
+ //{{AFX_MSG(CMapCheckDlg)
+ afx_msg void OnGo();
+ afx_msg void OnSelchangeErrors();
+ afx_msg void OnDblClkErrors();
+ afx_msg void OnPaint();
+ afx_msg void OnFix();
+ afx_msg void OnFixall();
+ afx_msg void OnDestroy();
+ afx_msg void OnClose();
+ afx_msg void OnCheckVisibleOnly();
+ //}}AFX_MSG
+
+ DECLARE_MESSAGE_MAP()
+
+private:
+
+ void Fix(MapError *pError, UpdateBox &ub);
+ void KillErrorList();
+ void GotoSelectedErrors();
+};
+
+#endif // MAPCHECKDLG_H