From 57a00a16ba597d7bf0e89b6567cc458a4b66b93e Mon Sep 17 00:00:00 2001 From: Russell Johnson <47639332+Russ4262@users.noreply.github.com> Date: Fri, 5 Feb 2021 22:38:21 -0600 Subject: [PATCH] Path: Add checkbox input for `UseOutline` feature --- src/Mod/Path/PathScripts/PathAdaptiveGui.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Mod/Path/PathScripts/PathAdaptiveGui.py b/src/Mod/Path/PathScripts/PathAdaptiveGui.py index 0e25e92128..372c4c081e 100644 --- a/src/Mod/Path/PathScripts/PathAdaptiveGui.py +++ b/src/Mod/Path/PathScripts/PathAdaptiveGui.py @@ -140,6 +140,11 @@ class TaskPanelOpPage(PathOpGui.TaskPanelPage): form.FinishingProfile.setChecked(True) formLayout.addRow(QtGui.QLabel("Finishing Profile"), form.FinishingProfile) + # Use outline checkbox + form.useOutline = QtGui.QCheckBox() + form.useOutline.setChecked(False) + formLayout.addRow(QtGui.QLabel("Use outline"), form.useOutline) + layout.addLayout(formLayout) # stop button @@ -170,6 +175,7 @@ class TaskPanelOpPage(PathOpGui.TaskPanelPage): # signals.append(self.form.ProcessHoles.stateChanged) signals.append(self.form.ForceInsideOut.stateChanged) signals.append(self.form.FinishingProfile.stateChanged) + signals.append(self.form.useOutline.stateChanged) signals.append(self.form.StopButton.toggled) return signals @@ -191,6 +197,7 @@ class TaskPanelOpPage(PathOpGui.TaskPanelPage): # self.form.ProcessHoles.setChecked(obj.ProcessHoles) self.form.ForceInsideOut.setChecked(obj.ForceInsideOut) self.form.FinishingProfile.setChecked(obj.FinishingProfile) + self.form.useOutline.setChecked(obj.UseOutline) self.setupToolController(obj, self.form.ToolController) self.setupCoolant(obj, self.form.coolantController) self.form.StopButton.setChecked(obj.Stopped) @@ -221,6 +228,7 @@ class TaskPanelOpPage(PathOpGui.TaskPanelPage): obj.ForceInsideOut = self.form.ForceInsideOut.isChecked() obj.FinishingProfile = self.form.FinishingProfile.isChecked() + obj.UseOutline = self.form.useOutline.isChecked() obj.Stopped = self.form.StopButton.isChecked() if(obj.Stopped): self.form.StopButton.setChecked(False) # reset the button