diff --git a/src/Mod/Path/Gui/Resources/panels/PageOpDeburrEdit.ui b/src/Mod/Path/Gui/Resources/panels/PageOpDeburrEdit.ui index 888d5aa4d4..452e6ab7e3 100644 --- a/src/Mod/Path/Gui/Resources/panels/PageOpDeburrEdit.ui +++ b/src/Mod/Path/Gui/Resources/panels/PageOpDeburrEdit.ui @@ -6,14 +6,14 @@ 0 0 - 375 - 303 + 399 + 333 Form - + @@ -29,28 +29,28 @@ QFrame::Raised - + Tool Controller - + <html><head/><body><p>The tool and its settings to be used for this operation.</p></body></html> - + Coolant Mode - + <html><head/><body><p>The tool and its settings to be used for this operation.</p></body></html> @@ -60,7 +60,7 @@ - + @@ -236,6 +236,79 @@ + + + + + 9 + + + 9 + + + 9 + + + 9 + + + 8 + + + + + <html><head/><body><p>The direction in which the profile is performed, clockwise or counter clockwise.</p></body></html> + + + CW + + + 0 + + + + CW + + + + + CCW + + + + + + + + + 0 + 0 + + + + Direction + + + + + + + Qt::Horizontal + + + QSizePolicy::Preferred + + + + 30 + 20 + + + + + + + diff --git a/src/Mod/Path/PathScripts/PathDeburr.py b/src/Mod/Path/PathScripts/PathDeburr.py index 8c28d802c8..46ba0f58ee 100644 --- a/src/Mod/Path/PathScripts/PathDeburr.py +++ b/src/Mod/Path/PathScripts/PathDeburr.py @@ -32,6 +32,11 @@ import math from PySide import QtCore +__title__ = "Path Deburr Operation" +__author__ = "sliptonic (Brad Collette), Schildkroet" +__url__ = "http://www.freecadweb.org" +__doc__ = "Deburr operation." + PathLog.setLevel(PathLog.Level.INFO, PathLog.thisModule()) #PathLog.trackModule(PathLog.thisModule()) diff --git a/src/Mod/Path/PathScripts/PathDeburrGui.py b/src/Mod/Path/PathScripts/PathDeburrGui.py index 45c146f53d..ed25c644fa 100644 --- a/src/Mod/Path/PathScripts/PathDeburrGui.py +++ b/src/Mod/Path/PathScripts/PathDeburrGui.py @@ -32,7 +32,7 @@ import PathScripts.PathOpGui as PathOpGui from PySide import QtCore, QtGui __title__ = "Path Deburr Operation UI" -__author__ = "sliptonic (Brad Collette)" +__author__ = "sliptonic (Brad Collette), Schildkroet" __url__ = "http://www.freecadweb.org" __doc__ = "Deburr operation page controller and command implementation." @@ -72,6 +72,9 @@ class TaskPanelOpPage(PathOpGui.TaskPanelPage): obj.Join = 'Round' elif self.form.joinMiter.isChecked(): obj.Join = 'Miter' + + if obj.Direction != str(self.form.direction.currentText()): + obj.Direction = str(self.form.direction.currentText()) self.updateToolController(obj, self.form.toolController) self.updateCoolant(obj, self.form.coolantController) @@ -84,6 +87,7 @@ class TaskPanelOpPage(PathOpGui.TaskPanelPage): self.form.joinRound.setChecked('Round' == obj.Join) self.form.joinMiter.setChecked('Miter' == obj.Join) self.form.joinFrame.hide() + self.selectInComboBox(obj.Direction, self.form.direction) def updateWidth(self): PathGui.updateInputField(self.obj, 'Width', self.form.value_W) @@ -96,6 +100,7 @@ class TaskPanelOpPage(PathOpGui.TaskPanelPage): signals.append(self.form.joinMiter.clicked) signals.append(self.form.joinRound.clicked) signals.append(self.form.coolantController.currentIndexChanged) + signals.append(self.form.direction.currentIndexChanged) return signals def registerSignalHandlers(self, obj):