diff options
| author | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-12-07 15:14:29 -0500 |
|---|---|---|
| committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-12-31 14:03:19 -0500 |
| commit | 34692ab826abc8f8faa61bdb2280b742424528f1 (patch) | |
| tree | b0eedc645badbea316ff59c125eaf808b28777ec /Source/Core/DolphinWX/Debugger/RegisterWindow.cpp | |
| parent | 43e618682e8093602fc83dfa902ee7ae3fd3a4f6 (diff) | |
Remove unnecessary Src/ folders
Diffstat (limited to 'Source/Core/DolphinWX/Debugger/RegisterWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/Debugger/RegisterWindow.cpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Source/Core/DolphinWX/Debugger/RegisterWindow.cpp b/Source/Core/DolphinWX/Debugger/RegisterWindow.cpp new file mode 100644 index 0000000000..c8cb9d1433 --- /dev/null +++ b/Source/Core/DolphinWX/Debugger/RegisterWindow.cpp @@ -0,0 +1,40 @@ +// Copyright 2013 Dolphin Emulator Project +// Licensed under GPLv2 +// Refer to the license.txt file included. + +#include <wx/wx.h> + +#include "RegisterWindow.h" +#include "PowerPC/PowerPC.h" +#include "RegisterView.h" + +extern const char* GetGRPName(unsigned int index); + +BEGIN_EVENT_TABLE(CRegisterWindow, wxPanel) +END_EVENT_TABLE() + + +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(NULL) +{ + CreateGUIControls(); +} + +void CRegisterWindow::CreateGUIControls() +{ + wxBoxSizer *sGrid = new wxBoxSizer(wxVERTICAL); + m_GPRGridView = new CRegisterView(this, ID_GPR); + sGrid->Add(m_GPRGridView, 1, wxGROW); + SetSizer(sGrid); + + NotifyUpdate(); +} + +void CRegisterWindow::NotifyUpdate() +{ + if (m_GPRGridView != NULL) + m_GPRGridView->Update(); +} |
