summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Debugger/WatchWindow.cpp
diff options
context:
space:
mode:
authorskidau <skidau@gmail.com>2014-10-19 21:45:40 +1100
committerskidau <skidau@gmail.com>2014-10-26 14:56:02 +1100
commit613cae613a8c2ac34dd823f875ac4a6a0059db38 (patch)
treedab94960ff6a6a54c23fcab486730cac546cdfa4 /Source/Core/DolphinWX/Debugger/WatchWindow.cpp
parentdf37649b9f8499ec732b7511e7fed2b075ef7781 (diff)
Added a RAM Watch window to the debugger
Conflicts: Source/Core/Core/HW/Memmap.cpp Source/Core/Core/HW/Memmap.h Source/Core/DolphinWX/Debugger/CodeWindow.h
Diffstat (limited to 'Source/Core/DolphinWX/Debugger/WatchWindow.cpp')
-rw-r--r--Source/Core/DolphinWX/Debugger/WatchWindow.cpp46
1 files changed, 46 insertions, 0 deletions
diff --git a/Source/Core/DolphinWX/Debugger/WatchWindow.cpp b/Source/Core/DolphinWX/Debugger/WatchWindow.cpp
new file mode 100644
index 0000000000..8f6f578b01
--- /dev/null
+++ b/Source/Core/DolphinWX/Debugger/WatchWindow.cpp
@@ -0,0 +1,46 @@
+// Copyright 2013 Dolphin Emulator Project
+// Licensed under GPLv2
+// Refer to the license.txt file included.
+
+#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>
+
+#include "DolphinWX/Debugger/WatchView.h"
+#include "DolphinWX/Debugger/WatchWindow.h"
+
+class wxWindow;
+
+BEGIN_EVENT_TABLE(CWatchWindow, wxPanel)
+END_EVENT_TABLE()
+
+
+CWatchWindow::CWatchWindow(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 CWatchWindow::CreateGUIControls()
+{
+ wxBoxSizer *sGrid = new wxBoxSizer(wxVERTICAL);
+ m_GPRGridView = new CWatchView(this, ID_GPR);
+ sGrid->Add(m_GPRGridView, 1, wxGROW);
+ SetSizer(sGrid);
+
+ NotifyUpdate();
+}
+
+void CWatchWindow::NotifyUpdate()
+{
+ if (m_GPRGridView != nullptr)
+ m_GPRGridView->Update();
+}