- added the circle approximation parameter for Excellon geometry in Preferences

- updated the language strings
This commit is contained in:
Marius Stanciu
2021-10-04 20:57:42 +03:00
committed by Marius
parent ab704e2a60
commit 1b6b432f7c
32 changed files with 10218 additions and 9878 deletions

View File

@@ -169,6 +169,7 @@ class PreferencesUIManager:
# Excellon General
"excellon_plot": self.ui.excellon_pref_form.excellon_gen_group.plot_cb,
"excellon_circle_steps": self.ui.excellon_pref_form.excellon_gen_group.circle_steps_entry,
"excellon_solid": self.ui.excellon_pref_form.excellon_gen_group.solid_cb,
"excellon_multicolored": self.ui.excellon_pref_form.excellon_gen_group.multicolored_cb,
"excellon_merge_fuse_tools": self.ui.excellon_pref_form.excellon_gen_group.fuse_tools_cb,

View File

@@ -43,8 +43,8 @@ class CNCJobGenPrefGroupUI(OptionsGroupUI):
# ###################################################################
self.steps_per_circle_label = FCLabel('%s:' % _("Circle Steps"))
self.steps_per_circle_label.setToolTip(
_("The number of circle steps for <b>GCode</b> \n"
"circle and arc shapes linear approximation.")
_("The number of circle steps for \n"
"linear approximation of circles.")
)
self.steps_per_circle_entry = FCSpinner()

View File

@@ -57,6 +57,18 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
)
plot_grid.addWidget(self.multicolored_cb, 0, 2)
# Number of circle steps for circular aperture linear approximation
self.circle_steps_label = FCLabel('%s:' % _("Circle Steps"))
self.circle_steps_label.setToolTip(
_("The number of circle steps for \n"
"linear approximation of circles.")
)
self.circle_steps_entry = FCSpinner()
self.circle_steps_entry.set_range(0, 9999)
plot_grid.addWidget(self.circle_steps_label, 2, 0)
plot_grid.addWidget(self.circle_steps_entry, 2, 1, 1, 2)
# separator_line = QtWidgets.QFrame()
# separator_line.setFrameShape(QtWidgets.QFrame.Shape.HLine)
# separator_line.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)

View File

@@ -52,8 +52,8 @@ class GeometryGenPrefGroupUI(OptionsGroupUI):
# Number of circle steps for circular aperture linear approximation
self.circle_steps_label = FCLabel('%s:' % _("Circle Steps"))
self.circle_steps_label.setToolTip(
_("The number of circle steps for <b>Geometry</b> \n"
"circle and arc shapes linear approximation.")
_("The number of circle steps for \n"
"linear approximation of circles.")
)
self.circle_steps_entry = FCSpinner()
self.circle_steps_entry.set_range(0, 999)

View File

@@ -61,8 +61,8 @@ class GerberGenPrefGroupUI(OptionsGroupUI):
# Number of circle steps for circular aperture linear approximation
self.circle_steps_label = FCLabel('%s:' % _("Circle Steps"))
self.circle_steps_label.setToolTip(
_("The number of circle steps for Gerber \n"
"circular aperture linear approximation.")
_("The number of circle steps for \n"
"linear approximation of circles.")
)
self.circle_steps_entry = FCSpinner()
self.circle_steps_entry.set_range(0, 9999)