diff --git a/src/Mod/Part/Gui/Resources/Part.qrc b/src/Mod/Part/Gui/Resources/Part.qrc index 44caa923d..644540054 100644 --- a/src/Mod/Part/Gui/Resources/Part.qrc +++ b/src/Mod/Part/Gui/Resources/Part.qrc @@ -9,6 +9,7 @@ icons/Part_Common.svg icons/Part_Cone.svg icons/Part_Cut.svg + icons/Part_CreatePrimitives.svg icons/Part_Cylinder.svg icons/Part_Extrude.svg icons/Part_Fillet.svg @@ -17,7 +18,9 @@ icons/Part_Mirror.svg icons/Part_MirrorPNG.png icons/Part_Revolve.svg + icons/Part_RuledSurface.svg icons/Part_Section.svg + icons/Part_ShapeInfo.svg icons/Part_Sphere.svg icons/Part_Torus.svg icons/preferences-part_design.svg diff --git a/src/Mod/Part/Gui/Resources/icons/Part_CreatePrimitives.svg b/src/Mod/Part/Gui/Resources/icons/Part_CreatePrimitives.svg new file mode 100644 index 000000000..70641c233 --- /dev/null +++ b/src/Mod/Part/Gui/Resources/icons/Part_CreatePrimitives.svg @@ -0,0 +1,298 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Mod/Part/Gui/Resources/icons/Part_RuledSurface.svg b/src/Mod/Part/Gui/Resources/icons/Part_RuledSurface.svg new file mode 100644 index 000000000..76252675c --- /dev/null +++ b/src/Mod/Part/Gui/Resources/icons/Part_RuledSurface.svg @@ -0,0 +1,408 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + diff --git a/src/Mod/Part/Gui/Resources/icons/Part_ShapeInfo.svg b/src/Mod/Part/Gui/Resources/icons/Part_ShapeInfo.svg new file mode 100644 index 000000000..62a268c77 --- /dev/null +++ b/src/Mod/Part/Gui/Resources/icons/Part_ShapeInfo.svg @@ -0,0 +1,239 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Mod/Part/Gui/Workbench.cpp b/src/Mod/Part/Gui/Workbench.cpp index 068f1f0ff..de67252cb 100644 --- a/src/Mod/Part/Gui/Workbench.cpp +++ b/src/Mod/Part/Gui/Workbench.cpp @@ -89,15 +89,15 @@ Gui::ToolBarItem* Workbench::setupToolBars() const Gui::ToolBarItem* solids = new Gui::ToolBarItem(root); solids->setCommand("Solids"); - *solids << "Part_Box" << "Part_Cylinder" << "Part_Sphere" << "Part_Cone" << "Part_Torus"; + *solids << "Part_Box" << "Part_Cylinder" << "Part_Sphere" << "Part_Cone" << "Part_Torus" << "Part_Primitives"; Gui::ToolBarItem* tool = new Gui::ToolBarItem(root); tool->setCommand("Part tools"); - *tool << "Part_Extrude" << "Part_Revolve" << "Part_Mirror" << "Part_Fillet"; + *tool << "Part_Extrude" << "Part_Revolve" << "Part_Mirror" << "Part_Fillet" << "Part_RuledSurface"; Gui::ToolBarItem* boolop = new Gui::ToolBarItem(root); boolop->setCommand("Boolean"); - *boolop << "Part_Boolean" << "Part_Cut" << "Part_Fuse" << "Part_Common" << "Part_Section"; + *boolop << "Part_Boolean" << "Part_Cut" << "Part_Fuse" << "Part_Common" << "Part_Section"/* << "Part_ShapeInfo"*/; return root; }