From 1035a032fc01ca4c135eac73cb8efad1e3545bdb Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Fri, 1 Jun 2018 08:20:59 +0200 Subject: [PATCH] FEM: material editor, add command to open the editor ot icon toolbar, use copy of Arch material group icon --- src/Mod/Fem/Gui/Resources/Fem.qrc | 2 + .../Resources/icons/Arch_Material_Group.svg | 185 ++++++++++++++++++ src/Mod/Fem/Gui/Workbench.cpp | 2 + src/Mod/Fem/femcommands/commands.py | 2 +- 4 files changed, 190 insertions(+), 1 deletion(-) create mode 100644 src/Mod/Fem/Gui/Resources/icons/Arch_Material_Group.svg diff --git a/src/Mod/Fem/Gui/Resources/Fem.qrc b/src/Mod/Fem/Gui/Resources/Fem.qrc index 7ab81cb1b1..6182fcf14b 100755 --- a/src/Mod/Fem/Gui/Resources/Fem.qrc +++ b/src/Mod/Fem/Gui/Resources/Fem.qrc @@ -1,5 +1,7 @@ + icons/Arch_Material_Group.svg + icons/FemWorkbench.svg icons/preferences-fem.svg diff --git a/src/Mod/Fem/Gui/Resources/icons/Arch_Material_Group.svg b/src/Mod/Fem/Gui/Resources/icons/Arch_Material_Group.svg new file mode 100644 index 0000000000..4a6bb9b840 --- /dev/null +++ b/src/Mod/Fem/Gui/Resources/icons/Arch_Material_Group.svg @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + [Yorik van Havre] + + + Arch_Material_Group + 2015-04-19 + http://www.freecadweb.org/wiki/index.php?title=Artwork + + + FreeCAD + + + FreeCAD/src/Mod/Arch/Resources/icons/Arch_Material_Group.svg + + + FreeCAD LGPL2+ + + + https://www.gnu.org/copyleft/lesser.html + + + [agryson] Alexander Gryson + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Mod/Fem/Gui/Workbench.cpp b/src/Mod/Fem/Gui/Workbench.cpp index 06432e4a5b..a54e354438 100755 --- a/src/Mod/Fem/Gui/Workbench.cpp +++ b/src/Mod/Fem/Gui/Workbench.cpp @@ -68,6 +68,8 @@ Gui::ToolBarItem* Workbench::setupToolBars() const << "FEM_MaterialSolid" << "FEM_MaterialFluid" << "FEM_MaterialMechanicalNonlinear" + << "FEM_MaterialEditor" + << "Separator" << "FEM_ElementGeometry1D" << "FEM_ElementRotation1D" << "FEM_ElementGeometry2D" diff --git a/src/Mod/Fem/femcommands/commands.py b/src/Mod/Fem/femcommands/commands.py index 6f151c9b5a..0e2f73d8b7 100644 --- a/src/Mod/Fem/femcommands/commands.py +++ b/src/Mod/Fem/femcommands/commands.py @@ -307,7 +307,7 @@ class _CommandFemMaterialEditor(CommandManager): "The FEM_MaterialEditor command definition" def __init__(self): super(_CommandFemMaterialEditor, self).__init__() - self.resources = {'Pixmap': 'fem-femmesh-clear-mesh', + self.resources = {'Pixmap': 'Arch_Material_Group', 'MenuText': QtCore.QT_TRANSLATE_NOOP("Material Editor", "opens the FreeCAD material editor"), # 'Accel': "Z, Z", 'ToolTip': QtCore.QT_TRANSLATE_NOOP("Material Editor", "opens the FreeCAD material editor")}