Cemu/src/gui/wxgui/debugger/SymbolCtrl.h
Crementif 7ff99a5e13
debugger: Add support for loading symbols from .map file (#1916)
Map has to have the same name as the debugger/*.xml files, but with a .map extension
2026-05-19 00:21:14 +02:00

33 lines
846 B
C++

#pragma once
#include <wx/listctrl.h>
class SymbolListCtrl : public wxListView
{
public:
SymbolListCtrl(wxWindow* parent, const wxWindowID& id, const wxPoint& pos, const wxSize& size);
void OnGameLoaded();
void ChangeListFilter(wxString filter);
private:
struct SymbolItem {
SymbolItem() = default;
SymbolItem(const wxString& name, const wxString& libName, const wxString& searchName) : name(name), libName(libName), searchName(searchName) {}
wxString name;
wxString libName;
wxString searchName;
};
using SymbolMap = std::map<MPTR, SymbolItem>;
SymbolMap m_data;
wxString m_list_filter;
std::vector<SymbolMap::const_iterator> m_visible_items;
wxString OnGetItemText(long item, long column) const override;
void RebuildVisibleItems();
void OnLeftDClick(wxListEvent& event);
void OnRightClick(wxListEvent& event);
};