dolphin/Source/Core/DolphinWX/Debugger/MemoryWindow.h

83 lines
2.1 KiB
C
Raw Normal View History

// Copyright 2008 Dolphin Emulator Project
2015-05-17 23:08:10 +00:00
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma once
2014-02-22 22:36:30 +00:00
#include <wx/panel.h>
#include "Common/CommonTypes.h"
2014-02-22 22:36:30 +00:00
class CMemoryView;
class IniFile;
class wxButton;
class wxCheckBox;
class wxRadioBox;
class wxRadioButton;
2014-02-22 22:36:30 +00:00
class wxListBox;
class wxSearchCtrl;
class wxStaticText;
2014-02-22 22:36:30 +00:00
class wxTextCtrl;
class wxRadioButton;
2014-10-19 02:55:23 +00:00
class CMemoryWindow : public wxPanel
{
2014-10-19 02:55:23 +00:00
public:
explicit CMemoryWindow(wxWindow* parent, wxWindowID id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
long style = wxTAB_TRAVERSAL | wxBORDER_NONE,
const wxString& name = _("Memory"));
void Repopulate();
void JumpToAddress(u32 address);
2014-10-19 02:55:23 +00:00
private:
enum class SearchType
{
FindNext,
FindPrevious
};
void CreateGUI();
wxSizer* CreateRightHandSideSizer();
wxSizer* CreateSearchSizer();
wxSizer* CreateDumpSizer();
wxSizer* CreateSearchTypeSizer();
wxSizer* CreateMemcheckOptionSizer();
void OnDataTypeChanged(wxCommandEvent& event);
void OnFindNext(wxCommandEvent& event);
void OnFindPrevious(wxCommandEvent& event);
void OnSearchAddressChanged(wxCommandEvent& event);
void OnValueChanged(wxCommandEvent&);
void OnSetMemoryValueFromValBox(wxCommandEvent& event);
void OnSetMemoryValue(wxCommandEvent& event);
void OnDumpMemory(wxCommandEvent& event);
void OnDumpMem2(wxCommandEvent& event);
void OnDumpFakeVMEM(wxCommandEvent& event);
void OnMemCheckOptionChange(wxCommandEvent& event);
void Search(SearchType search_type);
wxButton* m_btn_find_next;
wxButton* m_btn_find_previous;
wxRadioButton* m_rb_ascii;
wxRadioButton* m_rb_hex;
wxRadioBox* m_rbox_data_type;
wxStaticText* m_search_result_msg;
wxCheckBox* m_log_checkbox;
wxRadioButton* m_read_radio_btn;
wxRadioButton* m_write_radio_btn;
wxRadioButton* m_read_write_radio_btn;
CMemoryView* m_memory_view;
wxSearchCtrl* m_address_search_ctrl;
wxTextCtrl* m_value_text_ctrl;
u32 m_last_search_address = 0;
bool m_continue_search = false;
};