- in 2Sided Plugin advanced mode fixed the bounds calculation: if no object is selected on canvas then the object selected in Source Object is used

- in 2Sided Plugin added a new typ of alignment drills: manual. This mode will no longer add pairs of drill holes mirrored against reference but only add in place drill holes
This commit is contained in:
Marius Stanciu
2021-10-04 12:02:38 +03:00
committed by Marius
parent e54b94f915
commit f4636ec71b
7 changed files with 120 additions and 107 deletions

View File

@@ -470,7 +470,7 @@ class PreferencesUIManager:
"tools_2sided_mirror_axis": self.ui.plugin_eng_pref_form.tools_2sided_group.mirror_axis_radio,
"tools_2sided_axis_loc": self.ui.plugin_eng_pref_form.tools_2sided_group.axis_location_radio,
"tools_2sided_drilldia": self.ui.plugin_eng_pref_form.tools_2sided_group.drill_dia_entry,
"tools_2sided_allign_axis": self.ui.plugin_eng_pref_form.tools_2sided_group.align_axis_radio,
"tools_2sided_align_type": self.ui.plugin_eng_pref_form.tools_2sided_group.align_type_radio,
# Film Tool
"tools_film_shape": self.ui.plugin_pref_form.tools_film_group.convex_box_cb,

View File

@@ -53,15 +53,24 @@ class Tools2sidedPrefGroupUI(OptionsGroupUI):
param_grid.addWidget(self.drill_dia_entry, 0, 1)
# ## Alignment Axis
self.align_ax_label = FCLabel('%s:' % _("Align Axis"))
self.align_ax_label.setToolTip(
_("Mirror vertically (X) or horizontally (Y).")
self.align_type_label = FCLabel('%s:' % _("Align Axis"))
self.align_type_label.setToolTip(
_("The content of the Excellon file.\n"
"X - Pairs of drill holes mirrored vertically from reference point\n"
"Y - Pairs of drill holes mirrored horizontally from reference point\n"
"Manual - no mirroring; drill holes in place")
)
self.align_type_radio = RadioSet(
[
{'label': 'X', 'value': 'X'},
{'label': 'Y', 'value': 'Y'},
{'label': _("Manual"), 'value': 'manual'}
],
compact=True
)
self.align_axis_radio = RadioSet([{'label': 'X', 'value': 'X'},
{'label': 'Y', 'value': 'Y'}], compact=True)
param_grid.addWidget(self.align_ax_label, 1, 0)
param_grid.addWidget(self.align_axis_radio, 1, 1)
param_grid.addWidget(self.align_type_label, 1, 0)
param_grid.addWidget(self.align_type_radio, 1, 1)
# ## Axis
self.mirror_axis_radio = RadioSet([{'label': 'X', 'value': 'X'},