- some refactoring in the keys of the defaults dictionary

- fixed an ambiguity in the Tools Database GUI elements
This commit is contained in:
Marius Stanciu
2020-10-23 23:14:13 +03:00
committed by Marius
parent 5a929a4c60
commit f771838c81
15 changed files with 576 additions and 657 deletions

View File

@@ -428,23 +428,23 @@ class PreferencesUIManager:
"tools_cutout_mb_spacing": self.ui.tools_defaults_form.tools_cutout_group.mb_spacing_entry,
# Paint Area Tool
"tools_painttooldia": self.ui.tools_defaults_form.tools_paint_group.painttooldia_entry,
"tools_paintorder": self.ui.tools_defaults_form.tools_paint_group.paint_order_radio,
"tools_paintoverlap": self.ui.tools_defaults_form.tools_paint_group.paintoverlap_entry,
"tools_paintoffset": self.ui.tools_defaults_form.tools_paint_group.paintmargin_entry,
"tools_paintmethod": self.ui.tools_defaults_form.tools_paint_group.paintmethod_combo,
"tools_selectmethod": self.ui.tools_defaults_form.tools_paint_group.selectmethod_combo,
"tools_paint_tooldia": self.ui.tools_defaults_form.tools_paint_group.painttooldia_entry,
"tools_paint_order": self.ui.tools_defaults_form.tools_paint_group.paint_order_radio,
"tools_paint_overlap": self.ui.tools_defaults_form.tools_paint_group.paintoverlap_entry,
"tools_paint_offset": self.ui.tools_defaults_form.tools_paint_group.paintmargin_entry,
"tools_paint_method": self.ui.tools_defaults_form.tools_paint_group.paintmethod_combo,
"tools_paint_selectmethod": self.ui.tools_defaults_form.tools_paint_group.selectmethod_combo,
"tools_paint_area_shape": self.ui.tools_defaults_form.tools_paint_group.area_shape_radio,
"tools_pathconnect": self.ui.tools_defaults_form.tools_paint_group.pathconnect_cb,
"tools_paintcontour": self.ui.tools_defaults_form.tools_paint_group.contour_cb,
"tools_paint_connect": self.ui.tools_defaults_form.tools_paint_group.pathconnect_cb,
"tools_paint_contour": self.ui.tools_defaults_form.tools_paint_group.contour_cb,
"tools_paint_plotting": self.ui.tools_defaults_form.tools_paint_group.paint_plotting_radio,
"tools_paintrest": self.ui.tools_defaults_form.tools_paint_group.rest_cb,
"tools_painttool_type": self.ui.tools_defaults_form.tools_paint_group.tool_type_radio,
"tools_paintcutz": self.ui.tools_defaults_form.tools_paint_group.cutz_entry,
"tools_painttipdia": self.ui.tools_defaults_form.tools_paint_group.tipdia_entry,
"tools_painttipangle": self.ui.tools_defaults_form.tools_paint_group.tipangle_entry,
"tools_paintnewdia": self.ui.tools_defaults_form.tools_paint_group.newdia_entry,
"tools_paint_rest": self.ui.tools_defaults_form.tools_paint_group.rest_cb,
"tools_paint_tool_type": self.ui.tools_defaults_form.tools_paint_group.tool_type_radio,
"tools_paint_cutz": self.ui.tools_defaults_form.tools_paint_group.cutz_entry,
"tools_paint_tipdia": self.ui.tools_defaults_form.tools_paint_group.tipdia_entry,
"tools_paint_tipangle": self.ui.tools_defaults_form.tools_paint_group.tipangle_entry,
"tools_paint_newdia": self.ui.tools_defaults_form.tools_paint_group.newdia_entry,
# 2-sided Tool
"tools_2sided_mirror_axis": self.ui.tools_defaults_form.tools_2sided_group.mirror_axis_radio,

View File

@@ -185,7 +185,7 @@ class ToolsCutoutPrefGroupUI(OptionsGroupUI):
# Mouse Bites Tool Diameter
self.mb_dia_label = FCLabel('%s:' % _("Tool Diameter"))
self.mb_dia_label.setToolTip(
_("The drill hole diameter when doing mpuse bites.")
_("The drill hole diameter when doing mouse bites.")
)
self.mb_dia_entry = FCDoubleSpinner()
self.mb_dia_entry.set_precision(self.decimals)