Merge pull request #4038 from daveseff/pathworks

Pathworks
This commit is contained in:
sliptonic
2020-11-12 10:08:48 -06:00
committed by GitHub
4 changed files with 557 additions and 92 deletions

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 9.7 KiB

After

Width:  |  Height:  |  Size: 18 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 36 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 42 KiB

View File

@@ -149,6 +149,11 @@ class ToolEditorEndmill(ToolEditorImage):
def __init__(self, editor):
super(ToolEditorEndmill, self).__init__(editor, 'endmill.svg', 'da', 'S')
class ToolEditorReamer(ToolEditorImage):
'''Tool parameter editor for reamers.'''
def __init__(self, editor):
super(ToolEditorReamer, self).__init__(editor, 'reamer.svg', 'da', 'S')
class ToolEditorDrill(ToolEditorImage):
'''Tool parameter editor for drills.'''
def __init__(self, editor):
@@ -186,7 +191,8 @@ class ToolEditor:
ToolTypeImage = {
'EndMill': ToolEditorEndmill,
'Drill': ToolEditorDrill,
'Engraver': ToolEditorEngrave }
'Engraver': ToolEditorEngrave,
'Reamer': ToolEditorReamer, }
def __init__(self, tool, parentWidget, parent=None):
self.Parent = parent
@@ -250,6 +256,7 @@ class ToolEditor:
def setupToolType(self, tt):
PathLog.track()
print("Tool type: %s" % (tt))
if 'Undefined' == tt:
tt = Path.Tool.getToolTypes(Path.Tool())[0]
if tt in self.ToolTypeImage: