- finished the Calibration Tool
- changed the Scale Entry in Object UI to FCEntry() GUI element in order to allow expressions to be entered. E.g: 1/25.4
This commit is contained in:
@@ -754,6 +754,7 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
|
||||
_("Copper Thieving Tool"))
|
||||
|
||||
self.fiducials_btn = self.toolbartools.addAction(QtGui.QIcon('share/fiducials_32.png'), _("Fiducials Tool"))
|
||||
self.cal_btn = self.toolbartools.addAction(QtGui.QIcon('share/calibrate_32.png'), _("Calibration Tool"))
|
||||
|
||||
# ########################################################################
|
||||
# ########################## Excellon Editor Toolbar# ####################
|
||||
@@ -2198,6 +2199,7 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
|
||||
_("Copper Thieving Tool"))
|
||||
|
||||
self.fiducials_btn = self.toolbartools.addAction(QtGui.QIcon('share/fiducials_32.png'), _("Fiducials Tool"))
|
||||
self.cal_btn = self.toolbartools.addAction(QtGui.QIcon('share/calibrate_32.png'), _("Calibration Tool"))
|
||||
|
||||
# ## Excellon Editor Toolbar # ##
|
||||
self.select_drill_btn = self.exc_edit_toolbar.addAction(QtGui.QIcon('share/pointer32.png'), _("Select"))
|
||||
|
||||
@@ -100,13 +100,10 @@ class ObjectUI(QtWidgets.QWidget):
|
||||
faclabel = QtWidgets.QLabel('%s:' % _('Factor'))
|
||||
faclabel.setToolTip(
|
||||
_("Factor by which to multiply\n"
|
||||
"geometric features of this object.")
|
||||
"geometric features of this object.\n"
|
||||
"Expressions are allowed. E.g: 1/25.4")
|
||||
)
|
||||
self.scale_entry = FCDoubleSpinner()
|
||||
self.scale_entry.set_precision(self.decimals)
|
||||
self.scale_entry.setRange(0.0, 9999.9999)
|
||||
self.scale_entry.setSingleStep(0.1)
|
||||
|
||||
self.scale_entry = FCEntry()
|
||||
self.scale_entry.set_value(1.0)
|
||||
|
||||
# GO Button
|
||||
|
||||
@@ -6513,6 +6513,33 @@ class Tools2CalPrefGroupUI(OptionsGroupUI):
|
||||
grid_lay.addWidget(toolchangez_lbl, 6, 0)
|
||||
grid_lay.addWidget(self.toolchangez_entry, 6, 1, 1, 2)
|
||||
|
||||
# Toolchange X-Y entry
|
||||
toolchangexy_lbl = QtWidgets.QLabel('%s:' % _('Toolchange X-Y'))
|
||||
toolchangexy_lbl.setToolTip(
|
||||
_("Toolchange X,Y position.\n"
|
||||
"If no value is entered then the current\n"
|
||||
"(x, y) point will be used,")
|
||||
)
|
||||
|
||||
self.toolchange_xy_entry = FCEntry()
|
||||
|
||||
grid_lay.addWidget(toolchangexy_lbl, 7, 0)
|
||||
grid_lay.addWidget(self.toolchange_xy_entry, 7, 1, 1, 2)
|
||||
|
||||
# Second point choice
|
||||
second_point_lbl = QtWidgets.QLabel('%s:' % _("Second point"))
|
||||
second_point_lbl.setToolTip(
|
||||
_("Second point in the Gcode verification can be:\n"
|
||||
"- top-left -> the user will align the PCB vertically\n"
|
||||
"- bottom-right -> the user will align the PCB horizontally")
|
||||
)
|
||||
self.second_point_radio = RadioSet([{'label': _('Top-Left'), 'value': 'tl'},
|
||||
{'label': _('Bottom-Right'), 'value': 'br'}],
|
||||
orientation='vertical')
|
||||
|
||||
grid_lay.addWidget(second_point_lbl, 8, 0)
|
||||
grid_lay.addWidget(self.second_point_radio, 8, 1, 1, 2)
|
||||
|
||||
self.layout.addStretch()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user