From 054ff6792835389acb8041c6525cbd29bd34c125 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Wed, 18 Mar 2020 23:06:11 +0100 Subject: [PATCH] FEM: mesh groups, add icon and make use of it, thanks to bitacovir --- src/Mod/Fem/Gui/Resources/Fem.qrc | 1 + .../Fem/Gui/Resources/icons/FEM_MeshGroup.svg | 450 ++++++++++++++++++ src/Mod/Fem/femcommands/commands.py | 1 - .../_ViewProviderFemMeshGroup.py | 3 - 4 files changed, 451 insertions(+), 4 deletions(-) create mode 100644 src/Mod/Fem/Gui/Resources/icons/FEM_MeshGroup.svg diff --git a/src/Mod/Fem/Gui/Resources/Fem.qrc b/src/Mod/Fem/Gui/Resources/Fem.qrc index af4d3bc3f3..0d9a64a21b 100755 --- a/src/Mod/Fem/Gui/Resources/Fem.qrc +++ b/src/Mod/Fem/Gui/Resources/Fem.qrc @@ -47,6 +47,7 @@ icons/FEM_MeshClear.svg icons/FEM_MeshDisplayInfo.svg icons/FEM_MeshGmshFromShape.svg + icons/FEM_MeshGroup.svg icons/FEM_MeshNetgenFromShape.svg icons/FEM_MeshRegion.svg diff --git a/src/Mod/Fem/Gui/Resources/icons/FEM_MeshGroup.svg b/src/Mod/Fem/Gui/Resources/icons/FEM_MeshGroup.svg new file mode 100644 index 0000000000..fe5f824b23 --- /dev/null +++ b/src/Mod/Fem/Gui/Resources/icons/FEM_MeshGroup.svg @@ -0,0 +1,450 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + [bitacobir] + + + fem-femmesh-from-shape + 2020-03-16 + + + + FreeCAD + + + + + + FreeCAD LGPL2+ + + + https://www.gnu.org/copyleft/lesser.html + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Mod/Fem/femcommands/commands.py b/src/Mod/Fem/femcommands/commands.py index c39b477050..f484e15673 100644 --- a/src/Mod/Fem/femcommands/commands.py +++ b/src/Mod/Fem/femcommands/commands.py @@ -560,7 +560,6 @@ class _MeshGroup(CommandManager): def __init__(self): super(_MeshGroup, self).__init__() - self.pixmap = "fem-femmesh-from-shape" self.menuetext = "FEM mesh group" self.accel = "M, G" self.tooltip = "Creates a FEM mesh group" diff --git a/src/Mod/Fem/femguiobjects/_ViewProviderFemMeshGroup.py b/src/Mod/Fem/femguiobjects/_ViewProviderFemMeshGroup.py index 48f1553d1f..cb744abb14 100644 --- a/src/Mod/Fem/femguiobjects/_ViewProviderFemMeshGroup.py +++ b/src/Mod/Fem/femguiobjects/_ViewProviderFemMeshGroup.py @@ -43,9 +43,6 @@ class _ViewProviderFemMeshGroup(ViewProviderFemConstraint.ViewProxy): A View Provider for the FemMeshGroup object """ - def getIcon(self): - return ":/icons/fem-femmesh-from-shape.svg" - def setEdit(self, vobj, mode=0): ViewProviderFemConstraint.ViewProxy.setEdit( self,