CheatSearchTab: Convert wxListBox into a wxListView

Allows us to give the list view columns. This allows removal of monospace font use, as it's now a properly formatted list.
This commit is contained in:
Lioncash
2015-08-05 23:55:03 -04:00
parent 0821607b2f
commit 5882d76a6c
2 changed files with 40 additions and 30 deletions

View File

@ -10,7 +10,7 @@
class wxButton;
class wxChoice;
class wxFocusEvent;
class wxListBox;
class wxListView;
class wxRadioBox;
class wxRadioButton;
class wxStaticText;
@ -31,11 +31,18 @@ private:
u32 old_value;
};
void UpdateCheatSearchResultsList();
void ResetListViewColumns();
void StartNewSearch(wxCommandEvent& event);
void FilterCheatSearchResults(wxCommandEvent& event);
void CreateARCode(wxCommandEvent&);
void ApplyFocus(wxFocusEvent&);
std::vector<CheatSearchResult> m_search_results;
unsigned int m_search_type_size;
wxChoice* m_search_type;
wxListBox* m_lbox_search_results;
wxListView* m_lview_search_results;
wxStaticText* m_label_results_count;
wxTextCtrl* m_textctrl_value_x;
@ -49,10 +56,4 @@ private:
wxRadioButton* rad_oldvalue;
wxRadioButton* rad_uservalue;
} m_value_x_radiobtn;
void UpdateCheatSearchResultsList();
void StartNewSearch(wxCommandEvent& event);
void FilterCheatSearchResults(wxCommandEvent& event);
void CreateARCode(wxCommandEvent&);
void ApplyFocus(wxFocusEvent&);
};