2013-04-17 21:43:35 -06:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
2008-12-07 21:46:09 -07:00
|
|
|
|
2014-02-10 11:54:46 -07:00
|
|
|
#pragma once
|
2008-12-07 21:46:09 -07:00
|
|
|
|
2014-02-22 15:36:30 -07: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-07 21:46:09 -07:00
|
|
|
|
2014-02-22 15:36:30 -07:00
|
|
|
#include "Common/CommonTypes.h"
|
2008-12-07 21:46:09 -07:00
|
|
|
|
2014-02-22 15:36:30 -07:00
|
|
|
class CMemoryView;
|
|
|
|
class IniFile;
|
|
|
|
class wxButton;
|
|
|
|
class wxCheckBox;
|
|
|
|
class wxListBox;
|
|
|
|
class wxTextCtrl;
|
|
|
|
class wxWindow;
|
2008-12-07 21:46:09 -07:00
|
|
|
|
|
|
|
class CMemoryWindow
|
2009-09-07 14:51:02 -06:00
|
|
|
: public wxPanel
|
2008-12-07 21:46:09 -07:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
CMemoryWindow(wxWindow* parent,
|
2009-09-07 14:51:02 -06:00
|
|
|
wxWindowID id = wxID_ANY,
|
2010-07-21 20:05:28 -06:00
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
2010-07-26 20:39:12 -06:00
|
|
|
long style = wxTAB_TRAVERSAL | wxBORDER_NONE,
|
2011-01-04 21:35:46 -07:00
|
|
|
const wxString& name = _("Memory"));
|
2008-12-07 21:46:09 -07:00
|
|
|
|
2009-11-25 03:07:56 -07:00
|
|
|
wxCheckBox* chk8;
|
|
|
|
wxCheckBox* chk16;
|
|
|
|
wxCheckBox* chk32;
|
|
|
|
wxButton* btnSearch;
|
|
|
|
wxCheckBox* chkAscii;
|
|
|
|
wxCheckBox* chkHex;
|
2008-12-07 21:46:09 -07:00
|
|
|
void Save(IniFile& _IniFile) const;
|
|
|
|
void Load(IniFile& _IniFile);
|
|
|
|
|
|
|
|
void Update();
|
|
|
|
void NotifyMapLoaded();
|
|
|
|
|
2010-07-23 20:36:22 -06:00
|
|
|
void JumpToAddress(u32 _Address);
|
2008-12-07 21:46:09 -07:00
|
|
|
|
|
|
|
private:
|
2010-07-25 21:46:14 -06:00
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
|
2008-12-07 21:46:09 -07:00
|
|
|
CMemoryView* memview;
|
|
|
|
wxListBox* symbols;
|
|
|
|
|
|
|
|
wxButton* buttonGo;
|
|
|
|
wxTextCtrl* addrbox;
|
|
|
|
wxTextCtrl* valbox;
|
|
|
|
|
2009-11-25 03:07:56 -07: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);
|
2008-12-07 21:46:09 -07:00
|
|
|
void OnSymbolListChange(wxCommandEvent& event);
|
|
|
|
void OnCallstackListChange(wxCommandEvent& event);
|
|
|
|
void OnAddrBoxChange(wxCommandEvent& event);
|
|
|
|
void OnHostMessage(wxCommandEvent& event);
|
|
|
|
void SetMemoryValue(wxCommandEvent& event);
|
2009-01-21 10:02:01 -07:00
|
|
|
void OnDumpMemory(wxCommandEvent& event);
|
2010-10-13 22:07:04 -06:00
|
|
|
void OnDumpMem2(wxCommandEvent& event);
|
2012-06-19 05:51:29 -06:00
|
|
|
void OnDumpFakeVMEM(wxCommandEvent& event);
|
2008-12-07 21:46:09 -07:00
|
|
|
};
|