[FEM] sort equations alphabetically
- to ease readability a bit
This commit is contained in:
@@ -250,9 +250,9 @@ SET(FemSolverElmer_SRCS
|
||||
|
||||
SET(FemSolverElmerEquations_SRCS
|
||||
femsolver/elmer/equations/__init__.py
|
||||
femsolver/elmer/equations/elasticity.py
|
||||
femsolver/elmer/equations/electricforce.py
|
||||
femsolver/elmer/equations/electrostatic.py
|
||||
femsolver/elmer/equations/elasticity.py
|
||||
femsolver/elmer/equations/equation.py
|
||||
femsolver/elmer/equations/flow.py
|
||||
femsolver/elmer/equations/flux.py
|
||||
|
||||
@@ -397,23 +397,6 @@ class _ElementRotation1D(CommandManager):
|
||||
self.do_activated = "add_obj_on_gui_noset_edit"
|
||||
|
||||
|
||||
class _EquationElectrostatic(CommandManager):
|
||||
"The FEM_EquationElectrostatic command definition"
|
||||
|
||||
def __init__(self):
|
||||
super(_EquationElectrostatic, self).__init__()
|
||||
self.menutext = Qt.QT_TRANSLATE_NOOP(
|
||||
"FEM_EquationElectrostatic",
|
||||
"Electrostatic equation"
|
||||
)
|
||||
self.tooltip = Qt.QT_TRANSLATE_NOOP(
|
||||
"FEM_EquationElectrostatic",
|
||||
"Creates a FEM equation for electrostatic"
|
||||
)
|
||||
self.is_active = "with_solver_elmer"
|
||||
self.do_activated = "add_obj_on_gui_selobj_noset_edit"
|
||||
|
||||
|
||||
class _EquationElasticity(CommandManager):
|
||||
"The FEM_EquationElasticity command definition"
|
||||
|
||||
@@ -431,6 +414,40 @@ class _EquationElasticity(CommandManager):
|
||||
self.do_activated = "add_obj_on_gui_selobj_noset_edit"
|
||||
|
||||
|
||||
class _EquationElectricforce(CommandManager):
|
||||
"The FEM_EquationElectricforce command definition"
|
||||
|
||||
def __init__(self):
|
||||
super(_EquationElectricforce, self).__init__()
|
||||
self.menutext = Qt.QT_TRANSLATE_NOOP(
|
||||
"FEM_EquationElectricforce",
|
||||
"Electricforce equation"
|
||||
)
|
||||
self.tooltip = Qt.QT_TRANSLATE_NOOP(
|
||||
"FEM_EquationElectricforce",
|
||||
"Creates a FEM equation for electric forces"
|
||||
)
|
||||
self.is_active = "with_solver_elmer"
|
||||
self.do_activated = "add_obj_on_gui_selobj_noset_edit"
|
||||
|
||||
|
||||
class _EquationElectrostatic(CommandManager):
|
||||
"The FEM_EquationElectrostatic command definition"
|
||||
|
||||
def __init__(self):
|
||||
super(_EquationElectrostatic, self).__init__()
|
||||
self.menutext = Qt.QT_TRANSLATE_NOOP(
|
||||
"FEM_EquationElectrostatic",
|
||||
"Electrostatic equation"
|
||||
)
|
||||
self.tooltip = Qt.QT_TRANSLATE_NOOP(
|
||||
"FEM_EquationElectrostatic",
|
||||
"Creates a FEM equation for electrostatic"
|
||||
)
|
||||
self.is_active = "with_solver_elmer"
|
||||
self.do_activated = "add_obj_on_gui_selobj_noset_edit"
|
||||
|
||||
|
||||
class _EquationFlow(CommandManager):
|
||||
"The FEM_EquationFlow command definition"
|
||||
|
||||
@@ -465,23 +482,6 @@ class _EquationFlux(CommandManager):
|
||||
self.do_activated = "add_obj_on_gui_selobj_noset_edit"
|
||||
|
||||
|
||||
class _EquationElectricforce(CommandManager):
|
||||
"The FEM_EquationElectricforce command definition"
|
||||
|
||||
def __init__(self):
|
||||
super(_EquationElectricforce, self).__init__()
|
||||
self.menutext = Qt.QT_TRANSLATE_NOOP(
|
||||
"FEM_EquationElectricforce",
|
||||
"Electricforce equation"
|
||||
)
|
||||
self.tooltip = Qt.QT_TRANSLATE_NOOP(
|
||||
"FEM_EquationElectricforce",
|
||||
"Creates a FEM equation for electric forces"
|
||||
)
|
||||
self.is_active = "with_solver_elmer"
|
||||
self.do_activated = "add_obj_on_gui_selobj_noset_edit"
|
||||
|
||||
|
||||
class _EquationHeat(CommandManager):
|
||||
"The FEM_EquationHeat command definition"
|
||||
|
||||
@@ -1156,14 +1156,18 @@ FreeCADGui.addCommand(
|
||||
"FEM_ElementRotation1D",
|
||||
_ElementRotation1D()
|
||||
)
|
||||
FreeCADGui.addCommand(
|
||||
"FEM_EquationElectrostatic",
|
||||
_EquationElectrostatic()
|
||||
)
|
||||
FreeCADGui.addCommand(
|
||||
"FEM_EquationElasticity",
|
||||
_EquationElasticity()
|
||||
)
|
||||
FreeCADGui.addCommand(
|
||||
"FEM_EquationElectricforce",
|
||||
_EquationElectricforce()
|
||||
)
|
||||
FreeCADGui.addCommand(
|
||||
"FEM_EquationElectrostatic",
|
||||
_EquationElectrostatic()
|
||||
)
|
||||
FreeCADGui.addCommand(
|
||||
"FEM_EquationFlow",
|
||||
_EquationFlow()
|
||||
@@ -1172,10 +1176,6 @@ FreeCADGui.addCommand(
|
||||
"FEM_EquationFlux",
|
||||
_EquationFlux()
|
||||
)
|
||||
FreeCADGui.addCommand(
|
||||
"FEM_EquationElectricforce",
|
||||
_EquationElectricforce()
|
||||
)
|
||||
FreeCADGui.addCommand(
|
||||
"FEM_EquationHeat",
|
||||
_EquationHeat()
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -89,26 +89,6 @@ class ElasticityViewProxy(BaseViewProxy):
|
||||
return ":/icons/FEM_EquationElasticity.svg"
|
||||
|
||||
|
||||
class ElectrostaticViewProxy(BaseViewProxy):
|
||||
|
||||
def getIcon(self):
|
||||
return ":/icons/FEM_EquationElectrostatic.svg"
|
||||
|
||||
|
||||
class ElectrostaticProxy(BaseProxy):
|
||||
pass
|
||||
|
||||
|
||||
class FluxViewProxy(BaseViewProxy):
|
||||
|
||||
def getIcon(self):
|
||||
return ":/icons/FEM_EquationFlux.svg"
|
||||
|
||||
|
||||
class FluxProxy(BaseProxy):
|
||||
pass
|
||||
|
||||
|
||||
class ElectricforceViewProxy(BaseViewProxy):
|
||||
|
||||
def getIcon(self):
|
||||
@@ -119,6 +99,16 @@ class ElectricforceProxy(BaseProxy):
|
||||
pass
|
||||
|
||||
|
||||
class ElectrostaticViewProxy(BaseViewProxy):
|
||||
|
||||
def getIcon(self):
|
||||
return ":/icons/FEM_EquationElectrostatic.svg"
|
||||
|
||||
|
||||
class ElectrostaticProxy(BaseProxy):
|
||||
pass
|
||||
|
||||
|
||||
class FlowProxy(BaseProxy):
|
||||
pass
|
||||
|
||||
@@ -128,4 +118,15 @@ class FlowViewProxy(BaseViewProxy):
|
||||
def getIcon(self):
|
||||
return ":/icons/FEM_EquationFlow.svg"
|
||||
|
||||
|
||||
class FluxViewProxy(BaseViewProxy):
|
||||
|
||||
def getIcon(self):
|
||||
return ":/icons/FEM_EquationFlux.svg"
|
||||
|
||||
|
||||
class FluxProxy(BaseProxy):
|
||||
pass
|
||||
|
||||
|
||||
## @}
|
||||
|
||||
Reference in New Issue
Block a user