FEM: mesh print info command, make name fit in FEM name system
This commit is contained in:
parent
11166f971e
commit
f19481b083
|
@ -118,8 +118,8 @@ SET(FemGuiScripts_SRCS
|
|||
PyGui/_CommandMeshGmshFromShape.py
|
||||
PyGui/_CommandMeshNetgenFromShape.py
|
||||
PyGui/_CommandMeshGroup.py
|
||||
PyGui/_CommandMeshPrintInfo.py
|
||||
PyGui/_CommandMeshRegion.py
|
||||
PyGui/_CommandPrintMeshInfo.py
|
||||
PyGui/_CommandResultShow.py
|
||||
PyGui/_CommandResultsPurge.py
|
||||
PyGui/_CommandShellThickness.py
|
||||
|
|
|
@ -79,8 +79,8 @@ INSTALL(
|
|||
PyGui/_CommandMeshGmshFromShape.py
|
||||
PyGui/_CommandMeshNetgenFromShape.py
|
||||
PyGui/_CommandMeshGroup.py
|
||||
PyGui/_CommandMeshPrintInfo.py
|
||||
PyGui/_CommandMeshRegion.py
|
||||
PyGui/_CommandPrintMeshInfo.py
|
||||
PyGui/_CommandResultShow.py
|
||||
PyGui/_CommandResultsPurge.py
|
||||
PyGui/_CommandShellThickness.py
|
||||
|
|
|
@ -55,7 +55,7 @@ void Workbench::setupContextMenu(const char* recipient, Gui::MenuItem* item) con
|
|||
StdWorkbench::setupContextMenu( recipient, item );
|
||||
*item << "Separator"
|
||||
<< "FEM_ClearMesh"
|
||||
<< "FEM_PrintMeshInfo";
|
||||
<< "FEM_MeshPrintInfo";
|
||||
}
|
||||
|
||||
Gui::ToolBarItem* Workbench::setupToolBars() const
|
||||
|
|
|
@ -46,12 +46,7 @@ class FemWorkbench (Workbench):
|
|||
import FemGui
|
||||
|
||||
import PyGui._CommandClearMesh
|
||||
import PyGui._CommandPrintMeshInfo
|
||||
import PyGui._CommandFEMMesh2Mesh
|
||||
import PyGui._CommandMeshGmshFromShape
|
||||
import PyGui._CommandMeshNetgenFromShape
|
||||
import PyGui._CommandMeshGroup
|
||||
import PyGui._CommandMeshRegion
|
||||
import PyGui._CommandAnalysis
|
||||
import PyGui._CommandShellThickness
|
||||
import PyGui._CommandBeamSection
|
||||
|
@ -59,6 +54,11 @@ class FemWorkbench (Workbench):
|
|||
import PyGui._CommandMaterialSolid
|
||||
import PyGui._CommandMaterialFluid
|
||||
import PyGui._CommandMaterialMechanicalNonlinear
|
||||
import PyGui._CommandMeshGmshFromShape
|
||||
import PyGui._CommandMeshGroup
|
||||
import PyGui._CommandMeshNetgenFromShape
|
||||
import PyGui._CommandMeshPrintInfo
|
||||
import PyGui._CommandMeshRegion
|
||||
import PyGui._CommandResultShow
|
||||
import PyGui._CommandResultsPurge
|
||||
import PyGui._CommandSolverCalculix
|
||||
|
|
|
@ -24,7 +24,7 @@ __title__ = "Print info of FEM mesh object"
|
|||
__author__ = "Bernd Hahnebach"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
## @package CommandPrintMeshInfo
|
||||
## @package CommandMeshPrintInfo
|
||||
# \ingroup FEM
|
||||
|
||||
import FreeCAD
|
||||
|
@ -33,14 +33,14 @@ import FreeCADGui
|
|||
from PySide import QtCore
|
||||
|
||||
|
||||
class _CommandPrintMeshInfo(FemCommands):
|
||||
"the FEM_PrintMeshInfo command definition"
|
||||
class _CommandMeshPrintInfo(FemCommands):
|
||||
"the FEM_MeshPrintInfo command definition"
|
||||
def __init__(self):
|
||||
super(_CommandPrintMeshInfo, self).__init__()
|
||||
super(_CommandMeshPrintInfo, self).__init__()
|
||||
self.resources = {'Pixmap': 'fem-femmesh-print-info',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_PrintMeshInfo", "Print FEM mesh info"),
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_MeshPrintInfo", "Print FEM mesh info"),
|
||||
# 'Accel': "Z, Z",
|
||||
'ToolTip': QtCore.QT_TRANSLATE_NOOP("FEM_PrintMeshInfo", "Print FEM mesh info")}
|
||||
'ToolTip': QtCore.QT_TRANSLATE_NOOP("FEM_MeshPrintInfo", "Print FEM mesh info")}
|
||||
self.is_active = 'with_femmesh'
|
||||
|
||||
def Activated(self):
|
||||
|
@ -55,4 +55,4 @@ class _CommandPrintMeshInfo(FemCommands):
|
|||
|
||||
FreeCADGui.Selection.clearSelection()
|
||||
|
||||
FreeCADGui.addCommand('FEM_PrintMeshInfo', _CommandPrintMeshInfo())
|
||||
FreeCADGui.addCommand('FEM_MeshPrintInfo', _CommandMeshPrintInfo())
|
Loading…
Reference in New Issue
Block a user