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