- made some mods to what can be translated as some of the translations interfered with the correct functioning of FlatCAM
- updated the translations
This commit is contained in:
parent
6f3cbf1077
commit
747a0817f3
|
@ -5056,8 +5056,8 @@ class App(QtCore.QObject):
|
||||||
action.triggered.connect(self.set_grid)
|
action.triggered.connect(self.set_grid)
|
||||||
|
|
||||||
self.ui.cmenu_gridmenu.addSeparator()
|
self.ui.cmenu_gridmenu.addSeparator()
|
||||||
grid_add = self.ui.cmenu_gridmenu.addAction(QtGui.QIcon('share/plus32.png'), "Add")
|
grid_add = self.ui.cmenu_gridmenu.addAction(QtGui.QIcon('share/plus32.png'), _("Add"))
|
||||||
grid_delete = self.ui.cmenu_gridmenu.addAction(QtGui.QIcon('share/delete32.png'), "Delete")
|
grid_delete = self.ui.cmenu_gridmenu.addAction(QtGui.QIcon('share/delete32.png'), _("Delete"))
|
||||||
grid_add.triggered.connect(self.on_grid_add)
|
grid_add.triggered.connect(self.on_grid_add)
|
||||||
grid_delete.triggered.connect(self.on_grid_delete)
|
grid_delete.triggered.connect(self.on_grid_delete)
|
||||||
|
|
||||||
|
@ -5069,8 +5069,8 @@ class App(QtCore.QObject):
|
||||||
## Current application units in lower Case
|
## Current application units in lower Case
|
||||||
units = self.ui.general_defaults_form.general_app_group.units_radio.get_value().lower()
|
units = self.ui.general_defaults_form.general_app_group.units_radio.get_value().lower()
|
||||||
|
|
||||||
grid_add_popup = FCInputDialog(title="New Grid ...",
|
grid_add_popup = FCInputDialog(title=_("New Grid ..."),
|
||||||
text='Enter a Grid VAlue:',
|
text=_('Enter a Grid Value:'),
|
||||||
min=0.0000, max=99.9999, decimals=4)
|
min=0.0000, max=99.9999, decimals=4)
|
||||||
grid_add_popup.setWindowIcon(QtGui.QIcon('share/plus32.png'))
|
grid_add_popup.setWindowIcon(QtGui.QIcon('share/plus32.png'))
|
||||||
|
|
||||||
|
|
|
@ -2724,7 +2724,7 @@ class FlatCAMGeometry(FlatCAMObj, Geometry):
|
||||||
# those elements are the ones used for generating GCode
|
# those elements are the ones used for generating GCode
|
||||||
self.sel_tools = {}
|
self.sel_tools = {}
|
||||||
|
|
||||||
self.offset_item_options = [_("Path"), _("In"), _("Out"), _("Custom")]
|
self.offset_item_options = ["Path", "In", "Out", "Custom"]
|
||||||
self.type_item_options = [_("Iso"), _("Rough"), _("Finish")]
|
self.type_item_options = [_("Iso"), _("Rough"), _("Finish")]
|
||||||
self.tool_type_item_options = ["C1", "C2", "C3", "C4", "B", "V"]
|
self.tool_type_item_options = ["C1", "C2", "C3", "C4", "B", "V"]
|
||||||
|
|
||||||
|
@ -2966,7 +2966,7 @@ class FlatCAMGeometry(FlatCAMObj, Geometry):
|
||||||
self.tools.update({
|
self.tools.update({
|
||||||
self.tooluid: {
|
self.tooluid: {
|
||||||
'tooldia': float(self.options["cnctooldia"]),
|
'tooldia': float(self.options["cnctooldia"]),
|
||||||
'offset': _('Path'),
|
'offset': ('Path'),
|
||||||
'offset_value': 0.0,
|
'offset_value': 0.0,
|
||||||
'type': _('Rough'),
|
'type': _('Rough'),
|
||||||
'tool_type': 'C1',
|
'tool_type': 'C1',
|
||||||
|
@ -3048,7 +3048,7 @@ class FlatCAMGeometry(FlatCAMObj, Geometry):
|
||||||
tool_offset = self.ui.geo_tools_table.cellWidget(current_row, 2)
|
tool_offset = self.ui.geo_tools_table.cellWidget(current_row, 2)
|
||||||
if tool_offset is not None:
|
if tool_offset is not None:
|
||||||
tool_offset_txt = tool_offset.currentText()
|
tool_offset_txt = tool_offset.currentText()
|
||||||
if tool_offset_txt == _('Custom'):
|
if tool_offset_txt == ('Custom'):
|
||||||
self.ui.tool_offset_entry.show()
|
self.ui.tool_offset_entry.show()
|
||||||
self.ui.tool_offset_lbl.show()
|
self.ui.tool_offset_lbl.show()
|
||||||
else:
|
else:
|
||||||
|
@ -3253,7 +3253,7 @@ class FlatCAMGeometry(FlatCAMObj, Geometry):
|
||||||
self.tools.update({
|
self.tools.update({
|
||||||
self.tooluid: {
|
self.tooluid: {
|
||||||
'tooldia': tooldia,
|
'tooldia': tooldia,
|
||||||
'offset': _('Path'),
|
'offset': ('Path'),
|
||||||
'offset_value': 0.0,
|
'offset_value': 0.0,
|
||||||
'type': _('Rough'),
|
'type': _('Rough'),
|
||||||
'tool_type': 'C1',
|
'tool_type': 'C1',
|
||||||
|
@ -3622,7 +3622,7 @@ class FlatCAMGeometry(FlatCAMObj, Geometry):
|
||||||
cb_txt = cw.currentText()
|
cb_txt = cw.currentText()
|
||||||
if cw_col == 2:
|
if cw_col == 2:
|
||||||
tooluid_value['offset'] = cb_txt
|
tooluid_value['offset'] = cb_txt
|
||||||
if cb_txt == _('Custom'):
|
if cb_txt == ('Custom'):
|
||||||
self.ui.tool_offset_entry.show()
|
self.ui.tool_offset_entry.show()
|
||||||
self.ui.tool_offset_lbl.show()
|
self.ui.tool_offset_lbl.show()
|
||||||
else:
|
else:
|
||||||
|
@ -4095,13 +4095,13 @@ class FlatCAMGeometry(FlatCAMObj, Geometry):
|
||||||
diadict_key: datadict
|
diadict_key: datadict
|
||||||
})
|
})
|
||||||
|
|
||||||
if dia_cnc_dict['offset'] == 'in':
|
if dia_cnc_dict['offset'] == ('in'):
|
||||||
tool_offset = -dia_cnc_dict['tooldia'] / 2
|
tool_offset = -dia_cnc_dict['tooldia'] / 2
|
||||||
offset_str = 'inside'
|
offset_str = 'inside'
|
||||||
elif dia_cnc_dict['offset'].lower() == 'out':
|
elif dia_cnc_dict['offset'].lower() == ('out'):
|
||||||
tool_offset = dia_cnc_dict['tooldia'] / 2
|
tool_offset = dia_cnc_dict['tooldia'] / 2
|
||||||
offset_str = 'outside'
|
offset_str = 'outside'
|
||||||
elif dia_cnc_dict['offset'].lower() == 'path':
|
elif dia_cnc_dict['offset'].lower() == ('path'):
|
||||||
offset_str = 'onpath'
|
offset_str = 'onpath'
|
||||||
tool_offset = 0.0
|
tool_offset = 0.0
|
||||||
else:
|
else:
|
||||||
|
@ -4328,13 +4328,13 @@ class FlatCAMGeometry(FlatCAMObj, Geometry):
|
||||||
diadict_key: datadict
|
diadict_key: datadict
|
||||||
})
|
})
|
||||||
|
|
||||||
if dia_cnc_dict['offset'] == 'in':
|
if dia_cnc_dict['offset'] == ('in'):
|
||||||
tool_offset = -dia_cnc_dict['tooldia'] / 2
|
tool_offset = -dia_cnc_dict['tooldia'] / 2
|
||||||
offset_str = 'inside'
|
offset_str = 'inside'
|
||||||
elif dia_cnc_dict['offset'].lower() == 'out':
|
elif dia_cnc_dict['offset'].lower() == ('out'):
|
||||||
tool_offset = dia_cnc_dict['tooldia'] / 2
|
tool_offset = dia_cnc_dict['tooldia'] / 2
|
||||||
offset_str = 'outside'
|
offset_str = 'outside'
|
||||||
elif dia_cnc_dict['offset'].lower() == 'path':
|
elif dia_cnc_dict['offset'].lower() == ('path'):
|
||||||
offset_str = 'onpath'
|
offset_str = 'onpath'
|
||||||
tool_offset = 0.0
|
tool_offset = 0.0
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -16,6 +16,8 @@ CAD program, and create G-Code for Isolation routing.
|
||||||
- Enable/Disable Object toggle key ("Space" key) will trigger also the datChanged signal for the Project MVC
|
- Enable/Disable Object toggle key ("Space" key) will trigger also the datChanged signal for the Project MVC
|
||||||
- added a new setting for the color of the Project items, the color when they are disabled.
|
- added a new setting for the color of the Project items, the color when they are disabled.
|
||||||
- fixed a crash when triggering 'Jump To' menu action (shortcut key 'J' worked ok)
|
- fixed a crash when triggering 'Jump To' menu action (shortcut key 'J' worked ok)
|
||||||
|
- made some mods to what can be translated as some of the translations interfered with the correct functioning of FlatCAM
|
||||||
|
- updated the translations
|
||||||
|
|
||||||
30.04.2019
|
30.04.2019
|
||||||
|
|
||||||
|
|
|
@ -931,7 +931,7 @@ class FlatCAMExcEditor(QtCore.QObject):
|
||||||
|
|
||||||
self.drill_axis_radio = RadioSet([{'label': 'X', 'value': 'X'},
|
self.drill_axis_radio = RadioSet([{'label': 'X', 'value': 'X'},
|
||||||
{'label': 'Y', 'value': 'Y'},
|
{'label': 'Y', 'value': 'Y'},
|
||||||
{'label': _('Angle'), 'value': 'A'}])
|
{'label': 'Angle', 'value': 'A'}])
|
||||||
self.drill_axis_radio.set_value('X')
|
self.drill_axis_radio.set_value('X')
|
||||||
self.linear_form.addRow(self.drill_axis_label, self.drill_axis_radio)
|
self.linear_form.addRow(self.drill_axis_label, self.drill_axis_radio)
|
||||||
|
|
||||||
|
|
|
@ -475,9 +475,9 @@ class PaintOptionsTool(FlatCAMTool):
|
||||||
)
|
)
|
||||||
grid.addWidget(methodlabel, 3, 0)
|
grid.addWidget(methodlabel, 3, 0)
|
||||||
self.paintmethod_combo = RadioSet([
|
self.paintmethod_combo = RadioSet([
|
||||||
{"label": _("Standard"), "value": "standard"},
|
{"label": "Standard", "value": "standard"},
|
||||||
{"label": _("Seed-based"), "value": "seed"},
|
{"label": "Seed-based", "value": "seed"},
|
||||||
{"label": _("Straight lines"), "value": "lines"}
|
{"label": "Straight lines", "value": "lines"}
|
||||||
], orientation='vertical', stretch=False)
|
], orientation='vertical', stretch=False)
|
||||||
grid.addWidget(self.paintmethod_combo, 3, 1)
|
grid.addWidget(self.paintmethod_combo, 3, 1)
|
||||||
|
|
||||||
|
|
|
@ -1983,7 +1983,7 @@ class FlatCAMGrbEditor(QtCore.QObject):
|
||||||
|
|
||||||
self.pad_axis_radio = RadioSet([{'label': 'X', 'value': 'X'},
|
self.pad_axis_radio = RadioSet([{'label': 'X', 'value': 'X'},
|
||||||
{'label': 'Y', 'value': 'Y'},
|
{'label': 'Y', 'value': 'Y'},
|
||||||
{'label': _('Angle'), 'value': 'A'}])
|
{'label': 'Angle', 'value': 'A'}])
|
||||||
self.pad_axis_radio.set_value('X')
|
self.pad_axis_radio.set_value('X')
|
||||||
self.linear_form.addRow(self.pad_axis_label, self.pad_axis_radio)
|
self.linear_form.addRow(self.pad_axis_label, self.pad_axis_radio)
|
||||||
|
|
||||||
|
|
|
@ -3734,8 +3734,8 @@ class GeneralAppPrefGroupUI(OptionsGroupUI):
|
||||||
"ADVANCED level -> full functionality.\n\n"
|
"ADVANCED level -> full functionality.\n\n"
|
||||||
"The choice here will influence the parameters in\n"
|
"The choice here will influence the parameters in\n"
|
||||||
"the Selected Tab for all kinds of FlatCAM objects."))
|
"the Selected Tab for all kinds of FlatCAM objects."))
|
||||||
self.app_level_radio = RadioSet([{'label': _('Basic'), 'value': 'b'},
|
self.app_level_radio = RadioSet([{'label': 'Basic', 'value': 'b'},
|
||||||
{'label': _('Advanced'), 'value': 'a'}])
|
{'label': 'Advanced', 'value': 'a'}])
|
||||||
|
|
||||||
# Languages for FlatCAM
|
# Languages for FlatCAM
|
||||||
self.languagelabel = QtWidgets.QLabel(_('<b>Languages:</b>'))
|
self.languagelabel = QtWidgets.QLabel(_('<b>Languages:</b>'))
|
||||||
|
@ -3794,14 +3794,14 @@ class GeneralAppPrefGroupUI(OptionsGroupUI):
|
||||||
self.panbuttonlabel.setToolTip(_("Select the mouse button to use for panning:\n"
|
self.panbuttonlabel.setToolTip(_("Select the mouse button to use for panning:\n"
|
||||||
"- MMB --> Middle Mouse Button\n"
|
"- MMB --> Middle Mouse Button\n"
|
||||||
"- RMB --> Right Mouse Button"))
|
"- RMB --> Right Mouse Button"))
|
||||||
self.pan_button_radio = RadioSet([{'label': _('MMB'), 'value': '3'},
|
self.pan_button_radio = RadioSet([{'label': 'MMB', 'value': '3'},
|
||||||
{'label': _('RMB'), 'value': '2'}])
|
{'label': 'RMB', 'value': '2'}])
|
||||||
|
|
||||||
# Multiple Selection Modifier Key
|
# Multiple Selection Modifier Key
|
||||||
self.mselectlabel = QtWidgets.QLabel(_('<b>Multiple Sel:</b>'))
|
self.mselectlabel = QtWidgets.QLabel(_('<b>Multiple Sel:</b>'))
|
||||||
self.mselectlabel.setToolTip(_("Select the key used for multiple selection."))
|
self.mselectlabel.setToolTip(_("Select the key used for multiple selection."))
|
||||||
self.mselect_radio = RadioSet([{'label': _('CTRL'), 'value': 'Control'},
|
self.mselect_radio = RadioSet([{'label': 'CTRL', 'value': 'Control'},
|
||||||
{'label': _('SHIFT'), 'value': 'Shift'}])
|
{'label': 'SHIFT', 'value': 'Shift'}])
|
||||||
|
|
||||||
# Project at StartUp CB
|
# Project at StartUp CB
|
||||||
self.project_startup_label = QtWidgets.QLabel(_('Project at StartUp:'))
|
self.project_startup_label = QtWidgets.QLabel(_('Project at StartUp:'))
|
||||||
|
@ -4029,8 +4029,8 @@ class GerberOptPrefGroupUI(OptionsGroupUI):
|
||||||
"- conventional / useful when there is no backlash compensation")
|
"- conventional / useful when there is no backlash compensation")
|
||||||
)
|
)
|
||||||
grid0.addWidget(milling_type_label, 3, 0)
|
grid0.addWidget(milling_type_label, 3, 0)
|
||||||
self.milling_type_radio = RadioSet([{'label': _('Climb'), 'value': 'cl'},
|
self.milling_type_radio = RadioSet([{'label': 'Climb', 'value': 'cl'},
|
||||||
{'label': _('Conv.'), 'value': 'cv'}])
|
{'label': 'Conv.', 'value': 'cv'}])
|
||||||
grid0.addWidget(self.milling_type_radio, 3, 1)
|
grid0.addWidget(self.milling_type_radio, 3, 1)
|
||||||
|
|
||||||
# Combine passes
|
# Combine passes
|
||||||
|
@ -4298,8 +4298,8 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
|
||||||
)
|
)
|
||||||
hlay3.addWidget(self.excellon_zeros_label)
|
hlay3.addWidget(self.excellon_zeros_label)
|
||||||
|
|
||||||
self.excellon_zeros_radio = RadioSet([{'label': _('LZ'), 'value': 'L'},
|
self.excellon_zeros_radio = RadioSet([{'label': 'LZ', 'value': 'L'},
|
||||||
{'label': _('TZ'), 'value': 'T'}])
|
{'label': 'TZ', 'value': 'T'}])
|
||||||
self.excellon_zeros_radio.setToolTip(
|
self.excellon_zeros_radio.setToolTip(
|
||||||
_("This sets the default type of Excellon zeros.\n"
|
_("This sets the default type of Excellon zeros.\n"
|
||||||
"If it is not detected in the parsed file the value here\n"
|
"If it is not detected in the parsed file the value here\n"
|
||||||
|
@ -4326,8 +4326,8 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
|
||||||
)
|
)
|
||||||
hlay4.addWidget(self.excellon_units_label)
|
hlay4.addWidget(self.excellon_units_label)
|
||||||
|
|
||||||
self.excellon_units_radio = RadioSet([{'label': _('INCH'), 'value': 'INCH'},
|
self.excellon_units_radio = RadioSet([{'label': 'INCH', 'value': 'INCH'},
|
||||||
{'label': _('MM'), 'value': 'METRIC'}])
|
{'label': 'MM', 'value': 'METRIC'}])
|
||||||
self.excellon_units_radio.setToolTip(
|
self.excellon_units_radio.setToolTip(
|
||||||
_("This sets the units of Excellon files.\n"
|
_("This sets the units of Excellon files.\n"
|
||||||
"Some Excellon files don't have an header\n"
|
"Some Excellon files don't have an header\n"
|
||||||
|
@ -4365,8 +4365,8 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
|
||||||
"Travelling Salesman algorithm for path optimization.")
|
"Travelling Salesman algorithm for path optimization.")
|
||||||
)
|
)
|
||||||
|
|
||||||
self.excellon_optimization_radio = RadioSet([{'label': _('MH'), 'value': 'M'},
|
self.excellon_optimization_radio = RadioSet([{'label': 'MH', 'value': 'M'},
|
||||||
{'label': _('Basic'), 'value': 'B'}])
|
{'label': 'Basic', 'value': 'B'}])
|
||||||
self.excellon_optimization_radio.setToolTip(
|
self.excellon_optimization_radio.setToolTip(
|
||||||
_("This sets the optimization type for the Excellon drill path.\n"
|
_("This sets the optimization type for the Excellon drill path.\n"
|
||||||
"If MH is checked then Google OR-Tools algorithm with MetaHeuristic\n"
|
"If MH is checked then Google OR-Tools algorithm with MetaHeuristic\n"
|
||||||
|
@ -4531,9 +4531,9 @@ class ExcellonOptPrefGroupUI(OptionsGroupUI):
|
||||||
"When choosing 'Slots' or 'Both', slots will be\n"
|
"When choosing 'Slots' or 'Both', slots will be\n"
|
||||||
"converted to drills.")
|
"converted to drills.")
|
||||||
)
|
)
|
||||||
self.excellon_gcode_type_radio = RadioSet([{'label': _('Drills'), 'value': 'drills'},
|
self.excellon_gcode_type_radio = RadioSet([{'label': 'Drills', 'value': 'drills'},
|
||||||
{'label': _('Slots'), 'value': 'slots'},
|
{'label': 'Slots', 'value': 'slots'},
|
||||||
{'label': _('Both'), 'value': 'both'}])
|
{'label': 'Both', 'value': 'both'}])
|
||||||
grid2.addWidget(excellon_gcode_type_label, 9, 0)
|
grid2.addWidget(excellon_gcode_type_label, 9, 0)
|
||||||
grid2.addWidget(self.excellon_gcode_type_radio, 9, 1)
|
grid2.addWidget(self.excellon_gcode_type_radio, 9, 1)
|
||||||
|
|
||||||
|
@ -4717,8 +4717,8 @@ class ExcellonExpPrefGroupUI(OptionsGroupUI):
|
||||||
_("The units used in the Excellon file.")
|
_("The units used in the Excellon file.")
|
||||||
)
|
)
|
||||||
|
|
||||||
self.excellon_units_radio = RadioSet([{'label': _('INCH'), 'value': 'INCH'},
|
self.excellon_units_radio = RadioSet([{'label': 'INCH', 'value': 'INCH'},
|
||||||
{'label': _('MM'), 'value': 'METRIC'}])
|
{'label': 'MM', 'value': 'METRIC'}])
|
||||||
self.excellon_units_radio.setToolTip(
|
self.excellon_units_radio.setToolTip(
|
||||||
_("The units used in the Excellon file.")
|
_("The units used in the Excellon file.")
|
||||||
)
|
)
|
||||||
|
@ -4773,8 +4773,8 @@ class ExcellonExpPrefGroupUI(OptionsGroupUI):
|
||||||
"Also it will have to be specified if LZ = leading zeros are kept\n"
|
"Also it will have to be specified if LZ = leading zeros are kept\n"
|
||||||
"or TZ = trailing zeros are kept.")
|
"or TZ = trailing zeros are kept.")
|
||||||
)
|
)
|
||||||
self.format_radio = RadioSet([{'label': _('Decimal'), 'value': 'dec'},
|
self.format_radio = RadioSet([{'label': 'Decimal', 'value': 'dec'},
|
||||||
{'label': _('No-Decimal'), 'value': 'ndec'}])
|
{'label': 'No-Decimal', 'value': 'ndec'}])
|
||||||
self.format_radio.setToolTip(
|
self.format_radio.setToolTip(
|
||||||
_("Select the kind of coordinates format used.\n"
|
_("Select the kind of coordinates format used.\n"
|
||||||
"Coordinates can be saved with decimal point or without.\n"
|
"Coordinates can be saved with decimal point or without.\n"
|
||||||
|
@ -4797,8 +4797,8 @@ class ExcellonExpPrefGroupUI(OptionsGroupUI):
|
||||||
"and Leading Zeros are removed.")
|
"and Leading Zeros are removed.")
|
||||||
)
|
)
|
||||||
|
|
||||||
self.zeros_radio = RadioSet([{'label': _('LZ'), 'value': 'LZ'},
|
self.zeros_radio = RadioSet([{'label': 'LZ', 'value': 'LZ'},
|
||||||
{'label': _('TZ'), 'value': 'TZ'}])
|
{'label': 'TZ', 'value': 'TZ'}])
|
||||||
self.zeros_radio.setToolTip(
|
self.zeros_radio.setToolTip(
|
||||||
_("This sets the default type of Excellon zeros.\n"
|
_("This sets the default type of Excellon zeros.\n"
|
||||||
"If LZ then Leading Zeros are kept and\n"
|
"If LZ then Leading Zeros are kept and\n"
|
||||||
|
@ -5179,9 +5179,9 @@ class CNCJobGenPrefGroupUI(OptionsGroupUI):
|
||||||
)
|
)
|
||||||
|
|
||||||
self.cncplot_method_radio = RadioSet([
|
self.cncplot_method_radio = RadioSet([
|
||||||
{"label": _("All"), "value": "all"},
|
{"label": "All", "value": "all"},
|
||||||
{"label": _("Travel"), "value": "travel"},
|
{"label": "Travel", "value": "travel"},
|
||||||
{"label": _("Cut"), "value": "cut"}
|
{"label": "Cut", "value": "cut"}
|
||||||
], stretch=False)
|
], stretch=False)
|
||||||
|
|
||||||
grid0.addWidget(self.cncplot_method_label, 1, 0)
|
grid0.addWidget(self.cncplot_method_label, 1, 0)
|
||||||
|
@ -5415,9 +5415,9 @@ class ToolsNCCPrefGroupUI(OptionsGroupUI):
|
||||||
)
|
)
|
||||||
grid0.addWidget(methodlabel, 3, 0)
|
grid0.addWidget(methodlabel, 3, 0)
|
||||||
self.ncc_method_radio = RadioSet([
|
self.ncc_method_radio = RadioSet([
|
||||||
{"label": _("Standard"), "value": "standard"},
|
{"label": "Standard", "value": "standard"},
|
||||||
{"label": _("Seed-based"), "value": "seed"},
|
{"label": "Seed-based", "value": "seed"},
|
||||||
{"label": _("Straight lines"), "value": "lines"}
|
{"label": "Straight lines", "value": "lines"}
|
||||||
], orientation='vertical', stretch=False)
|
], orientation='vertical', stretch=False)
|
||||||
grid0.addWidget(self.ncc_method_radio, 3, 1)
|
grid0.addWidget(self.ncc_method_radio, 3, 1)
|
||||||
|
|
||||||
|
@ -5564,8 +5564,8 @@ class Tools2sidedPrefGroupUI(OptionsGroupUI):
|
||||||
grid0.addWidget(self.drill_dia_entry, 0, 1)
|
grid0.addWidget(self.drill_dia_entry, 0, 1)
|
||||||
|
|
||||||
## Axis
|
## Axis
|
||||||
self.mirror_axis_radio = RadioSet([{'label': _('X'), 'value': 'X'},
|
self.mirror_axis_radio = RadioSet([{'label': 'X', 'value': 'X'},
|
||||||
{'label': _('Y'), 'value': 'Y'}])
|
{'label': 'Y', 'value': 'Y'}])
|
||||||
self.mirax_label = QtWidgets.QLabel(_("Mirror Axis:"))
|
self.mirax_label = QtWidgets.QLabel(_("Mirror Axis:"))
|
||||||
self.mirax_label.setToolTip(
|
self.mirax_label.setToolTip(
|
||||||
_("Mirror vertically (X) or horizontally (Y).")
|
_("Mirror vertically (X) or horizontally (Y).")
|
||||||
|
@ -5577,8 +5577,8 @@ class Tools2sidedPrefGroupUI(OptionsGroupUI):
|
||||||
grid0.addWidget(self.mirror_axis_radio, 2, 1)
|
grid0.addWidget(self.mirror_axis_radio, 2, 1)
|
||||||
|
|
||||||
## Axis Location
|
## Axis Location
|
||||||
self.axis_location_radio = RadioSet([{'label': _('Point'), 'value': 'point'},
|
self.axis_location_radio = RadioSet([{'label': 'Point', 'value': 'point'},
|
||||||
{'label': _('Box'), 'value': 'box'}])
|
{'label': 'Box', 'value': 'box'}])
|
||||||
self.axloc_label = QtWidgets.QLabel(_("Axis Ref:"))
|
self.axloc_label = QtWidgets.QLabel(_("Axis Ref:"))
|
||||||
self.axloc_label.setToolTip(
|
self.axloc_label.setToolTip(
|
||||||
_("The axis should pass through a <b>point</b> or cut\n "
|
_("The axis should pass through a <b>point</b> or cut\n "
|
||||||
|
@ -5655,9 +5655,9 @@ class ToolsPaintPrefGroupUI(OptionsGroupUI):
|
||||||
)
|
)
|
||||||
grid0.addWidget(methodlabel, 3, 0)
|
grid0.addWidget(methodlabel, 3, 0)
|
||||||
self.paintmethod_combo = RadioSet([
|
self.paintmethod_combo = RadioSet([
|
||||||
{"label": _("Standard"), "value": "standard"},
|
{"label": "Standard", "value": "standard"},
|
||||||
{"label": _("Seed-based"), "value": "seed"},
|
{"label": "Seed-based", "value": "seed"},
|
||||||
{"label": _("Straight lines"), "value": "lines"}
|
{"label": "Straight lines", "value": "lines"}
|
||||||
], orientation='vertical', stretch=False)
|
], orientation='vertical', stretch=False)
|
||||||
grid0.addWidget(self.paintmethod_combo, 3, 1)
|
grid0.addWidget(self.paintmethod_combo, 3, 1)
|
||||||
|
|
||||||
|
@ -5688,8 +5688,8 @@ class ToolsPaintPrefGroupUI(OptionsGroupUI):
|
||||||
)
|
)
|
||||||
grid0.addWidget(selectlabel, 6, 0)
|
grid0.addWidget(selectlabel, 6, 0)
|
||||||
self.selectmethod_combo = RadioSet([
|
self.selectmethod_combo = RadioSet([
|
||||||
{"label": _("Single"), "value": "single"},
|
{"label": "Single", "value": "single"},
|
||||||
{"label": _("All"), "value": "all"},
|
{"label": "All", "value": "all"},
|
||||||
# {"label": "Rectangle", "value": "rectangle"}
|
# {"label": "Rectangle", "value": "rectangle"}
|
||||||
])
|
])
|
||||||
grid0.addWidget(self.selectmethod_combo, 6, 1)
|
grid0.addWidget(self.selectmethod_combo, 6, 1)
|
||||||
|
@ -5716,8 +5716,8 @@ class ToolsFilmPrefGroupUI(OptionsGroupUI):
|
||||||
grid0 = QtWidgets.QGridLayout()
|
grid0 = QtWidgets.QGridLayout()
|
||||||
self.layout.addLayout(grid0)
|
self.layout.addLayout(grid0)
|
||||||
|
|
||||||
self.film_type_radio = RadioSet([{'label': _('Pos'), 'value': 'pos'},
|
self.film_type_radio = RadioSet([{'label': 'Pos', 'value': 'pos'},
|
||||||
{'label': _('Neg'), 'value': 'neg'}])
|
{'label': 'Neg', 'value': 'neg'}])
|
||||||
ftypelbl = QtWidgets.QLabel(_('Film Type:'))
|
ftypelbl = QtWidgets.QLabel(_('Film Type:'))
|
||||||
ftypelbl.setToolTip(
|
ftypelbl.setToolTip(
|
||||||
_("Generate a Positive black film or a Negative film.\n"
|
_("Generate a Positive black film or a Negative film.\n"
|
||||||
|
@ -5816,8 +5816,8 @@ class ToolsPanelizePrefGroupUI(OptionsGroupUI):
|
||||||
grid0.addWidget(self.prows, 3, 1)
|
grid0.addWidget(self.prows, 3, 1)
|
||||||
|
|
||||||
## Type of resulting Panel object
|
## Type of resulting Panel object
|
||||||
self.panel_type_radio = RadioSet([{'label': _('Gerber'), 'value': 'gerber'},
|
self.panel_type_radio = RadioSet([{'label': 'Gerber', 'value': 'gerber'},
|
||||||
{'label': _('Geo'), 'value': 'geometry'}])
|
{'label': 'Geo', 'value': 'geometry'}])
|
||||||
self.panel_type_label = QtWidgets.QLabel(_("Panel Type:"))
|
self.panel_type_label = QtWidgets.QLabel(_("Panel Type:"))
|
||||||
self.panel_type_label.setToolTip(
|
self.panel_type_label.setToolTip(
|
||||||
_( "Choose the type of object for the panel object:\n"
|
_( "Choose the type of object for the panel object:\n"
|
||||||
|
|
|
@ -153,7 +153,7 @@ class GerberObjectUI(ObjectUI):
|
||||||
grid0.addWidget(self.plot_options_label, 0, 0)
|
grid0.addWidget(self.plot_options_label, 0, 0)
|
||||||
|
|
||||||
# Solid CB
|
# Solid CB
|
||||||
self.solid_cb = FCCheckBox(label=_('Solid '))
|
self.solid_cb = FCCheckBox(label=_('Solid'))
|
||||||
self.solid_cb.setToolTip(
|
self.solid_cb.setToolTip(
|
||||||
_("Solid color polygons.")
|
_("Solid color polygons.")
|
||||||
)
|
)
|
||||||
|
@ -161,7 +161,7 @@ class GerberObjectUI(ObjectUI):
|
||||||
grid0.addWidget(self.solid_cb, 0, 1)
|
grid0.addWidget(self.solid_cb, 0, 1)
|
||||||
|
|
||||||
# Multicolored CB
|
# Multicolored CB
|
||||||
self.multicolored_cb = FCCheckBox(label=_('M-Color '))
|
self.multicolored_cb = FCCheckBox(label=_('M-Color'))
|
||||||
self.multicolored_cb.setToolTip(
|
self.multicolored_cb.setToolTip(
|
||||||
_("Draw polygons in different colors.")
|
_("Draw polygons in different colors.")
|
||||||
)
|
)
|
||||||
|
@ -299,8 +299,8 @@ class GerberObjectUI(ObjectUI):
|
||||||
"- conventional / useful when there is no backlash compensation")
|
"- conventional / useful when there is no backlash compensation")
|
||||||
)
|
)
|
||||||
grid1.addWidget(self.milling_type_label, 3, 0)
|
grid1.addWidget(self.milling_type_label, 3, 0)
|
||||||
self.milling_type_radio = RadioSet([{'label': _('Climb'), 'value': 'cl'},
|
self.milling_type_radio = RadioSet([{'label': 'Climb', 'value': 'cl'},
|
||||||
{'label': _('Conv.'), 'value': 'cv'}])
|
{'label': 'Conv.', 'value': 'cv'}])
|
||||||
grid1.addWidget(self.milling_type_radio, 3, 1)
|
grid1.addWidget(self.milling_type_radio, 3, 1)
|
||||||
|
|
||||||
# combine all passes CB
|
# combine all passes CB
|
||||||
|
@ -749,9 +749,9 @@ class ExcellonObjectUI(ObjectUI):
|
||||||
"When choosing 'Slots' or 'Both', slots will be\n"
|
"When choosing 'Slots' or 'Both', slots will be\n"
|
||||||
"converted to a series of drills.")
|
"converted to a series of drills.")
|
||||||
)
|
)
|
||||||
self.excellon_gcode_type_radio = RadioSet([{'label': _('Drills'), 'value': 'drills'},
|
self.excellon_gcode_type_radio = RadioSet([{'label': 'Drills', 'value': 'drills'},
|
||||||
{'label': _('Slots'), 'value': 'slots'},
|
{'label': 'Slots', 'value': 'slots'},
|
||||||
{'label': _('Both'), 'value': 'both'}])
|
{'label': 'Both', 'value': 'both'}])
|
||||||
gcode_box.addRow(gcode_type_label, self.excellon_gcode_type_radio)
|
gcode_box.addRow(gcode_type_label, self.excellon_gcode_type_radio)
|
||||||
self.tools_box.addLayout(gcode_box)
|
self.tools_box.addLayout(gcode_box)
|
||||||
|
|
||||||
|
@ -1355,9 +1355,9 @@ class CNCObjectUI(ObjectUI):
|
||||||
)
|
)
|
||||||
|
|
||||||
self.cncplot_method_combo = RadioSet([
|
self.cncplot_method_combo = RadioSet([
|
||||||
{"label": _("All"), "value": "all"},
|
{"label": "All", "value": "all"},
|
||||||
{"label": _("Travel"), "value": "travel"},
|
{"label": "Travel", "value": "travel"},
|
||||||
{"label": _("Cut"), "value": "cut"}
|
{"label": "Cut", "value": "cut"}
|
||||||
], stretch=False)
|
], stretch=False)
|
||||||
|
|
||||||
## Object name
|
## Object name
|
||||||
|
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue