From 8cf0001e97afa962d96d475b4eb83d09497e6fdb Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Thu, 2 Mar 2017 20:40:45 +0100 Subject: [PATCH] FEM: solver run command, make name fit in FEM name system --- src/Mod/Fem/App/CMakeLists.txt | 2 +- src/Mod/Fem/CMakeLists.txt | 2 +- src/Mod/Fem/Gui/Workbench.cpp | 4 ++-- src/Mod/Fem/InitGui.py | 2 +- .../{_CommandRunSolver.py => _CommandSolverRun.py} | 14 +++++++------- 5 files changed, 12 insertions(+), 12 deletions(-) rename src/Mod/Fem/PyGui/{_CommandRunSolver.py => _CommandSolverRun.py} (91%) diff --git a/src/Mod/Fem/App/CMakeLists.txt b/src/Mod/Fem/App/CMakeLists.txt index 594d6f4a244f..9d90f103cc04 100644 --- a/src/Mod/Fem/App/CMakeLists.txt +++ b/src/Mod/Fem/App/CMakeLists.txt @@ -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 diff --git a/src/Mod/Fem/CMakeLists.txt b/src/Mod/Fem/CMakeLists.txt index ee986a180a32..a9e5162d839f 100755 --- a/src/Mod/Fem/CMakeLists.txt +++ b/src/Mod/Fem/CMakeLists.txt @@ -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 diff --git a/src/Mod/Fem/Gui/Workbench.cpp b/src/Mod/Fem/Gui/Workbench.cpp index cf6a51815296..a2d91ba792c7 100755 --- a/src/Mod/Fem/Gui/Workbench.cpp +++ b/src/Mod/Fem/Gui/Workbench.cpp @@ -101,7 +101,7 @@ Gui::ToolBarItem* Workbench::setupToolBars() const << "FEM_ConstraintInitialTemperature" << "Separator" << "FEM_ControlSolver" - << "FEM_RunSolver" + << "FEM_SolverRun" << "Separator" << "FEM_PurgeResults" << "FEM_ShowResult"; @@ -177,7 +177,7 @@ Gui::MenuItem* Workbench::setupMenuBar() const << "FEM_ConstraintInitialTemperature" << "Separator" << "FEM_ControlSolver" - << "FEM_RunSolver" + << "FEM_SolverRun" << "Separator" << "FEM_PurgeResults" << "FEM_ShowResult"; diff --git a/src/Mod/Fem/InitGui.py b/src/Mod/Fem/InitGui.py index 45162db97248..52e7233a6288 100644 --- a/src/Mod/Fem/InitGui.py +++ b/src/Mod/Fem/InitGui.py @@ -46,7 +46,6 @@ def Initialize(self): import FemGui import PyGui._CommandShowResult - import PyGui._CommandRunSolver import PyGui._CommandPurgeResults import PyGui._CommandClearMesh import PyGui._CommandPrintMeshInfo @@ -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 diff --git a/src/Mod/Fem/PyGui/_CommandRunSolver.py b/src/Mod/Fem/PyGui/_CommandSolverRun.py similarity index 91% rename from src/Mod/Fem/PyGui/_CommandRunSolver.py rename to src/Mod/Fem/PyGui/_CommandSolverRun.py index bbedd720cdc0..5f6690844c12 100644 --- a/src/Mod/Fem/PyGui/_CommandRunSolver.py +++ b/src/Mod/Fem/PyGui/_CommandSolverRun.py @@ -24,7 +24,7 @@ __author__ = "Juergen Riegel" __url__ = "http://www.freecadweb.org" -## @package CommandRunSolver +## @package CommandSolverRun # \ingroup FEM from FemCommands import FemCommands @@ -32,14 +32,14 @@ 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): @@ -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))