summaryrefslogtreecommitdiff
path: root/src/yuzu/configuration/configure_hotkeys.cpp
AgeCommit message (Collapse)Author
2022-05-18UI: Translate hotkey labels in configurationKyle K
Another request from GillianMC. The translated strings have been placed in a separate "Hotkeys" context as an alternative to having to add the tr function to the Config class, or adding them to ConfigureHotkeys context which is quite long. The English strings get attached to the items in the Action column as "data", and are used for RetranslateUI and saving the hotkey configuration.
2022-04-02configure_hotkeys: Make first column stretch and not last columnmerry
Also configure minimum width of columns to be 150px.
2022-01-27hotkeys: Don't translate hotkey buttonsgerman77
2022-01-06yuzu: Add controller hotkeysgerman77
2021-04-14common: Move settings to common from core.bunnei
- Removes a dependency on core and input_common from common.
2020-08-16configure_hotkeys: Don't translate empty stringsLioncash
There's no need to translate an empty string. This just gives translators unnecessary work.
2020-04-24Add Restore Defaults and Clear options to hotkeysKewlan
2020-01-12GUI/configure: resize hotkeys column to contentBartosz Kaszubowski
2019-06-05yuzu/configuration: Make all widgets and dialogs aware of language changesLioncash
To prepare for translation support, this makes all of the widgets cognizant of the language change event that occurs whenever installTranslator() is called and automatically retranslates their text where necessary. This is important as calling the backing UI's retranslateUi() is often not enough, particularly in cases where we add our own strings that aren't controlled by it. In that case we need to manually refresh the strings ourselves.
2019-06-05yuzu/configuration: Make function naming consistentLioncash
2019-05-25configure_hotkeys: Remove unnecessary Settings::Apply() callLioncash
Nothing from the hotkeys dialog relies on this call occurring, and is already called from the dialog that calls applyConfiguration().
2019-05-25configure_hotkeys: Tidy up key sequence conflict error stringLioncash
Avoids mentioning the user and formalizes the error itself.
2019-05-25configure_hotkeys: Change critical error dialog into a warning dialogLioncash
critical() is intended for critical/fatal errors that threaten the overall stability of an application. A user entering a conflicting key sequence is neither of those.
2019-05-25configure_hotkeys: Move conflict detection logic to IsUsedKey()Lioncash
We don't need to extract the entire set of hotkeys into a list and then iterate through it. We can traverse the list and early-exit if we're able to.
2019-05-25configure_hotkeys: Remove unused EmitHotkeysChanged()Lioncash
1. This is something that should be solely emitted by the hotkey dialog itself 2. This is functionally unused, given there's nothing listening for the signal.
2019-04-09configure_hotkeys: Pass the dialog as a parent to SequenceDialog()Lioncash
Without passing in a parent, this can result in focus being stolen from the dialog in certain cases. Example: On Windows, if the logging window is left open, the logging Window will potentially get focus over the hotkey dialog itself, since it brings all open windows for the application into view. By specifying a parent, we only bring windows for the parent into view (of which there are none, aside from the hotkey dialog).
2019-04-09configure_hotkeys: Avoid dialog memory leak within Configure()Lioncash
Without a parent, this dialog won't have its memory freed when it happens to get destroyed.
2019-04-09configure_hotkeys: Mark member variables as const where applicable in ↵Lioncash
Configure()
2019-04-09configure_hotkeys: Make comparison check a little more self-documentingLioncash
This is checking if an index is valid or not and returning early if it isn't.
2019-04-09configure_hotkey: Make IsUsedKey() a const member functionLioncash
This doesn't actually modify instance state of the dialog, so this can be made const.
2019-03-16yuzu: Make hotkeys configurable via the GUIAdityarup Laha
* Adds a new Hotkeys tab in the Controls group. * Double-click a Hotkey to rebind it.