- 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:
@@ -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,
|
||||
|
||||
@@ -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'},
|
||||
|
||||
Reference in New Issue
Block a user