Added editing functionality to the tool editor

This commit is contained in:
Markus Lampert
2019-09-08 22:14:12 -07:00
parent 5db8710721
commit 9bc978b52a
5 changed files with 38 additions and 21 deletions

View File

@@ -83,15 +83,16 @@ class ViewProvider(object):
def setEdit(self, vobj, mode=0):
# pylint: disable=unused-argument
PathLog.track()
taskPanel = TaskPanel(vobj)
self.taskPanel = TaskPanel(vobj)
FreeCADGui.Control.closeDialog()
FreeCADGui.Control.showDialog(taskPanel)
taskPanel.setupUi()
FreeCADGui.Control.showDialog(self.taskPanel)
self.taskPanel.setupUi()
return True
def unsetEdit(self, vobj, mode):
# pylint: disable=unused-argument
FreeCADGui.Control.closeDialog()
self.taskPanel = None
return
def claimChildren(self):