From 8a4ec128ef63a14f295a92ddc04a3076bfbb16c9 Mon Sep 17 00:00:00 2001 From: Patrick Felixberger Date: Thu, 20 Feb 2020 16:59:50 +0100 Subject: [PATCH] Rearranged deburr GUI --- .../Gui/Resources/panels/PageOpDeburrEdit.ui | 103 ++++++++++++++---- src/Mod/Path/PathScripts/PathDeburrGui.py | 4 +- 2 files changed, 83 insertions(+), 24 deletions(-) diff --git a/src/Mod/Path/Gui/Resources/panels/PageOpDeburrEdit.ui b/src/Mod/Path/Gui/Resources/panels/PageOpDeburrEdit.ui index d875a47b61..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,52 +29,38 @@ 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> - - - - Direction - - - - - - - <html><head/><body><p>The direction of the operation (CW or CCW).</p></body></html> - - - - + @@ -250,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/PathDeburrGui.py b/src/Mod/Path/PathScripts/PathDeburrGui.py index d7f46f3980..f4b52f78b0 100644 --- a/src/Mod/Path/PathScripts/PathDeburrGui.py +++ b/src/Mod/Path/PathScripts/PathDeburrGui.py @@ -68,8 +68,8 @@ class TaskPanelOpPage(PathOpGui.TaskPanelPage): iconRound.addFile(':/icons/edge-join-round.svg', state=QtGui.QIcon.On) self.form.joinMiter.setIcon(iconMiter) self.form.joinRound.setIcon(iconRound) - self.form.direction.addItem('CW') - self.form.direction.addItem('CCW') + #self.form.direction.addItem('CW') + #self.form.direction.addItem('CCW') def getFields(self, obj): PathGui.updateInputField(obj, 'Width', self.form.value_W)