diff --git a/src/Mod/Path/Gui/Resources/panels/PageHeightsEdit.ui b/src/Mod/Path/Gui/Resources/panels/PageHeightsEdit.ui
index 1cae0b407f..8a742e0ebb 100644
--- a/src/Mod/Path/Gui/Resources/panels/PageHeightsEdit.ui
+++ b/src/Mod/Path/Gui/Resources/panels/PageHeightsEdit.ui
@@ -14,20 +14,6 @@
Form
- -
-
-
- <html><head/><body><p>The height where lateral movement of the toolbit is not obstructed by any fixtures or the part / stock material itself.</p></body></html>
-
-
-
- -
-
-
- <html><head/><body><p>The height above which it is safe to move the tool bit with rapid movements. Below this height all lateral and downward movements are performed with feed rate speeds.</p></body></html>
-
-
-
-
@@ -55,13 +41,33 @@
+ -
+
+
+ -999999999.000000000000000
+
+
+ 999999999.000000000000000
+
+
+
+ -
+
+
+ -999999999.000000000000000
+
+
+ 999999999.000000000000000
+
+
+
- Gui::InputField
- QLineEdit
-
+ Gui::QuantitySpinBox
+ QDoubleSpinBox
+
diff --git a/src/Mod/Path/PathScripts/PathOpGui.py b/src/Mod/Path/PathScripts/PathOpGui.py
index 295140fb1e..cc2fbb4507 100644
--- a/src/Mod/Path/PathScripts/PathOpGui.py
+++ b/src/Mod/Path/PathScripts/PathOpGui.py
@@ -533,14 +533,23 @@ class TaskPanelHeightsPage(TaskPanelPage):
'''Page controller for heights.'''
def getForm(self):
return FreeCADGui.PySideUic.loadUi(":/panels/PageHeightsEdit.ui")
+
+ def initPage(self, obj):
+ self.form.safeHeight.setProperty('binding', "%s.SafeHeight" % obj.Name)
+ self.form.clearanceHeight.setProperty('binding', "%s.ClearanceHeight" % obj.Name)
+ self.form.safeHeight.setProperty('unit', obj.SafeHeight.getUserPreferred()[2])
+ self.form.clearanceHeight.setProperty('unit', obj.ClearanceHeight.getUserPreferred()[2])
+
def getTitle(self, obj):
return translate("Path", "Heights")
+
def getFields(self, obj):
PathGui.updateInputField(obj, 'SafeHeight', self.form.safeHeight)
PathGui.updateInputField(obj, 'ClearanceHeight', self.form.clearanceHeight)
def setFields(self, obj):
- self.form.safeHeight.setText(FreeCAD.Units.Quantity(obj.SafeHeight.Value, FreeCAD.Units.Length).UserString)
- self.form.clearanceHeight.setText(FreeCAD.Units.Quantity(obj.ClearanceHeight.Value, FreeCAD.Units.Length).UserString)
+ self.form.safeHeight.setProperty('rawValue', obj.SafeHeight.Value)
+ self.form.safeHeight.setProperty('rawValue', obj.ClearanceHeight.Value)
+
def getSignalsForUpdate(self, obj):
signals = []
signals.append(self.form.safeHeight.editingFinished)