mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-08 22:47:12 +02:00
GUI Minicommit: Menu item for screenshot
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3592 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
c2e0225aa3
commit
a0bd319f7f
@ -122,15 +122,17 @@ void CFrame::CreateMenu()
|
|||||||
fileMenu->Append(IDM_BROWSE, _T("&Browse for ISOs..."));
|
fileMenu->Append(IDM_BROWSE, _T("&Browse for ISOs..."));
|
||||||
|
|
||||||
fileMenu->AppendSeparator();
|
fileMenu->AppendSeparator();
|
||||||
fileMenu->Append(wxID_EXIT, _T("E&xit"), _T("Alt+F4"));
|
fileMenu->Append(wxID_EXIT, _T("E&xit\tAlt+F4"));
|
||||||
menuBar->Append(fileMenu, _T("&File"));
|
menuBar->Append(fileMenu, _T("&File"));
|
||||||
|
|
||||||
// Emulation menu
|
// Emulation menu
|
||||||
wxMenu* emulationMenu = new wxMenu;
|
wxMenu* emulationMenu = new wxMenu;
|
||||||
emulationMenu->Append(IDM_PLAY, _T("&Play"));
|
emulationMenu->Append(IDM_PLAY, _T("&Play\tF10"));
|
||||||
emulationMenu->Append(IDM_CHANGEDISC, _T("Change Disc"));
|
emulationMenu->Append(IDM_CHANGEDISC, _T("Change &Disc"));
|
||||||
emulationMenu->Append(IDM_STOP, _T("&Stop"));
|
emulationMenu->Append(IDM_STOP, _T("&Stop"));
|
||||||
emulationMenu->AppendSeparator();
|
emulationMenu->AppendSeparator();
|
||||||
|
emulationMenu->Append(IDM_SCREENSHOT, _T("Take S&creenshot\tF9"));
|
||||||
|
emulationMenu->AppendSeparator();
|
||||||
wxMenu *saveMenu = new wxMenu;
|
wxMenu *saveMenu = new wxMenu;
|
||||||
wxMenu *loadMenu = new wxMenu;
|
wxMenu *loadMenu = new wxMenu;
|
||||||
m_pSubMenuLoad = emulationMenu->AppendSubMenu(loadMenu, _T("&Load State"));
|
m_pSubMenuLoad = emulationMenu->AppendSubMenu(loadMenu, _T("&Load State"));
|
||||||
@ -852,6 +854,7 @@ void CFrame::UpdateGUI()
|
|||||||
|
|
||||||
// Emulation
|
// Emulation
|
||||||
GetMenuBar()->FindItem(IDM_STOP)->Enable(running || paused);
|
GetMenuBar()->FindItem(IDM_STOP)->Enable(running || paused);
|
||||||
|
GetMenuBar()->FindItem(IDM_SCREENSHOT)->Enable(running || paused);
|
||||||
m_pSubMenuLoad->Enable(initialized);
|
m_pSubMenuLoad->Enable(initialized);
|
||||||
m_pSubMenuSave->Enable(initialized);
|
m_pSubMenuSave->Enable(initialized);
|
||||||
|
|
||||||
@ -868,7 +871,7 @@ void CFrame::UpdateGUI()
|
|||||||
GetToolBar()->FindById(IDM_PLAY)->SetShortHelp(_("Pause"));
|
GetToolBar()->FindById(IDM_PLAY)->SetShortHelp(_("Pause"));
|
||||||
GetToolBar()->FindById(IDM_PLAY)->SetLabel(_("Pause"));
|
GetToolBar()->FindById(IDM_PLAY)->SetLabel(_("Pause"));
|
||||||
}
|
}
|
||||||
GetMenuBar()->FindItem(IDM_PLAY)->SetText(_("&Pause"));
|
GetMenuBar()->FindItem(IDM_PLAY)->SetText(_("&Pause\tF10"));
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -879,7 +882,7 @@ void CFrame::UpdateGUI()
|
|||||||
GetToolBar()->FindById(IDM_PLAY)->SetShortHelp(_("Play"));
|
GetToolBar()->FindById(IDM_PLAY)->SetShortHelp(_("Play"));
|
||||||
GetToolBar()->FindById(IDM_PLAY)->SetLabel(_("Play"));
|
GetToolBar()->FindById(IDM_PLAY)->SetLabel(_("Play"));
|
||||||
}
|
}
|
||||||
GetMenuBar()->FindItem(IDM_PLAY)->SetText(_("&Play"));
|
GetMenuBar()->FindItem(IDM_PLAY)->SetText(_("&Play\tF10"));
|
||||||
|
|
||||||
}
|
}
|
||||||
if (GetToolBar() != NULL)
|
if (GetToolBar() != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user