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:
@@ -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())
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user