FEM: material editor, add command to open the editor ot icon toolbar, use copy of Arch material group icon

This commit is contained in:
Bernd Hahnebach
2018-06-01 08:20:59 +02:00
parent f0964a9c05
commit 1035a032fc
4 changed files with 190 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
<RCC>
<qresource>
<file>icons/Arch_Material_Group.svg</file>
<file>icons/FemWorkbench.svg</file>
<file>icons/preferences-fem.svg</file>

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 26 KiB

View File

@@ -68,6 +68,8 @@ Gui::ToolBarItem* Workbench::setupToolBars() const
<< "FEM_MaterialSolid"
<< "FEM_MaterialFluid"
<< "FEM_MaterialMechanicalNonlinear"
<< "FEM_MaterialEditor"
<< "Separator"
<< "FEM_ElementGeometry1D"
<< "FEM_ElementRotation1D"
<< "FEM_ElementGeometry2D"

View File

@@ -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")}