2015-05-23 22:55:12 -06:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2015-05-17 17:08:10 -06:00
|
|
|
// Licensed under GPLv2+
|
2013-04-17 21:43:35 -06:00
|
|
|
// Refer to the license.txt file included.
|
2008-12-07 22:30:24 -07:00
|
|
|
|
2014-02-22 15:36:30 -07:00
|
|
|
#include <cstddef>
|
|
|
|
#include <wx/panel.h>
|
|
|
|
#include <wx/sizer.h>
|
2010-12-05 08:28:31 -07:00
|
|
|
|
2014-10-23 07:47:00 -06:00
|
|
|
#include "Core/PowerPC/PowerPC.h"
|
2014-02-17 03:18:15 -07:00
|
|
|
#include "DolphinWX/Debugger/RegisterView.h"
|
|
|
|
#include "DolphinWX/Debugger/RegisterWindow.h"
|
2008-12-07 22:30:24 -07:00
|
|
|
|
2010-07-26 20:39:12 -06:00
|
|
|
CRegisterWindow::CRegisterWindow(wxWindow* parent, wxWindowID id,
|
2013-04-07 23:16:50 -06:00
|
|
|
const wxPoint& position, const wxSize& size,
|
|
|
|
long style, const wxString& name)
|
2010-07-26 20:39:12 -06:00
|
|
|
: wxPanel(parent, id, position, size, style, name)
|
2014-03-09 14:14:26 -06:00
|
|
|
, m_GPRGridView(nullptr)
|
2008-12-07 22:30:24 -07:00
|
|
|
{
|
|
|
|
CreateGUIControls();
|
|
|
|
}
|
|
|
|
|
|
|
|
void CRegisterWindow::CreateGUIControls()
|
|
|
|
{
|
2008-12-08 22:29:14 -07:00
|
|
|
wxBoxSizer *sGrid = new wxBoxSizer(wxVERTICAL);
|
2015-02-24 06:31:50 -07:00
|
|
|
m_GPRGridView = new CRegisterView(this);
|
2008-12-08 22:29:14 -07:00
|
|
|
sGrid->Add(m_GPRGridView, 1, wxGROW);
|
|
|
|
SetSizer(sGrid);
|
2008-12-07 22:30:24 -07:00
|
|
|
|
|
|
|
NotifyUpdate();
|
|
|
|
}
|
|
|
|
|
|
|
|
void CRegisterWindow::NotifyUpdate()
|
2010-07-25 21:46:14 -06:00
|
|
|
{
|
2014-03-09 14:14:26 -06:00
|
|
|
if (m_GPRGridView != nullptr)
|
2008-12-08 22:29:14 -07:00
|
|
|
m_GPRGridView->Update();
|
2008-12-07 22:30:24 -07:00
|
|
|
}
|