diff --git a/src/Mod/Fem/Gui/Workbench.cpp b/src/Mod/Fem/Gui/Workbench.cpp index 4753c0652d..2a74c01c4c 100755 --- a/src/Mod/Fem/Gui/Workbench.cpp +++ b/src/Mod/Fem/Gui/Workbench.cpp @@ -55,7 +55,7 @@ void Workbench::setupContextMenu(const char* recipient, Gui::MenuItem* item) con StdWorkbench::setupContextMenu( recipient, item ); *item << "Separator" << "FEM_MeshClear" - << "FEM_MeshPrintInfo"; + << "FEM_MeshDisplayInfo"; } Gui::ToolBarItem* Workbench::setupToolBars() const diff --git a/src/Mod/Fem/femcommands/commands.py b/src/Mod/Fem/femcommands/commands.py index d0db77616d..86384fb620 100644 --- a/src/Mod/Fem/femcommands/commands.py +++ b/src/Mod/Fem/femcommands/commands.py @@ -603,18 +603,18 @@ class _CommandFemMeshNetgenFromShape(CommandManager): # a recompute immediately starts meshing when task panel is opened, this is not intended -class _CommandFemMeshPrintInfo(CommandManager): - "The FEM_MeshPrintInfo command definition" +class _CommandFemMeshDisplayInfo(CommandManager): + "The FEM_MeshDisplayInfo command definition" def __init__(self): - super(_CommandFemMeshPrintInfo, self).__init__() + super(_CommandFemMeshDisplayInfo, self).__init__() self.resources = {'Pixmap': 'fem-femmesh-print-info', - 'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_MeshPrintInfo", "Print FEM mesh info"), + 'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_MeshDisplayInfo", "Display FEM mesh info"), # 'Accel': "Z, Z", - 'ToolTip': QtCore.QT_TRANSLATE_NOOP("FEM_MeshPrintInfo", "Print FEM mesh info")} + 'ToolTip': QtCore.QT_TRANSLATE_NOOP("FEM_MeshDisplayInfo", "Display FEM mesh info")} self.is_active = 'with_femmesh' def Activated(self): - FreeCAD.ActiveDocument.openTransaction("Print FEM mesh info") + FreeCAD.ActiveDocument.openTransaction("Display FEM mesh info") FreeCADGui.doCommand("print(FreeCAD.ActiveDocument." + self.selobj.Name + ".FemMesh)") FreeCADGui.addModule("PySide") FreeCADGui.doCommand("mesh_info = str(FreeCAD.ActiveDocument." + self.selobj.Name + ".FemMesh)") @@ -859,7 +859,7 @@ FreeCADGui.addCommand('FEM_MeshClear', _CommandFemMeshClear()) FreeCADGui.addCommand('FEM_MeshGmshFromShape', _CommandFemMeshGmshFromShape()) FreeCADGui.addCommand('FEM_MeshGroup', _CommandFemMeshGroup()) FreeCADGui.addCommand('FEM_MeshNetgenFromShape', _CommandFemMeshNetgenFromShape()) -FreeCADGui.addCommand('FEM_MeshPrintInfo', _CommandFemMeshPrintInfo()) +FreeCADGui.addCommand('FEM_MeshDisplayInfo', _CommandFemMeshDisplayInfo()) FreeCADGui.addCommand('FEM_MeshRegion', _CommandFemMeshRegion()) FreeCADGui.addCommand('FEM_ResultShow', _CommandFemResultShow()) FreeCADGui.addCommand('FEM_ResultsPurge', _CommandFemResultsPurge())