- Milling Tool - default state is for all the tools in the Tools Table to be selected

This commit is contained in:
Marius Stanciu
2020-11-15 03:47:25 +02:00
committed by Marius Stanciu
parent 9cff7ccaff
commit 07df345f12
2 changed files with 13 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ CHANGELOG for FlatCAM beta
- working on adding new feature to Punch Gerber Tool - manual selection of pads to be punched
- Punch Gerber Tool - added methods to draw the pads selected and some UI buttons to select all and clear all to help in the selection
- Milling Tool - default state is for all the tools in the Tools Table to be selected
14.11.2020

View File

@@ -668,6 +668,18 @@ class ToolMilling(AppTool, Excellon):
self.ui_connect()
self.ui.geo_tools_table.selectAll()
# set the text on tool_data_label after loading the object
sel_rows = set()
sel_items = self.ui.geo_tools_table.selectedItems()
for it in sel_items:
sel_rows.add(it.row())
if len(sel_rows) > 1:
self.ui.tool_data_label.setText(
"<b>%s: <font color='#0000FF'>%s</font></b>" % (_('Parameters for'), _("Multiple Tools"))
)
def build_ui_exc(self):
self.ui_disconnect()