Salome HOME
[bos #35160][EDF](2023-T1) Keyboard shortcuts. dish/CR35160--Keyboard_Shortcuts 12/head
authordish <Dmitrii.SHVYDKOI@opencascade.com>
Mon, 4 Dec 2023 15:34:45 +0000 (15:34 +0000)
committermbs <martin.bernhard@opencascade.com>
Wed, 15 May 2024 16:29:40 +0000 (17:29 +0100)
commit65892767146151694e2f037cc8e13a48186e986e
treeb65023716b845b61edc257932dd784fa1df838d1
parent3a53b37794a30bbd7887f2f8d4d84924d4f733e0
[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.
49 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_Application.h
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/QtxWorkspaceAction.cxx
src/Qtx/QtxWorkspaceAction.h
src/Qtx/QtxWorkstack.cxx
src/Qtx/QtxWorkstack.h
src/Qtx/QtxWorkstackAction.cxx
src/Qtx/QtxWorkstackAction.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/STD/STD_TabDesktop.cxx
src/SUIT/CMakeLists.txt
src/SUIT/SUIT_Application.cxx
src/SUIT/SUIT_Application.h
src/SUIT/SUIT_PreferenceMgr.cxx
src/SUIT/SUIT_PreferenceMgr.h
src/SUIT/SUIT_ShortcutMgr. ReadMe.md [new file with mode: 0644]
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/SUIT/resources/action_assets.json [new file with mode: 0644]
src/SVTK/SVTK_ViewWindow.cxx
src/SalomeApp/SalomeApp_Application.cxx
tools/DevTools/ShortcutMgr/ShortcutMgr. Resource generator.xlsx [new file with mode: 0644]