- Gerber UI - optimized the mark shapes to use only on ShapeCollection

This commit is contained in:
Marius Stanciu
2020-07-14 14:20:19 +03:00
committed by Marius
parent c6baa8ca60
commit 5badd7a26b
7 changed files with 36 additions and 14 deletions

View File

@@ -603,6 +603,16 @@ class ExcellonObjectUI(ObjectUI):
# this column is not used; reserved for future usage
self.tools_table.setColumnHidden(4, True)
# Excellon Tools autoload from DB
# Auto Load Tools from DB
self.autoload_db_cb = FCCheckBox('%s' % _("Auto load from DB"))
self.autoload_db_cb.setToolTip(
_("Automatic replacement of the tools from related application tools\n"
"with tools from DB that have a close diameter value.")
)
self.tools_box.addWidget(self.autoload_db_cb)
# Editor
self.editor_button = QtWidgets.QPushButton(_('Excellon Editor'))
self.editor_button.setToolTip(

View File

@@ -199,6 +199,7 @@ class PreferencesUIManager:
# Excellon Advanced Options
"excellon_tools_table_display": self.ui.excellon_defaults_form.excellon_adv_opt_group.table_visibility_cb,
"excellon_autoload_db": self.ui.excellon_defaults_form.excellon_adv_opt_group.autoload_db_cb,
# Excellon Export
"excellon_exp_units": self.ui.excellon_defaults_form.excellon_exp_group.excellon_units_radio,

View File

@@ -51,4 +51,12 @@ class ExcellonAdvOptPrefGroupUI(OptionsGroupUI):
)
grid0.addWidget(self.table_visibility_cb, 0, 0, 1, 2)
# Auto Load Tools from DB
self.autoload_db_cb = FCCheckBox('%s' % _("Auto load from DB"))
self.autoload_db_cb.setToolTip(
_("Automatic replacement of the tools from related application tools\n"
"with tools from DB that have a close diameter value.")
)
grid0.addWidget(self.autoload_db_cb, 1, 0, 1, 2)
self.layout.addStretch()