mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-15 02:44:41 +00:00
Qt: Add missing help text in Interface Settings
This commit is contained in:
@@ -100,17 +100,9 @@ InterfaceSettingsWidget::InterfaceSettingsWidget(SettingsWindow* dialog, QWidget
|
||||
dialog->registerWidgetHelp(m_ui.saveStateOnGameClose, tr("Save State On Game Close"), tr("Checked"),
|
||||
tr("Automatically saves the system state when closing the game or exiting. You can then "
|
||||
"resume directly from where you left off next time."));
|
||||
dialog->registerWidgetHelp(m_ui.startFullscreen, tr("Start Fullscreen"), tr("Unchecked"),
|
||||
tr("Automatically switches to fullscreen mode when a game is started."));
|
||||
dialog->registerWidgetHelp(m_ui.hideMouseCursor, tr("Hide Cursor In Fullscreen"), tr("Checked"),
|
||||
tr("Hides the mouse pointer/cursor when the emulator is in fullscreen mode."));
|
||||
dialog->registerWidgetHelp(
|
||||
m_ui.inhibitScreensaver, tr("Inhibit Screensaver"), tr("Checked"),
|
||||
tr("Prevents the screen saver from activating and the host from sleeping while emulation is running."));
|
||||
dialog->registerWidgetHelp(
|
||||
m_ui.renderToSeparateWindow, tr("Render To Separate Window"), tr("Checked"),
|
||||
tr("Renders the display of the simulated console to the main window of the application, over "
|
||||
"the game list. If checked, the display will render in a separate window."));
|
||||
dialog->registerWidgetHelp(m_ui.pauseOnStart, tr("Pause On Start"), tr("Unchecked"),
|
||||
tr("Pauses the emulator when a game is started."));
|
||||
dialog->registerWidgetHelp(m_ui.pauseOnFocusLoss, tr("Pause On Focus Loss"), tr("Unchecked"),
|
||||
@@ -125,12 +117,21 @@ InterfaceSettingsWidget::InterfaceSettingsWidget(SettingsWindow* dialog, QWidget
|
||||
dialog->registerWidgetHelp(m_ui.enableDiscordPresence, tr("Enable Discord Presence"), tr("Unchecked"),
|
||||
tr("Shows the game you are currently playing as part of your profile in Discord."));
|
||||
|
||||
if (!m_dialog->isPerGameSettings())
|
||||
{
|
||||
dialog->registerWidgetHelp(m_ui.autoUpdateEnabled, tr("Enable Automatic Update Check"), tr("Checked"),
|
||||
tr("Automatically checks for updates to the program on startup. Updates can be deferred "
|
||||
"until later or skipped entirely."));
|
||||
}
|
||||
dialog->registerWidgetHelp(m_ui.startFullscreen, tr("Start Fullscreen"), tr("Unchecked"),
|
||||
tr("Automatically switches to fullscreen mode when a game is started."));
|
||||
dialog->registerWidgetHelp(m_ui.doubleClickTogglesFullscreen, tr("Double-Click Toggles Fullscreen"), tr("Checked"),
|
||||
tr("Switches between full screen and windowed when the window is double-clicked."));
|
||||
dialog->registerWidgetHelp(
|
||||
m_ui.renderToSeparateWindow, tr("Render To Separate Window"), tr("Checked"),
|
||||
tr("Renders the display of the simulated console to the main window of the application, over "
|
||||
"the game list. If checked, the display will render in a separate window."));
|
||||
dialog->registerWidgetHelp(
|
||||
m_ui.hideMainWindow, tr("Hide Main Window When Running"), tr("Unchecked"),
|
||||
tr("Hides the main window of the application while the game is displayed in a separate window."));
|
||||
dialog->registerWidgetHelp(m_ui.disableWindowResizing, tr("Disable Window Resizing"), tr("Unchecked"),
|
||||
tr("Prevents resizing of the window while a game is running."));
|
||||
dialog->registerWidgetHelp(m_ui.hideMouseCursor, tr("Hide Cursor In Fullscreen"), tr("Checked"),
|
||||
tr("Hides the mouse pointer/cursor when the emulator is in fullscreen mode."));
|
||||
|
||||
if (!m_dialog->isPerGameSettings())
|
||||
{
|
||||
@@ -150,6 +151,32 @@ InterfaceSettingsWidget::InterfaceSettingsWidget(SettingsWindow* dialog, QWidget
|
||||
m_ui.checkForUpdates->setEnabled(false);
|
||||
m_ui.updatesGroup->setEnabled(false);
|
||||
}
|
||||
|
||||
dialog->registerWidgetHelp(m_ui.language, tr("Language"), tr("System Language"),
|
||||
tr("Selects the language for the application. Please note that not all parts of the "
|
||||
"application may be translated for a given language."));
|
||||
|
||||
const char* default_theme_cname = QtHost::GetDefaultThemeName();
|
||||
QString default_theme_name;
|
||||
for (size_t i = 0; THEME_VALUES[i] != nullptr; ++i)
|
||||
{
|
||||
if (std::strcmp(THEME_VALUES[i], default_theme_cname) == 0)
|
||||
{
|
||||
default_theme_name = tr(THEME_NAMES[i]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
dialog->registerWidgetHelp(m_ui.theme, tr("Theme"), default_theme_name,
|
||||
tr("Selects the theme for the application."));
|
||||
|
||||
dialog->registerWidgetHelp(m_ui.autoUpdateTag, tr("Update Channel"),
|
||||
QString::fromStdString(AutoUpdaterWindow::getDefaultTag()),
|
||||
tr("Selects the channel that will be checked for updates to the application. The "
|
||||
"<strong>preview</strong> channel contains the latest changes, and may be unstable. "
|
||||
"The <strong>latest</strong> channel tracks the latest release."));
|
||||
dialog->registerWidgetHelp(m_ui.autoUpdateEnabled, tr("Enable Automatic Update Check"), tr("Checked"),
|
||||
tr("Automatically checks for updates to the program on startup. Updates can be deferred "
|
||||
"until later or skipped entirely."));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user