Update assembly icons to be consistent with main updates.

Add commands to menu/toolbar.
This commit is contained in:
Max Wilfinger
2024-05-07 12:12:13 +02:00
committed by Chris Hennes
parent 407a572d2f
commit 323ec08e8e
7 changed files with 530 additions and 2176 deletions

View File

@@ -78,6 +78,7 @@ class AssemblyWorkbench(Workbench):
"Assembly_CreateAssembly",
"Assembly_InsertLink",
"Assembly_SolveAssembly",
"Assembly_CreateView",
]
cmdListMenuOnly = [
@@ -93,17 +94,12 @@ class AssemblyWorkbench(Workbench):
"Assembly_CreateJointSlider",
"Assembly_CreateJointBall",
"Assembly_CreateJointDistance",
"Separator",
"Assembly_CreateJointRackPinion",
"Assembly_CreateJointScrew",
"Assembly_CreateJointGearBelt",
]
if Preferences.preferences().GetBool("ExperimentalFeatures", False):
cmdList = cmdList + ["Assembly_CreateView"]
cmdListJoints = cmdListJoints + [
"Separator",
"Assembly_CreateJointRackPinion",
"Assembly_CreateJointScrew",
"Assembly_CreateJointGearBelt",
]
self.appendToolbar(QT_TRANSLATE_NOOP("Workbench", "Assembly"), cmdList)
self.appendToolbar(QT_TRANSLATE_NOOP("Workbench", "Assembly Joints"), cmdListJoints)