- improvements in the Punch Gerber Tool aperture markings

- improved the Geometry Object functionality in regards of Tools DB, deleting a tool and adding a tool
- when using the 'T' shortcut key with Properties Tab in focus and populated with the properties of a Geometry Object made the popped up spinner to have the value autoselected
This commit is contained in:
Marius Stanciu
2020-10-30 04:09:23 +02:00
committed by Marius
parent 21f5090372
commit 084643eb95
5 changed files with 45 additions and 11 deletions

View File

@@ -4436,6 +4436,7 @@ class App(QtCore.QObject):
text='%s:' % _('Enter a Tool Diameter'),
min=0.0000, max=100.0000, decimals=self.decimals, step=0.1)
tool_add_popup.setWindowIcon(QtGui.QIcon(self.resource_location + '/letter_t_32.png'))
tool_add_popup.wdg.selectAll()
val, ok = tool_add_popup.get_value()
if ok:
@@ -4443,7 +4444,7 @@ class App(QtCore.QObject):
self.inform.emit('[WARNING_NOTCL] %s' %
_("Please enter a tool diameter with non-zero value, in Float format."))
return
self.collection.get_active().on_tool_add(dia=float(val))
self.collection.get_active().on_tool_add(clicked_state=False, dia=float(val))
else:
self.inform.emit('[WARNING_NOTCL] %s...' % _("Adding Tool cancelled"))
else: