- in Excellon Object UI, Advanced Mode, added a Tools Table context menu allowing to copy the tool diameters in the selected rows to clipboard

This commit is contained in:
Marius Stanciu
2022-02-18 15:51:21 +02:00
committed by Marius Stanciu
parent 4d2181eda7
commit 14d9ea5470
6 changed files with 68 additions and 11 deletions

View File

@@ -3806,7 +3806,7 @@ class ToolMilling(AppTool, Excellon):
sel_rows.add(idx.row())
if len(sel_rows) != 1:
self.app.inform.emit("[WARNING_NOTCL] %s" % _("Multiple areas selected. Only one area is allowed."))
self.app.inform.emit("[WARNING_NOTCL] %s" % _("Only one selected row is allowed."))
return
row_idx = list(sel_rows)[0]
@@ -3814,7 +3814,7 @@ class ToolMilling(AppTool, Excellon):
poly_coords = list(poly.exterior.coords)
self.app.clipboard.setText(str(poly_coords))
self.app.inform.emit('[success] %s' % _("Coordinates copied to clipboard."))
self.app.inform.emit('[success] %s' % _("Copied to clipboard."))
def draw_sel_shape(self):
sel_model = self.ui.exclusion_table.selectionModel()