diff options
| author | fires.gc <fires.gc@gmail.com> | 2008-07-16 12:19:14 +0000 |
|---|---|---|
| committer | fires.gc <fires.gc@gmail.com> | 2008-07-16 12:19:14 +0000 |
| commit | cb5072c3e4cf66d33d30697984a9179534334b38 (patch) | |
| tree | 7352aa0e6d6817e8245521ae3227b6bc160b9f3d /Source/Core/DolphinWX/src/Frame.cpp | |
| parent | 222d669d8b42254c0da4cc3ed4696cc18252ff7e (diff) | |
added additional information like FPS to the status bar
added menu option to activate dual core support
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@11 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DolphinWX/src/Frame.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/src/Frame.cpp | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/Source/Core/DolphinWX/src/Frame.cpp b/Source/Core/DolphinWX/src/Frame.cpp index dbfaf1065b..7359294a12 100644 --- a/Source/Core/DolphinWX/src/Frame.cpp +++ b/Source/Core/DolphinWX/src/Frame.cpp @@ -89,6 +89,7 @@ EVT_MENU(IDM_CONFIG_DSP_PLUGIN, CFrame::OnPluginDSP) EVT_MENU(IDM_CONFIG_PAD_PLUGIN, CFrame::OnPluginPAD)
EVT_MENU(IDM_BROWSE, CFrame::OnBrowse)
EVT_MENU(IDM_TOGGLE_FULLSCREEN, CFrame::OnToggleFullscreen)
+EVT_MENU(IDM_TOGGLE_DUALCORE, CFrame::OnToggleDualCore)
EVT_HOST_COMMAND(wxID_ANY, CFrame::OnHostMessage)
END_EVENT_TABLE()
@@ -106,6 +107,7 @@ CFrame::CFrame(wxFrame* parent, , m_pMenuBar(NULL)
, m_Panel(NULL)
, m_pBootProcessDialog(NULL)
+ , m_pStatusBar(NULL)
{
InitBitmaps();
@@ -115,7 +117,7 @@ CFrame::CFrame(wxFrame* parent, SetIcon(IconTemp);
// Give it a status line
- CreateStatusBar();
+ m_pStatusBar = CreateStatusBar();
CreateMenu();
// this panel is the parent for rendering and it holds the gamelistctrl
@@ -202,13 +204,19 @@ CFrame::CreateMenu() m_pMenuItemStop->SetDisabledBitmap(m_BitmapsMenu[Toolbar_Stop_Dis]);
pEmulationMenu->Append(m_pMenuItemStop);
}
- pEmulationMenu->AppendSeparator();
- // full screen
+ pEmulationMenu->AppendSeparator();
{
+ // full screen
wxMenuItem* pItem = new wxMenuItem(pEmulationMenu, IDM_TOGGLE_FULLSCREEN, _T("&Fullscreen"));
pItem->SetBitmap(m_BitmapsMenu[Toolbar_FullScreen]);
pEmulationMenu->Append(pItem);
}
+ {
+ // dual core
+ wxMenuItem* pItem = new wxMenuItem(pEmulationMenu, IDM_TOGGLE_DUALCORE, _T("&Dual Core (instable!)"), wxEmptyString, wxITEM_CHECK);
+ pEmulationMenu->Append(pItem);
+ pItem->Check(SConfig::GetInstance().m_LocalCoreStartupParameter.bUseDualCore);
+ }
m_pMenuBar->Append(pEmulationMenu, _T("&Emulation"));
}
@@ -510,7 +518,6 @@ CFrame::OnHostMessage(wxCommandEvent& event) m_pBootProcessDialog = new wxBusyInfo("Booting...", this);
}
-
break;
case IDM_BOOTING_ENDED:
@@ -521,8 +528,15 @@ CFrame::OnHostMessage(wxCommandEvent& event) delete m_pBootProcessDialog;
m_pBootProcessDialog = NULL;
}
-
break;
+
+ case IDM_UPDATESTATUSBAR:
+
+ if (m_pStatusBar != NULL)
+ {
+ m_pStatusBar->SetStatusText(event.GetString());
+ }
+ break;
}
}
@@ -535,6 +549,14 @@ CFrame::OnToggleFullscreen(wxCommandEvent& WXUNUSED (event)) }
+void
+CFrame::OnToggleDualCore(wxCommandEvent& WXUNUSED (event))
+{
+ SConfig::GetInstance().m_LocalCoreStartupParameter.bUseDualCore = !SConfig::GetInstance().m_LocalCoreStartupParameter.bUseDualCore;
+ SConfig::GetInstance().SaveSettings();
+}
+
+
void
CFrame::OnKeyDown(wxKeyEvent& event)
{
|
