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
|
|
|
|
2016-06-24 10:43:46 +02: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 06:30:24 +01:00
|
|
|
{
|
2016-06-24 10:43:46 +02:00
|
|
|
CreateGUIControls();
|
2008-12-08 06:30:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void CRegisterWindow::CreateGUIControls()
|
|
|
|
{
|
2016-06-24 10:43:46 +02:00
|
|
|
wxBoxSizer* sGrid = new wxBoxSizer(wxVERTICAL);
|
|
|
|
m_GPRGridView = new CRegisterView(this);
|
2016-10-03 09:29:50 +02:00
|
|
|
sGrid->Add(m_GPRGridView, 1, wxEXPAND);
|
2016-06-24 10:43:46 +02:00
|
|
|
SetSizer(sGrid);
|
2008-12-08 06:30:24 +01:00
|
|
|
|
2016-06-24 10:43:46 +02:00
|
|
|
NotifyUpdate();
|
2008-12-08 06:30:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void CRegisterWindow::NotifyUpdate()
|
2010-07-26 05:46:14 +02:00
|
|
|
{
|
2016-06-24 10:43:46 +02:00
|
|
|
if (m_GPRGridView != nullptr)
|
2016-10-03 09:29:50 +02:00
|
|
|
m_GPRGridView->Repopulate();
|
2008-12-08 06:30:24 +01:00
|
|
|
}
|