Draft: new utility toolbar with some useful commands

These commands are useful but are "hiden"
inside the "Utilities" menu, so not many poeple know about them.
By placing them in a toolbar, they will be more discoverable.
This commit is contained in:
vocx-fc
2020-04-12 22:05:30 -05:00
committed by Yorik van Havre
parent 14352677c5
commit 8d94a0e334
2 changed files with 10 additions and 2 deletions

View File

@@ -57,6 +57,13 @@ def get_draft_array_commands():
return ["Draft_ArrayTools"]
def get_draft_small_commands():
"""Return a list with only some utilities."""
return ["Draft_Layer",
"Draft_WorkingPlaneProxy",
"Draft_ToggleDisplayMode"]
def get_draft_modification_commands():
"""Return the modification commands list."""
lst = ["Draft_Move", "Draft_Rotate",
@@ -74,8 +81,7 @@ def get_draft_modification_commands():
"Separator",
"Draft_WireToBSpline", "Draft_Draft2Sketch",
"Separator",
"Draft_Shape2DView", "Draft_Drawing",
"Draft_WorkingPlaneProxy"]
"Draft_Shape2DView", "Draft_Drawing"]
return lst