forked from nillerusr/source-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSearchReplaceDlg.h
81 lines (60 loc) · 1.55 KB
/
SearchReplaceDlg.h
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
71
72
73
74
75
76
77
78
79
80
81
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef SEARCHREPLACEDLG_H
#define SEARCHREPLACEDLG_H
#ifdef _WIN32
#pragma once
#endif
#include "resource.h"
#include "utlvector.h"
#include "MapClass.h"
class CMapEntity;
struct FindObject_t;
enum FindReplaceIn_t
{
FindInSelection = 0,
FindInWorld,
};
class CSearchReplaceDlg : public CDialog
{
// Construction
public:
CSearchReplaceDlg(CWnd* pParent = NULL); // standard constructor
int Create(CWnd *pwndParent = NULL);
// Dialog Data
//{{AFX_DATA(CSearchReplaceDlg)
enum { IDD = IDD_SEARCH_REPLACE };
CString m_strFindText;
CString m_strReplaceText;
BOOL m_bVisiblesOnly;
BOOL m_bWholeWord;
BOOL m_bCaseSensitive;
int m_nFindIn;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSearchReplaceDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CSearchReplaceDlg)
afx_msg BOOL OnFindReplace(UINT uCmd);
virtual void OnOK();
virtual void OnCancel();
virtual void OnShowWindow(BOOL bShow, UINT nStatus);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void GetFindCriteria(FindObject_t &FindObject, CMapDoc *pDoc);
void FindFirst();
bool FindNext(bool bReplace);
bool m_bNewSearch; // Set to true every time the dialog is brought up.
};
#endif // SEARCHREPLACEDLG_H