gui: move AsmCmdGotoRelation to navigation toolbar
This commit is contained in:
parent
03a336480f
commit
79c9d52e89
1
gui.py
1
gui.py
|
@ -557,6 +557,7 @@ class AsmCmdGotoRelation(AsmCmdBase):
|
||||||
_tooltip = 'Select the corresponding part object in the relation group'
|
_tooltip = 'Select the corresponding part object in the relation group'
|
||||||
_iconName = 'Assembly_GotoRelation.svg'
|
_iconName = 'Assembly_GotoRelation.svg'
|
||||||
_accel = 'A, R'
|
_accel = 'A, R'
|
||||||
|
_toolbarName = ''
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def Activated(cls):
|
def Activated(cls):
|
||||||
|
|
|
@ -38,14 +38,15 @@ class Assembly3Workbench(FreeCADGui.Workbench):
|
||||||
|
|
||||||
def Initialize(self):
|
def Initialize(self):
|
||||||
from .mover import AsmDocumentObserver
|
from .mover import AsmDocumentObserver
|
||||||
from .gui import AsmCmdManager
|
from .gui import AsmCmdManager,AsmCmdGotoRelation
|
||||||
AsmCmdManager.init()
|
AsmCmdManager.init()
|
||||||
cmdSet = set()
|
cmdSet = set()
|
||||||
for name,cmds in AsmCmdManager.Toolbars.items():
|
for name,cmds in AsmCmdManager.Toolbars.items():
|
||||||
cmdSet.update(cmds)
|
cmdSet.update(cmds)
|
||||||
self.appendToolbar(name,[cmd.getName() for cmd in cmds])
|
self.appendToolbar(name,[cmd.getName() for cmd in cmds])
|
||||||
self.appendToolbar('Assembly3 Selection', ["Std_SelBack",
|
self.appendToolbar('Assembly3 Navigation', ["Std_SelBack",
|
||||||
"Std_SelForward","Std_LinkSelectLinked","Std_LinkSelectLinkedFinal",
|
"Std_SelForward",AsmCmdGotoRelation.getName(),
|
||||||
|
"Std_LinkSelectLinked", "Std_LinkSelectLinkedFinal",
|
||||||
"Std_LinkSelectAllLinks","Std_TreeSelectAllInstances"])
|
"Std_LinkSelectAllLinks","Std_TreeSelectAllInstances"])
|
||||||
for name,cmds in AsmCmdManager.Menus.items():
|
for name,cmds in AsmCmdManager.Menus.items():
|
||||||
cmdSet.update(cmds)
|
cmdSet.update(cmds)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user