- updated the Edit -> Preferences to include also the Gerber Editor complete Preferences
- started to update the app strings to make it easier for future translations
This commit is contained in:
@@ -89,28 +89,29 @@ class ToolCalculator(FlatCAMTool):
|
||||
form_layout = QtWidgets.QFormLayout()
|
||||
self.layout.addLayout(form_layout)
|
||||
|
||||
self.tipDia_label = QtWidgets.QLabel(_("Tip Diameter:"))
|
||||
self.tipDia_label = QtWidgets.QLabel('%s:' % _("Tip Diameter"))
|
||||
self.tipDia_entry = FCEntry()
|
||||
# self.tipDia_entry.setFixedWidth(70)
|
||||
self.tipDia_entry.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
|
||||
self.tipDia_label.setToolTip(_('This is the diameter of the tool tip.\n'
|
||||
'The manufacturer specifies it.'))
|
||||
|
||||
self.tipAngle_label = QtWidgets.QLabel(_("Tip Angle:"))
|
||||
self.tipDia_label.setToolTip(
|
||||
_("This is the tool tip diameter.\n"
|
||||
"It is specified by manufacturer.")
|
||||
)
|
||||
self.tipAngle_label = QtWidgets.QLabel('%s:' % _("Tip Angle"))
|
||||
self.tipAngle_entry = FCEntry()
|
||||
# self.tipAngle_entry.setFixedWidth(70)
|
||||
self.tipAngle_entry.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
|
||||
self.tipAngle_label.setToolTip(_("This is the angle of the tip of the tool.\n"
|
||||
"It is specified by manufacturer."))
|
||||
|
||||
self.cutDepth_label = QtWidgets.QLabel(_("Cut Z:"))
|
||||
self.cutDepth_label = QtWidgets.QLabel('%s:' % _("Cut Z"))
|
||||
self.cutDepth_entry = FCEntry()
|
||||
# self.cutDepth_entry.setFixedWidth(70)
|
||||
self.cutDepth_entry.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
|
||||
self.cutDepth_label.setToolTip(_("This is the depth to cut into the material.\n"
|
||||
"In the CNCJob is the CutZ parameter."))
|
||||
|
||||
self.effectiveToolDia_label = QtWidgets.QLabel(_("Tool Diameter:"))
|
||||
self.effectiveToolDia_label = QtWidgets.QLabel('%s:' % _("Tool Diameter"))
|
||||
self.effectiveToolDia_entry = FCEntry()
|
||||
# self.effectiveToolDia_entry.setFixedWidth(70)
|
||||
self.effectiveToolDia_entry.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
|
||||
@@ -154,26 +155,26 @@ class ToolCalculator(FlatCAMTool):
|
||||
plate_form_layout = QtWidgets.QFormLayout()
|
||||
self.layout.addLayout(plate_form_layout)
|
||||
|
||||
self.pcblengthlabel = QtWidgets.QLabel(_("Board Length:"))
|
||||
self.pcblengthlabel = QtWidgets.QLabel('%s:' % _("Board Length"))
|
||||
self.pcblength_entry = FCEntry()
|
||||
# self.pcblengthlabel.setFixedWidth(70)
|
||||
self.pcblength_entry.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
|
||||
self.pcblengthlabel.setToolTip(_('This is the board length. In centimeters.'))
|
||||
|
||||
self.pcbwidthlabel = QtWidgets.QLabel(_("Board Width:"))
|
||||
self.pcbwidthlabel = QtWidgets.QLabel('%s:' % _("Board Width"))
|
||||
self.pcbwidth_entry = FCEntry()
|
||||
# self.pcbwidthlabel.setFixedWidth(70)
|
||||
self.pcbwidth_entry.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
|
||||
self.pcbwidthlabel.setToolTip(_('This is the board width.In centimeters.'))
|
||||
|
||||
self.cdensity_label = QtWidgets.QLabel(_("Current Density:"))
|
||||
self.cdensity_label = QtWidgets.QLabel('%s:' % _("Current Density"))
|
||||
self.cdensity_entry = FCEntry()
|
||||
# self.cdensity_entry.setFixedWidth(70)
|
||||
self.cdensity_entry.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
|
||||
self.cdensity_label.setToolTip(_("Current density to pass through the board. \n"
|
||||
"In Amps per Square Feet ASF."))
|
||||
|
||||
self.growth_label = QtWidgets.QLabel(_("Copper Growth:"))
|
||||
self.growth_label = QtWidgets.QLabel('%s:' % _("Copper Growth"))
|
||||
self.growth_entry = FCEntry()
|
||||
# self.growth_entry.setFixedWidth(70)
|
||||
self.growth_entry.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
|
||||
@@ -182,7 +183,7 @@ class ToolCalculator(FlatCAMTool):
|
||||
|
||||
# self.growth_entry.setEnabled(False)
|
||||
|
||||
self.cvaluelabel = QtWidgets.QLabel(_("Current Value:"))
|
||||
self.cvaluelabel = QtWidgets.QLabel('%s:' % _("Current Value"))
|
||||
self.cvalue_entry = FCEntry()
|
||||
# self.cvaluelabel.setFixedWidth(70)
|
||||
self.cvalue_entry.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
|
||||
@@ -190,7 +191,7 @@ class ToolCalculator(FlatCAMTool):
|
||||
'to be set on the Power Supply. In Amps.'))
|
||||
self.cvalue_entry.setDisabled(True)
|
||||
|
||||
self.timelabel = QtWidgets.QLabel(_("Time:"))
|
||||
self.timelabel = QtWidgets.QLabel('%s:' % _("Time"))
|
||||
self.time_entry = FCEntry()
|
||||
# self.timelabel.setFixedWidth(70)
|
||||
self.time_entry.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
|
||||
|
||||
@@ -51,7 +51,7 @@ class CutOut(FlatCAMTool):
|
||||
# self.type_obj_combo.setItemIcon(1, QtGui.QIcon("share/drill16.png"))
|
||||
self.type_obj_combo.setItemIcon(2, QtGui.QIcon("share/geometry16.png"))
|
||||
|
||||
self.type_obj_combo_label = QtWidgets.QLabel(_("Obj Type:"))
|
||||
self.type_obj_combo_label = QtWidgets.QLabel('%s:' % _("Obj Type"))
|
||||
self.type_obj_combo_label.setToolTip(
|
||||
_("Specify the type of object to be cutout.\n"
|
||||
"It can be of type: Gerber or Geometry.\n"
|
||||
@@ -67,14 +67,14 @@ class CutOut(FlatCAMTool):
|
||||
self.obj_combo.setRootModelIndex(self.app.collection.index(0, 0, QtCore.QModelIndex()))
|
||||
self.obj_combo.setCurrentIndex(1)
|
||||
|
||||
self.object_label = QtWidgets.QLabel(_("Object:"))
|
||||
self.object_label = QtWidgets.QLabel('%s:' % _("Object"))
|
||||
self.object_label.setToolTip(
|
||||
_("Object to be cutout. ")
|
||||
)
|
||||
form_layout.addRow(self.object_label, self.obj_combo)
|
||||
|
||||
# Object kind
|
||||
self.kindlabel = QtWidgets.QLabel(_('Obj kind:'))
|
||||
self.kindlabel = QtWidgets.QLabel('%s:' % _('Obj kind'))
|
||||
self.kindlabel.setToolTip(
|
||||
_("Choice of what kind the object we want to cutout is.<BR>"
|
||||
"- <B>Single</B>: contain a single PCB Gerber outline object.<BR>"
|
||||
@@ -89,7 +89,7 @@ class CutOut(FlatCAMTool):
|
||||
|
||||
# Tool Diameter
|
||||
self.dia = FCEntry()
|
||||
self.dia_label = QtWidgets.QLabel(_("Tool Dia:"))
|
||||
self.dia_label = QtWidgets.QLabel('%s:' % _("Tool dia"))
|
||||
self.dia_label.setToolTip(
|
||||
_("Diameter of the tool used to cutout\n"
|
||||
"the PCB shape out of the surrounding material.")
|
||||
@@ -98,7 +98,7 @@ class CutOut(FlatCAMTool):
|
||||
|
||||
# Margin
|
||||
self.margin = FCEntry()
|
||||
self.margin_label = QtWidgets.QLabel(_("Margin:"))
|
||||
self.margin_label = QtWidgets.QLabel('%s:' % _("Margin:"))
|
||||
self.margin_label.setToolTip(
|
||||
_("Margin over bounds. A positive value here\n"
|
||||
"will make the cutout of the PCB further from\n"
|
||||
@@ -108,7 +108,7 @@ class CutOut(FlatCAMTool):
|
||||
|
||||
# Gapsize
|
||||
self.gapsize = FCEntry()
|
||||
self.gapsize_label = QtWidgets.QLabel(_("Gap size:"))
|
||||
self.gapsize_label = QtWidgets.QLabel('%s:' % _("Gap size:"))
|
||||
self.gapsize_label.setToolTip(
|
||||
_("The size of the bridge gaps in the cutout\n"
|
||||
"used to keep the board connected to\n"
|
||||
@@ -127,7 +127,7 @@ class CutOut(FlatCAMTool):
|
||||
|
||||
# Surrounding convex box shape
|
||||
self.convex_box = FCCheckBox()
|
||||
self.convex_box_label = QtWidgets.QLabel(_("Convex Sh.:"))
|
||||
self.convex_box_label = QtWidgets.QLabel('%s:' % _("Convex Sh."))
|
||||
self.convex_box_label.setToolTip(
|
||||
_("Create a convex shape surrounding the entire PCB.\n"
|
||||
"Used only if the source object type is Gerber.")
|
||||
@@ -146,7 +146,7 @@ class CutOut(FlatCAMTool):
|
||||
self.layout.addLayout(form_layout_2)
|
||||
|
||||
# Gaps
|
||||
gaps_label = QtWidgets.QLabel(_('Gaps:'))
|
||||
gaps_label = QtWidgets.QLabel('%s:' % _('Gaps'))
|
||||
gaps_label.setToolTip(
|
||||
_("Number of gaps used for the Automatic cutout.\n"
|
||||
"There can be maximum 8 bridges/gaps.\n"
|
||||
@@ -171,7 +171,7 @@ class CutOut(FlatCAMTool):
|
||||
hlay = QtWidgets.QHBoxLayout()
|
||||
self.layout.addLayout(hlay)
|
||||
|
||||
title_ff_label = QtWidgets.QLabel("<b>%s</b>" % _('FreeForm:'))
|
||||
title_ff_label = QtWidgets.QLabel("<b>%s:</b>" % _('FreeForm'))
|
||||
title_ff_label.setToolTip(
|
||||
_("The cutout shape can be of ny shape.\n"
|
||||
"Useful when the PCB has a non-rectangular shape.")
|
||||
@@ -191,7 +191,7 @@ class CutOut(FlatCAMTool):
|
||||
hlay2 = QtWidgets.QHBoxLayout()
|
||||
self.layout.addLayout(hlay2)
|
||||
|
||||
title_rct_label = QtWidgets.QLabel("<b>%s</b>" % _('Rectangular:'))
|
||||
title_rct_label = QtWidgets.QLabel("<b>%s:</b>" % _('Rectangular'))
|
||||
title_rct_label.setToolTip(
|
||||
_("The resulting cutout shape is\n"
|
||||
"always a rectangle shape and it will be\n"
|
||||
@@ -228,7 +228,7 @@ class CutOut(FlatCAMTool):
|
||||
self.man_object_combo.setRootModelIndex(self.app.collection.index(2, 0, QtCore.QModelIndex()))
|
||||
self.man_object_combo.setCurrentIndex(1)
|
||||
|
||||
self.man_object_label = QtWidgets.QLabel(_("Geo Obj:"))
|
||||
self.man_object_label = QtWidgets.QLabel('%s:' % _("Geo Obj"))
|
||||
self.man_object_label.setToolTip(
|
||||
_("Geometry object used to create the manual cutout.")
|
||||
)
|
||||
@@ -241,7 +241,7 @@ class CutOut(FlatCAMTool):
|
||||
hlay3 = QtWidgets.QHBoxLayout()
|
||||
self.layout.addLayout(hlay3)
|
||||
|
||||
self.man_geo_label = QtWidgets.QLabel(_("Manual Geo:"))
|
||||
self.man_geo_label = QtWidgets.QLabel('%s:' % _("Manual Geo"))
|
||||
self.man_geo_label.setToolTip(
|
||||
_("If the object to be cutout is a Gerber\n"
|
||||
"first create a Geometry that surrounds it,\n"
|
||||
@@ -263,7 +263,7 @@ class CutOut(FlatCAMTool):
|
||||
hlay4 = QtWidgets.QHBoxLayout()
|
||||
self.layout.addLayout(hlay4)
|
||||
|
||||
self.man_bridge_gaps_label = QtWidgets.QLabel(_("Manual Add Bridge Gaps:"))
|
||||
self.man_bridge_gaps_label = QtWidgets.QLabel('%s:' % _("Manual Add Bridge Gaps"))
|
||||
self.man_bridge_gaps_label.setToolTip(
|
||||
_("Use the left mouse button (LMB) click\n"
|
||||
"to create a bridge gap to separate the PCB from\n"
|
||||
|
||||
@@ -149,7 +149,7 @@ class DblSidedTool(FlatCAMTool):
|
||||
|
||||
# ## Point/Box
|
||||
self.point_box_container = QtWidgets.QVBoxLayout()
|
||||
self.pb_label = QtWidgets.QLabel("<b>%s</b>" % _('Point/Box Reference:'))
|
||||
self.pb_label = QtWidgets.QLabel("<b>%s:</b>" % _('Point/Box Reference'))
|
||||
self.pb_label.setToolTip(
|
||||
_("If 'Point' is selected above it store the coordinates (x, y) through which\n"
|
||||
"the mirroring axis passes.\n"
|
||||
@@ -189,7 +189,7 @@ class DblSidedTool(FlatCAMTool):
|
||||
self.box_combo_type.hide()
|
||||
|
||||
# ## Alignment holes
|
||||
self.ah_label = QtWidgets.QLabel("<b>%s</b>" % _('Alignment Drill Coordinates:'))
|
||||
self.ah_label = QtWidgets.QLabel("<b>%s:</b>" % _('Alignment Drill Coordinates'))
|
||||
self.ah_label.setToolTip(
|
||||
_("Alignment holes (x1, y1), (x2, y2), ... "
|
||||
"on one side of the mirror axis. For each set of (x, y) coordinates\n"
|
||||
@@ -220,7 +220,7 @@ class DblSidedTool(FlatCAMTool):
|
||||
grid_lay3.addWidget(self.add_drill_point_button, 0, 1)
|
||||
|
||||
# ## Drill diameter for alignment holes
|
||||
self.dt_label = QtWidgets.QLabel("<b>%s</b>:" % _('Alignment Drill Diameter'))
|
||||
self.dt_label = QtWidgets.QLabel("<b>%s:</b>" % _('Alignment Drill Diameter'))
|
||||
self.dt_label.setToolTip(
|
||||
_("Diameter of the drill for the "
|
||||
"alignment holes.")
|
||||
@@ -231,7 +231,7 @@ class DblSidedTool(FlatCAMTool):
|
||||
self.layout.addLayout(hlay)
|
||||
|
||||
self.drill_dia = FCEntry()
|
||||
self.dd_label = QtWidgets.QLabel(_("Drill diam.:"))
|
||||
self.dd_label = QtWidgets.QLabel('%s:' % _("Drill dia"))
|
||||
self.dd_label.setToolTip(
|
||||
_("Diameter of the drill for the "
|
||||
"alignment holes.")
|
||||
|
||||
@@ -53,7 +53,7 @@ class Film(FlatCAMTool):
|
||||
self.tf_type_obj_combo.setItemIcon(0, QtGui.QIcon("share/flatcam_icon16.png"))
|
||||
self.tf_type_obj_combo.setItemIcon(2, QtGui.QIcon("share/geometry16.png"))
|
||||
|
||||
self.tf_type_obj_combo_label = QtWidgets.QLabel(_("Object Type:"))
|
||||
self.tf_type_obj_combo_label = QtWidgets.QLabel('%s:' % _("Object Type"))
|
||||
self.tf_type_obj_combo_label.setToolTip(
|
||||
_("Specify the type of object for which to create the film.\n"
|
||||
"The object can be of type: Gerber or Geometry.\n"
|
||||
@@ -68,7 +68,7 @@ class Film(FlatCAMTool):
|
||||
self.tf_object_combo.setRootModelIndex(self.app.collection.index(0, 0, QtCore.QModelIndex()))
|
||||
self.tf_object_combo.setCurrentIndex(1)
|
||||
|
||||
self.tf_object_label = QtWidgets.QLabel(_("Film Object:"))
|
||||
self.tf_object_label = QtWidgets.QLabel('%s:' % _("Film Object"))
|
||||
self.tf_object_label.setToolTip(
|
||||
_("Object for which to create the film.")
|
||||
)
|
||||
@@ -101,7 +101,7 @@ class Film(FlatCAMTool):
|
||||
self.tf_box_combo.setRootModelIndex(self.app.collection.index(0, 0, QtCore.QModelIndex()))
|
||||
self.tf_box_combo.setCurrentIndex(1)
|
||||
|
||||
self.tf_box_combo_label = QtWidgets.QLabel(_("Box Object:"))
|
||||
self.tf_box_combo_label = QtWidgets.QLabel('%s:' % _("Box Object"))
|
||||
self.tf_box_combo_label.setToolTip(
|
||||
_("The actual object that is used a container for the\n "
|
||||
"selected object for which we create the film.\n"
|
||||
@@ -127,7 +127,7 @@ class Film(FlatCAMTool):
|
||||
# Boundary for negative film generation
|
||||
|
||||
self.boundary_entry = FCEntry()
|
||||
self.boundary_label = QtWidgets.QLabel(_("Border:"))
|
||||
self.boundary_label = QtWidgets.QLabel('%s:' % _("Border"))
|
||||
self.boundary_label.setToolTip(
|
||||
_("Specify a border around the object.\n"
|
||||
"Only for negative film.\n"
|
||||
@@ -141,7 +141,7 @@ class Film(FlatCAMTool):
|
||||
tf_form_layout.addRow(self.boundary_label, self.boundary_entry)
|
||||
|
||||
self.film_scale_entry = FCEntry()
|
||||
self.film_scale_label = QtWidgets.QLabel(_("Scale Stroke:"))
|
||||
self.film_scale_label = QtWidgets.QLabel('%s:' % _("Scale Stroke"))
|
||||
self.film_scale_label.setToolTip(
|
||||
_("Scale the line stroke thickness of each feature in the SVG file.\n"
|
||||
"It means that the line that envelope each SVG feature will be thicker or thinner,\n"
|
||||
|
||||
@@ -50,7 +50,7 @@ class ToolImage(FlatCAMTool):
|
||||
self.tf_type_obj_combo.setItemIcon(0, QtGui.QIcon("share/flatcam_icon16.png"))
|
||||
self.tf_type_obj_combo.setItemIcon(1, QtGui.QIcon("share/geometry16.png"))
|
||||
|
||||
self.tf_type_obj_combo_label = QtWidgets.QLabel(_("Object Type:"))
|
||||
self.tf_type_obj_combo_label = QtWidgets.QLabel('%s:' % _("Object Type"))
|
||||
self.tf_type_obj_combo_label.setToolTip(
|
||||
_("Specify the type of object to create from the image.\n"
|
||||
"It can be of type: Gerber or Geometry.")
|
||||
@@ -60,7 +60,7 @@ class ToolImage(FlatCAMTool):
|
||||
|
||||
# DPI value of the imported image
|
||||
self.dpi_entry = IntEntry()
|
||||
self.dpi_label = QtWidgets.QLabel(_("DPI value:"))
|
||||
self.dpi_label = QtWidgets.QLabel('%s:' % _("DPI value"))
|
||||
self.dpi_label.setToolTip(
|
||||
_("Specify a DPI value for the image.")
|
||||
)
|
||||
|
||||
@@ -40,7 +40,7 @@ class Measurement(FlatCAMTool):
|
||||
form_layout = QtWidgets.QFormLayout()
|
||||
self.layout.addLayout(form_layout)
|
||||
|
||||
self.units_label = QtWidgets.QLabel(_("Units:"))
|
||||
self.units_label = QtWidgets.QLabel('%s:' % _("Units"))
|
||||
self.units_label.setToolTip(_("Those are the units in which the distance is measured."))
|
||||
self.units_value = QtWidgets.QLabel("%s" % str({'mm': _("METRIC (mm)"), 'in': _("INCH (in)")}[self.units]))
|
||||
self.units_value.setDisabled(True)
|
||||
@@ -51,10 +51,10 @@ class Measurement(FlatCAMTool):
|
||||
self.stop_label = QtWidgets.QLabel("<b>%s</b> %s:" % (_('Stop'), _('Coords')))
|
||||
self.stop_label.setToolTip(_("This is the measuring Stop point coordinates."))
|
||||
|
||||
self.distance_x_label = QtWidgets.QLabel(_("Dx:"))
|
||||
self.distance_x_label = QtWidgets.QLabel('%s:' % _("Dx"))
|
||||
self.distance_x_label.setToolTip(_("This is the distance measured over the X axis."))
|
||||
|
||||
self.distance_y_label = QtWidgets.QLabel(_("Dy:"))
|
||||
self.distance_y_label = QtWidgets.QLabel('%s:' % _("Dy"))
|
||||
self.distance_y_label.setToolTip(_("This is the distance measured over the Y axis."))
|
||||
|
||||
self.total_distance_label = QtWidgets.QLabel("<b>%s:</b>" % _('DISTANCE'))
|
||||
|
||||
@@ -192,7 +192,7 @@ class NonCopperClear(FlatCAMTool, Gerber):
|
||||
self.ncc_overlap_entry = FCEntry()
|
||||
grid3.addWidget(self.ncc_overlap_entry, 1, 1)
|
||||
|
||||
nccmarginlabel = QtWidgets.QLabel(_('Margin:'))
|
||||
nccmarginlabel = QtWidgets.QLabel('%s:' % _('Margin'))
|
||||
nccmarginlabel.setToolTip(
|
||||
_("Bounding box margin.")
|
||||
)
|
||||
@@ -201,7 +201,7 @@ class NonCopperClear(FlatCAMTool, Gerber):
|
||||
grid3.addWidget(self.ncc_margin_entry, 2, 1)
|
||||
|
||||
# Method
|
||||
methodlabel = QtWidgets.QLabel(_('Method:'))
|
||||
methodlabel = QtWidgets.QLabel('%s:' % _('Method'))
|
||||
methodlabel.setToolTip(
|
||||
_("Algorithm for non-copper clearing:<BR>"
|
||||
"<B>Standard</B>: Fixed step inwards.<BR>"
|
||||
@@ -217,7 +217,7 @@ class NonCopperClear(FlatCAMTool, Gerber):
|
||||
grid3.addWidget(self.ncc_method_radio, 3, 1)
|
||||
|
||||
# Connect lines
|
||||
pathconnectlabel = QtWidgets.QLabel(_("Connect:"))
|
||||
pathconnectlabel = QtWidgets.QLabel('%s:' % _("Connect"))
|
||||
pathconnectlabel.setToolTip(
|
||||
_("Draw lines between resulting\n"
|
||||
"segments to minimize tool lifts.")
|
||||
@@ -226,7 +226,7 @@ class NonCopperClear(FlatCAMTool, Gerber):
|
||||
self.ncc_connect_cb = FCCheckBox()
|
||||
grid3.addWidget(self.ncc_connect_cb, 4, 1)
|
||||
|
||||
contourlabel = QtWidgets.QLabel(_("Contour:"))
|
||||
contourlabel = QtWidgets.QLabel('%s:' % _("Contour"))
|
||||
contourlabel.setToolTip(
|
||||
_("Cut around the perimeter of the polygon\n"
|
||||
"to trim rough edges.")
|
||||
@@ -235,7 +235,7 @@ class NonCopperClear(FlatCAMTool, Gerber):
|
||||
self.ncc_contour_cb = FCCheckBox()
|
||||
grid3.addWidget(self.ncc_contour_cb, 5, 1)
|
||||
|
||||
restlabel = QtWidgets.QLabel(_("Rest M.:"))
|
||||
restlabel = QtWidgets.QLabel('%s:' % _("Rest M."))
|
||||
restlabel.setToolTip(
|
||||
_("If checked, use 'rest machining'.\n"
|
||||
"Basically it will clear copper outside PCB features,\n"
|
||||
@@ -250,7 +250,7 @@ class NonCopperClear(FlatCAMTool, Gerber):
|
||||
grid3.addWidget(self.ncc_rest_cb, 6, 1)
|
||||
|
||||
# ## NCC Offset choice
|
||||
self.ncc_offset_choice_label = QtWidgets.QLabel(_("Offset:"))
|
||||
self.ncc_offset_choice_label = QtWidgets.QLabel('%s:' % _("Offset"))
|
||||
self.ncc_offset_choice_label.setToolTip(
|
||||
_("If used, it will add an offset to the copper features.\n"
|
||||
"The copper clearing will finish to a distance\n"
|
||||
@@ -262,7 +262,7 @@ class NonCopperClear(FlatCAMTool, Gerber):
|
||||
grid3.addWidget(self.ncc_choice_offset_cb, 7, 1)
|
||||
|
||||
# ## NCC Offset value
|
||||
self.ncc_offset_label = QtWidgets.QLabel(_("Offset value:"))
|
||||
self.ncc_offset_label = QtWidgets.QLabel('%s:' % _("Offset value"))
|
||||
self.ncc_offset_label.setToolTip(
|
||||
_("If used, it will add an offset to the copper features.\n"
|
||||
"The copper clearing will finish to a distance\n"
|
||||
@@ -291,10 +291,10 @@ class NonCopperClear(FlatCAMTool, Gerber):
|
||||
{'label': _('Box'), 'value': 'box'}])
|
||||
self.reference_label = QtWidgets.QLabel(_("Reference:"))
|
||||
self.reference_label.setToolTip(
|
||||
_("- 'Itself': the non copper clearing extent\n"
|
||||
_("When choosing the 'Itself' option the non copper clearing extent\n"
|
||||
"is based on the object that is copper cleared.\n "
|
||||
"- 'Box': will do non copper clearing within the box\n"
|
||||
"specified by the object selected in the Ref. Object combobox.")
|
||||
"Choosing the 'Box' option will do non copper clearing within the box\n"
|
||||
"specified by another object different than the one that is copper cleared.")
|
||||
)
|
||||
grid3.addWidget(self.reference_label, 9, 0)
|
||||
grid3.addWidget(self.reference_radio, 9, 1)
|
||||
@@ -302,7 +302,7 @@ class NonCopperClear(FlatCAMTool, Gerber):
|
||||
grid4 = QtWidgets.QGridLayout()
|
||||
self.tools_box.addLayout(grid4)
|
||||
|
||||
self.box_combo_type_label = QtWidgets.QLabel(_("Ref. Type:"))
|
||||
self.box_combo_type_label = QtWidgets.QLabel('%s:' % _("Ref. Type"))
|
||||
self.box_combo_type_label.setToolTip(
|
||||
_("The type of FlatCAM object to be used as non copper clearing reference.\n"
|
||||
"It can be Gerber, Excellon or Geometry.")
|
||||
@@ -315,7 +315,7 @@ class NonCopperClear(FlatCAMTool, Gerber):
|
||||
grid4.addWidget(self.box_combo_type_label, 0, 0)
|
||||
grid4.addWidget(self.box_combo_type, 0, 1)
|
||||
|
||||
self.box_combo_label = QtWidgets.QLabel(_("Ref. Object:"))
|
||||
self.box_combo_label = QtWidgets.QLabel('%s:' % _("Ref. Object"))
|
||||
self.box_combo_label.setToolTip(
|
||||
_("The FlatCAM object to be used as non copper clearing reference.")
|
||||
)
|
||||
|
||||
@@ -58,7 +58,7 @@ class ToolPaint(FlatCAMTool, Gerber):
|
||||
self.object_combo.setRootModelIndex(self.app.collection.index(2, 0, QtCore.QModelIndex()))
|
||||
self.object_combo.setCurrentIndex(1)
|
||||
|
||||
self.object_label = QtWidgets.QLabel(_("Geometry:"))
|
||||
self.object_label = QtWidgets.QLabel('%s:' % _("Geometry"))
|
||||
self.object_label.setToolTip(
|
||||
_("Geometry object to be painted. ")
|
||||
)
|
||||
@@ -158,7 +158,7 @@ class ToolPaint(FlatCAMTool, Gerber):
|
||||
self.tools_box.addLayout(grid3)
|
||||
|
||||
# Overlap
|
||||
ovlabel = QtWidgets.QLabel(_('Overlap Rate:'))
|
||||
ovlabel = QtWidgets.QLabel('%s:' % _('Overlap Rate'))
|
||||
ovlabel.setToolTip(
|
||||
_("How much (fraction) of the tool width to overlap each tool pass.\n"
|
||||
"Example:\n"
|
||||
@@ -175,7 +175,7 @@ class ToolPaint(FlatCAMTool, Gerber):
|
||||
grid3.addWidget(self.paintoverlap_entry, 1, 1)
|
||||
|
||||
# Margin
|
||||
marginlabel = QtWidgets.QLabel(_('Margin:'))
|
||||
marginlabel = QtWidgets.QLabel('%s:' % _('Margin'))
|
||||
marginlabel.setToolTip(
|
||||
_("Distance by which to avoid\n"
|
||||
"the edges of the polygon to\n"
|
||||
@@ -186,7 +186,7 @@ class ToolPaint(FlatCAMTool, Gerber):
|
||||
grid3.addWidget(self.paintmargin_entry, 2, 1)
|
||||
|
||||
# Method
|
||||
methodlabel = QtWidgets.QLabel(_('Method:'))
|
||||
methodlabel = QtWidgets.QLabel('%s:' % _('Method'))
|
||||
methodlabel.setToolTip(
|
||||
_("Algorithm for non-copper clearing:<BR>"
|
||||
"<B>Standard</B>: Fixed step inwards.<BR>"
|
||||
@@ -202,7 +202,7 @@ class ToolPaint(FlatCAMTool, Gerber):
|
||||
grid3.addWidget(self.paintmethod_combo, 3, 1)
|
||||
|
||||
# Connect lines
|
||||
pathconnectlabel = QtWidgets.QLabel(_("Connect:"))
|
||||
pathconnectlabel = QtWidgets.QLabel('%s:' % _("Connect"))
|
||||
pathconnectlabel.setToolTip(
|
||||
_("Draw lines between resulting\n"
|
||||
"segments to minimize tool lifts.")
|
||||
@@ -211,7 +211,7 @@ class ToolPaint(FlatCAMTool, Gerber):
|
||||
self.pathconnect_cb = FCCheckBox()
|
||||
grid3.addWidget(self.pathconnect_cb, 4, 1)
|
||||
|
||||
contourlabel = QtWidgets.QLabel(_("Contour:"))
|
||||
contourlabel = QtWidgets.QLabel('%s:' % _("Contour"))
|
||||
contourlabel.setToolTip(
|
||||
_("Cut around the perimeter of the polygon\n"
|
||||
"to trim rough edges.")
|
||||
@@ -220,7 +220,7 @@ class ToolPaint(FlatCAMTool, Gerber):
|
||||
self.paintcontour_cb = FCCheckBox()
|
||||
grid3.addWidget(self.paintcontour_cb, 5, 1)
|
||||
|
||||
restlabel = QtWidgets.QLabel(_("Rest M.:"))
|
||||
restlabel = QtWidgets.QLabel('%s:' % _("Rest M."))
|
||||
restlabel.setToolTip(
|
||||
_("If checked, use 'rest machining'.\n"
|
||||
"Basically it will clear copper outside PCB features,\n"
|
||||
@@ -235,7 +235,7 @@ class ToolPaint(FlatCAMTool, Gerber):
|
||||
grid3.addWidget(self.rest_cb, 6, 1)
|
||||
|
||||
# Polygon selection
|
||||
selectlabel = QtWidgets.QLabel(_('Selection:'))
|
||||
selectlabel = QtWidgets.QLabel('%s:' % _('Selection'))
|
||||
selectlabel.setToolTip(
|
||||
_("How to select the polygons to paint.<BR>"
|
||||
"Options:<BR>"
|
||||
@@ -265,7 +265,7 @@ class ToolPaint(FlatCAMTool, Gerber):
|
||||
grid4 = QtWidgets.QGridLayout()
|
||||
self.tools_box.addLayout(grid4)
|
||||
|
||||
self.box_combo_type_label = QtWidgets.QLabel(_("Ref. Type:"))
|
||||
self.box_combo_type_label = QtWidgets.QLabel('%s:' % _("Ref. Type"))
|
||||
self.box_combo_type_label.setToolTip(
|
||||
_("The type of FlatCAM object to be used as paint reference.\n"
|
||||
"It can be Gerber, Excellon or Geometry.")
|
||||
@@ -278,7 +278,7 @@ class ToolPaint(FlatCAMTool, Gerber):
|
||||
grid4.addWidget(self.box_combo_type_label, 0, 0)
|
||||
grid4.addWidget(self.box_combo_type, 0, 1)
|
||||
|
||||
self.box_combo_label = QtWidgets.QLabel(_("Ref. Object:"))
|
||||
self.box_combo_label = QtWidgets.QLabel('%s:' % _("Ref. Object"))
|
||||
self.box_combo_label.setToolTip(
|
||||
_("The FlatCAM object to be used as non copper clearing reference.")
|
||||
)
|
||||
|
||||
@@ -53,7 +53,7 @@ class Panelize(FlatCAMTool):
|
||||
self.type_obj_combo.setItemIcon(1, QtGui.QIcon("share/drill16.png"))
|
||||
self.type_obj_combo.setItemIcon(2, QtGui.QIcon("share/geometry16.png"))
|
||||
|
||||
self.type_obj_combo_label = QtWidgets.QLabel(_("Object Type:"))
|
||||
self.type_obj_combo_label = QtWidgets.QLabel('%s:' % _("Object Type"))
|
||||
self.type_obj_combo_label.setToolTip(
|
||||
_("Specify the type of object to be panelized\n"
|
||||
"It can be of type: Gerber, Excellon or Geometry.\n"
|
||||
@@ -68,7 +68,7 @@ class Panelize(FlatCAMTool):
|
||||
self.object_combo.setRootModelIndex(self.app.collection.index(0, 0, QtCore.QModelIndex()))
|
||||
self.object_combo.setCurrentIndex(1)
|
||||
|
||||
self.object_label = QtWidgets.QLabel(_("Object:"))
|
||||
self.object_label = QtWidgets.QLabel('%s:' % _("Object"))
|
||||
self.object_label.setToolTip(
|
||||
_("Object to be panelized. This means that it will\n"
|
||||
"be duplicated in an array of rows and columns.")
|
||||
@@ -108,7 +108,7 @@ class Panelize(FlatCAMTool):
|
||||
self.type_box_combo.setItemIcon(0, QtGui.QIcon("share/flatcam_icon16.png"))
|
||||
self.type_box_combo.setItemIcon(2, QtGui.QIcon("share/geometry16.png"))
|
||||
|
||||
self.type_box_combo_label = QtWidgets.QLabel(_("Box Type:"))
|
||||
self.type_box_combo_label = QtWidgets.QLabel('%s:' % _("Box Type"))
|
||||
self.type_box_combo_label.setToolTip(
|
||||
_("Specify the type of object to be used as an container for\n"
|
||||
"panelization. It can be: Gerber or Geometry type.\n"
|
||||
@@ -123,7 +123,7 @@ class Panelize(FlatCAMTool):
|
||||
self.box_combo.setRootModelIndex(self.app.collection.index(0, 0, QtCore.QModelIndex()))
|
||||
self.box_combo.setCurrentIndex(1)
|
||||
|
||||
self.box_combo_label = QtWidgets.QLabel(_("Box Object:"))
|
||||
self.box_combo_label = QtWidgets.QLabel('%s:' % _("Box Object"))
|
||||
self.box_combo_label.setToolTip(
|
||||
_("The actual object that is used a container for the\n "
|
||||
"selected object that is to be panelized.")
|
||||
@@ -144,7 +144,7 @@ class Panelize(FlatCAMTool):
|
||||
|
||||
# Spacing Columns
|
||||
self.spacing_columns = FCEntry()
|
||||
self.spacing_columns_label = QtWidgets.QLabel(_("Spacing cols:"))
|
||||
self.spacing_columns_label = QtWidgets.QLabel('%s:' % _("Spacing cols"))
|
||||
self.spacing_columns_label.setToolTip(
|
||||
_("Spacing between columns of the desired panel.\n"
|
||||
"In current units.")
|
||||
@@ -153,7 +153,7 @@ class Panelize(FlatCAMTool):
|
||||
|
||||
# Spacing Rows
|
||||
self.spacing_rows = FCEntry()
|
||||
self.spacing_rows_label = QtWidgets.QLabel(_("Spacing rows:"))
|
||||
self.spacing_rows_label = QtWidgets.QLabel('%s:' % _("Spacing rows"))
|
||||
self.spacing_rows_label.setToolTip(
|
||||
_("Spacing between rows of the desired panel.\n"
|
||||
"In current units.")
|
||||
@@ -162,7 +162,7 @@ class Panelize(FlatCAMTool):
|
||||
|
||||
# Columns
|
||||
self.columns = FCEntry()
|
||||
self.columns_label = QtWidgets.QLabel(_("Columns:"))
|
||||
self.columns_label = QtWidgets.QLabel('%s:' % _("Columns"))
|
||||
self.columns_label.setToolTip(
|
||||
_("Number of columns of the desired panel")
|
||||
)
|
||||
@@ -170,7 +170,7 @@ class Panelize(FlatCAMTool):
|
||||
|
||||
# Rows
|
||||
self.rows = FCEntry()
|
||||
self.rows_label = QtWidgets.QLabel(_("Rows:"))
|
||||
self.rows_label = QtWidgets.QLabel('%s:' % _("Rows"))
|
||||
self.rows_label.setToolTip(
|
||||
_("Number of rows of the desired panel")
|
||||
)
|
||||
@@ -190,7 +190,7 @@ class Panelize(FlatCAMTool):
|
||||
form_layout.addRow(self.panel_type_radio)
|
||||
|
||||
# Constrains
|
||||
self.constrain_cb = FCCheckBox(_("Constrain panel within:"))
|
||||
self.constrain_cb = FCCheckBox('%s:' % _("Constrain panel within"))
|
||||
self.constrain_cb.setToolTip(
|
||||
_("Area define by DX and DY within to constrain the panel.\n"
|
||||
"DX and DY values are in current units.\n"
|
||||
@@ -201,7 +201,7 @@ class Panelize(FlatCAMTool):
|
||||
form_layout.addRow(self.constrain_cb)
|
||||
|
||||
self.x_width_entry = FCEntry()
|
||||
self.x_width_lbl = QtWidgets.QLabel(_("Width (DX):"))
|
||||
self.x_width_lbl = QtWidgets.QLabel('%s:' % _("Width (DX)"))
|
||||
self.x_width_lbl.setToolTip(
|
||||
_("The width (DX) within which the panel must fit.\n"
|
||||
"In current units.")
|
||||
@@ -209,7 +209,7 @@ class Panelize(FlatCAMTool):
|
||||
form_layout.addRow(self.x_width_lbl, self.x_width_entry)
|
||||
|
||||
self.y_height_entry = FCEntry()
|
||||
self.y_height_lbl = QtWidgets.QLabel(_("Height (DY):"))
|
||||
self.y_height_lbl = QtWidgets.QLabel('%s:' % _("Height (DY)"))
|
||||
self.y_height_lbl.setToolTip(
|
||||
_("The height (DY)within which the panel must fit.\n"
|
||||
"In current units.")
|
||||
|
||||
@@ -54,7 +54,7 @@ class PcbWizard(FlatCAMTool):
|
||||
form_layout = QtWidgets.QFormLayout()
|
||||
self.layout.addLayout(form_layout)
|
||||
|
||||
self.excellon_label = QtWidgets.QLabel(_("Excellon file:"))
|
||||
self.excellon_label = QtWidgets.QLabel('%s:' % _("Excellon file"))
|
||||
self.excellon_label.setToolTip(
|
||||
_("Load the Excellon file.\n"
|
||||
"Usually it has a .DRL extension")
|
||||
@@ -62,7 +62,7 @@ class PcbWizard(FlatCAMTool):
|
||||
self.excellon_brn = FCButton(_("Open"))
|
||||
form_layout.addRow(self.excellon_label, self.excellon_brn)
|
||||
|
||||
self.inf_label = QtWidgets.QLabel(_("INF file:"))
|
||||
self.inf_label = QtWidgets.QLabel('%s:' % _("INF file"))
|
||||
self.inf_label.setToolTip(
|
||||
_("Load the INF file.")
|
||||
)
|
||||
@@ -92,7 +92,7 @@ class PcbWizard(FlatCAMTool):
|
||||
# Integral part of the coordinates
|
||||
self.int_entry = FCSpinner()
|
||||
self.int_entry.set_range(1, 10)
|
||||
self.int_label = QtWidgets.QLabel(_("Int. digits:"))
|
||||
self.int_label = QtWidgets.QLabel('%s:' % _("Int. digits"))
|
||||
self.int_label.setToolTip(
|
||||
_("The number of digits for the integral part of the coordinates.")
|
||||
)
|
||||
@@ -101,7 +101,7 @@ class PcbWizard(FlatCAMTool):
|
||||
# Fractional part of the coordinates
|
||||
self.frac_entry = FCSpinner()
|
||||
self.frac_entry.set_range(1, 10)
|
||||
self.frac_label = QtWidgets.QLabel(_("Frac. digits:"))
|
||||
self.frac_label = QtWidgets.QLabel('%s:' % _("Frac. digits"))
|
||||
self.frac_label.setToolTip(
|
||||
_("The number of digits for the fractional part of the coordinates.")
|
||||
)
|
||||
@@ -111,7 +111,7 @@ class PcbWizard(FlatCAMTool):
|
||||
self.zeros_radio = RadioSet([{'label': _('LZ'), 'value': 'LZ'},
|
||||
{'label': _('TZ'), 'value': 'TZ'},
|
||||
{'label': _('No Suppression'), 'value': 'D'}])
|
||||
self.zeros_label = QtWidgets.QLabel(_("Zeros supp.:"))
|
||||
self.zeros_label = QtWidgets.QLabel('%s:' % _("Zeros supp."))
|
||||
self.zeros_label.setToolTip(
|
||||
_("The type of zeros suppression used.\n"
|
||||
"Can be of type:\n"
|
||||
|
||||
@@ -139,7 +139,7 @@ class SolderPaste(FlatCAMTool):
|
||||
grid0_1 = QtWidgets.QGridLayout()
|
||||
self.layout.addLayout(grid0_1)
|
||||
|
||||
step1_lbl = QtWidgets.QLabel("<b>%s:</b>" % _('STEP 1:'))
|
||||
step1_lbl = QtWidgets.QLabel("<b>%s:</b>" % _('STEP 1'))
|
||||
step1_lbl.setToolTip(
|
||||
_("First step is to select a number of nozzle tools for usage\n"
|
||||
"and then optionally modify the GCode parameters bellow.")
|
||||
@@ -163,7 +163,7 @@ class SolderPaste(FlatCAMTool):
|
||||
|
||||
# Z dispense start
|
||||
self.z_start_entry = FCEntry()
|
||||
self.z_start_label = QtWidgets.QLabel(_("Z Dispense Start:"))
|
||||
self.z_start_label = QtWidgets.QLabel('%s:' % _("Z Dispense Start"))
|
||||
self.z_start_label.setToolTip(
|
||||
_("The height (Z) when solder paste dispensing starts.")
|
||||
)
|
||||
@@ -171,7 +171,7 @@ class SolderPaste(FlatCAMTool):
|
||||
|
||||
# Z dispense
|
||||
self.z_dispense_entry = FCEntry()
|
||||
self.z_dispense_label = QtWidgets.QLabel(_("Z Dispense:"))
|
||||
self.z_dispense_label = QtWidgets.QLabel('%s:' % _("Z Dispense"))
|
||||
self.z_dispense_label.setToolTip(
|
||||
_("The height (Z) when doing solder paste dispensing.")
|
||||
)
|
||||
@@ -179,7 +179,7 @@ class SolderPaste(FlatCAMTool):
|
||||
|
||||
# Z dispense stop
|
||||
self.z_stop_entry = FCEntry()
|
||||
self.z_stop_label = QtWidgets.QLabel(_("Z Dispense Stop:"))
|
||||
self.z_stop_label = QtWidgets.QLabel('%s:' % _("Z Dispense Stop"))
|
||||
self.z_stop_label.setToolTip(
|
||||
_("The height (Z) when solder paste dispensing stops.")
|
||||
)
|
||||
@@ -187,7 +187,7 @@ class SolderPaste(FlatCAMTool):
|
||||
|
||||
# Z travel
|
||||
self.z_travel_entry = FCEntry()
|
||||
self.z_travel_label = QtWidgets.QLabel(_("Z Travel:"))
|
||||
self.z_travel_label = QtWidgets.QLabel('%s:' % _("Z Travel"))
|
||||
self.z_travel_label.setToolTip(
|
||||
_("The height (Z) for travel between pads\n"
|
||||
"(without dispensing solder paste).")
|
||||
@@ -196,7 +196,7 @@ class SolderPaste(FlatCAMTool):
|
||||
|
||||
# Z toolchange location
|
||||
self.z_toolchange_entry = FCEntry()
|
||||
self.z_toolchange_label = QtWidgets.QLabel(_("Z Toolchange:"))
|
||||
self.z_toolchange_label = QtWidgets.QLabel('%s:' % _("Z Toolchange"))
|
||||
self.z_toolchange_label.setToolTip(
|
||||
_("The height (Z) for tool (nozzle) change.")
|
||||
)
|
||||
@@ -204,7 +204,7 @@ class SolderPaste(FlatCAMTool):
|
||||
|
||||
# X,Y Toolchange location
|
||||
self.xy_toolchange_entry = FCEntry()
|
||||
self.xy_toolchange_label = QtWidgets.QLabel(_("XY Toolchange:"))
|
||||
self.xy_toolchange_label = QtWidgets.QLabel('%s:' % _("Toolchange X-Y"))
|
||||
self.xy_toolchange_label.setToolTip(
|
||||
_("The X,Y location for tool (nozzle) change.\n"
|
||||
"The format is (x, y) where x and y are real numbers.")
|
||||
@@ -213,7 +213,7 @@ class SolderPaste(FlatCAMTool):
|
||||
|
||||
# Feedrate X-Y
|
||||
self.frxy_entry = FCEntry()
|
||||
self.frxy_label = QtWidgets.QLabel(_("Feedrate X-Y:"))
|
||||
self.frxy_label = QtWidgets.QLabel('%s:' % _("Feedrate X-Y"))
|
||||
self.frxy_label.setToolTip(
|
||||
_("Feedrate (speed) while moving on the X-Y plane.")
|
||||
)
|
||||
@@ -221,7 +221,7 @@ class SolderPaste(FlatCAMTool):
|
||||
|
||||
# Feedrate Z
|
||||
self.frz_entry = FCEntry()
|
||||
self.frz_label = QtWidgets.QLabel(_("Feedrate Z:"))
|
||||
self.frz_label = QtWidgets.QLabel('%s:' % _("Feedrate Z"))
|
||||
self.frz_label.setToolTip(
|
||||
_("Feedrate (speed) while moving vertically\n"
|
||||
"(on Z plane).")
|
||||
@@ -230,7 +230,7 @@ class SolderPaste(FlatCAMTool):
|
||||
|
||||
# Feedrate Z Dispense
|
||||
self.frz_dispense_entry = FCEntry()
|
||||
self.frz_dispense_label = QtWidgets.QLabel(_("Feedrate Z Dispense:"))
|
||||
self.frz_dispense_label = QtWidgets.QLabel('%s:' % _("Feedrate Z Dispense"))
|
||||
self.frz_dispense_label.setToolTip(
|
||||
_("Feedrate (speed) while moving up vertically\n"
|
||||
" to Dispense position (on Z plane).")
|
||||
@@ -239,7 +239,7 @@ class SolderPaste(FlatCAMTool):
|
||||
|
||||
# Spindle Speed Forward
|
||||
self.speedfwd_entry = FCEntry()
|
||||
self.speedfwd_label = QtWidgets.QLabel(_("Spindle Speed FWD:"))
|
||||
self.speedfwd_label = QtWidgets.QLabel('%s:' % _("Spindle Speed FWD"))
|
||||
self.speedfwd_label.setToolTip(
|
||||
_("The dispenser speed while pushing solder paste\n"
|
||||
"through the dispenser nozzle.")
|
||||
@@ -248,7 +248,7 @@ class SolderPaste(FlatCAMTool):
|
||||
|
||||
# Dwell Forward
|
||||
self.dwellfwd_entry = FCEntry()
|
||||
self.dwellfwd_label = QtWidgets.QLabel(_("Dwell FWD:"))
|
||||
self.dwellfwd_label = QtWidgets.QLabel('%s:' % _("Dwell FWD"))
|
||||
self.dwellfwd_label.setToolTip(
|
||||
_("Pause after solder dispensing.")
|
||||
)
|
||||
@@ -256,7 +256,7 @@ class SolderPaste(FlatCAMTool):
|
||||
|
||||
# Spindle Speed Reverse
|
||||
self.speedrev_entry = FCEntry()
|
||||
self.speedrev_label = QtWidgets.QLabel(_("Spindle Speed REV:"))
|
||||
self.speedrev_label = QtWidgets.QLabel('%s:' % _("Spindle Speed REV"))
|
||||
self.speedrev_label.setToolTip(
|
||||
_("The dispenser speed while retracting solder paste\n"
|
||||
"through the dispenser nozzle.")
|
||||
@@ -265,7 +265,7 @@ class SolderPaste(FlatCAMTool):
|
||||
|
||||
# Dwell Reverse
|
||||
self.dwellrev_entry = FCEntry()
|
||||
self.dwellrev_label = QtWidgets.QLabel(_("Dwell REV:"))
|
||||
self.dwellrev_label = QtWidgets.QLabel('%s:' % _("Dwell REV"))
|
||||
self.dwellrev_label.setToolTip(
|
||||
_("Pause after solder paste dispenser retracted,\n"
|
||||
"to allow pressure equilibrium.")
|
||||
@@ -273,7 +273,7 @@ class SolderPaste(FlatCAMTool):
|
||||
self.gcode_form_layout.addRow(self.dwellrev_label, self.dwellrev_entry)
|
||||
|
||||
# Postprocessors
|
||||
pp_label = QtWidgets.QLabel(_('PostProcessors:'))
|
||||
pp_label = QtWidgets.QLabel('%s:' % _('PostProcessor'))
|
||||
pp_label.setToolTip(
|
||||
_("Files that control the GCode generation.")
|
||||
)
|
||||
@@ -303,7 +303,7 @@ class SolderPaste(FlatCAMTool):
|
||||
grid2 = QtWidgets.QGridLayout()
|
||||
self.generation_box.addLayout(grid2)
|
||||
|
||||
step2_lbl = QtWidgets.QLabel("<b>%s</b>" % _('STEP 2:'))
|
||||
step2_lbl = QtWidgets.QLabel("<b>%s:</b>" % _('STEP 2'))
|
||||
step2_lbl.setToolTip(
|
||||
_("Second step is to create a solder paste dispensing\n"
|
||||
"geometry out of an Solder Paste Mask Gerber file.")
|
||||
@@ -321,7 +321,7 @@ class SolderPaste(FlatCAMTool):
|
||||
self.geo_obj_combo.setRootModelIndex(self.app.collection.index(2, 0, QtCore.QModelIndex()))
|
||||
self.geo_obj_combo.setCurrentIndex(1)
|
||||
|
||||
self.geo_object_label = QtWidgets.QLabel(_("Geo Result:"))
|
||||
self.geo_object_label = QtWidgets.QLabel('%s:' % _("Geo Result"))
|
||||
self.geo_object_label.setToolTip(
|
||||
_("Geometry Solder Paste object.\n"
|
||||
"The name of the object has to end in:\n"
|
||||
@@ -332,7 +332,7 @@ class SolderPaste(FlatCAMTool):
|
||||
grid3 = QtWidgets.QGridLayout()
|
||||
self.generation_box.addLayout(grid3)
|
||||
|
||||
step3_lbl = QtWidgets.QLabel("<b>%s</b>" % _('STEP 3:'))
|
||||
step3_lbl = QtWidgets.QLabel("<b>%s:</b>" % _('STEP 3'))
|
||||
step3_lbl.setToolTip(
|
||||
_("Third step is to select a solder paste dispensing geometry,\n"
|
||||
"and then generate a CNCJob object.\n\n"
|
||||
@@ -354,7 +354,7 @@ class SolderPaste(FlatCAMTool):
|
||||
self.cnc_obj_combo.setRootModelIndex(self.app.collection.index(3, 0, QtCore.QModelIndex()))
|
||||
self.cnc_obj_combo.setCurrentIndex(1)
|
||||
|
||||
self.cnc_object_label = QtWidgets.QLabel(_("CNC Result:"))
|
||||
self.cnc_object_label = QtWidgets.QLabel('%s:' % _("CNC Result"))
|
||||
self.cnc_object_label.setToolTip(
|
||||
_("CNCJob Solder paste object.\n"
|
||||
"In order to enable the GCode save section,\n"
|
||||
@@ -378,7 +378,7 @@ class SolderPaste(FlatCAMTool):
|
||||
"on PCB pads, to a file.")
|
||||
)
|
||||
|
||||
step4_lbl = QtWidgets.QLabel("<b>%s</b>" % _('STEP 4:'))
|
||||
step4_lbl = QtWidgets.QLabel("<b>%s:</b>" % _('STEP 4'))
|
||||
step4_lbl.setToolTip(
|
||||
_("Fourth step (and last) is to select a CNCJob made from \n"
|
||||
"a solder paste dispensing geometry, and then view/save it's GCode.")
|
||||
|
||||
@@ -61,7 +61,7 @@ class ToolSub(FlatCAMTool):
|
||||
self.target_gerber_combo.setRootModelIndex(self.app.collection.index(0, 0, QtCore.QModelIndex()))
|
||||
self.target_gerber_combo.setCurrentIndex(1)
|
||||
|
||||
self.target_gerber_label = QtWidgets.QLabel(_("Target:"))
|
||||
self.target_gerber_label = QtWidgets.QLabel('%s:' % _("Target"))
|
||||
self.target_gerber_label.setToolTip(
|
||||
_("Gerber object from which to substract\n"
|
||||
"the substractor Gerber object.")
|
||||
@@ -75,7 +75,7 @@ class ToolSub(FlatCAMTool):
|
||||
self.sub_gerber_combo.setRootModelIndex(self.app.collection.index(0, 0, QtCore.QModelIndex()))
|
||||
self.sub_gerber_combo.setCurrentIndex(1)
|
||||
|
||||
self.sub_gerber_label = QtWidgets.QLabel(_("Substractor:"))
|
||||
self.sub_gerber_label = QtWidgets.QLabel('%s:' % _("Substractor"))
|
||||
self.sub_gerber_label.setToolTip(
|
||||
_("Gerber object that will be substracted\n"
|
||||
"from the target Gerber object.")
|
||||
@@ -107,7 +107,7 @@ class ToolSub(FlatCAMTool):
|
||||
self.target_geo_combo.setRootModelIndex(self.app.collection.index(2, 0, QtCore.QModelIndex()))
|
||||
self.target_geo_combo.setCurrentIndex(1)
|
||||
|
||||
self.target_geo_label = QtWidgets.QLabel(_("Target:"))
|
||||
self.target_geo_label = QtWidgets.QLabel('%s:' % _("Target"))
|
||||
self.target_geo_label.setToolTip(
|
||||
_("Geometry object from which to substract\n"
|
||||
"the substractor Geometry object.")
|
||||
@@ -121,7 +121,7 @@ class ToolSub(FlatCAMTool):
|
||||
self.sub_geo_combo.setRootModelIndex(self.app.collection.index(2, 0, QtCore.QModelIndex()))
|
||||
self.sub_geo_combo.setCurrentIndex(1)
|
||||
|
||||
self.sub_geo_label = QtWidgets.QLabel(_("Substractor:"))
|
||||
self.sub_geo_label = QtWidgets.QLabel('%s:' % _("Substractor"))
|
||||
self.sub_geo_label.setToolTip(
|
||||
_("Geometry object that will be substracted\n"
|
||||
"from the target Geometry object.")
|
||||
|
||||
@@ -65,7 +65,7 @@ class ToolTransform(FlatCAMTool):
|
||||
self.transform_lay.addLayout(form_layout)
|
||||
form_child = QtWidgets.QHBoxLayout()
|
||||
|
||||
self.rotate_label = QtWidgets.QLabel(_("Angle:"))
|
||||
self.rotate_label = QtWidgets.QLabel('%s:' % _("Angle"))
|
||||
self.rotate_label.setToolTip(
|
||||
_("Angle for Rotation action, in degrees.\n"
|
||||
"Float number between -360 and 359.\n"
|
||||
@@ -104,7 +104,7 @@ class ToolTransform(FlatCAMTool):
|
||||
form1_child_1 = QtWidgets.QHBoxLayout()
|
||||
form1_child_2 = QtWidgets.QHBoxLayout()
|
||||
|
||||
self.skewx_label = QtWidgets.QLabel(_("Angle X:"))
|
||||
self.skewx_label = QtWidgets.QLabel('%s:' % _("Skew_X angle"))
|
||||
self.skewx_label.setToolTip(
|
||||
_("Angle for Skew action, in degrees.\n"
|
||||
"Float number between -360 and 359.")
|
||||
@@ -122,7 +122,7 @@ class ToolTransform(FlatCAMTool):
|
||||
"the bounding box for all selected objects."))
|
||||
self.skewx_button.setMinimumWidth(90)
|
||||
|
||||
self.skewy_label = QtWidgets.QLabel(_("Angle Y:"))
|
||||
self.skewy_label = QtWidgets.QLabel('%s:' % _("Skew_Y angle"))
|
||||
self.skewy_label.setToolTip(
|
||||
_("Angle for Skew action, in degrees.\n"
|
||||
"Float number between -360 and 359.")
|
||||
@@ -161,9 +161,9 @@ class ToolTransform(FlatCAMTool):
|
||||
form2_child_1 = QtWidgets.QHBoxLayout()
|
||||
form2_child_2 = QtWidgets.QHBoxLayout()
|
||||
|
||||
self.scalex_label = QtWidgets.QLabel(_("Factor X:"))
|
||||
self.scalex_label = QtWidgets.QLabel('%s:' % _("Scale_X factor"))
|
||||
self.scalex_label.setToolTip(
|
||||
_("Factor for Scale action over X axis.")
|
||||
_("Factor for scaling on X axis.")
|
||||
)
|
||||
self.scalex_label.setMinimumWidth(70)
|
||||
self.scalex_entry = FCEntry()
|
||||
@@ -178,9 +178,9 @@ class ToolTransform(FlatCAMTool):
|
||||
"the Scale reference checkbox state."))
|
||||
self.scalex_button.setMinimumWidth(90)
|
||||
|
||||
self.scaley_label = QtWidgets.QLabel(_("Factor Y:"))
|
||||
self.scaley_label = QtWidgets.QLabel('%s:' % _("Scale_Y factor"))
|
||||
self.scaley_label.setToolTip(
|
||||
_("Factor for Scale action over Y axis.")
|
||||
_("Factor for scaling on Y axis.")
|
||||
)
|
||||
self.scaley_label.setMinimumWidth(70)
|
||||
self.scaley_entry = FCEntry()
|
||||
@@ -200,12 +200,13 @@ class ToolTransform(FlatCAMTool):
|
||||
self.scale_link_cb.setText(_("Link"))
|
||||
self.scale_link_cb.setToolTip(
|
||||
_("Scale the selected object(s)\n"
|
||||
"using the Scale Factor X for both axis."))
|
||||
"using the Scale_X factor for both axis.")
|
||||
)
|
||||
self.scale_link_cb.setMinimumWidth(70)
|
||||
|
||||
self.scale_zero_ref_cb = FCCheckBox()
|
||||
self.scale_zero_ref_cb.set_value(True)
|
||||
self.scale_zero_ref_cb.setText(_("Scale Reference"))
|
||||
self.scale_zero_ref_cb.setText('%s' % _("Scale Reference"))
|
||||
self.scale_zero_ref_cb.setToolTip(
|
||||
_("Scale the selected object(s)\n"
|
||||
"using the origin reference when checked,\n"
|
||||
@@ -235,9 +236,9 @@ class ToolTransform(FlatCAMTool):
|
||||
form3_child_1 = QtWidgets.QHBoxLayout()
|
||||
form3_child_2 = QtWidgets.QHBoxLayout()
|
||||
|
||||
self.offx_label = QtWidgets.QLabel(_("Value X:"))
|
||||
self.offx_label = QtWidgets.QLabel('%s:' % _("Offset_X val"))
|
||||
self.offx_label.setToolTip(
|
||||
_("Value for Offset action on X axis.")
|
||||
_("Distance to offset on X axis. In current units.")
|
||||
)
|
||||
self.offx_label.setMinimumWidth(70)
|
||||
self.offx_entry = FCEntry()
|
||||
@@ -252,9 +253,9 @@ class ToolTransform(FlatCAMTool):
|
||||
"the bounding box for all selected objects.\n"))
|
||||
self.offx_button.setMinimumWidth(90)
|
||||
|
||||
self.offy_label = QtWidgets.QLabel(_("Value Y:"))
|
||||
self.offy_label = QtWidgets.QLabel('%s:' % _("Offset_Y val"))
|
||||
self.offy_label.setToolTip(
|
||||
_("Value for Offset action on Y axis.")
|
||||
_("Distance to offset on Y axis. In current units.")
|
||||
)
|
||||
self.offy_label.setMinimumWidth(70)
|
||||
self.offy_entry = FCEntry()
|
||||
@@ -309,7 +310,7 @@ class ToolTransform(FlatCAMTool):
|
||||
|
||||
self.flip_ref_cb = FCCheckBox()
|
||||
self.flip_ref_cb.set_value(True)
|
||||
self.flip_ref_cb.setText(_("Ref Pt"))
|
||||
self.flip_ref_cb.setText('%s' % _("Mirror Reference"))
|
||||
self.flip_ref_cb.setToolTip(
|
||||
_("Flip the selected object(s)\n"
|
||||
"around the point in Point Entry Field.\n"
|
||||
@@ -322,7 +323,7 @@ class ToolTransform(FlatCAMTool):
|
||||
"Point Entry field and click Flip on X(Y)"))
|
||||
self.flip_ref_cb.setMinimumWidth(70)
|
||||
|
||||
self.flip_ref_label = QtWidgets.QLabel(_("Point:"))
|
||||
self.flip_ref_label = QtWidgets.QLabel('%s:' % _(" Mirror Ref. Point"))
|
||||
self.flip_ref_label.setToolTip(
|
||||
_("Coordinates in format (x, y) used as reference for mirroring.\n"
|
||||
"The 'x' in (x, y) will be used when using Flip on X and\n"
|
||||
|
||||
Reference in New Issue
Block a user