From 5db4fb767cbfe376505c45655321a3da2002a832 Mon Sep 17 00:00:00 2001 From: donovaly Date: Sun, 21 Mar 2021 17:50:29 +0100 Subject: [PATCH] [Part] uniform feature sorting at the moment the sorting is confusing, the sorting in the menu differs from the toolbars and some features even belong in the menu to another category than in the toolbars and one feature has not yet a toolbar entry This PR implements a uniform sorting for the menu and toolbar and adds the missing toolbar icon --- src/Mod/Part/Gui/Workbench.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Mod/Part/Gui/Workbench.cpp b/src/Mod/Part/Gui/Workbench.cpp index 2d30a2a3bf..02882e3e72 100644 --- a/src/Mod/Part/Gui/Workbench.cpp +++ b/src/Mod/Part/Gui/Workbench.cpp @@ -127,17 +127,17 @@ Gui::MenuItem* Workbench::setupMenuBar() const << "Separator" << bop << join << split << compound << "Separator" - << "Part_Section" - << "Part_CrossSections" - << "Part_MakeFace" << "Part_Extrude" << "Part_Revolve" << "Part_Mirror" << "Part_Fillet" << "Part_Chamfer" + << "Part_MakeFace" << "Part_RuledSurface" << "Part_Loft" << "Part_Sweep" + << "Part_Section" + << "Part_CrossSections" << "Part_Offset" << "Part_Offset2D" << "Part_Thickness" @@ -191,9 +191,12 @@ Gui::ToolBarItem* Workbench::setupToolBars() const << "Part_Mirror" << "Part_Fillet" << "Part_Chamfer" + << "Part_MakeFace" << "Part_RuledSurface" << "Part_Loft" << "Part_Sweep" + << "Part_Section" + << "Part_CrossSections" << "Part_CompOffset" << "Part_Thickness" << "Part_ProjectionOnSurface" @@ -209,9 +212,7 @@ Gui::ToolBarItem* Workbench::setupToolBars() const << "Part_CompJoinFeatures" << "Part_CompSplitFeatures" << "Part_CheckGeometry" - << "Part_Defeaturing" - << "Part_Section" - << "Part_CrossSections"; + << "Part_Defeaturing"; Gui::ToolBarItem* measure = new Gui::ToolBarItem(root); measure->setCommand("Measure");