| 1 |
#if !defined(AFX_ADVANCEDFINDANDREPLACEDLG_H__905D4F76_A9AA_4197_848A_D370993CEC4D__INCLUDED_) |
|---|
| 2 |
#define AFX_ADVANCEDFINDANDREPLACEDLG_H__905D4F76_A9AA_4197_848A_D370993CEC4D__INCLUDED_ |
|---|
| 3 |
|
|---|
| 4 |
#if _MSC_VER > 1000 |
|---|
| 5 |
#pragma once |
|---|
| 6 |
#endif // _MSC_VER > 1000 |
|---|
| 7 |
// AdvancedFindAndReplaceDlg.h : header file |
|---|
| 8 |
// |
|---|
| 9 |
#include "FindListCtrl.h" |
|---|
| 10 |
#include "FindMatchesCtrl.h" |
|---|
| 11 |
#include "pcre/filegrep.h" |
|---|
| 12 |
///////////////////////////////////////////////////////////////////////////// |
|---|
| 13 |
// CAdvancedFindAndReplaceDlg dialog |
|---|
| 14 |
|
|---|
| 15 |
class CAdvancedFindAndReplaceDlg : public CXTResizeDialog |
|---|
| 16 |
{ |
|---|
| 17 |
// Construction |
|---|
| 18 |
public: |
|---|
| 19 |
CAdvancedFindAndReplaceDlg(CWnd* pParent = NULL); // standard constructor |
|---|
| 20 |
|
|---|
| 21 |
// Dialog Data |
|---|
| 22 |
//{{AFX_DATA(CAdvancedFindAndReplaceDlg) |
|---|
| 23 |
enum { IDD = IDD_ADVANCED_FIND_AND_REPLACE }; |
|---|
| 24 |
CStatic m_searchdataTitle; |
|---|
| 25 |
CXTButton m_findBtn; |
|---|
| 26 |
CStatic m_static; |
|---|
| 27 |
CFindMatchesCtrl m_matches; |
|---|
| 28 |
CFindListCtrl m_files; |
|---|
| 29 |
CElephantEdit m_replace; |
|---|
| 30 |
CElephantEdit m_options; |
|---|
| 31 |
CElephantEdit m_find; |
|---|
| 32 |
CXTButton m_close; |
|---|
| 33 |
CXTButton m_replaceSelected; |
|---|
| 34 |
CXTButton m_replaceAll; |
|---|
| 35 |
CString m_csFind; |
|---|
| 36 |
CString m_csReplace; |
|---|
| 37 |
CString m_csOptions; |
|---|
| 38 |
CString m_found; |
|---|
| 39 |
//}}AFX_DATA |
|---|
| 40 |
vector<string> m_searchfiles; |
|---|
| 41 |
void Populate(); |
|---|
| 42 |
FileGrep * grep; |
|---|
| 43 |
// Overrides |
|---|
| 44 |
// ClassWizard generated virtual function overrides |
|---|
| 45 |
//{{AFX_VIRTUAL(CAdvancedFindAndReplaceDlg) |
|---|
| 46 |
protected: |
|---|
| 47 |
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support |
|---|
| 48 |
//}}AFX_VIRTUAL |
|---|
| 49 |
|
|---|
| 50 |
string m_filter; |
|---|
| 51 |
// Implementation |
|---|
| 52 |
protected: |
|---|
| 53 |
|
|---|
| 54 |
// Generated message map functions |
|---|
| 55 |
//{{AFX_MSG(CAdvancedFindAndReplaceDlg) |
|---|
| 56 |
virtual BOOL OnInitDialog(); |
|---|
| 57 |
afx_msg void OnDestroy(); |
|---|
| 58 |
afx_msg void OnFind(); |
|---|
| 59 |
afx_msg void OnAddFiles(); |
|---|
| 60 |
afx_msg void OnClose(); |
|---|
| 61 |
afx_msg void OnFindmenuRemovefile(); |
|---|
| 62 |
afx_msg void OnDblclkList2(NMHDR* pNMHDR, LRESULT* pResult); |
|---|
| 63 |
afx_msg void OnReplceAll(); |
|---|
| 64 |
afx_msg void OnFilematchesmenuUndo(); |
|---|
| 65 |
afx_msg void OnRelpaceSelected(); |
|---|
| 66 |
afx_msg void OnFindmenuSetfilter(); |
|---|
| 67 |
afx_msg void OnFindmenuAdddir(); |
|---|
| 68 |
afx_msg void OnFindmenuClearfiles(); |
|---|
| 69 |
//}}AFX_MSG |
|---|
| 70 |
afx_msg void OnRButtonDown(UINT nFlags, CPoint point); |
|---|
| 71 |
DECLARE_MESSAGE_MAP() |
|---|
| 72 |
}; |
|---|
| 73 |
|
|---|
| 74 |
//{{AFX_INSERT_LOCATION}} |
|---|
| 75 |
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. |
|---|
| 76 |
|
|---|
| 77 |
#endif // !defined(AFX_ADVANCEDFINDANDREPLACEDLG_H__905D4F76_A9AA_4197_848A_D370993CEC4D__INCLUDED_) |
|---|