mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
5882d76a6c
Allows us to give the list view columns. This allows removal of monospace font use, as it's now a properly formatted list.
60 lines
1.2 KiB
C++
60 lines
1.2 KiB
C++
// Copyright 2014 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <vector>
|
|
#include <wx/panel.h>
|
|
|
|
class wxButton;
|
|
class wxChoice;
|
|
class wxFocusEvent;
|
|
class wxListView;
|
|
class wxRadioBox;
|
|
class wxRadioButton;
|
|
class wxStaticText;
|
|
class wxTextCtrl;
|
|
|
|
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;
|
|
};
|
|
|
|
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;
|
|
wxListView* m_lview_search_results;
|
|
wxStaticText* m_label_results_count;
|
|
wxTextCtrl* m_textctrl_value_x;
|
|
|
|
wxButton* m_btn_init_scan;
|
|
wxButton* m_btn_next_scan;
|
|
|
|
wxRadioBox* m_data_sizes;
|
|
|
|
struct
|
|
{
|
|
wxRadioButton* rad_oldvalue;
|
|
wxRadioButton* rad_uservalue;
|
|
} m_value_x_radiobtn;
|
|
};
|