FEM: new commands, remove add in command names
the wiki pages retrive the names from the command names, thus they have to us the same name system
This commit is contained in:
@@ -104,20 +104,20 @@ Gui::ToolBarItem* Workbench::setupToolBars() const
|
||||
|
||||
Gui::ToolBarItem* fluid = new Gui::ToolBarItem(root);
|
||||
fluid->setCommand("Fluid Constraints");
|
||||
*fluid << "FEM_AddConstraintInitialFlowVelocity"
|
||||
*fluid << "FEM_ConstraintInitialFlowVelocity"
|
||||
<< "Separator"
|
||||
<< "FEM_ConstraintFluidBoundary"
|
||||
<< "FEM_AddConstraintFlowVelocity";
|
||||
<< "FEM_ConstraintFlowVelocity";
|
||||
|
||||
Gui::ToolBarItem* solve = new Gui::ToolBarItem(root);
|
||||
solve->setCommand("Solve");
|
||||
*solve << "FEM_SolverCalculix"
|
||||
<< "FEM_AddSolverElmer"
|
||||
<< "FEM_SolverElmer"
|
||||
<< "Separator"
|
||||
<< "FEM_AddEquationHeat"
|
||||
<< "FEM_AddEquationElasticity"
|
||||
<< "FEM_AddEquationElectrostatic"
|
||||
<< "FEM_AddEquationFlow"
|
||||
<< "FEM_EquationHeat"
|
||||
<< "FEM_EquationElasticity"
|
||||
<< "FEM_EquationElectrostatic"
|
||||
<< "FEM_EquationFlow"
|
||||
<< "Separator"
|
||||
<< "FEM_SolverControl"
|
||||
<< "FEM_SolverRun";
|
||||
@@ -172,14 +172,14 @@ Gui::MenuItem* Workbench::setupMenuBar() const
|
||||
<< "Separator"
|
||||
<< "FEM_ConstraintHeatflux"
|
||||
<< "FEM_ConstraintTemperature"
|
||||
<< "FEM_AddConstraintBodyHeatSource";
|
||||
<< "FEM_ConstraintBodyHeatSource";
|
||||
|
||||
Gui::MenuItem* fluid = new Gui::MenuItem;
|
||||
fluid->setCommand("&Fluid Constraints");
|
||||
*fluid << "FEM_AddConstraintInitialFlowVelocity"
|
||||
*fluid << "FEM_ConstraintInitialFlowVelocity"
|
||||
<< "Separator"
|
||||
<< "FEM_ConstraintFluidBoundary"
|
||||
<< "FEM_AddConstraintFlowVelocity";
|
||||
<< "FEM_ConstraintFlowVelocity";
|
||||
|
||||
Gui::MenuItem* model = new Gui::MenuItem;
|
||||
root->insertItem(item, model);
|
||||
@@ -215,12 +215,12 @@ Gui::MenuItem* Workbench::setupMenuBar() const
|
||||
solve->setCommand("&Solve");
|
||||
*solve << "FEM_SolverCalculix"
|
||||
<< "FEM_SolverZ88"
|
||||
<< "FEM_AddSolverElmer"
|
||||
<< "FEM_SolverElmer"
|
||||
<< "Separator"
|
||||
<< "FEM_AddEquationHeat"
|
||||
<< "FEM_AddEquationElasticity"
|
||||
<< "FEM_AddEquationElectrostatic"
|
||||
<< "FEM_AddEquationFlow"
|
||||
<< "FEM_EquationHeat"
|
||||
<< "FEM_EquationElasticity"
|
||||
<< "FEM_EquationElectrostatic"
|
||||
<< "FEM_EquationFlow"
|
||||
<< "Separator"
|
||||
<< "FEM_SolverControl"
|
||||
<< "FEM_SolverRun";
|
||||
|
||||
@@ -56,4 +56,4 @@ class Command(FemCommands.FemCommands):
|
||||
"[ObjectsFem.makeConstraintBodyHeatSource()]")
|
||||
|
||||
|
||||
Gui.addCommand('FEM_AddConstraintBodyHeatSource', Command())
|
||||
Gui.addCommand('FEM_ConstraintBodyHeatSource', Command())
|
||||
|
||||
@@ -56,4 +56,4 @@ class Command(FemCommands.FemCommands):
|
||||
"[ObjectsFem.makeConstraintFlowVelocity()]")
|
||||
|
||||
|
||||
Gui.addCommand('FEM_AddConstraintFlowVelocity', Command())
|
||||
Gui.addCommand('FEM_ConstraintFlowVelocity', Command())
|
||||
|
||||
@@ -56,4 +56,4 @@ class Command(FemCommands.FemCommands):
|
||||
"[ObjectsFem.makeConstraintInitialFlowVelocity()]")
|
||||
|
||||
|
||||
Gui.addCommand('FEM_AddConstraintInitialFlowVelocity', Command())
|
||||
Gui.addCommand('FEM_ConstraintInitialFlowVelocity', Command())
|
||||
|
||||
@@ -110,7 +110,7 @@ class Flow(_Base):
|
||||
}
|
||||
|
||||
|
||||
Gui.addCommand('FEM_AddEquationHeat', Heat())
|
||||
Gui.addCommand('FEM_AddEquationElasticity', Elasticity())
|
||||
Gui.addCommand('FEM_AddEquationElectrostatic', Electrostatic())
|
||||
Gui.addCommand('FEM_AddEquationFlow', Flow())
|
||||
Gui.addCommand('FEM_EquationHeat', Heat())
|
||||
Gui.addCommand('FEM_EquationElasticity', Elasticity())
|
||||
Gui.addCommand('FEM_EquationElectrostatic', Electrostatic())
|
||||
Gui.addCommand('FEM_EquationFlow', Flow())
|
||||
|
||||
@@ -60,4 +60,4 @@ class Command(QtCore.QObject):
|
||||
and analysis.Document == App.ActiveDocument)
|
||||
|
||||
|
||||
Gui.addCommand('FEM_AddSolverElmer', Command())
|
||||
Gui.addCommand('FEM_SolverElmer', Command())
|
||||
|
||||
Reference in New Issue
Block a user