update dsp hle and ogl plugins for the new console window.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2709 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman 2009-03-20 23:45:25 +00:00
parent 7df9aaa3e3
commit 323676a66b
5 changed files with 19 additions and 51 deletions

View File

@ -173,7 +173,7 @@ void CDebugger::DoHide()
void CDebugger::DoShow() void CDebugger::DoShow()
{ {
Show(); Show();
DoShowHideConsole(); // The console goes with the wx window DoShowConsole(); // The console goes with the wx window
} }
void CDebugger::OnUpdate(wxCommandEvent& /*event*/) void CDebugger::OnUpdate(wxCommandEvent& /*event*/)
@ -219,7 +219,7 @@ void CDebugger::Load(IniFile& _IniFile)
bool Console; bool Console;
_IniFile.Get("SoundWindow", "Console", &Console, m_options->IsChecked(3)); _IniFile.Get("SoundWindow", "Console", &Console, m_options->IsChecked(3));
m_options->Check(3, Console); m_options->Check(3, Console);
DoShowHideConsole(); DoShowConsole();
// Show number base // Show number base
_IniFile.Get("SoundWindow", "ShowBase", &bShowBase, !m_RadioBox[0]->GetSelection()); _IniFile.Get("SoundWindow", "ShowBase", &bShowBase, !m_RadioBox[0]->GetSelection());
@ -560,12 +560,9 @@ SetTitle(wxT("Sound Debugging"));
NotifyUpdate(); NotifyUpdate();
// -------------------------------------------------------------------- // --------------------------------------------------------------------
} }
/////////////////////////////
// ======================================================================================= // =======================================================================================
// Settings // Settings
// --------------
void CDebugger::OnSettingsCheck(wxCommandEvent& event) void CDebugger::OnSettingsCheck(wxCommandEvent& event)
{ {
gSSBM = m_settings->IsChecked(0); gSSBM = m_settings->IsChecked(0);
@ -576,12 +573,9 @@ void CDebugger::OnSettingsCheck(wxCommandEvent& event)
gReset = m_settings->IsChecked(5); gReset = m_settings->IsChecked(5);
} }
// =======================================================================================
// ======================================================================================= // =======================================================================================
// Change preset // Change preset
// --------------
void CDebugger::ChangePreset(wxCommandEvent& event) void CDebugger::ChangePreset(wxCommandEvent& event)
{ {
DoChangePreset(); DoChangePreset();
@ -598,12 +592,9 @@ void CDebugger::DoChangePreset()
else if(m_RadioBox[2]->GetSelection() == 3) else if(m_RadioBox[2]->GetSelection() == 3)
gPreset = 3; gPreset = 3;
} }
// ==============
// ======================================================================================= // =======================================================================================
// Show base // Show base
// --------------
void CDebugger::ShowBase(wxCommandEvent& event) void CDebugger::ShowBase(wxCommandEvent& event)
{ {
if(m_RadioBox[0]->GetSelection() == 0) if(m_RadioBox[0]->GetSelection() == 0)
@ -611,12 +602,9 @@ void CDebugger::ShowBase(wxCommandEvent& event)
else if(m_RadioBox[0]->GetSelection() == 1) else if(m_RadioBox[0]->GetSelection() == 1)
bShowBase = false; bShowBase = false;
} }
// ==============
// ======================================================================================= // =======================================================================================
// Change update frequency // Change update frequency
// --------------
void CDebugger::ChangeFrequency(wxCommandEvent& event) void CDebugger::ChangeFrequency(wxCommandEvent& event)
{ {
DoChangeFrequency(); DoChangeFrequency();
@ -633,12 +621,9 @@ void CDebugger::DoChangeFrequency()
else if(m_RadioBox[1]->GetSelection() == 3) else if(m_RadioBox[1]->GetSelection() == 3)
gUpdFreq = 30; gUpdFreq = 30;
} }
// ==============
// ======================================================================================= // =======================================================================================
// Options // Options
// --------------
void CDebugger::OnOptions(wxCommandEvent& event) void CDebugger::OnOptions(wxCommandEvent& event)
{ {
gSaveFile = m_options->IsChecked(0); gSaveFile = m_options->IsChecked(0);
@ -646,7 +631,7 @@ void CDebugger::OnOptions(wxCommandEvent& event)
gShowAll = m_options->IsChecked(2); gShowAll = m_options->IsChecked(2);
gSaveFile = m_options->IsChecked(3); gSaveFile = m_options->IsChecked(3);
if(event.GetInt() == 3) DoShowHideConsole(); if(event.GetInt() == 3) DoShowConsole();
} }
void CDebugger::OnShowAll(wxCommandEvent& event) void CDebugger::OnShowAll(wxCommandEvent& event)
@ -667,24 +652,17 @@ void CDebugger::OnShowAll(wxCommandEvent& event)
// ======================================================================================= // =======================================================================================
// Show or hide console window // Show or hide console window
// --------------
void CDebugger::ShowHideConsole(wxCommandEvent& event) void CDebugger::ShowHideConsole(wxCommandEvent& event)
{ {
DoShowHideConsole(); DoShowConsole();
} }
void CDebugger::DoShowHideConsole() void CDebugger::DoShowConsole()
{ {
// #ifdef _WIN32 ConsoleListener* console = LogManager::GetInstance()->getConsoleListener();
// if(m_options->IsChecked(3)) if(m_options->IsChecked(3) && !console->IsOpen())
// OpenConsole(); console->Open();
// else
// CloseConsole();
// #endif
PanicAlert("oh crap");
} }
// ==============
void CDebugger::NotifyUpdate() void CDebugger::NotifyUpdate()
{ {
@ -693,4 +671,3 @@ void CDebugger::NotifyUpdate()
m_GPRListView->Update(); m_GPRListView->Update();
} }
} }

