diff --git a/src/Mod/Path/Images/Tools/drill.svg b/src/Mod/Path/Images/Tools/drill.svg index 2d149e62aa..5e4a0f177b 100644 --- a/src/Mod/Path/Images/Tools/drill.svg +++ b/src/Mod/Path/Images/Tools/drill.svg @@ -5,11 +5,35 @@ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" id="svg8" version="1.1" viewBox="0 0 210 297" height="297mm" - width="210mm"> + width="210mm" + sodipodi:docname="drill.svg" + inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"> + image/svg+xml - + - - + d="M 140,37.843316 V 277.00001" + style="fill:none;stroke:#000000;stroke-width:1.09352;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#marker8617);marker-end:url(#marker8709)" /> H D α + diff --git a/src/Mod/Path/Images/Tools/endmill.svg b/src/Mod/Path/Images/Tools/endmill.svg index a3a43ee4ba..3982fe1c12 100644 --- a/src/Mod/Path/Images/Tools/endmill.svg +++ b/src/Mod/Path/Images/Tools/endmill.svg @@ -5,11 +5,35 @@ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" id="svg8" version="1.1" viewBox="0 0 210 297.00001" height="297mm" - width="210mm"> + width="210mm" + sodipodi:docname="endmill.svg" + inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"> + image/svg+xml - + - - - - + d="m 118.43165,191.92376 v -39.1469" + style="fill:none;stroke:#000000;stroke-width:0.823854;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> + d="M 57.313954,-48.540717 H 116.35772" + style="fill:none;stroke:#000000;stroke-width:0.736568;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#marker1181);marker-end:url(#marker1185)" /> + d="M 54.177906,179.67926 H 117.83609" + style="fill:none;stroke:#000000;stroke-width:0.540802;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#marker1173);marker-end:url(#marker1177)" /> S D H + y="146.03827" + x="141.7326" /> + d="m 53.656636,194.48411 v -39.1469" + style="fill:none;stroke:#000000;stroke-width:0.823854;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> + d="M 131.26491,22.267499 V 170.59241" + style="fill:none;stroke:#000000;stroke-width:1.13395;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#Arrow2Lstart);marker-end:url(#Arrow2Lend)" /> + d="m 114.72832,19.499193 h 24.62222" + style="fill:none;stroke:#000000;stroke-width:0.823854;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> - + d="m 116.57691,171.93303 h 24.62222" + style="fill:none;stroke:#000000;stroke-width:0.823854;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> + diff --git a/src/Mod/Path/Images/Tools/reamer.svg b/src/Mod/Path/Images/Tools/reamer.svg new file mode 100644 index 0000000000..737600c528 --- /dev/null +++ b/src/Mod/Path/Images/Tools/reamer.svg @@ -0,0 +1,433 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + D + H + + + + + + + + diff --git a/src/Mod/Path/PathScripts/PathToolEdit.py b/src/Mod/Path/PathScripts/PathToolEdit.py index 4268bfa033..0b4bc95bea 100644 --- a/src/Mod/Path/PathScripts/PathToolEdit.py +++ b/src/Mod/Path/PathScripts/PathToolEdit.py @@ -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: