Skip to content

Commit

Permalink
Rename GUI commands to follow FreeCAD format
Browse files Browse the repository at this point in the history
Making this change will enable users to use `What's this?` command on FCGear
commands and get the correct Wiki article.

Fix looooo#151
  • Loading branch information
hasecilu committed Feb 15, 2024
1 parent 8c40189 commit aee2ea7
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions freecad/gears/init_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,19 +88,19 @@ class GearWorkbench(gui.Workbench):
ToolTip = "Gear Workbench"
Icon = os.path.join(__dirname__, "icons", "gearworkbench.svg")
commands = [
"CreateInvoluteGear",
"CreateInternalInvoluteGear",
"CreateInvoluteRack",
"CreateCycloidGear",
"CreateCycloidRack",
"CreateBevelGear",
"CreateCrownGear",
"CreateWormGear",
"CreateTimingGearT",
"CreateTimingGear",
"CreateLanternGear",
"CreateHypoCycloidGear",
"CreateGearConnector",
"FCGear_InvoluteGear",
"FCGear_InternalInvoluteGear",
"FCGear_InvoluteRack",
"FCGear_CycloidGear",
"FCGear_CycloidRack",
"FCGear_BevelGear",
"FCGear_CrownGear",
"FCGear_WormGear",
"FCGear_TimingGearT",
"FCGear_TimingGear",
"FCGear_LanternGear",
"FCGear_HypoCycloidGear",
"FCGear_GearConnector",
]

def GetClassName(self):
Expand Down Expand Up @@ -129,19 +129,19 @@ def Initialize(self):

self.appendToolbar("Gear", self.commands)
self.appendMenu("Gear", self.commands)
gui.addCommand("CreateInvoluteGear", CreateInvoluteGear())
gui.addCommand("CreateInternalInvoluteGear", CreateInternalInvoluteGear())
gui.addCommand("CreateCycloidGear", CreateCycloidGear())
gui.addCommand("CreateCycloidRack", CreateCycloidRack())
gui.addCommand("CreateBevelGear", CreateBevelGear())
gui.addCommand("CreateInvoluteRack", CreateInvoluteRack())
gui.addCommand("CreateCrownGear", CreateCrownGear())
gui.addCommand("CreateWormGear", CreateWormGear())
gui.addCommand("CreateTimingGearT", CreateTimingGearT())
gui.addCommand("CreateTimingGear", CreateTimingGear())
gui.addCommand("CreateLanternGear", CreateLanternGear())
gui.addCommand("CreateHypoCycloidGear", CreateHypoCycloidGear())
gui.addCommand("CreateGearConnector", CreateGearConnector())
gui.addCommand("FCGear_InvoluteGear", CreateInvoluteGear())
gui.addCommand("FCGear_InternalInvoluteGear", CreateInternalInvoluteGear())
gui.addCommand("FCGear_CycloidGear", CreateCycloidGear())
gui.addCommand("FCGear_CycloidRack", CreateCycloidRack())
gui.addCommand("FCGear_BevelGear", CreateBevelGear())
gui.addCommand("FCGear_InvoluteRack", CreateInvoluteRack())
gui.addCommand("FCGear_CrownGear", CreateCrownGear())
gui.addCommand("FCGear_WormGear", CreateWormGear())
gui.addCommand("FCGear_TimingGearT", CreateTimingGearT())
gui.addCommand("FCGear_TimingGear", CreateTimingGear())
gui.addCommand("FCGear_LanternGear", CreateLanternGear())
gui.addCommand("FCGear_HypoCycloidGear", CreateHypoCycloidGear())
gui.addCommand("FCGear_GearConnector", CreateGearConnector())

def Activated(self):
pass
Expand Down

0 comments on commit aee2ea7

Please sign in to comment.