Path: made tooltable editable by right-clicking the machine

This commit is contained in:
Yorik van Havre
2016-01-20 20:36:53 -02:00
parent a07b9cd0d4
commit 44ad4d94c7
2 changed files with 8 additions and 4 deletions

View File

@@ -184,13 +184,17 @@ class _ViewProviderMachine:
# this is executed when a property of the APP OBJECT changes
pass
def setEdit(self,vobj,mode): #optional
def setEdit(self,vobj,mode=0): #optional
# this is executed when the object is double-clicked in the tree
pass
def unsetEdit(self,vobj,mode): #optional
def unsetEdit(self,vobj,mode=0): #optional
# this is executed when the user cancels or terminates edit mode
pass
def doubleClicked(self,vobj):
from PathScripts import TooltableEditor
TooltableEditor.edit(vobj.Object.Name)
class CommandPathMachine:
def GetResources(self):