summaryrefslogtreecommitdiff
path: root/hammer/SearchReplaceDlg.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /hammer/SearchReplaceDlg.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'hammer/SearchReplaceDlg.h')
-rw-r--r--hammer/SearchReplaceDlg.h81
1 files changed, 81 insertions, 0 deletions
diff --git a/hammer/SearchReplaceDlg.h b/hammer/SearchReplaceDlg.h
new file mode 100644
index 0000000..1f6413d
--- /dev/null
+++ b/hammer/SearchReplaceDlg.h
@@ -0,0 +1,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