- minor changes

This commit is contained in:
Marius Stanciu 2020-09-03 13:27:46 +03:00 committed by Marius
parent af3d855285
commit f0e14640ae
1 changed files with 5 additions and 4 deletions

View File

@ -577,7 +577,7 @@ class CNCJobObject(FlatCAMObj, CNCjob):
self.ui.editor_button.clicked.connect(lambda: self.app.object2editor())
# autolevelling signals
self.ui.sal_cb.stateChanged.connect(self.on_autolevelling)
self.ui.sal_cb.stateChanged.connect(self.on_toggle_autolevelling)
self.ui.al_mode_radio.activated_custom.connect(self.on_mode_radio)
self.ui.al_method_radio.activated_custom.connect(self.on_method_radio)
self.ui.al_controller_combo.currentIndexChanged.connect(self.on_controller_change)
@ -1098,13 +1098,14 @@ class CNCJobObject(FlatCAMObj, CNCjob):
if key == QtCore.Qt.Key_J or key == 'J':
self.app.on_jump_to()
def on_autolevelling(self, state):
def on_toggle_autolevelling(self, state):
self.ui.al_frame.show() if state else self.ui.al_frame.hide()
self.app.defaults["cncjob_al_status"] = True if state else False
gcode_levelled = ''
def autolevell_gcode(self):
pass
def line_autolevell(self, gcode_line):
def autolevell_gcode_line(self, gcode_line):
al_method = self.ui.al_method_radio.get_value()
coords = ()