source-engine/hammer/mapcheckdlg.h
FluorescentCIAAfricanAmerican 3bf9df6b27 1
2020-04-22 12:56:21 -04:00

72 lines
1.3 KiB
C++

//========= 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