Widget de remappage des touches d'éditeur (EditorKeyBindings), destiné à l'onglet « Éditeur » de la page Options.
More...
#include <EditorKeybindingsWidget.h>
|
| void | bindingsChanged () |
| | Émis après chaque remappage réussi (touche capturée et sauvegardée).
|
Widget de remappage des touches d'éditeur (EditorKeyBindings), destiné à l'onglet « Éditeur » de la page Options.
Patron identique à KeybindingsWidget (touches de jeu) : chaque action affiche sa touche courante, cliquer capture la prochaine touche pressée (échange auto si déjà prise), persistée immédiatement dans le fichier partagé. bindingsChanged oblige l'appelant à resynchroniser les raccourcis effectifs des QAction (hmi::EditorActions::applyShortcuts) : ce widget écrit la liaison, il ne touche pas aux actions, et un remappage non resynchronisé resterait invisible dans le menu et la barre d'outils.
◆ EditorKeybindingsWidget()
| hmi::EditorKeybindingsWidget::EditorKeybindingsWidget |
( |
hmi::EditorKeyBindings & | bindings, |
|
|
std::filesystem::path | savePath, |
|
|
QWidget * | parent = nullptr ) |
◆ bindingsChanged
| void hmi::EditorKeybindingsWidget::bindingsChanged |
( |
| ) |
|
|
signal |
Émis après chaque remappage réussi (touche capturée et sauvegardée).
◆ keyPressEvent()
| void hmi::EditorKeybindingsWidget::keyPressEvent |
( |
QKeyEvent * | event | ) |
|
|
overrideprotected |
◆ refresh()
| void hmi::EditorKeybindingsWidget::refresh |
( |
| ) |
|
|
private |
◆ retranslateUi()
| void hmi::EditorKeybindingsWidget::retranslateUi |
( |
const Localization & | loc | ) |
|
Applique la langue active (libellés d'actions, invite de capture, aide).
◆ _actionLabels
◆ _bindings
◆ _buttons
◆ _capturing
| int hmi::EditorKeybindingsWidget::_capturing = -1 |
|
private |
Indice de l'action en cours de capture, ou -1.
◆ _help
| QLabel* hmi::EditorKeybindingsWidget::_help = nullptr |
|
private |
◆ _loc
| const Localization* hmi::EditorKeybindingsWidget::_loc = nullptr |
|
private |
◆ _savePath
| std::filesystem::path hmi::EditorKeybindingsWidget::_savePath |
|
private |
The documentation for this class was generated from the following files: