From d91508feced12a735ef48314bbfbeb41cf38f5b1 Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 3 Sep 2020 19:18:30 +0200 Subject: [PATCH] Part: [skip ci] set proper icons for Tube feature --- src/Mod/Part/BasicShapes/Shapes.py | 4 +- src/Mod/Part/Gui/Resources/Part.qrc | 2 + .../Part/Gui/Resources/icons/Part_Tube.svg | 152 ++++++++ .../icons/Tree_Part_Tube_Parametric.svg | 346 ++++++++++++++++++ src/Mod/Part/Gui/Workbench.cpp | 1 + 5 files changed, 503 insertions(+), 2 deletions(-) create mode 100644 src/Mod/Part/Gui/Resources/icons/Part_Tube.svg create mode 100644 src/Mod/Part/Gui/Resources/icons/Tree_Part_Tube_Parametric.svg diff --git a/src/Mod/Part/BasicShapes/Shapes.py b/src/Mod/Part/BasicShapes/Shapes.py index 43144fd890..9fed6379c6 100644 --- a/src/Mod/Part/BasicShapes/Shapes.py +++ b/src/Mod/Part/BasicShapes/Shapes.py @@ -70,7 +70,7 @@ if FreeCAD.GuiUp: return def getIcon(self): - return ":/icons/Tree_Part_Cylinder_Parametric.svg" + return ":/icons/Tree_Part_Tube_Parametric.svg" def __getstate__(self): return None @@ -85,7 +85,7 @@ if FreeCAD.GuiUp: return {'MenuText': Qt.QT_TRANSLATE_NOOP("Part_MakeTube","Create tube"), 'Accel': "", 'CmdType': "ForEdit", - 'Pixmap' : ":/icons/Part_Cylinder.svg", + 'Pixmap' : ":/icons/Part_Tube.svg", 'ToolTip': Qt.QT_TRANSLATE_NOOP("Part_MakeTube","Creates a tube")} def Activated(self): diff --git a/src/Mod/Part/Gui/Resources/Part.qrc b/src/Mod/Part/Gui/Resources/Part.qrc index 4456ac1f82..c54306687a 100644 --- a/src/Mod/Part/Gui/Resources/Part.qrc +++ b/src/Mod/Part/Gui/Resources/Part.qrc @@ -64,6 +64,7 @@ icons/Part_Thickness.svg icons/Part_Torus.svg icons/Part_Transformed_Copy.svg + icons/Part_Tube.svg icons/PartWorkbench.svg icons/Part_XOR.svg icons/preferences-part_design.svg @@ -77,6 +78,7 @@ icons/Tree_Part_Prism.svg icons/Tree_Part_Sphere_Parametric.svg icons/Tree_Part_Torus_Parametric.svg + icons/Tree_Part_Tube_Parametric.svg icons/Tree_Part_Wedge.svg translations/Part_af.qm translations/Part_ar.qm diff --git a/src/Mod/Part/Gui/Resources/icons/Part_Tube.svg b/src/Mod/Part/Gui/Resources/icons/Part_Tube.svg new file mode 100644 index 0000000000..f6109fdbb9 --- /dev/null +++ b/src/Mod/Part/Gui/Resources/icons/Part_Tube.svg @@ -0,0 +1,152 @@ + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + [wmayer] + + + + 2011-10-10 + http://www.freecadweb.org/wiki/index.php?title=Artwork + + + FreeCAD + + + FreeCAD/src/Mod/Part/Gui/Resources/icons/Part_Cylinder.svg + + + FreeCAD LGPL2+ + + + https://www.gnu.org/copyleft/lesser.html + + + [agryson] Alexander Gryson + + + + + + + + + + + + + diff --git a/src/Mod/Part/Gui/Resources/icons/Tree_Part_Tube_Parametric.svg b/src/Mod/Part/Gui/Resources/icons/Tree_Part_Tube_Parametric.svg new file mode 100644 index 0000000000..6c4e717172 --- /dev/null +++ b/src/Mod/Part/Gui/Resources/icons/Tree_Part_Tube_Parametric.svg @@ -0,0 +1,346 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + [jmaustpc] + + + Tree_Part_Cylinder_Parametric + 2013-03-13 + http://www.freecadweb.org/wiki/index.php?title=Artwork + + + FreeCAD + + + FreeCAD/src/Mod/Part/Gui/Resources/icons/Tree_Part_Cylinder_Parametric.svg + + + FreeCAD LGPL2+ + + + https://www.gnu.org/copyleft/lesser.html + + + [agryson] Alexander Gryson + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Mod/Part/Gui/Workbench.cpp b/src/Mod/Part/Gui/Workbench.cpp index 312ef20347..18187f9e49 100644 --- a/src/Mod/Part/Gui/Workbench.cpp +++ b/src/Mod/Part/Gui/Workbench.cpp @@ -183,6 +183,7 @@ Gui::ToolBarItem* Workbench::setupToolBars() const << "Part_Sphere" << "Part_Cone" << "Part_Torus" + << "Part_MakeTube" << "Part_Primitives" << "Part_Builder";