mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 13:49:53 -06:00
UI: Expose the "show active title" setting
This commit is contained in:
@ -88,6 +88,8 @@ void InterfaceConfigPane::InitializeGUI()
|
||||
m_confirm_stop_checkbox = new wxCheckBox(this, wxID_ANY, _("Confirm on Stop"));
|
||||
m_panic_handlers_checkbox = new wxCheckBox(this, wxID_ANY, _("Use Panic Handlers"));
|
||||
m_osd_messages_checkbox = new wxCheckBox(this, wxID_ANY, _("On-Screen Display Messages"));
|
||||
m_show_active_title_checkbox =
|
||||
new wxCheckBox(this, wxID_ANY, _("Show Active Title in Window Title"));
|
||||
m_pause_focus_lost_checkbox = new wxCheckBox(this, wxID_ANY, _("Pause on Focus Lost"));
|
||||
m_interface_lang_choice =
|
||||
new wxChoice(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_interface_lang_strings);
|
||||
@ -99,6 +101,8 @@ void InterfaceConfigPane::InitializeGUI()
|
||||
&InterfaceConfigPane::OnPanicHandlersCheckBoxChanged, this);
|
||||
m_osd_messages_checkbox->Bind(wxEVT_CHECKBOX, &InterfaceConfigPane::OnOSDMessagesCheckBoxChanged,
|
||||
this);
|
||||
m_show_active_title_checkbox->Bind(wxEVT_CHECKBOX,
|
||||
&InterfaceConfigPane::OnShowActiveTitleCheckBoxChanged, this);
|
||||
m_pause_focus_lost_checkbox->Bind(wxEVT_CHECKBOX,
|
||||
&InterfaceConfigPane::OnPauseOnFocusLostCheckBoxChanged, this);
|
||||
m_interface_lang_choice->Bind(wxEVT_CHOICE,
|
||||
@ -113,6 +117,8 @@ void InterfaceConfigPane::InitializeGUI()
|
||||
m_osd_messages_checkbox->SetToolTip(
|
||||
_("Display messages over the emulation screen area.\nThese messages include memory card "
|
||||
"writes, video backend and CPU information, and JIT cache clearing."));
|
||||
m_show_active_title_checkbox->SetToolTip(
|
||||
_("Show the active title name in the emulation window title."));
|
||||
m_pause_focus_lost_checkbox->SetToolTip(
|
||||
_("Pauses the emulator when focus is taken away from the emulation window."));
|
||||
m_interface_lang_choice->SetToolTip(
|
||||
@ -139,6 +145,8 @@ void InterfaceConfigPane::InitializeGUI()
|
||||
main_static_box_sizer->AddSpacer(space5);
|
||||
main_static_box_sizer->Add(m_osd_messages_checkbox, 0, wxLEFT | wxRIGHT, space5);
|
||||
main_static_box_sizer->AddSpacer(space5);
|
||||
main_static_box_sizer->Add(m_show_active_title_checkbox, 0, wxLEFT | wxRIGHT, space5);
|
||||
main_static_box_sizer->AddSpacer(space5);
|
||||
main_static_box_sizer->Add(m_pause_focus_lost_checkbox, 0, wxLEFT | wxRIGHT, space5);
|
||||
main_static_box_sizer->AddSpacer(space5);
|
||||
main_static_box_sizer->Add(language_and_theme_grid_sizer, 0, wxEXPAND | wxLEFT | wxRIGHT, space5);
|
||||
@ -159,6 +167,7 @@ void InterfaceConfigPane::LoadGUIValues()
|
||||
m_confirm_stop_checkbox->SetValue(startup_params.bConfirmStop);
|
||||
m_panic_handlers_checkbox->SetValue(startup_params.bUsePanicHandlers);
|
||||
m_osd_messages_checkbox->SetValue(startup_params.bOnScreenDisplayMessages);
|
||||
m_show_active_title_checkbox->SetValue(startup_params.m_show_active_title);
|
||||
m_pause_focus_lost_checkbox->SetValue(SConfig::GetInstance().m_PauseOnFocusLost);
|
||||
|
||||
const std::string exact_language = SConfig::GetInstance().m_InterfaceLanguage;
|
||||
@ -220,6 +229,11 @@ void InterfaceConfigPane::OnOSDMessagesCheckBoxChanged(wxCommandEvent& event)
|
||||
SConfig::GetInstance().bOnScreenDisplayMessages = m_osd_messages_checkbox->IsChecked();
|
||||
}
|
||||
|
||||
void InterfaceConfigPane::OnShowActiveTitleCheckBoxChanged(wxCommandEvent&)
|
||||
{
|
||||
SConfig::GetInstance().m_show_active_title = m_show_active_title_checkbox->IsChecked();
|
||||
}
|
||||
|
||||
void InterfaceConfigPane::OnInterfaceLanguageChoiceChanged(wxCommandEvent& event)
|
||||
{
|
||||
if (SConfig::GetInstance().m_InterfaceLanguage !=
|
||||
|
Reference in New Issue
Block a user