View File

@ -76,7 +76,7 @@ class CDebugger : public wxDialog
void ShowHideConsole(wxCommandEvent& event); // options void ShowHideConsole(wxCommandEvent& event); // options
void ShowBase(wxCommandEvent& event); void ShowBase(wxCommandEvent& event);
void DoShowHideConsole(); void DoShowConsole();
//void OnlyLooping(wxCommandEvent& event); //void OnlyLooping(wxCommandEvent& event);
void OnOptions(wxCommandEvent& event); void OnOptions(wxCommandEvent& event);
void OnShowAll(wxCommandEvent& event); void OnShowAll(wxCommandEvent& event);

View File

@ -102,9 +102,8 @@ CPBView::Update()
} }
// TODO wtf does this do? why is it windows only???
bool bool CPBView::MSWDrawSubItem(wxPaintDC& rPainDC, int item, int subitem)
CPBView::MSWDrawSubItem(wxPaintDC& rPainDC, int item, int subitem)
{ {
bool Result = false; bool Result = false;
@ -164,5 +163,3 @@ CPBView::MSWDrawSubItem(wxPaintDC& rPainDC, int item, int subitem)
return(Result); return(Result);
} }
} }

View File

@ -42,7 +42,7 @@ CDebugger::CDebugger(wxWindow *parent, wxWindowID id, const wxString &title,
CreateGUIControls(); CreateGUIControls();
LoadSettings(); LoadSettings();
DoShowHideConsole(); DoShowConsole();
} }
CDebugger::~CDebugger() CDebugger::~CDebugger()
@ -56,21 +56,15 @@ void CDebugger::OnClose(wxCloseEvent& event)
SaveSettings(); SaveSettings();
event.Skip(); // This means wxDialog's Destroy is used event.Skip(); // This means wxDialog's Destroy is used
// CloseConsole(); // The console goes with the wx window
} }
void CDebugger::DoShowHideConsole() void CDebugger::DoShowConsole()
{ {
/* if(m_Check[1]->IsChecked() ConsoleListener* console = LogManager::GetInstance()->getConsoleListener();
#ifdef _WIN32 if(m_Check[1]->IsChecked() && console->IsOpen())
// Check to see if we already have a console console->Open();
// && Console::GetHwnd() == NULL
#endif
)
OpenConsole();
else else
CloseConsole(); console->Close();
*/
} }
void CDebugger::SaveSettings() const void CDebugger::SaveSettings() const
@ -166,7 +160,7 @@ void CDebugger::GeneralSettings(wxCommandEvent& event)
switch (event.GetId()) switch (event.GetId())
{ {
case ID_SHOWCONSOLE: case ID_SHOWCONSOLE:
DoShowHideConsole(); DoShowConsole();
break; break;
case ID_INFOLOG: case ID_INFOLOG:
bInfoLog = event.IsChecked(); bInfoLog = event.IsChecked();

View File

@ -39,7 +39,7 @@ public:
void SaveSettings() const; void SaveSettings() const;
void LoadSettings(); void LoadSettings();
void DoShowHideConsole(); void DoShowConsole();
void DoShow(); void DoShow();
void GeneralSettings(wxCommandEvent& event); void GeneralSettings(wxCommandEvent& event);