From d50b4c2ffc7e8bee6f480e8f85536363fb8bfe9b Mon Sep 17 00:00:00 2001 From: John Peterson Date: Tue, 1 Sep 2009 02:41:48 +0000 Subject: 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 --- Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp') 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 -- cgit v1.2.3