Code::Blocks  SVN r11506
findreplacedlg.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Code::Blocks IDE and licensed under the GNU Lesser General Public License, version 3
3  * http://www.gnu.org/licenses/lgpl-3.0.html
4  */
5 
6 #ifndef REPLACEDLG_H
7 #define REPLACEDLG_H
8 
9 #include <wx/notebook.h>
10 
11 #include "findreplacebase.h"
12 
13 class wxComboBox;
14 class wxCommandEvent;
15 
17 {
18  public:
19  FindReplaceDlg(wxWindow* parent, const wxString& initial = wxEmptyString, bool hasSelection = false,
20  bool findMode = true, bool findReplaceInFilesOnly = false, bool findReplaceInFilesActive = false);
21  ~FindReplaceDlg() override;
22 
23  wxString GetFindString() const override;
24  wxString GetReplaceString() const override;
25  bool IsFindInFiles() const override;
26  bool GetDeleteOldSearches() const override;
27  bool GetSortSearchResult() const override;
28  bool GetMatchWord() const override;
29  bool GetStartWord() const override;
30  bool GetMatchCase() const override;
31  bool GetRegEx() const override;
32  bool GetAutoWrapSearch() const override;
33  bool GetFindUsesSelectedText() const override;
34  bool GetStartFile() const override;
35  bool GetMultiLine() const override;
36  bool GetFixEOLs() const override;
37 
38  int GetDirection() const override;
39  int GetOrigin() const override;
40  int GetScope() const override;
41  bool GetRecursive() const override; // for find in search path
42  bool GetHidden() const override; // for find in search path
43  wxString GetSearchPath() const override; // for find in search path
44  wxString GetSearchMask() const override; // for find in search path
45  int GetProject() const override; // for find in project
46  int GetTarget() const override; // for find in project
47 
48  bool IsMultiLine() const;
49 
50  protected:
51  void OnReplaceChange(wxNotebookEvent& event);
52  void OnRegEx(wxCommandEvent& event);
53  void OnActivate(wxActivateEvent& event);
54  void OnMultiChange(wxCommandEvent& event);
55  void OnLimitToChange(wxCommandEvent& event);
56  void OnScopeChange(wxCommandEvent& event);
57  void OnBrowsePath(wxCommandEvent& event);
58  void OnSearchProject(wxCommandEvent& event);
59  void OnDeferredFocus(wxCommandEvent& event);
60  void OnSelectTarget(wxCommandEvent& event);
61 
62  private:
63  void FillComboWithLastValues(wxComboBox* combo, const wxString& configKey);
64  void SaveComboValues(wxComboBox* combo, const wxString& configKey);
66  bool m_findMode;
68 
69  DECLARE_EVENT_TABLE()
70 };
71 
72 #endif // REPLACEDLG_H
virtual bool GetAutoWrapSearch() const =0
virtual bool IsFindInFiles() const =0
virtual int GetDirection() const =0
virtual bool GetFixEOLs() const =0
virtual bool GetHidden() const =0
virtual int GetOrigin() const =0
virtual bool GetFindUsesSelectedText() const =0
virtual int GetScope() const =0
virtual wxString GetSearchMask() const =0
virtual bool GetSortSearchResult() const =0
#define DLLIMPORT
Definition: settings.h:16
virtual int GetTarget() const =0
virtual wxString GetReplaceString() const =0
wxWindow * m_findPage
bool m_findReplaceInFilesActive
virtual bool GetStartWord() const =0
virtual bool GetDeleteOldSearches() const =0
wxString wxEmptyString
virtual bool GetMatchCase() const =0
virtual bool GetRecursive() const =0
virtual bool GetRegEx() const =0
virtual bool GetMultiLine() const =0
virtual wxString GetFindString() const =0
virtual bool GetMatchWord() const =0
virtual wxString GetSearchPath() const =0
virtual int GetProject() const =0
virtual bool GetStartFile() const =0