Skip to content

Commit

Permalink
FEM: solver run command, make name fit in FEM name system
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach authored and yorikvanhavre committed Mar 3, 2017
1 parent fb833d4 commit 8cf0001
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/Mod/Fem/App/CMakeLists.txt
Expand Up @@ -122,10 +122,10 @@ SET(FemGuiScripts_SRCS
PyGui/_CommandMeshRegion.py
PyGui/_CommandPrintMeshInfo.py
PyGui/_CommandPurgeResults.py
PyGui/_CommandRunSolver.py
PyGui/_CommandShellThickness.py
PyGui/_CommandShowResult.py
PyGui/_CommandSolverCalculix.py
PyGui/_CommandSolverRun.py
PyGui/_CommandSolverZ88.py
PyGui/_TaskPanelFemBeamSection.py
PyGui/_TaskPanelFemFluidSection.py
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Fem/CMakeLists.txt
Expand Up @@ -83,10 +83,10 @@ INSTALL(
PyGui/_CommandMeshRegion.py
PyGui/_CommandPrintMeshInfo.py
PyGui/_CommandPurgeResults.py
PyGui/_CommandRunSolver.py
PyGui/_CommandShellThickness.py
PyGui/_CommandShowResult.py
PyGui/_CommandSolverCalculix.py
PyGui/_CommandSolverRun.py
PyGui/_CommandSolverZ88.py
PyGui/_TaskPanelFemBeamSection.py
PyGui/_TaskPanelFemFluidSection.py
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Fem/Gui/Workbench.cpp
Expand Up @@ -101,7 +101,7 @@ Gui::ToolBarItem* Workbench::setupToolBars() const
<< "FEM_ConstraintInitialTemperature"
<< "Separator"
<< "FEM_ControlSolver"
<< "FEM_RunSolver"
<< "FEM_SolverRun"
<< "Separator"
<< "FEM_PurgeResults"
<< "FEM_ShowResult";
Expand Down Expand Up @@ -177,7 +177,7 @@ Gui::MenuItem* Workbench::setupMenuBar() const
<< "FEM_ConstraintInitialTemperature"
<< "Separator"
<< "FEM_ControlSolver"
<< "FEM_RunSolver"
<< "FEM_SolverRun"
<< "Separator"
<< "FEM_PurgeResults"
<< "FEM_ShowResult";
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Fem/InitGui.py
Expand Up @@ -46,7 +46,6 @@ def Initialize(self):
import FemGui

import PyGui._CommandShowResult
import PyGui._CommandRunSolver
import PyGui._CommandPurgeResults
import PyGui._CommandClearMesh
import PyGui._CommandPrintMeshInfo
Expand All @@ -64,6 +63,7 @@ def Initialize(self):
import PyGui._CommandMaterialFluid
import PyGui._CommandMaterialMechanicalNonlinear
import PyGui._CommandSolverCalculix
import PyGui._CommandSolverRun
import PyGui._CommandSolverZ88
import PyGui._CommandConstraintSelfWeight

Expand Down
Expand Up @@ -24,22 +24,22 @@
__author__ = "Juergen Riegel"
__url__ = "http://www.freecadweb.org"

## @package CommandRunSolver
## @package CommandSolverRun
# \ingroup FEM

from FemCommands import FemCommands
import FreeCADGui
from PySide import QtCore, QtGui


class _CommandRunSolver(FemCommands):
# the FEM_RunSolver command definition
class _CommandSolverRun(FemCommands):
# the FEM_SolverRun command definition
def __init__(self):
super(_CommandRunSolver, self).__init__()
super(_CommandSolverRun, self).__init__()
self.resources = {'Pixmap': 'fem-run-solver',
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_RunAnalysis", "Run solver calculations"),
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_SolverRun", "Run solver calculations"),
'Accel': "R, C",
'ToolTip': QtCore.QT_TRANSLATE_NOOP("FEM_RunAnalysis", "Runs the calculations for the selected solver")}
'ToolTip': QtCore.QT_TRANSLATE_NOOP("FEM_SolverRun", "Runs the calculations for the selected solver")}
self.is_active = 'with_solver'

def Activated(self):
Expand Down Expand Up @@ -77,4 +77,4 @@ def load_results(ret_code):
QtGui.QMessageBox.critical(None, "Not known solver type", message)


FreeCADGui.addCommand('FEM_RunSolver', _CommandRunSolver())
FreeCADGui.addCommand('FEM_SolverRun', _CommandSolverRun))

0 comments on commit 8cf0001

Please sign in to comment.