FEM: results purge command, make name fit in FEM name system
This commit is contained in:
parent
ef0a253f4e
commit
dc39edd9a5
|
@ -120,7 +120,7 @@ SET(FemGuiScripts_SRCS
|
|||
PyGui/_CommandMeshGroup.py
|
||||
PyGui/_CommandMeshRegion.py
|
||||
PyGui/_CommandPrintMeshInfo.py
|
||||
PyGui/_CommandPurgeResults.py
|
||||
PyGui/_CommandResultsPurge.py
|
||||
PyGui/_CommandShellThickness.py
|
||||
PyGui/_CommandShowResult.py
|
||||
PyGui/_CommandSolverCalculix.py
|
||||
|
|
|
@ -81,7 +81,7 @@ INSTALL(
|
|||
PyGui/_CommandMeshGroup.py
|
||||
PyGui/_CommandMeshRegion.py
|
||||
PyGui/_CommandPrintMeshInfo.py
|
||||
PyGui/_CommandPurgeResults.py
|
||||
PyGui/_CommandResultsPurge.py
|
||||
PyGui/_CommandShellThickness.py
|
||||
PyGui/_CommandShowResult.py
|
||||
PyGui/_CommandSolverCalculix.py
|
||||
|
|
|
@ -103,7 +103,7 @@ Gui::ToolBarItem* Workbench::setupToolBars() const
|
|||
<< "FEM_SolverControl"
|
||||
<< "FEM_SolverRun"
|
||||
<< "Separator"
|
||||
<< "FEM_PurgeResults"
|
||||
<< "FEM_ResultsPurge"
|
||||
<< "FEM_ShowResult";
|
||||
|
||||
#ifdef FC_USE_VTK
|
||||
|
@ -179,7 +179,7 @@ Gui::MenuItem* Workbench::setupMenuBar() const
|
|||
<< "FEM_SolverControl"
|
||||
<< "FEM_SolverRun"
|
||||
<< "Separator"
|
||||
<< "FEM_PurgeResults"
|
||||
<< "FEM_ResultsPurge"
|
||||
<< "FEM_ShowResult";
|
||||
|
||||
return root;
|
||||
|
|
|
@ -46,7 +46,6 @@ class FemWorkbench (Workbench):
|
|||
import FemGui
|
||||
|
||||
import PyGui._CommandShowResult
|
||||
import PyGui._CommandPurgeResults
|
||||
import PyGui._CommandClearMesh
|
||||
import PyGui._CommandPrintMeshInfo
|
||||
import PyGui._CommandFEMMesh2Mesh
|
||||
|
@ -61,6 +60,7 @@ class FemWorkbench (Workbench):
|
|||
import PyGui._CommandMaterialSolid
|
||||
import PyGui._CommandMaterialFluid
|
||||
import PyGui._CommandMaterialMechanicalNonlinear
|
||||
import PyGui._CommandResultsPurge
|
||||
import PyGui._CommandSolverCalculix
|
||||
import PyGui._CommandSolverControl
|
||||
import PyGui._CommandSolverRun
|
||||
|
|
|
@ -24,7 +24,7 @@ __title__ = "Command Purge Fem Results"
|
|||
__author__ = "Juergen Riegel"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
## @package CommandPurgeResults
|
||||
## @package CommandResultsPurge
|
||||
# \ingroup FEM
|
||||
|
||||
from FemCommands import FemCommands
|
||||
|
@ -33,14 +33,14 @@ import FreeCADGui
|
|||
from PySide import QtCore
|
||||
|
||||
|
||||
class _CommandPurgeResults(FemCommands):
|
||||
# the FEM_PurgeResults command definition
|
||||
class _CommandResultsPurge(FemCommands):
|
||||
# the FEM_ResultsPurge command definition
|
||||
def __init__(self):
|
||||
super(_CommandPurgeResults, self).__init__()
|
||||
super(_CommandResultsPurge, self).__init__()
|
||||
self.resources = {'Pixmap': 'fem-purge-results',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_PurgeResults", "Purge results"),
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_ResultsPurge", "Purge results"),
|
||||
'Accel': "S, S",
|
||||
'ToolTip': QtCore.QT_TRANSLATE_NOOP("FEM_PurgeResults", "Purges all results from active analysis")}
|
||||
'ToolTip': QtCore.QT_TRANSLATE_NOOP("FEM_ResultsPurge", "Purges all results from active analysis")}
|
||||
self.is_active = 'with_results'
|
||||
|
||||
def Activated(self):
|
||||
|
@ -49,4 +49,4 @@ class _CommandPurgeResults(FemCommands):
|
|||
self.hide_meshes_show_parts_constraints()
|
||||
|
||||
|
||||
FreeCADGui.addCommand('FEM_PurgeResults', _CommandPurgeResults())
|
||||
FreeCADGui.addCommand('FEM_ResultsPurge', _CommandResultsPurge())
|
Loading…
Reference in New Issue
Block a user