From 37a44c08c31ed79bfb167a9fc64a8f1c79607213 Mon Sep 17 00:00:00 2001 From: Patrick Felixberger Date: Mon, 23 Mar 2020 00:48:09 +0100 Subject: [PATCH] Added 4th axis support to drilling GUI --- .../Resources/panels/PageOpDrillingEdit.ui | 35 +++++++++++++++++-- src/Mod/Path/PathScripts/PathDrillingGui.py | 4 +++ 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/src/Mod/Path/Gui/Resources/panels/PageOpDrillingEdit.ui b/src/Mod/Path/Gui/Resources/panels/PageOpDrillingEdit.ui index e815e4cc86..d7cd354325 100644 --- a/src/Mod/Path/Gui/Resources/panels/PageOpDrillingEdit.ui +++ b/src/Mod/Path/Gui/Resources/panels/PageOpDrillingEdit.ui @@ -6,8 +6,8 @@ 0 0 - 572 - 419 + 454 + 386 @@ -154,6 +154,37 @@ + + + + + Off + + + + + A(x) + + + + + B(y) + + + + + A & B + + + + + + + + Enable Rotation + + + diff --git a/src/Mod/Path/PathScripts/PathDrillingGui.py b/src/Mod/Path/PathScripts/PathDrillingGui.py index 10e4965c19..ed7a8e714d 100644 --- a/src/Mod/Path/PathScripts/PathDrillingGui.py +++ b/src/Mod/Path/PathScripts/PathDrillingGui.py @@ -99,6 +99,8 @@ class TaskPanelOpPage(PathCircularHoleBaseGui.TaskPanelOpPage): obj.PeckEnabled = self.form.peckEnabled.isChecked() if obj.ExtraOffset != str(self.form.ExtraOffset.currentText()): obj.ExtraOffset = str(self.form.ExtraOffset.currentText()) + if obj.EnableRotation != str(self.form.enableRotation.currentText()): + obj.EnableRotation = str(self.form.enableRotation.currentText()) self.updateToolController(obj, self.form.toolController) self.updateCoolant(obj, self.form.coolantController) @@ -122,6 +124,7 @@ class TaskPanelOpPage(PathCircularHoleBaseGui.TaskPanelOpPage): self.setupToolController(obj, self.form.toolController) self.setupCoolant(obj, self.form.coolantController) + self.selectInComboBox(obj.EnableRotation, self.form.enableRotation) def getSignalsForUpdate(self, obj): @@ -137,6 +140,7 @@ class TaskPanelOpPage(PathCircularHoleBaseGui.TaskPanelOpPage): signals.append(self.form.coolantController.currentIndexChanged) signals.append(self.form.coolantController.currentIndexChanged) signals.append(self.form.ExtraOffset.currentIndexChanged) + signals.append(self.form.enableRotation.currentIndexChanged) return signals