Skip to content

Commit

Permalink
Part: change command name Part_MakeTube to Part_Tube
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vocx-fc authored and wwmayer committed Sep 27, 2020
1 parent f9aed76 commit 53e2d35
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/Mod/Part/BasicShapes/Shapes.py
Expand Up @@ -79,14 +79,14 @@ def __setstate__(self,state):
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")
Expand All @@ -100,4 +100,4 @@ def IsActive(self):
return not FreeCAD.ActiveDocument is None


FreeCADGui.addCommand('Part_MakeTube',_CommandMakeTube())
FreeCADGui.addCommand('Part_Tube', CommandTube())
4 changes: 2 additions & 2 deletions src/Mod/Part/Gui/Workbench.cpp
Expand Up @@ -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");
Expand Down Expand Up @@ -183,7 +183,7 @@ Gui::ToolBarItem* Workbench::setupToolBars() const
<< "Part_Sphere"
<< "Part_Cone"
<< "Part_Torus"
<< "Part_MakeTube"
<< "Part_Tube"
<< "Part_Primitives"
<< "Part_Builder";

Expand Down

0 comments on commit 53e2d35

Please sign in to comment.