From f0e14640aee04343eb65e3093f322bc34113c185 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Thu, 3 Sep 2020 13:27:46 +0300 Subject: [PATCH] - minor changes --- appObjects/FlatCAMCNCJob.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/appObjects/FlatCAMCNCJob.py b/appObjects/FlatCAMCNCJob.py index af205513..67606fec 100644 --- a/appObjects/FlatCAMCNCJob.py +++ b/appObjects/FlatCAMCNCJob.py @@ -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 = ()