From 53e2d35ee926048a61b37b386d65aacb492333bd Mon Sep 17 00:00:00 2001 From: vocx-fc Date: Sat, 26 Sep 2020 17:58:39 -0500 Subject: [PATCH] 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. --- src/Mod/Part/BasicShapes/Shapes.py | 12 ++++++------ src/Mod/Part/Gui/Workbench.cpp | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Mod/Part/BasicShapes/Shapes.py b/src/Mod/Part/BasicShapes/Shapes.py index 386dbd9096..0c1aed5b8a 100644 --- a/src/Mod/Part/BasicShapes/Shapes.py +++ b/src/Mod/Part/BasicShapes/Shapes.py @@ -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()) diff --git a/src/Mod/Part/Gui/Workbench.cpp b/src/Mod/Part/Gui/Workbench.cpp index 18187f9e49..89d21570be 100644 --- a/src/Mod/Part/Gui/Workbench.cpp +++ b/src/Mod/Part/Gui/Workbench.cpp @@ -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";