Skip to content

Commit

Permalink
Added 4th axis support to drilling GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
Schildkroet committed Mar 22, 2020
1 parent 9f76610 commit 1955c62
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
35 changes: 33 additions & 2 deletions src/Mod/Path/Gui/Resources/panels/PageOpDrillingEdit.ui
Expand Up @@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>572</width>
<height>419</height>
<width>454</width>
<height>386</height>
</rect>
</property>
<property name="windowTitle">
Expand Down Expand Up @@ -154,6 +154,37 @@
</item>
</widget>
</item>
<item row="8" column="6">
<widget class="QComboBox" name="enableRotation">
<item>
<property name="text">
<string>Off</string>
</property>
</item>
<item>
<property name="text">
<string>A(x)</string>
</property>
</item>
<item>
<property name="text">
<string>B(y)</string>
</property>
</item>
<item>
<property name="text">
<string>A &amp; B</string>
</property>
</item>
</widget>
</item>
<item row="8" column="4">
<widget class="QLabel" name="label">
<property name="text">
<string>Enable Rotation</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
Expand Down
4 changes: 4 additions & 0 deletions src/Mod/Path/PathScripts/PathDrillingGui.py
Expand Up @@ -99,6 +99,8 @@ def getFields(self, obj):
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)
Expand All @@ -122,6 +124,7 @@ def setFields(self, obj):

self.setupToolController(obj, self.form.toolController)
self.setupCoolant(obj, self.form.coolantController)
self.selectInComboBox(obj.EnableRotation, self.form.enableRotation)


def getSignalsForUpdate(self, obj):
Expand All @@ -137,6 +140,7 @@ def getSignalsForUpdate(self, obj):
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

Expand Down

0 comments on commit 1955c62

Please sign in to comment.