2015-05-24 04:55:12 +00:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2015-05-17 23:08:10 +00:00
|
|
|
// Licensed under GPLv2+
|
2013-04-18 03:43:35 +00:00
|
|
|
// Refer to the license.txt file included.
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2014-02-10 18:54:46 +00:00
|
|
|
#pragma once
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2014-02-22 22:36:30 +00:00
|
|
|
#include <wx/panel.h>
|
|
|
|
#include "Common/CommonTypes.h"
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2014-02-22 22:36:30 +00:00
|
|
|
class CMemoryView;
|
2016-08-11 18:24:10 +00:00
|
|
|
class CCodeWindow;
|
2014-02-22 22:36:30 +00:00
|
|
|
class IniFile;
|
|
|
|
class wxButton;
|
|
|
|
class wxCheckBox;
|
|
|
|
class wxListBox;
|
2015-08-03 08:39:06 +00:00
|
|
|
class wxSearchCtrl;
|
2014-02-22 22:36:30 +00:00
|
|
|
class wxTextCtrl;
|
2016-08-18 20:08:26 +00:00
|
|
|
class wxRadioButton;
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2014-10-19 02:55:23 +00:00
|
|
|
class CMemoryWindow : public wxPanel
|
2008-12-08 04:46:09 +00:00
|
|
|
{
|
2014-10-19 02:55:23 +00:00
|
|
|
public:
|
2016-08-11 18:24:10 +00:00
|
|
|
CMemoryWindow(CCodeWindow* code_window, wxWindow* parent, wxWindowID id = wxID_ANY,
|
|
|
|
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxTAB_TRAVERSAL | wxBORDER_NONE, const wxString& name = _("Memory"));
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
void Save(IniFile& _IniFile) const;
|
|
|
|
void Load(IniFile& _IniFile);
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
void Update() override;
|
|
|
|
void NotifyMapLoaded();
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
void JumpToAddress(u32 _Address);
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2014-10-19 02:55:23 +00:00
|
|
|
private:
|
2016-06-24 08:43:46 +00:00
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
|
|
|
|
void U8(wxCommandEvent& event);
|
|
|
|
void U16(wxCommandEvent& event);
|
|
|
|
void U32(wxCommandEvent& event);
|
|
|
|
void onSearch(wxCommandEvent& event);
|
|
|
|
void onAscii(wxCommandEvent& event);
|
|
|
|
void onHex(wxCommandEvent& event);
|
|
|
|
void OnSymbolListChange(wxCommandEvent& event);
|
|
|
|
void OnAddrBoxChange(wxCommandEvent& event);
|
|
|
|
void OnHostMessage(wxCommandEvent& event);
|
|
|
|
void SetMemoryValueFromValBox(wxCommandEvent& event);
|
|
|
|
void SetMemoryValue(wxCommandEvent& event);
|
|
|
|
void OnDumpMemory(wxCommandEvent& event);
|
|
|
|
void OnDumpMem2(wxCommandEvent& event);
|
|
|
|
void OnDumpFakeVMEM(wxCommandEvent& event);
|
2016-08-18 20:08:26 +00:00
|
|
|
void onMemCheckOptionChange(wxCommandEvent& event);
|
2016-06-24 08:43:46 +00:00
|
|
|
|
|
|
|
wxCheckBox* chk8;
|
|
|
|
wxCheckBox* chk16;
|
|
|
|
wxCheckBox* chk32;
|
|
|
|
wxButton* btnSearch;
|
|
|
|
wxCheckBox* chkAscii;
|
|
|
|
wxCheckBox* chkHex;
|
2016-08-18 20:08:26 +00:00
|
|
|
wxCheckBox* chkLog;
|
|
|
|
wxRadioButton* rdbRead;
|
|
|
|
wxRadioButton* rdbWrite;
|
|
|
|
wxRadioButton* rdbReadWrite;
|
2016-06-24 08:43:46 +00:00
|
|
|
|
2016-08-11 18:24:10 +00:00
|
|
|
CCodeWindow* m_code_window;
|
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
CMemoryView* memview;
|
|
|
|
wxListBox* symbols;
|
|
|
|
|
|
|
|
wxSearchCtrl* addrbox;
|
|
|
|
wxTextCtrl* valbox;
|
2008-12-08 04:46:09 +00:00
|
|
|
};
|