diff options
| author | Glenn Rice <glennricster@gmail.com> | 2011-01-31 02:39:25 +0000 |
|---|---|---|
| committer | Glenn Rice <glennricster@gmail.com> | 2011-01-31 02:39:25 +0000 |
| commit | fec5ed92ff123babcd0a3ab3e3c356bde71d9edc (patch) | |
| tree | ac49e2f33621aade366e848b8bfbfc62cdf6160b /Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp | |
| parent | 1ee18ff146a889aea899434e68793b54d5572a68 (diff) | |
Revive the GFX debugger window. Turns out to be considerably easier than the DSPLLE debugger window.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7001 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp')
| -rw-r--r-- | Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp | 50 |
1 files changed, 12 insertions, 38 deletions
diff --git a/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp b/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp index 1913e72f56..b88fd13bc8 100644 --- a/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp +++ b/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp @@ -37,6 +37,7 @@ #include "BreakpointWindow.h" #include "MemoryWindow.h" #include "JitWindow.h" +#include "DebuggerPanel.h" #include "FileUtil.h" #include "CodeWindow.h" @@ -426,7 +427,7 @@ void CCodeWindow::OpenPages() if (bShowOnStart[IDM_SOUNDWINDOW - IDM_LOGWINDOW]) ToggleSoundWindow(true); if (bShowOnStart[IDM_VIDEOWINDOW - IDM_LOGWINDOW]) - ToggleDLLWindow(IDM_VIDEOWINDOW, true); + ToggleVideoWindow(true); } void CCodeWindow::ToggleCodeWindow(bool bShow) @@ -533,47 +534,20 @@ void CCodeWindow::ToggleSoundWindow(bool bShow) #endif } -// Notice: This windows docking will produce several wx debugging messages for plugin -// windows when ::GetWindowRect and ::DestroyWindow fails in wxApp::CleanUp() for the -// plugin. - -// Toggle Sound Debugging Window -void CCodeWindow::ToggleDLLWindow(int Id, bool bShow) +void CCodeWindow::ToggleVideoWindow(bool bShow) { - std::string DLLName; - //int PluginType; - wxPanel *Win; - - switch(Id) - { - default: - PanicAlert("CCodeWindow::ToggleDLLWindow called with invalid Id"); - return; - } - + GetMenuBar()->FindItem(IDM_VIDEOWINDOW)->Check(bShow); if (bShow) { - // Show window - //Win = (wxPanel *)CPluginManager::GetInstance().OpenDebug(Parent, - // DLLName.c_str(), (PLUGIN_TYPE)PluginType, bShow); - - //if (Win) - //{ - // Win->Show(); - // Win->SetId(Id); - // Parent->DoAddPage(Win, - // iNbAffiliation[Id - IDM_LOGWINDOW], - // Parent->bFloatWindow[Id - IDM_LOGWINDOW]); - //} + if (!m_VideoWindow) + m_VideoWindow = new GFXDebuggerPanel(Parent, IDM_VIDEOWINDOW); + Parent->DoAddPage(m_VideoWindow, + iNbAffiliation[IDM_VIDEOWINDOW - IDM_LOGWINDOW], + Parent->bFloatWindow[IDM_VIDEOWINDOW - IDM_LOGWINDOW]); } - else + else // Close { - //Win = (wxPanel *)FindWindowById(Id); - //if (Win) - //{ - // Parent->DoRemovePage(Win, false); - // Win->Destroy(); - //} + Parent->DoRemovePage(m_VideoWindow, false); + m_VideoWindow = NULL; } - GetMenuBar()->FindItem(Id)->Check(bShow && !!Win); } |
