From 898910209d0e0cdf9a287efda10669706adbfda4 Mon Sep 17 00:00:00 2001 From: Max Wilfinger Date: Tue, 28 May 2024 14:46:48 +0200 Subject: [PATCH] Add Std_AlignToSelevtion to menu and context menu --- src/Gui/NaviCube.cpp | 1 + src/Gui/Workbench.cpp | 11 +++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Gui/NaviCube.cpp b/src/Gui/NaviCube.cpp index 9e3a62d66c..354cbabf8f 100644 --- a/src/Gui/NaviCube.cpp +++ b/src/Gui/NaviCube.cpp @@ -1229,6 +1229,7 @@ QMenu* NaviCubeImplementation::createNaviCubeMenu() { commands.emplace_back("Separator"); commands.emplace_back("Std_ViewFitAll"); commands.emplace_back("Std_ViewFitSelection"); + commands.emplace_back("Std_AlignToSelection"); commands.emplace_back("Separator"); commands.emplace_back("NaviCubeDraggableCmd"); } diff --git a/src/Gui/Workbench.cpp b/src/Gui/Workbench.cpp index d9c5dfdbeb..bc82acc494 100644 --- a/src/Gui/Workbench.cpp +++ b/src/Gui/Workbench.cpp @@ -590,7 +590,7 @@ void StdWorkbench::setupContextMenu(const char* recipient, MenuItem* item) const << "Std_ViewRear" << "Std_ViewBottom" << "Std_ViewLeft" << "Separator" << "Std_ViewRotateLeft" << "Std_ViewRotateRight"; - *item << "Std_ViewFitAll" << "Std_ViewFitSelection" << "Std_DrawStyle" + *item << "Std_ViewFitAll" << "Std_ViewFitSelection" << "Std_AlignToSelection" << "Std_DrawStyle" << StdViews << "Separator" << "Std_ViewDockUndockFullscreen"; @@ -654,12 +654,11 @@ MenuItem* StdWorkbench::setupMenuBar() const // Standard views auto stdviews = new MenuItem; stdviews->setCommand("Standard views"); - *stdviews << "Std_ViewFitAll" << "Std_ViewFitSelection" << axoviews + *stdviews << "Std_ViewFitAll" << "Std_ViewFitSelection" << "Std_AlignToSelection" << axoviews << "Separator" << "Std_ViewHome" << "Std_ViewFront" << "Std_ViewTop" - << "Std_ViewRight" << "Std_ViewRear" - << "Std_ViewBottom" << "Std_ViewLeft" - << "Separator" << "Std_ViewRotateLeft" << "Std_ViewRotateRight" - << "Separator" << "Std_StoreWorkingView" << "Std_RecallWorkingView"; + << "Std_ViewRight" << "Std_ViewRear" << "Std_ViewBottom" << "Std_ViewLeft" + << "Separator" << "Std_ViewRotateLeft" << "Std_ViewRotateRight" << "Separator" + << "Std_StoreWorkingView" << "Std_RecallWorkingView"; // stereo auto view3d = new MenuItem;