diff options
| author | Léo Lam <leo@innovatetechnologi.es> | 2016-12-04 14:47:08 +0100 |
|---|---|---|
| committer | Léo Lam <leo@innovatetechnologi.es> | 2016-12-04 18:18:07 +0100 |
| commit | 59abfee11d4a08e10a00f8db6c2bcc2476f5423a (patch) | |
| tree | 01331dbf882ab228cd566b9cd64eee8d55e3e92d /Source/Core/DolphinWX/Debugger/CodeWindow.cpp | |
| parent | 827de2ed06e54a46b75662097255d2a601d1875c (diff) | |
DolphinWX: Add ability to filter symbols (by name)
This allows the user to filter symbols by name, instead of having to
scroll through a very, very long listbox…
Diffstat (limited to 'Source/Core/DolphinWX/Debugger/CodeWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/Debugger/CodeWindow.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/Core/DolphinWX/Debugger/CodeWindow.cpp b/Source/Core/DolphinWX/Debugger/CodeWindow.cpp index 4305d24da6..348363ae8d 100644 --- a/Source/Core/DolphinWX/Debugger/CodeWindow.cpp +++ b/Source/Core/DolphinWX/Debugger/CodeWindow.cpp @@ -78,8 +78,13 @@ CCodeWindow::CCodeWindow(CFrame* parent, wxWindowID id, const wxPoint& position, wxSearchCtrl* const address_searchctrl = new wxSearchCtrl(m_aui_toolbar, IDM_ADDRBOX); address_searchctrl->Bind(wxEVT_TEXT, &CCodeWindow::OnAddrBoxChange, this); address_searchctrl->SetDescriptiveText(_("Search Address")); + m_symbol_filter_ctrl = new wxSearchCtrl(m_aui_toolbar, wxID_ANY); + m_symbol_filter_ctrl->Bind(wxEVT_TEXT, &CCodeWindow::OnSymbolFilterText, this); + m_symbol_filter_ctrl->SetDescriptiveText(_("Filter Symbols")); + m_symbol_filter_ctrl->SetToolTip(_("Filter the symbol list by name. This is case-sensitive.")); m_aui_toolbar->AddControl(address_searchctrl); + m_aui_toolbar->AddControl(m_symbol_filter_ctrl); m_aui_toolbar->Realize(); m_aui_manager.SetManagedWindow(this); @@ -260,6 +265,11 @@ void CCodeWindow::OnAddrBoxChange(wxCommandEvent& event) event.Skip(); } +void CCodeWindow::OnSymbolFilterText(wxCommandEvent&) +{ + ReloadSymbolListBox(); +} + void CCodeWindow::OnCallstackListChange(wxCommandEvent& event) { int index = callstack->GetSelection(); |
