Files
dolphin/Source/Core/DolphinWX/Debugger/RegisterWindow.cpp
T

47 lines
1.0 KiB
C++
Raw Normal View History

// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
2008-12-08 05:30:24 +00:00
2014-02-22 23:36:30 +01:00
#include <cstddef>
#include <wx/defs.h>
#include <wx/event.h>
#include <wx/gdicmn.h>
#include <wx/panel.h>
#include <wx/sizer.h>
#include <wx/string.h>
#include <wx/windowid.h>
2014-02-17 05:18:15 -05:00
#include "DolphinWX/Debugger/RegisterView.h"
#include "DolphinWX/Debugger/RegisterWindow.h"
2008-12-08 05:30:24 +00:00
2014-02-22 23:36:30 +01:00
class wxWindow;
BEGIN_EVENT_TABLE(CRegisterWindow, wxPanel)
2008-12-08 05:30:24 +00:00
END_EVENT_TABLE()
2009-08-26 09:19:15 +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)
2014-03-09 21:14:26 +01:00
, m_GPRGridView(nullptr)
2008-12-08 05:30:24 +00:00
{
CreateGUIControls();
}
void CRegisterWindow::CreateGUIControls()
{
wxBoxSizer *sGrid = new wxBoxSizer(wxVERTICAL);
m_GPRGridView = new CRegisterView(this, ID_GPR);
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 21:14:26 +01:00
if (m_GPRGridView != nullptr)
m_GPRGridView->Update();
2008-12-08 05:30:24 +00:00
}