mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
WX: HiDPI: CheatsWindow
Changed the Cheat Search tab to disable the scan buttons while there is not a game running and enable when it starts. Also added double-click to create code to the result list.
This commit is contained in:
@ -11,6 +11,7 @@
|
||||
class wxButton;
|
||||
class wxChoice;
|
||||
class wxFocusEvent;
|
||||
class wxListEvent;
|
||||
class wxListView;
|
||||
class wxRadioBox;
|
||||
class wxRadioButton;
|
||||
@ -22,6 +23,8 @@ class CheatSearchTab final : public wxPanel
|
||||
public:
|
||||
CheatSearchTab(wxWindow* const parent);
|
||||
|
||||
void UpdateGUI();
|
||||
|
||||
private:
|
||||
class CheatSearchResult final
|
||||
{
|
||||
@ -34,25 +37,29 @@ private:
|
||||
void UpdateCheatSearchResultsList();
|
||||
void UpdateCheatSearchResultItem(long index);
|
||||
void FilterCheatSearchResults(u32 value, bool prev);
|
||||
void ResetListViewColumns();
|
||||
bool ParseUserEnteredValue(u32* out) const;
|
||||
u32 SwapValue(u32 value) const;
|
||||
|
||||
void OnNewScanClicked(wxCommandEvent&);
|
||||
void OnNextScanClicked(wxCommandEvent&);
|
||||
void OnCreateARCodeClicked(wxCommandEvent&);
|
||||
void OnListViewItemActivated(wxListEvent&);
|
||||
void OnListViewItemSelected(wxListEvent&);
|
||||
void OnTimerUpdate(wxTimerEvent&);
|
||||
|
||||
std::vector<CheatSearchResult> m_search_results;
|
||||
unsigned int m_search_type_size;
|
||||
bool m_scan_is_initialized = false;
|
||||
|
||||
wxChoice* m_search_type;
|
||||
wxListView* m_lview_search_results;
|
||||
wxStaticText* m_label_results_count;
|
||||
wxTextCtrl* m_textctrl_value_x;
|
||||
|
||||
wxButton* m_btn_create_code;
|
||||
wxButton* m_btn_init_scan;
|
||||
wxButton* m_btn_next_scan;
|
||||
wxStaticText* m_label_scan_disabled;
|
||||
|
||||
wxRadioBox* m_data_sizes;
|
||||
|
||||
|
Reference in New Issue
Block a user