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

@ -91,8 +91,8 @@ class PathWorkbench ( Workbench ):
# build commands list
projcmdlist = ["Path_Project", "Path_ToolTableEdit","Path_Post","Path_Inspect"]
prepcmdlist = ["Path_Plane","Path_Fixture","Path_LoadTool","Path_ToolLenOffset","Path_Comment","Path_Stop",
"Path_FaceProfile","Path_FacePocket","Path_Custom"]
opcmdlist = ["Path_Profile","Path_Kurve","Path_Pocket","Path_Drilling","Path_FromShape"]
"Path_FaceProfile","Path_FacePocket","Path_Custom","Path_FromShape"]
opcmdlist = ["Path_Profile","Path_Kurve","Path_Pocket","Path_Drilling"]
modcmdlist = ["Path_Copy","Path_CompoundExtended","Path_Dressup","Path_Hop","Path_Array"]

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):