diff options
| author | John Peterson <jpeterson57@gmail.com> | 2009-08-27 19:38:35 +0000 |
|---|---|---|
| committer | John Peterson <jpeterson57@gmail.com> | 2009-08-27 19:38:35 +0000 |
| commit | 8faaec82364c85dfec36737dc0dc9ce6c979d7a3 (patch) | |
| tree | 295ceb978e4b7292998396bc44b5f494b736a6f4 /Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp | |
| parent | c97147ca7af8bee2f3add155b8be7fee87c7c1ad (diff) | |
GUI: Dock console. Couldn't remove the border, anybody know how?
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4087 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp')
| -rw-r--r-- | Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp | 52 |
1 files changed, 6 insertions, 46 deletions
diff --git a/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp b/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp index cb8e90d8e5..940310b3cd 100644 --- a/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp +++ b/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp @@ -325,46 +325,6 @@ void CCodeWindow::OnChangeFont(wxCommandEvent& event) ///////////////////////////////////////////////////////////////////////////////////////////////////////// // Toogle windows // ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ -wxWindow * CCodeWindow::GetNootebookPage(wxString Name) -{ - for (int i = 0; i < Parent->m_NB.size(); i++) - { - if (!Parent->m_NB[i]) return NULL; - for(u32 j = 0; j <= Parent->m_NB[j]->GetPageCount(); j++) - { - if (Parent->m_NB[i]->GetPageText(j).IsSameAs(Name)) return Parent->m_NB[i]->GetPage(j); - } - } - return NULL; -} -wxWindow * CCodeWindow::GetWxWindow(wxString Name) -{ - #ifdef _WIN32 - HWND hWnd = ::FindWindow(NULL, Name.c_str()); - if (hWnd) - { - wxWindow * Win = new wxWindow(); - Win->SetHWND((WXHWND)hWnd); - Win->AdoptAttributesFromHWND(); - return Win; - } - else - #endif - if (Parent->FindWindowByName(Name)) - { - return Parent->FindWindowByName(Name); - } - else if (Parent->FindWindowByLabel(Name)) - { - return Parent->FindWindowByLabel(Name); - } - else if (GetNootebookPage(Name)) - { - return GetNootebookPage(Name); - } - else - return NULL; -} int CCodeWindow::Limit(int i, int Low, int High) { if (i < Low) return Low; @@ -450,7 +410,7 @@ void CCodeWindow::OnToggleSoundWindow(bool Show, int i) { if (i < 0 || i > Parent->m_NB.size()-1) return; #ifdef _WIN32 - wxWindow *Win = GetWxWindow(wxT("Sound")); + wxWindow *Win = Parent->GetWxWindow(wxT("Sound")); if (Win && Parent->m_NB[i]->GetPageIndex(Win) != wxNOT_FOUND) return; { @@ -465,7 +425,7 @@ void CCodeWindow::OnToggleSoundWindow(bool Show, int i) #ifdef _WIN32 } - Win = GetWxWindow(wxT("Sound")); + Win = Parent->GetWxWindow(wxT("Sound")); if (Win) { //Console->Log(LogTypes::LNOTICE, StringFromFormat("AddPage\n").c_str()); @@ -476,7 +436,7 @@ void CCodeWindow::OnToggleSoundWindow(bool Show, int i) else // hide { #ifdef _WIN32 - wxWindow *Win = GetWxWindow(wxT("Sound")); + wxWindow *Win = Parent->GetWxWindow(wxT("Sound")); Parent->DoRemovePage (Win, false); #endif // Close the sound dll that has an open debugger @@ -497,7 +457,7 @@ void CCodeWindow::OnToggleVideoWindow(bool Show, int i) { if (i < 0 || i > Parent->m_NB.size()-1) return; #ifdef _WIN32 - wxWindow *Win = GetWxWindow(wxT("Video")); + wxWindow *Win = Parent->GetWxWindow(wxT("Video")); if (Win && Parent->m_NB[i]->GetPageIndex(Win) != wxNOT_FOUND) return; { @@ -511,14 +471,14 @@ void CCodeWindow::OnToggleVideoWindow(bool Show, int i) #ifdef _WIN32 } - Win = GetWxWindow(wxT("Video")); + Win = Parent->GetWxWindow(wxT("Video")); if (Win) Parent->m_NB[i]->AddPage(Win, wxT("Video"), true, Parent->aNormalFile ); #endif } else // hide { #ifdef _WIN32 - wxWindow *Win = GetWxWindow(wxT("Video")); + wxWindow *Win = Parent->GetWxWindow(wxT("Video")); Parent->DoRemovePage (Win, false); #endif // Close the video dll that has an open debugger |
