Skip to content

Commit 00ab39f

Browse files
committed
G28 G30 update
1 parent a0ac80c commit 00ab39f

19 files changed

+86747
-83819
lines changed

cn5X.py

+15-2
Original file line numberDiff line numberDiff line change
@@ -809,6 +809,7 @@ def on_gotoG28(self):
809809
Make a rapid move from current location to the position defined by the last G28.1
810810
If no positions are stored with G28.1 then all axes will go to the machine origin.
811811
'''
812+
'''
812813
if not self.__settings.value("dontConfirmG28", False, type=bool):
813814
# Confirmation :
814815
m = msgBox(
@@ -830,13 +831,20 @@ def on_gotoG28(self):
830831
else:
831832
# Envoi sans confirmation
832833
self.__grblCom.gcodePush("G28")
834+
'''
835+
''' Appel de la boite de dialogue G28 '''
836+
dlg = dlgG28_30_1("G28", self.__grblCom, self.__decode, self.__nbAxis, self.__axisNames)
837+
dlg.setParent(self)
838+
dlg.showDialog()
839+
833840

834841
@pyqtSlot()
835842
def on_gotoG30(self):
836843
'''
837844
Make a rapid move from current location to the position defined by the last G30.1
838845
If no positions are stored with G30.1 then all axes will go to the machine origin.
839846
'''
847+
'''
840848
if not self.__settings.value("dontConfirmG30", False, type=bool):
841849
# Confirmation :
842850
m = msgBox(
@@ -858,20 +866,25 @@ def on_gotoG30(self):
858866
else:
859867
# Envoi sans confirmation
860868
self.__grblCom.gcodePush("G30")
869+
'''
870+
''' Appel de la boite de dialogue G30 '''
871+
dlg = dlgG28_30_1("G30", self.__grblCom, self.__decode, self.__nbAxis, self.__axisNames)
872+
dlg.setParent(self)
873+
dlg.showDialog()
861874

862875

863876
@pyqtSlot()
864877
def on_mnuDefineG28(self):
865878
''' Appel de la boite de dialogue G28.1 '''
866-
dlg = dlgG28_30_1("G28", self.__grblCom, self.__decode, self.__nbAxis, self.__axisNames)
879+
dlg = dlgG28_30_1("G28.1", self.__grblCom, self.__decode, self.__nbAxis, self.__axisNames)
867880
dlg.setParent(self)
868881
dlg.showDialog()
869882

870883

871884
@pyqtSlot()
872885
def on_mnuDefineG30(self):
873886
''' Appel de la boite de dialogue G30.1 '''
874-
dlg = dlgG28_30_1("G30", self.__grblCom, self.__decode, self.__nbAxis, self.__axisNames)
887+
dlg = dlgG28_30_1("G30.1", self.__grblCom, self.__decode, self.__nbAxis, self.__axisNames)
875888
dlg.setParent(self)
876889
dlg.showDialog()
877890

cn5X.qrc

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
<RCC>
22
<qresource prefix="cn5X">
3-
<file>images/origine.svg</file>
43
<file>images/questionG28.1.svg</file>
5-
<file>images/questionG33.1.svg</file>
4+
<file>images/questionG28.svg</file>
5+
<file>images/questionG30.1.svg</file>
6+
<file>images/questionG30.svg</file>
7+
<file>images/origine.svg</file>
68
<file>images/btnEmergency.svg</file>
9+
<file>images/chkBoxChecked.svg</file>
10+
<file>images/chkBoxDisabledChecked.svg</file>
11+
<file>images/chkBoxDisabledUnChecked.svg</file>
12+
<file>images/chkBoxUnChecked.svg</file>
13+
<file>images/questionG28.svg</file>
14+
<file>images/questionG30.svg</file>
715
<file>images/btnEmergencyOff.svg</file>
816
<file>images/btnProbeInCercle.svg</file>
917
<file>images/btnProbeInX+.svg</file>

cn5X_rc.py

+84,475-82,901
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)