|
|
@@ -2079,9 +2079,15 @@ class FlatCAMGeoEditor(QtCore.QObject):
|
|
|
log.debug("FlatCAMGeoEditor.__init__().entry2option() --> %s" % str(e))
|
|
|
return
|
|
|
|
|
|
+ def gridx_changed(goption, gentry):
|
|
|
+ entry2option(option=goption, entry=gentry)
|
|
|
+ # if the grid link is checked copy the value in the GridX field to GridY
|
|
|
+ if self.app.ui.grid_gap_link_cb.isChecked():
|
|
|
+ self.app.ui.grid_gap_y_entry.set_value(self.app.ui.grid_gap_x_entry.get_value())
|
|
|
+
|
|
|
self.app.ui.grid_gap_x_entry.setValidator(QtGui.QDoubleValidator())
|
|
|
self.app.ui.grid_gap_x_entry.textChanged.connect(
|
|
|
- lambda: entry2option("global_gridx", self.app.ui.grid_gap_x_entry))
|
|
|
+ lambda: gridx_changed("global_gridx", self.app.ui.grid_gap_x_entry))
|
|
|
|
|
|
self.app.ui.grid_gap_y_entry.setValidator(QtGui.QDoubleValidator())
|
|
|
self.app.ui.grid_gap_y_entry.textChanged.connect(
|