28#include <wx/textctrl.h>
29#include "Configuration.h"
30#include "../BTextCtrl.h"
37 class wxLogBuffer_noStdErrFlush :
public wxLogBuffer
40 wxLogBuffer_noStdErrFlush(): wxLogBuffer() {};
41 virtual void Flush()
override {}
42 ~wxLogBuffer_noStdErrFlush()
override{};
46 wxWindowID
id,
Configuration *cfg,
const wxString &configName);
47 bool Matches(wxString text);
55 void OnMenu(wxCommandEvent &event);
63 bool m_isRegex =
false;
65 wxString m_configName;
68 enum class RegexInputState : int8_t { empty, invalid, valid };
70 RegexInputState m_regexInputState = RegexInputState::empty;
71 RegexInputState GetNewRegexInputState()
const;
73 static wxString RegexTooltip_error;
75 static wxString RegexTooltip_textsearch;
77 static wxString RegexTooltip_norm;
80wxDECLARE_EVENT(REGEX_EVENT, wxCommandEvent);
A wxTextCtrl with parenthesis matching.
Definition: BTextCtrl.h:33
The configuration storage for the current worksheet.
Definition: Configuration.h:85
A BTextCtrl that allows to input a regex.
Definition: RegexCtrl.h:36
void OnMouseRightDown(wxMouseEvent &event)
Called, if the user releases the right mouse button.
Definition: RegexCtrl.cpp:134
void OnMenu(wxCommandEvent &event)
Called, if the user selects a menu item.
Definition: RegexCtrl.cpp:148
void OnChange()
Called, if the search text or method changes.
Definition: RegexCtrl.cpp:80
void OnTextChange(wxCommandEvent &ev)
Is called when the contents of the textbox changes.
Definition: RegexCtrl.cpp:76