mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 22:09:19 -07:00
27d295ec7e
Changes: - MemoryWindow was cleaned up and gives more feedback on searches. Some bugs were fixed as well: - A complex bug that allowed tearing off tabs and opening multiple copies of a debug panel which lead to segfaults - Another segfault related to right-click menus on code/memory views when those tools were floating in their own window.
35 lines
914 B
C++
35 lines
914 B
C++
// Copyright 2008 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#include <cstddef>
|
|
#include <wx/panel.h>
|
|
#include <wx/sizer.h>
|
|
|
|
#include "Core/PowerPC/PowerPC.h"
|
|
#include "DolphinWX/Debugger/RegisterView.h"
|
|
#include "DolphinWX/Debugger/RegisterWindow.h"
|
|
|
|
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)
|
|
{
|
|
CreateGUIControls();
|
|
}
|
|
|
|
void CRegisterWindow::CreateGUIControls()
|
|
{
|
|
wxBoxSizer* sGrid = new wxBoxSizer(wxVERTICAL);
|
|
m_GPRGridView = new CRegisterView(this);
|
|
sGrid->Add(m_GPRGridView, 1, wxEXPAND);
|
|
SetSizer(sGrid);
|
|
|
|
NotifyUpdate();
|
|
}
|
|
|
|
void CRegisterWindow::NotifyUpdate()
|
|
{
|
|
if (m_GPRGridView != nullptr)
|
|
m_GPRGridView->Repopulate();
|
|
}
|