diff --git a/apps/opencs/model/prefs/state.cpp b/apps/opencs/model/prefs/state.cpp index d44c9de888..3386530429 100644 --- a/apps/opencs/model/prefs/state.cpp +++ b/apps/opencs/model/prefs/state.cpp @@ -413,6 +413,29 @@ void CSMPrefs::State::declare() declareShortcut("scene-focus-toolbar", "Toggle Toolbar Focus", QKeySequence(Qt::Key_T)); declareShortcut("scene-render-stats", "Debug Rendering Stats", QKeySequence(Qt::Key_F3)); declareShortcut("scene-duplicate", "Duplicate Instance", QKeySequence(Qt::ShiftModifier | Qt::Key_C)); + declareShortcut("scene-clear-selection", "Clear Selection", QKeySequence(Qt::Key_Space)); + declareShortcut("scene-unhide-all", "Unhide All Objects", QKeySequence(Qt::AltModifier | Qt::Key_H)); + declareShortcut("scene-toggle-visibility", "Toggle Selection Visibility", QKeySequence(Qt::Key_H)); + declareShortcut("scene-group-1", "Select Group 1", QKeySequence(Qt::Key_1)); + declareShortcut("scene-save-1", "Save Group 1", QKeySequence(Qt::ControlModifier | Qt::Key_1)); + declareShortcut("scene-group-2", "Select Group 2", QKeySequence(Qt::Key_2)); + declareShortcut("scene-save-2", "Save Group 2", QKeySequence(Qt::ControlModifier | Qt::Key_2)); + declareShortcut("scene-group-3", "Select Group 3", QKeySequence(Qt::Key_3)); + declareShortcut("scene-save-3", "Save Group 3", QKeySequence(Qt::ControlModifier | Qt::Key_3)); + declareShortcut("scene-group-4", "Select Group 4", QKeySequence(Qt::Key_4)); + declareShortcut("scene-save-4", "Save Group 4", QKeySequence(Qt::ControlModifier | Qt::Key_4)); + declareShortcut("scene-group-5", "Selection Group 5", QKeySequence(Qt::Key_5)); + declareShortcut("scene-save-5", "Save Group 5", QKeySequence(Qt::ControlModifier | Qt::Key_5)); + declareShortcut("scene-group-6", "Selection Group 6", QKeySequence(Qt::Key_6)); + declareShortcut("scene-save-6", "Save Group 6", QKeySequence(Qt::ControlModifier | Qt::Key_6)); + declareShortcut("scene-group-7", "Selection Group 7", QKeySequence(Qt::Key_7)); + declareShortcut("scene-save-7", "Save Group 7", QKeySequence(Qt::ControlModifier | Qt::Key_7)); + declareShortcut("scene-group-8", "Selection Group 8", QKeySequence(Qt::Key_8)); + declareShortcut("scene-save-8", "Save Group 8", QKeySequence(Qt::ControlModifier | Qt::Key_8)); + declareShortcut("scene-group-9", "Selection Group 9", QKeySequence(Qt::Key_9)); + declareShortcut("scene-save-9", "Save Group 9", QKeySequence(Qt::ControlModifier | Qt::Key_9)); + declareShortcut("scene-group-0", "Selection Group 10", QKeySequence(Qt::Key_0)); + declareShortcut("scene-save-0", "Save Group 10", QKeySequence(Qt::ControlModifier | Qt::Key_0)); declareSubcategory("1st/Free Camera"); declareShortcut("free-forward", "Forward", QKeySequence(Qt::Key_W)); diff --git a/apps/opencs/model/prefs/values.hpp b/apps/opencs/model/prefs/values.hpp index 4683258e57..80d2f8f182 100644 --- a/apps/opencs/model/prefs/values.hpp +++ b/apps/opencs/model/prefs/values.hpp @@ -477,6 +477,29 @@ namespace CSMPrefs Settings::SettingValue mSceneEditAbort{ mIndex, sName, "scene-edit-abort", "Escape" }; Settings::SettingValue mSceneFocusToolbar{ mIndex, sName, "scene-focus-toolbar", "T" }; Settings::SettingValue mSceneRenderStats{ mIndex, sName, "scene-render-stats", "F3" }; + Settings::SettingValue mSceneClearSelection{ mIndex, sName, "scene-clear-selection", "Space" }; + Settings::SettingValue mSceneUnhideAll{ mIndex, sName, "scene-unhide-all", "Alt+H" }; + Settings::SettingValue mSceneToggleHidden{ mIndex, sName, "scene-toggle-visibility", "H" }; + Settings::SettingValue mSceneSelectGroup1{ mIndex, sName, "scene-group-1", "1" }; + Settings::SettingValue mSceneSaveGroup1{ mIndex, sName, "scene-save-1", "Ctrl+1" }; + Settings::SettingValue mSceneSelectGroup2{ mIndex, sName, "scene-group-2", "2" }; + Settings::SettingValue mSceneSaveGroup2{ mIndex, sName, "scene-save-2", "Ctrl+2" }; + Settings::SettingValue mSceneSelectGroup3{ mIndex, sName, "scene-group-3", "3" }; + Settings::SettingValue mSceneSaveGroup3{ mIndex, sName, "scene-save-3", "Ctrl+3" }; + Settings::SettingValue mSceneSelectGroup4{ mIndex, sName, "scene-group-4", "4" }; + Settings::SettingValue mSceneSaveGroup4{ mIndex, sName, "scene-save-4", "Ctrl+4" }; + Settings::SettingValue mSceneSelectGroup5{ mIndex, sName, "scene-group-5", "5" }; + Settings::SettingValue mSceneSaveGroup5{ mIndex, sName, "scene-save-5", "Ctrl+5" }; + Settings::SettingValue mSceneSelectGroup6{ mIndex, sName, "scene-group-6", "6" }; + Settings::SettingValue mSceneSaveGroup6{ mIndex, sName, "scene-save-6", "Ctrl+6" }; + Settings::SettingValue mSceneSelectGroup7{ mIndex, sName, "scene-group-7", "7" }; + Settings::SettingValue mSceneSaveGroup7{ mIndex, sName, "scene-save-7", "Ctrl+7" }; + Settings::SettingValue mSceneSelectGroup8{ mIndex, sName, "scene-group-8", "8" }; + Settings::SettingValue mSceneSaveGroup8{ mIndex, sName, "scene-save-8", "Ctrl+8" }; + Settings::SettingValue mSceneSelectGroup9{ mIndex, sName, "scene-group-9", "9" }; + Settings::SettingValue mSceneSaveGroup9{ mIndex, sName, "scene-save-9", "Ctrl+9" }; + Settings::SettingValue mSceneSelectGroup10{ mIndex, sName, "scene-group-0", "0" }; + Settings::SettingValue mSceneSaveGroup10{ mIndex, sName, "scene-save-0", "Ctrl+0" }; Settings::SettingValue mFreeForward{ mIndex, sName, "free-forward", "W" }; Settings::SettingValue mFreeBackward{ mIndex, sName, "free-backward", "S" }; Settings::SettingValue mFreeLeft{ mIndex, sName, "free-left", "A" };