diff options
| author | fires.gc <fires.gc@gmail.com> | 2008-07-24 13:40:07 +0000 |
|---|---|---|
| committer | fires.gc <fires.gc@gmail.com> | 2008-07-24 13:40:07 +0000 |
| commit | 2f308cf77accfe9125eb2bf5fc53348fd9aaa058 (patch) | |
| tree | 07b20ba7642b61119eb1a80b21d967847c1d4b1a /Source/Core/DebuggerWX/src/BreakpointWindow.cpp | |
| parent | 9e285ca377b336e3a3d2aaf763fa25ba20925f15 (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/BreakpointWindow.cpp')
| -rw-r--r-- | Source/Core/DebuggerWX/src/BreakpointWindow.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Source/Core/DebuggerWX/src/BreakpointWindow.cpp b/Source/Core/DebuggerWX/src/BreakpointWindow.cpp index 37bbf62c8b..b9e9b9b5d6 100644 --- a/Source/Core/DebuggerWX/src/BreakpointWindow.cpp +++ b/Source/Core/DebuggerWX/src/BreakpointWindow.cpp @@ -22,6 +22,7 @@ #include "HW/Memmap.h"
#include "BreakPointDlg.h"
#include "MemoryCheckDlg.h"
+#include "IniFile.h"
#include "wx/mstream.h"
@@ -70,6 +71,28 @@ CBreakPointWindow::~CBreakPointWindow() void
+CBreakPointWindow::Save(IniFile& _IniFile) const
+{
+ _IniFile.Set("BreakPoint", "x", GetPosition().x);
+ _IniFile.Set("BreakPoint", "y", GetPosition().y);
+ _IniFile.Set("BreakPoint", "w", GetSize().GetWidth());
+ _IniFile.Set("BreakPoint", "h", GetSize().GetHeight());
+}
+
+
+void
+CBreakPointWindow::Load(IniFile& _IniFile)
+{
+ int x,y,w,h;
+ _IniFile.Get("BreakPoint", "x", &x, GetPosition().x);
+ _IniFile.Get("BreakPoint", "y", &y, GetPosition().y);
+ _IniFile.Get("BreakPoint", "w", &w, GetSize().GetWidth());
+ _IniFile.Get("BreakPoint", "h", &h, GetSize().GetHeight());
+ SetSize(x, y, w, h);
+}
+
+
+void
CBreakPointWindow::CreateGUIControls()
{
SetTitle(wxT("Breakpoints"));
|
