Refactored Commmand and ViewProvider to be data driven and moved imlementation into PathAreaOpGui.

This commit is contained in:
Markus Lampert
2017-08-05 19:18:06 -07:00
committed by Yorik van Havre
parent 0617d360d0
commit 89da621869
7 changed files with 113 additions and 127 deletions

View File

@@ -160,6 +160,14 @@ def surfaceselect():
FreeCADGui.Selection.addSelectionGate(MESHGate())
FreeCAD.Console.PrintWarning("Surfacing Select Mode\n")
def select(op):
opsel = {}
opsel['Profile'] = profileselect
opsel['Pocket'] = pocketselect
opsel['Contour'] = contourselect
opsel['Surface'] = surfaceselect
return opsel[op]
def clear():
FreeCADGui.Selection.removeSelectionGate()
FreeCAD.Console.PrintWarning("Free Select\n")