summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt2/MainWindow.cpp
diff options
context:
space:
mode:
authorspycrab <spycrab@users.noreply.github.com>2018-03-16 12:39:53 +0100
committerspycrab <spycrab@users.noreply.github.com>2018-04-04 13:43:30 +0200
commit95ae4b34d98facc3049749791e3f8cb318f5fa2b (patch)
tree724212f7f6201fcb18022a1da2dc5f17162916a3 /Source/Core/DolphinQt2/MainWindow.cpp
parent5c83e18fbd3606587e71a7f1cc54e4cf6473609f (diff)
Qt/Debugger: Implement "Memory" widget
Diffstat (limited to 'Source/Core/DolphinQt2/MainWindow.cpp')
-rw-r--r--Source/Core/DolphinQt2/MainWindow.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt2/MainWindow.cpp b/Source/Core/DolphinQt2/MainWindow.cpp
index f77e23a663..15d1cdac32 100644
--- a/Source/Core/DolphinQt2/MainWindow.cpp
+++ b/Source/Core/DolphinQt2/MainWindow.cpp
@@ -54,6 +54,7 @@
#include "DolphinQt2/Config/SettingsWindow.h"
#include "DolphinQt2/Debugger/BreakpointWidget.h"
#include "DolphinQt2/Debugger/CodeWidget.h"
+#include "DolphinQt2/Debugger/MemoryWidget.h"
#include "DolphinQt2/Debugger/RegisterWidget.h"
#include "DolphinQt2/Debugger/WatchWidget.h"
#include "DolphinQt2/FIFOPlayerWindow.h"
@@ -195,6 +196,7 @@ void MainWindow::CreateComponents()
m_log_widget = new LogWidget(this);
m_log_config_widget = new LogConfigWidget(this);
m_fifo_window = new FIFOPlayerWindow(this);
+ m_memory_widget = new MemoryWidget(this);
connect(m_fifo_window, &FIFOPlayerWindow::LoadFIFORequested, this,
[this](const QString& path) { StartGame(path); });
@@ -207,8 +209,16 @@ void MainWindow::CreateComponents()
[this](u32 addr) { m_breakpoint_widget->AddAddressMBP(addr); });
connect(m_register_widget, &RegisterWidget::RequestMemoryBreakpoint,
[this](u32 addr) { m_breakpoint_widget->AddAddressMBP(addr); });
+
connect(m_code_widget, &CodeWidget::BreakpointsChanged, m_breakpoint_widget,
&BreakpointWidget::Update);
+ connect(m_memory_widget, &MemoryWidget::BreakpointsChanged, m_breakpoint_widget,
+ &BreakpointWidget::Update);
+
+ connect(m_breakpoint_widget, &BreakpointWidget::BreakpointsChanged, m_code_widget,
+ &CodeWidget::Update);
+ connect(m_breakpoint_widget, &BreakpointWidget::BreakpointsChanged, m_memory_widget,
+ &MemoryWidget::Update);
#if defined(HAVE_XRANDR) && HAVE_XRANDR
m_graphics_window = new GraphicsWindow(
@@ -410,12 +420,14 @@ void MainWindow::ConnectStack()
addDockWidget(Qt::RightDockWidgetArea, m_register_widget);
addDockWidget(Qt::RightDockWidgetArea, m_watch_widget);
addDockWidget(Qt::RightDockWidgetArea, m_breakpoint_widget);
+ addDockWidget(Qt::RightDockWidgetArea, m_memory_widget);
tabifyDockWidget(m_log_widget, m_log_config_widget);
tabifyDockWidget(m_log_widget, m_code_widget);
tabifyDockWidget(m_log_widget, m_register_widget);
tabifyDockWidget(m_log_widget, m_watch_widget);
tabifyDockWidget(m_log_widget, m_breakpoint_widget);
+ tabifyDockWidget(m_log_widget, m_memory_widget);
}
QString MainWindow::PromptFileName()