|
1 | | -VERSION = '1.225.209' |
| 1 | +VERSION = '1.225.210' |
2 | 2 |
|
3 | 3 | ''' |
4 | 4 | qtplasmac_handler.py |
@@ -834,6 +834,7 @@ def init_preferences(self): |
834 | 834 | self.w.cone_size.setValue(self.PREFS.getpref('Preview cone size', 0.5, float, 'GUI_OPTIONS')) |
835 | 835 | self.w.grid_size.setValue(self.PREFS.getpref('Preview grid size', 0, float, 'GUI_OPTIONS')) |
836 | 836 | self.w.table_zoom_scale.setValue(self.PREFS.getpref('T view zoom scale', 1, float, 'GUI_OPTIONS')) |
| 837 | + self.zPlusOverrideJog = self.PREFS.getpref('Override jog inhibit via Z+', False, bool, 'GUI_OPTIONS') |
837 | 838 | self.w.color_foregrnd.setStyleSheet('background-color: {}'.format(self.PREFS.getpref('Foreground', '#ffee06', str, 'COLOR_OPTIONS'))) |
838 | 839 | self.w.color_foregalt.setStyleSheet('background-color: {}'.format(self.PREFS.getpref('Highlight', '#ffee06', str, 'COLOR_OPTIONS'))) |
839 | 840 | self.w.color_led.setStyleSheet('background-color: {}'.format(self.PREFS.getpref('LED', '#ffee06', str, 'COLOR_OPTIONS'))) |
@@ -1098,6 +1099,7 @@ def closing_cleanup__(self): |
1098 | 1099 | self.PREFS.putpref('Preview cone size', self.w.cone_size.value(), float, 'GUI_OPTIONS') |
1099 | 1100 | self.PREFS.putpref('Preview grid size', self.w.grid_size.value(), float, 'GUI_OPTIONS') |
1100 | 1101 | self.PREFS.putpref('T view zoom scale', self.w.table_zoom_scale.value(), float, 'GUI_OPTIONS') |
| 1102 | + self.PREFS.putpref('Override jog inhibit via Z+', self.zPlusOverrideJog, bool, 'GUI_OPTIONS') |
1101 | 1103 | self.PREFS.putpref('THC enable', self.w.thc_enable.isChecked(), bool, 'ENABLE_OPTIONS') |
1102 | 1104 | self.PREFS.putpref('Corner lock enable', self.w.cornerlock_enable.isChecked(), bool, 'ENABLE_OPTIONS') |
1103 | 1105 | self.PREFS.putpref('Kerf cross enable', self.w.kerfcross_enable.isChecked(), bool, 'ENABLE_OPTIONS') |
@@ -1860,6 +1862,8 @@ def jogs_label_pressed(self): |
1860 | 1862 |
|
1861 | 1863 | def gui_button_jog(self, state, joint, direction): |
1862 | 1864 | shift = False |
| 1865 | + if state and joint == 'z' and direction == 1 and self.zPlusOverrideJog and self.w.chk_override_jog.isEnabled(): |
| 1866 | + self.w.chk_override_jog.setChecked(True) |
1863 | 1867 | if STATUS.is_joint_mode(): |
1864 | 1868 | self.kb_jog(state, self.coordinates.index(joint), direction, shift) |
1865 | 1869 | else: |
@@ -5657,6 +5661,8 @@ def on_keycall_YNEG(self, event, state, shift, cntrl): |
5657 | 5661 |
|
5658 | 5662 | def on_keycall_ZPOS(self, event, state, shift, cntrl): |
5659 | 5663 | if self.jog_is_valid('z_plus', event): |
| 5664 | + if self.zPlusOverrideJog and self.w.chk_override_jog.isEnabled(): |
| 5665 | + self.w.chk_override_jog.setChecked(True) |
5660 | 5666 | if STATUS.is_joint_mode(): |
5661 | 5667 | self.kb_jog(state, self.coordinates.index('z'), 1, shift) |
5662 | 5668 | else: |
|
0 commit comments