Show layer height in Simulation View slider labels

Adds display of the current and minimum layer heights (in mm) to the Simulation View slider labels. Implements new properties and logic in SimulationView and SimulationViewProxy to retrieve accurate layer heights for both sliced and gcode data. Bumps plugin version to 1.1.0.
This commit is contained in:
HellAholic 2025-12-09 17:22:32 +01:00
parent 9edd99f94a
commit f4430718c7
5 changed files with 91 additions and 1 deletions

View file

@ -46,6 +46,14 @@ class SimulationViewProxy(QObject):
def minimumLayer(self):
return self._simulation_view.getMinimumLayer()
@pyqtProperty(float, notify=currentLayerChanged)
def currentLayerHeight(self):
return self._simulation_view.getCurrentLayerHeight()
@pyqtProperty(float, notify=currentLayerChanged)
def minimumLayerHeight(self):
return self._simulation_view.getMinimumLayerHeight()
@pyqtProperty(int, notify=maxPathsChanged)
def numPaths(self):
return self._simulation_view.getMaxPaths()