2013-04-18 03:43:35 +00:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// 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/defs.h>
|
|
|
|
#include <wx/event.h>
|
|
|
|
#include <wx/gdicmn.h>
|
|
|
|
#include <wx/panel.h>
|
|
|
|
#include <wx/string.h>
|
|
|
|
#include <wx/translation.h>
|
|
|
|
#include <wx/windowid.h>
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2014-02-22 22:36:30 +00:00
|
|
|
#include "Common/CommonTypes.h"
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2014-02-22 22:36:30 +00:00
|
|
|
class CMemoryView;
|
|
|
|
class IniFile;
|
|
|
|
class wxButton;
|
|
|
|
class wxCheckBox;
|
|
|
|
class wxListBox;
|
|
|
|
class wxTextCtrl;
|
|
|
|
class wxWindow;
|
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:
|
|
|
|
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"));
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2014-10-19 02:55:23 +00:00
|
|
|
wxCheckBox* chk8;
|
|
|
|
wxCheckBox* chk16;
|
|
|
|
wxCheckBox* chk32;
|
|
|
|
wxButton* btnSearch;
|
|
|
|
wxCheckBox* chkAscii;
|
|
|
|
wxCheckBox* chkHex;
|
|
|
|
void Save(IniFile& _IniFile) const;
|
|
|
|
void Load(IniFile& _IniFile);
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2014-10-19 02:55:23 +00:00
|
|
|
void Update() override;
|
|
|
|
void NotifyMapLoaded();
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2014-10-19 02:55:23 +00:00
|
|
|
void JumpToAddress(u32 _Address);
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2014-10-19 02:55:23 +00:00
|
|
|
private:
|
|
|
|
DECLARE_EVENT_TABLE()
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2014-10-19 02:55:23 +00:00
|
|
|
CMemoryView* memview;
|
|
|
|
wxListBox* symbols;
|
2010-07-26 03:46:14 +00:00
|
|
|
|
2014-10-19 02:55:23 +00:00
|
|
|
wxButton* buttonGo;
|
|
|
|
wxTextCtrl* addrbox;
|
|
|
|
wxTextCtrl* valbox;
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2014-10-19 02:55:23 +00:00
|
|
|
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 OnCallstackListChange(wxCommandEvent& event);
|
|
|
|
void OnAddrBoxChange(wxCommandEvent& event);
|
|
|
|
void OnHostMessage(wxCommandEvent& event);
|
2015-04-25 02:19:21 +00:00
|
|
|
void SetMemoryValueFromValBox(wxCommandEvent& event);
|
2014-10-19 02:55:23 +00:00
|
|
|
void SetMemoryValue(wxCommandEvent& event);
|
|
|
|
void OnDumpMemory(wxCommandEvent& event);
|
|
|
|
void OnDumpMem2(wxCommandEvent& event);
|
|
|
|
void OnDumpFakeVMEM(wxCommandEvent& event);
|
2008-12-08 04:46:09 +00:00
|
|
|
};
|