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 05:30:24 +00:00
|
|
|
|
2014-02-22 22:36:30 +00:00
|
|
|
#include <cstddef>
|
|
|
|
#include <wx/panel.h>
|
|
|
|
#include <wx/sizer.h>
|
2010-12-05 15:28:31 +00:00
|
|
|
|
2014-10-23 13:47:00 +00:00
|
|
|
#include "Core/PowerPC/PowerPC.h"
|
2014-02-17 10:18:15 +00:00
|
|
|
#include "DolphinWX/Debugger/RegisterView.h"
|
|
|
|
#include "DolphinWX/Debugger/RegisterWindow.h"
|
2008-12-08 05:30:24 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
CRegisterWindow::CRegisterWindow(wxWindow* parent, wxWindowID id, const wxPoint& position,
|
|
|
|
const wxSize& size, long style, const wxString& name)
|
|
|
|
: wxPanel(parent, id, position, size, style, name), m_GPRGridView(nullptr)
|
2008-12-08 05:30:24 +00:00
|
|
|
{
|
2016-06-24 08:43:46 +00:00
|
|
|
CreateGUIControls();
|
2008-12-08 05:30:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void CRegisterWindow::CreateGUIControls()
|
|
|
|
{
|
2016-06-24 08:43:46 +00:00
|
|
|
wxBoxSizer* sGrid = new wxBoxSizer(wxVERTICAL);
|
|
|
|
m_GPRGridView = new CRegisterView(this);
|
2016-10-03 07:29:50 +00:00
|
|
|
sGrid->Add(m_GPRGridView, 1, wxEXPAND);
|
2016-06-24 08:43:46 +00:00
|
|
|
SetSizer(sGrid);
|
2008-12-08 05:30:24 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
NotifyUpdate();
|
2008-12-08 05:30:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void CRegisterWindow::NotifyUpdate()
|
2010-07-26 03:46:14 +00:00
|
|
|
{
|
2016-06-24 08:43:46 +00:00
|
|
|
if (m_GPRGridView != nullptr)
|
2016-10-03 07:29:50 +00:00
|
|
|
m_GPRGridView->Repopulate();
|
2008-12-08 05:30:24 +00:00
|
|
|
}
|