summaryrefslogtreecommitdiff
path: root/Source/Core/DebuggerWX/src/RegisterWindow.cpp
diff options
context:
space:
mode:
authorfires.gc <fires.gc@gmail.com>2008-07-24 13:40:07 +0000
committerfires.gc <fires.gc@gmail.com>2008-07-24 13:40:07 +0000
commit2f308cf77accfe9125eb2bf5fc53348fd9aaa058 (patch)
tree07b20ba7642b61119eb1a80b21d967847c1d4b1a /Source/Core/DebuggerWX/src/RegisterWindow.cpp
parent9e285ca377b336e3a3d2aaf763fa25ba20925f15 (diff)
minor improvements (mostly debugger)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@82 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DebuggerWX/src/RegisterWindow.cpp')
-rw-r--r--Source/Core/DebuggerWX/src/RegisterWindow.cpp24
1 files changed, 22 insertions, 2 deletions
diff --git a/Source/Core/DebuggerWX/src/RegisterWindow.cpp b/Source/Core/DebuggerWX/src/RegisterWindow.cpp
index f54bdb1079..266361b91c 100644
--- a/Source/Core/DebuggerWX/src/RegisterWindow.cpp
+++ b/Source/Core/DebuggerWX/src/RegisterWindow.cpp
@@ -19,12 +19,12 @@
#include "RegisterWindow.h"
#include "PowerPC/PowerPC.h"
#include "RegisterView.h"
+#include "IniFile.h"
extern const char* GetGRPName(unsigned int index);
-
BEGIN_EVENT_TABLE(CRegisterWindow, wxDialog)
-EVT_CLOSE(CRegisterWindow::OnClose)
+ EVT_CLOSE(CRegisterWindow::OnClose)
END_EVENT_TABLE()
CRegisterWindow::CRegisterWindow(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& position, const wxSize& size, long style)
@@ -39,6 +39,26 @@ CRegisterWindow::~CRegisterWindow()
{}
+void CRegisterWindow::Save(IniFile& _IniFile) const
+{
+ _IniFile.Set("RegisterWindow", "x", GetPosition().x);
+ _IniFile.Set("RegisterWindow", "y", GetPosition().y);
+ _IniFile.Set("RegisterWindow", "w", GetSize().GetWidth());
+ _IniFile.Set("RegisterWindow", "h", GetSize().GetHeight());
+}
+
+
+void CRegisterWindow::Load(IniFile& _IniFile)
+{
+ int x,y,w,h;
+ _IniFile.Get("RegisterWindow", "x", &x, GetPosition().x);
+ _IniFile.Get("RegisterWindow", "y", &y, GetPosition().y);
+ _IniFile.Get("RegisterWindow", "w", &w, GetSize().GetWidth());
+ _IniFile.Get("RegisterWindow", "h", &h, GetSize().GetHeight());
+ SetSize(x, y, w, h);
+}
+
+
void CRegisterWindow::CreateGUIControls()
{
SetTitle(wxT("Registers"));