mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-12-02 14:04:18 +01:00
31 lines
755 B
C++
31 lines
755 B
C++
#pragma once
|
|
|
|
#include <wx/listctrl.h>
|
|
|
|
class SymbolListCtrl : public wxListCtrl
|
|
{
|
|
public:
|
|
SymbolListCtrl(wxWindow* parent, const wxWindowID& id, const wxPoint& pos, const wxSize& size);
|
|
void OnGameLoaded();
|
|
|
|
void ChangeListFilter(std::string filter);
|
|
private:
|
|
struct SymbolItem {
|
|
SymbolItem() {}
|
|
SymbolItem(wxString name, wxString libName, wxString searchName, bool visible) : name(name), libName(libName), searchName(searchName), visible(visible) {}
|
|
|
|
|
|
wxString name;
|
|
wxString libName;
|
|
wxString searchName;
|
|
bool visible;
|
|
};
|
|
|
|
std::map<MPTR, SymbolItem> m_data;
|
|
wxString m_list_filter;
|
|
|
|
wxString OnGetItemText(long item, long column) const;
|
|
void OnLeftDClick(wxListEvent& event);
|
|
void OnRightClick(wxListEvent& event);
|
|
};
|