30#ifndef FINDREPLACEPANE_H
31#define FINDREPLACEPANE_H
34#include <wx/fdrepdlg.h>
37#include <wx/radiobut.h>
38#include <wx/checkbox.h>
39#include <wx/textctrl.h>
40#include <wx/combobox.h>
53 bool GetRegexSearch()
const {
return m_regexSearch;}
54 void SetRegexSearch(
bool regexSearch) {m_regexSearch = regexSearch;}
63 static constexpr int m_historyLength = 15;
65 wxComboBox *m_searchText;
66 wxComboBox *m_replaceText;
69 void LoadHistory(wxComboBox *combo,
const wxString &key);
72 void AddToHistory(wxComboBox *combo,
const wxString &key,
const wxString &value);
73 wxButton *m_searchButton;
74 wxButton *m_replaceButton;
75 wxButton *m_replaceAllButton;
76 wxRadioButton *m_forward;
77 wxRadioButton *m_backwards;
78 wxRadioButton *m_regexSearch;
79 wxRadioButton *m_simpleSearch;
80 wxCheckBox *m_matchCase;
81 wxCheckBox *m_searchInInput;
82 wxCheckBox *m_searchInOutput;
86 void SetFocus()
override;
88 bool GetRegexSearch()
const {
return m_findReplaceData->GetRegexSearch();}
90 wxString GetFindString()
const
91 {
return m_findReplaceData->GetFindString(); }
93 void SetFindString(wxString strng);
95 wxFindReplaceData *GetData()
const
96 {
return m_findReplaceData; }
99 wxFR_SEARCH_IN_INPUT = 0x10,
100 wxFR_SEARCH_IN_OUTPUT = 0x20
104 void OnSearch(wxCommandEvent &event);
106 void OnReplace(wxCommandEvent &event);
108 void OnReplaceAll(wxCommandEvent &event);
110 void OnReplaceStringChange(wxCommandEvent &event);
112 void OnFindStringChange(wxCommandEvent &event);
114 void OnDirectionChange(wxCommandEvent &event);
116 void OnRegexSimpleChange(wxCommandEvent &event);
118 void OnMatchCase(wxCommandEvent &event);
120 void OnSearchIn(wxCommandEvent &event);
122 void OnKeyDown(wxKeyEvent &event);
Definition: FindReplacePane.h:50
The find+replace pane.
Definition: FindReplacePane.h:46