Part: change command name Part_MakeTube to Part_Tube

This follows the style of the other Part commands which don't
have the word `Make` just the name of the noun, `Box`, `Cylinder`,
`Sphere`, etc.
This commit is contained in:
vocx-fc
2020-09-26 17:58:39 -05:00
committed by wwmayer
parent b2624c08a1
commit eb9ba049fe
2 changed files with 8 additions and 8 deletions

View File

@@ -79,14 +79,14 @@ if FreeCAD.GuiUp:
return None
class _CommandMakeTube:
"Make tube command"
class CommandTube:
"""Command for creating Tube."""
def GetResources(self):
return {'MenuText': Qt.QT_TRANSLATE_NOOP("Part_MakeTube","Create tube"),
return {'MenuText': Qt.QT_TRANSLATE_NOOP("Part_Tube","Create tube"),
'Accel': "",
'CmdType': "AlterDoc:Alter3DView:AlterSelection",
'Pixmap' : ":/icons/Part_Tube.svg",
'ToolTip': Qt.QT_TRANSLATE_NOOP("Part_MakeTube","Creates a tube")}
'Pixmap': ":/icons/Part_Tube.svg",
'ToolTip': Qt.QT_TRANSLATE_NOOP("Part_Tube","Creates a tube")}
def Activated(self):
FreeCAD.ActiveDocument.openTransaction("Create tube")
@@ -100,4 +100,4 @@ if FreeCAD.GuiUp:
return not FreeCAD.ActiveDocument is None
FreeCADGui.addCommand('Part_MakeTube',_CommandMakeTube())
FreeCADGui.addCommand('Part_Tube', CommandTube())

View File

@@ -70,7 +70,7 @@ Gui::MenuItem* Workbench::setupMenuBar() const
<< "Part_Cone"
<< "Part_Torus"
<< "Separator"
<< "Part_MakeTube";
<< "Part_Tube";
Gui::MenuItem* copy = new Gui::MenuItem;
copy->setCommand("Create a copy");
@@ -183,7 +183,7 @@ Gui::ToolBarItem* Workbench::setupToolBars() const
<< "Part_Sphere"
<< "Part_Cone"
<< "Part_Torus"
<< "Part_MakeTube"
<< "Part_Tube"
<< "Part_Primitives"
<< "Part_Builder";