- Gerber UI - optimized the mark shapes to use only on ShapeCollection
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user