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
|
|
|
|
2010-07-27 02:39:12 +00:00
|
|
|
CRegisterWindow::CRegisterWindow(wxWindow* parent, wxWindowID id,
|
2013-04-08 05:16:50 +00:00
|
|
|
const wxPoint& position, const wxSize& size,
|
|
|
|
long style, const wxString& name)
|
2010-07-27 02:39:12 +00:00
|
|
|
: wxPanel(parent, id, position, size, style, name)
|
2014-03-09 20:14:26 +00:00
|
|
|
, m_GPRGridView(nullptr)
|
2008-12-08 05:30:24 +00:00
|
|
|
{
|
|
|
|
CreateGUIControls();
|
|
|
|
}
|
|
|
|
|
|
|
|
void CRegisterWindow::CreateGUIControls()
|
|
|
|
{
|
2008-12-09 05:29:14 +00:00
|
|
|
wxBoxSizer *sGrid = new wxBoxSizer(wxVERTICAL);
|
2015-02-24 13:31:50 +00:00
|
|
|
m_GPRGridView = new CRegisterView(this);
|
2008-12-09 05:29:14 +00:00
|
|
|
sGrid->Add(m_GPRGridView, 1, wxGROW);
|
|
|
|
SetSizer(sGrid);
|
2008-12-08 05:30:24 +00:00
|
|
|
|
|
|
|
NotifyUpdate();
|
|
|
|
}
|
|
|
|
|
|
|
|
void CRegisterWindow::NotifyUpdate()
|
2010-07-26 03:46:14 +00:00
|
|
|
{
|
2014-03-09 20:14:26 +00:00
|
|
|
if (m_GPRGridView != nullptr)
|
2008-12-09 05:29:14 +00:00
|
|
|
m_GPRGridView->Update();
|
2008-12-08 05:30:24 +00:00
|
|
|
}
|