summaryrefslogtreecommitdiff
path: root/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp
diff options
context:
space:
mode:
authorJohn Peterson <jpeterson57@gmail.com>2009-09-01 02:41:48 +0000
committerJohn Peterson <jpeterson57@gmail.com>2009-09-01 02:41:48 +0000
commitd50b4c2ffc7e8bee6f480e8f85536363fb8bfe9b (patch)
tree0247a16f905168fef3fa149a3f781122823f3eef /Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp
parenta1dc78d5a81fc97acfadb3a5f38c1580aa7e2a7f (diff)
GUI: Linux problem, wxAuiNotebook can't have wxFrame pages
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4133 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp')
-rw-r--r--Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp b/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp
index f9f679c0ef..8e02edfc4c 100644
--- a/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp
+++ b/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp
@@ -365,10 +365,18 @@ void CCodeWindow::OnToggleBreakPointWindow(bool Show, int i)
if (Show)
{
if (!m_BreakpointWindow) m_BreakpointWindow = new CBreakPointWindow(this, Parent);
+ #ifdef _WIN32
Parent->DoAddPage(m_BreakpointWindow, i, "Breakpoints");
+ #else
+ m_BreakpointWindow->Show();
+ #endif
}
else // hide
+ #ifdef _WIN32
Parent->DoRemovePage(m_BreakpointWindow);
+ #else
+ if (m_BreakpointWindow) m_BreakpointWindow->Hide();
+ #endif
}
void CCodeWindow::OnToggleJitWindow(bool Show, int i)
@@ -376,10 +384,18 @@ void CCodeWindow::OnToggleJitWindow(bool Show, int i)
if (Show)
{
if (!m_JitWindow) m_JitWindow = new CJitWindow(Parent);
+ #ifdef _WIN32
Parent->DoAddPage(m_JitWindow, i, "JIT");
+ #else
+ m_JitWindow->Show();
+ #endif
}
else // hide
+ #ifdef _WIN32
Parent->DoRemovePage(m_JitWindow);
+ #else
+ if (m_JitWindow) m_JitWindow->Hide();
+ #endif
}
@@ -388,10 +404,18 @@ void CCodeWindow::OnToggleMemoryWindow(bool Show, int i)
if (Show)
{
if (!m_MemoryWindow) m_MemoryWindow = new CMemoryWindow(Parent);
+ #ifdef _WIN32
Parent->DoAddPage(m_MemoryWindow, i, "Memory");
+ #else
+ m_MemoryWindow->Show();
+ #endif
}
else // hide
+ #ifdef _WIN32
Parent->DoRemovePage(m_MemoryWindow);
+ #else
+ if (m_MemoryWindow) m_MemoryWindow->Hide();
+ #endif
}
//Toggle Sound Debugging Window