// Copyright 2014 Dolphin Emulator Project // Licensed under GPLv2 // Refer to the license.txt file included. #pragma once #include #include class wxButton; class wxChoice; class wxCommandEvent; class wxEvent; class wxListBox; class wxStaticText; class wxTextCtrl; class wxWindow; class CheatSearchTab final : public wxPanel { public: CheatSearchTab(wxWindow* const parent); private: class CheatSearchResult final { public: CheatSearchResult() : address(0), old_value(0) {} u32 address; u32 old_value; }; std::vector m_search_results; unsigned int m_search_type_size; wxChoice* m_search_type; wxListBox* m_lbox_search_results; wxStaticText* m_label_results_count; wxTextCtrl* m_textctrl_value_x; wxButton* m_btn_init_scan; wxButton* m_btn_next_scan; struct { wxRadioButton* rad_8; wxRadioButton* rad_16; wxRadioButton* rad_32; } m_size_radiobtn; struct { 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(wxEvent&); };