Salome HOME
[bos #35160][EDF](2023-T1) Keyboard shortcuts.
authordish <Dmitrii.SHVYDKOI@opencascade.com>
Mon, 4 Dec 2023 15:34:45 +0000 (15:34 +0000)
committerdish <dmitrii.shvydkoi@opencascade.com>
Thu, 25 Jan 2024 10:50:35 +0000 (10:50 +0000)
commit2049bf50f5a7cd200fa9b89eedab3aa64922186f
treec915a89c106f0ef1f816ed79bff0e4fb885793de
parentb6e35aa42d3c67a529d7f9339718dfaed6891323
[bos #35160][EDF](2023-T1) Keyboard shortcuts.

Shortcut Mgr is now actually responsible for managing shortcuts: it is solely responsible and capable to dynamically bind actions with hotkey combinations and (de)serialize shortcut preference changes using SUIT_ResourceMgr.

Add SUIT_ShortcutContainer, which ensures that there are no conflicts between shortcuts. Added the ability to change shortcut preferences through the GUI.

Add a development tool to grab all shortcuts of created at runtime QtxActions .
The tool also grabs tooltips of the actions for further dynamic translation from actionID to actionName in runtime
before actions with these ID are created. Both grabbed shortcuts and translations are dumped in XML files with
identical to project-conventional resource files formatting.
36 files changed:
doc/salome/gui/input/setting_preferences.rst
doc/salome/gui/locale/fr/LC_MESSAGES/setting_preferences.po
src/CAM/CAM_Module.cxx
src/CAM/CAM_Module.h
src/LightApp/LightApp_Application.cxx
src/LightApp/LightApp_Module.cxx
src/LightApp/LightApp_PreferencesDlg.cxx
src/LightApp/resources/LightApp.xml
src/LightApp/resources/LightApp_msg_en.ts
src/OCCViewer/OCCViewer_ViewWindow.cxx
src/Qtx/CMakeLists.txt
src/Qtx/Qtx.qrc
src/Qtx/QtxAction.cxx
src/Qtx/QtxAction.h
src/Qtx/QtxPagePrefMgr.cxx
src/Qtx/QtxPagePrefMgr.h
src/Qtx/QtxPreferenceMgr.cxx
src/Qtx/QtxPreferenceMgr.h
src/Qtx/QtxShortcutEdit.cxx
src/Qtx/QtxShortcutEdit.h
src/Qtx/images/shortcut_disable.svg [new file with mode: 0644]
src/Qtx/images/shortcut_restore.svg [new file with mode: 0644]
src/Qtx/resources/Qtx_msg_fr.ts
src/Qtx/resources/Qtx_msg_ja.ts
src/SALOME_PYQT/SalomePyQt/SalomePyQt.h
src/SALOME_PYQT/SalomePyQt/SalomePyQt.sip
src/STD/STD_Application.cxx
src/SUIT/SUIT_Application.cxx
src/SUIT/SUIT_Application.h
src/SUIT/SUIT_PreferenceMgr.cxx
src/SUIT/SUIT_PreferenceMgr.h
src/SUIT/SUIT_ShortcutMgr.cxx
src/SUIT/SUIT_ShortcutMgr.h
src/SUIT/resources/SUIT_msg_fr.ts
src/SUIT/resources/SUIT_msg_ja.ts
src/SVTK/SVTK_ViewWindow.cxx