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;}
67 static constexpr int m_historyLength = 15;
69 wxComboBox *m_searchText;
70 wxComboBox *m_replaceText;
73 void LoadHistory(wxComboBox *combo,
const wxString &key);
76 void AddToHistory(wxComboBox *combo,
const wxString &key,
const wxString &value);
77 wxButton *m_searchButton;
78 wxButton *m_replaceButton;
79 wxButton *m_replaceAllButton;
80 wxRadioButton *m_forward;
81 wxRadioButton *m_backwards;
82 wxRadioButton *m_regexSearch;
83 wxRadioButton *m_simpleSearch;
84 wxCheckBox *m_matchCase;
85 wxCheckBox *m_searchInInput;
86 wxCheckBox *m_searchInOutput;
90 void SetFocus()
override;
92 bool GetRegexSearch()
const {
return m_findReplaceData->GetRegexSearch();}
94 wxString GetFindString()
const
95 {
return m_findReplaceData->GetFindString(); }
97 void SetFindString(wxString strng);
99 wxFindReplaceData *GetData()
const
100 {
return m_findReplaceData; }
103 wxFR_SEARCH_IN_INPUT = 0x10,
104 wxFR_SEARCH_IN_OUTPUT = 0x20
108 void OnSearch(wxCommandEvent &event);
110 void OnReplace(wxCommandEvent &event);
112 void OnReplaceAll(wxCommandEvent &event);
114 void OnReplaceStringChange(wxCommandEvent &event);
116 void OnFindStringChange(wxCommandEvent &event);
118 void OnDirectionChange(wxCommandEvent &event);
120 void OnRegexSimpleChange(wxCommandEvent &event);
122 void OnMatchCase(wxCommandEvent &event);
124 void OnSearchIn(wxCommandEvent &event);
126 void OnKeyDown(wxKeyEvent &event);
Definition: FindReplacePane.h:50
void LoadFromConfig()
Seed the find flags from wxConfig, with the same defaults regardless of whether the resulting object ...
Definition: FindReplacePane.cpp:148
The find+replace pane.
Definition: FindReplacePane.h:46