summaryrefslogtreecommitdiff
path: root/Source/Core/DebuggerWX/Src/RegisterWindow.cpp
diff options
context:
space:
mode:
authorSonicadvance1 <sonicadvance1@gmail.com>2008-12-05 06:01:53 +0000
committerSonicadvance1 <sonicadvance1@gmail.com>2008-12-05 06:01:53 +0000
commitbe3094b6b3a01cc71c52c05ea4b454f1e9e80824 (patch)
tree7fdfe23dbffeaf9f476dbd7a2bffadc462a6c412 /Source/Core/DebuggerWX/Src/RegisterWindow.cpp
parentbc3a7bdce3c29cccca836259e1f50fe830a39ae7 (diff)
Hey Look, Register window in Linux works now! Maybe we should use the same method for Windows, instead of the OS specific one? Also, I will probably make a window similar to this for video registers, so I can debug them. Fun for all!
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1403 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DebuggerWX/Src/RegisterWindow.cpp')
-rw-r--r--Source/Core/DebuggerWX/Src/RegisterWindow.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/DebuggerWX/Src/RegisterWindow.cpp b/Source/Core/DebuggerWX/Src/RegisterWindow.cpp
index 266361b91c..1c14a3de6c 100644
--- a/Source/Core/DebuggerWX/Src/RegisterWindow.cpp
+++ b/Source/Core/DebuggerWX/Src/RegisterWindow.cpp
@@ -25,6 +25,7 @@ extern const char* GetGRPName(unsigned int index);
BEGIN_EVENT_TABLE(CRegisterWindow, wxDialog)
EVT_CLOSE(CRegisterWindow::OnClose)
+ EVT_MENU(wxID_REFRESH, CRegisterWindow::OnRefresh)
END_EVENT_TABLE()
CRegisterWindow::CRegisterWindow(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& position, const wxSize& size, long style)
@@ -78,6 +79,12 @@ void CRegisterWindow::OnClose(wxCloseEvent& /*event*/)
Hide();
}
+void CRegisterWindow::OnRefresh(wxCommandEvent& WXUNUSED (event))
+{
+ m_GPRListView->Refresh();
+ m_GPRListView->Update();
+}
+
void CRegisterWindow::NotifyUpdate()
{