mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 09:09:52 -06:00
CheatSearchTab: Simplify functionality
With auto-updating lists, searching for the previous value isn't necessary. Also, this breaks out specific functionality into their own functions, which helps separate UI code from the data processing code. modified: Source/Core/DolphinWX/Cheats/CheatSearchTab.h
This commit is contained in:
@ -34,13 +34,14 @@ private:
|
||||
|
||||
void UpdateCheatSearchResultsList();
|
||||
void UpdateCheatSearchResultItem(long index);
|
||||
void FilterCheatSearchResults(u32 value);
|
||||
void ResetListViewColumns();
|
||||
bool ParseUserEnteredValue(u32* out) const;
|
||||
u32 SwapValue(u32 value) const;
|
||||
|
||||
void StartNewSearch(wxCommandEvent& event);
|
||||
void FilterCheatSearchResults(wxCommandEvent& event);
|
||||
void CreateARCode(wxCommandEvent&);
|
||||
void ApplyFocus(wxFocusEvent&);
|
||||
void OnNewScanClicked(wxCommandEvent&);
|
||||
void OnNextScanClicked(wxCommandEvent&);
|
||||
void OnCreateARCodeClicked(wxCommandEvent&);
|
||||
void OnTimerUpdate(wxTimerEvent&);
|
||||
|
||||
std::vector<CheatSearchResult> m_search_results;
|
||||
@ -57,10 +58,4 @@ private:
|
||||
wxRadioBox* m_data_sizes;
|
||||
|
||||
wxTimer m_update_timer;
|
||||
|
||||
struct
|
||||
{
|
||||
wxRadioButton* rad_oldvalue;
|
||||
wxRadioButton* rad_uservalue;
|
||||
} m_value_x_radiobtn;
|
||||
};
|
||||
|
Reference in New Issue
Block a user