summaryrefslogtreecommitdiff
path: root/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp
diff options
context:
space:
mode:
authorsl1nk3.s <sl1nk3.s@gmail.com>2009-09-15 21:35:32 +0000
committersl1nk3.s <sl1nk3.s@gmail.com>2009-09-15 21:35:32 +0000
commitc71f76834ed7dfa22478b2f90ddcd752ac856ac2 (patch)
treedab0efa8e9fd6650e3d5ce1ca969653116934fcf /Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp
parent3117bde5fb59317f66d3088409a379851cc8e8cc (diff)
GUI : Added possibility to move the logwindow around in non-debugger mode, fix toolbar size issue, fix changing themes (again...) and added abort button to extract all as well as misc changes.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4281 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp')
-rw-r--r--Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp37
1 files changed, 13 insertions, 24 deletions
diff --git a/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp b/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp
index b119c001fd..e601cc9675 100644
--- a/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp
+++ b/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp
@@ -162,32 +162,21 @@ void CCodeWindow::Save()
ini.Set(_Section.c_str(), "Sound", iSoundWindow);
ini.Set(_Section.c_str(), "Video", iVideoWindow);
// Save floating setting
- ini.Set("Float", "Log", (bool)FindWindowById(IDM_LOGWINDOW_PARENT));
- ini.Set("Float", "Console", (bool)FindWindowById(IDM_CONSOLEWINDOW_PARENT));
- ini.Set("Float", "Code", (bool)FindWindowById(IDM_CODEWINDOW_PARENT));
- ini.Set("Float", "Registers", (bool)FindWindowById(IDM_REGISTERWINDOW_PARENT));
- ini.Set("Float", "Breakpoints", (bool)FindWindowById(IDM_BREAKPOINTWINDOW_PARENT));
- ini.Set("Float", "Memory", (bool)FindWindowById(IDM_MEMORYWINDOW_PARENT));
- ini.Set("Float", "JIT", (bool)FindWindowById(IDM_JITWINDOW_PARENT));
- ini.Set("Float", "Sound", (bool)FindWindowById(IDM_SOUNDWINDOW_PARENT));
- ini.Set("Float", "Video", (bool)FindWindowById(IDM_VIDEOWINDOW_PARENT));
+ ini.Set("Float", "Log", !!FindWindowById(IDM_LOGWINDOW_PARENT));
+ ini.Set("Float", "Console", !!FindWindowById(IDM_CONSOLEWINDOW_PARENT));
+ ini.Set("Float", "Code", !!FindWindowById(IDM_CODEWINDOW_PARENT));
+ ini.Set("Float", "Registers", !!FindWindowById(IDM_REGISTERWINDOW_PARENT));
+ ini.Set("Float", "Breakpoints", !!FindWindowById(IDM_BREAKPOINTWINDOW_PARENT));
+ ini.Set("Float", "Memory", !!FindWindowById(IDM_MEMORYWINDOW_PARENT));
+ ini.Set("Float", "JIT", !!FindWindowById(IDM_JITWINDOW_PARENT));
+ ini.Set("Float", "Sound", !!FindWindowById(IDM_SOUNDWINDOW_PARENT));
+ ini.Set("Float", "Video", !!FindWindowById(IDM_VIDEOWINDOW_PARENT));
// Save window settings
- /*
- ini.Set("CodeWindow", "x", GetPosition().x);
- ini.Set("CodeWindow", "y", GetPosition().y);
- ini.Set("CodeWindow", "w", GetSize().GetWidth());
- ini.Set("CodeWindow", "h", GetSize().GetHeight());
- ini.Set("MainWindow", "x", GetParent()->GetPosition().x);
- ini.Set("MainWindow", "y", GetParent()->GetPosition().y);
- ini.Set("MainWindow", "w", GetParent()->GetSize().GetWidth());
- ini.Set("MainWindow", "h", GetParent()->GetSize().GetHeight());
-
- if (m_BreakpointWindow) m_BreakpointWindow->Save(file);
- if (m_RegisterWindow) m_RegisterWindow->Save(file);
- if (m_MemoryWindow) m_MemoryWindow->Save(file);
- if (m_JitWindow) m_JitWindow->Save(file);
- */
+ ini.Set("MainWindow", "x", Parent->GetPosition().x);
+ ini.Set("MainWindow", "y", Parent->GetPosition().y);
+ ini.Set("MainWindow", "w", Parent->GetSize().GetWidth());
+ ini.Set("MainWindow", "h", Parent->GetSize().GetHeight());
ini.Save(DEBUGGER_CONFIG_FILE);
}