- changed the translators tab in the on_about() method
- added the usage of the FCLabel widget instead of QtWidgets.QLabel
This commit is contained in:
@@ -10,7 +10,7 @@ from PyQt6.QtCore import Qt
|
||||
|
||||
from appTool import AppTool
|
||||
from appGUI.GUIElements import RadioSet, FCTextArea, FCSpinner, FCEntry, FCCheckBox, FCComboBox, FCFileSaveDialog, \
|
||||
VerticalScrollArea, FCGridLayout
|
||||
VerticalScrollArea, FCGridLayout, FCLabel
|
||||
from appParsers.ParseSVG import *
|
||||
|
||||
from shapely.geometry.base import *
|
||||
@@ -736,7 +736,7 @@ class QRcodeUI:
|
||||
self.layout.addLayout(self.title_box)
|
||||
|
||||
# ## Title
|
||||
title_label = QtWidgets.QLabel("%s" % self.pluginName)
|
||||
title_label = FCLabel("%s" % self.pluginName)
|
||||
title_label.setStyleSheet("""
|
||||
QLabel
|
||||
{
|
||||
@@ -758,7 +758,7 @@ class QRcodeUI:
|
||||
self.level.setCheckable(True)
|
||||
self.title_box.addWidget(self.level)
|
||||
|
||||
self.layout.addWidget(QtWidgets.QLabel(''))
|
||||
self.layout.addWidget(FCLabel(''))
|
||||
|
||||
# ## Grid Layout
|
||||
i_grid_lay = FCGridLayout(v_spacing=5, h_spacing=3)
|
||||
@@ -772,7 +772,7 @@ class QRcodeUI:
|
||||
self.grb_object_combo.is_last = True
|
||||
self.grb_object_combo.obj_type = "Gerber"
|
||||
|
||||
self.grbobj_label = QtWidgets.QLabel("<b>%s:</b>" % _("GERBER"))
|
||||
self.grbobj_label = FCLabel("<b>%s:</b>" % _("GERBER"))
|
||||
self.grbobj_label.setToolTip(
|
||||
_("Gerber Object to which the QRCode will be added.")
|
||||
)
|
||||
@@ -786,7 +786,7 @@ class QRcodeUI:
|
||||
i_grid_lay.addWidget(separator_line, 2, 0, 1, 2)
|
||||
|
||||
# Text box
|
||||
self.text_label = QtWidgets.QLabel('<b>%s</b>:' % _("QRCode Data"))
|
||||
self.text_label = FCLabel('<b>%s</b>:' % _("QRCode Data"))
|
||||
self.text_label.setToolTip(
|
||||
_("QRCode Data. Alphanumeric text to be encoded in the QRCode.")
|
||||
)
|
||||
@@ -808,14 +808,14 @@ class QRcodeUI:
|
||||
grid_lay.setColumnStretch(0, 0)
|
||||
grid_lay.setColumnStretch(1, 1)
|
||||
|
||||
self.qrcode_label = QtWidgets.QLabel('<b>%s</b>' % _('Parameters'))
|
||||
self.qrcode_label = FCLabel('<b>%s</b>' % _('Parameters'))
|
||||
self.qrcode_label.setToolTip(
|
||||
_("The parameters used to shape the QRCode.")
|
||||
)
|
||||
grid_lay.addWidget(self.qrcode_label, 0, 0, 1, 2)
|
||||
|
||||
# VERSION #
|
||||
self.version_label = QtWidgets.QLabel('%s:' % _("Version"))
|
||||
self.version_label = FCLabel('%s:' % _("Version"))
|
||||
self.version_label.setToolTip(
|
||||
_("QRCode version can have values from 1 (21x21 boxes)\n"
|
||||
"to 40 (177x177 boxes).")
|
||||
@@ -828,7 +828,7 @@ class QRcodeUI:
|
||||
grid_lay.addWidget(self.version_entry, 2, 1)
|
||||
|
||||
# ERROR CORRECTION #
|
||||
self.error_label = QtWidgets.QLabel('%s:' % _("Error correction"))
|
||||
self.error_label = FCLabel('%s:' % _("Error correction"))
|
||||
self.error_label.setToolTip(
|
||||
_("Parameter that controls the error correction used for the QR Code.\n"
|
||||
"L = maximum 7%% errors can be corrected\n"
|
||||
@@ -851,7 +851,7 @@ class QRcodeUI:
|
||||
grid_lay.addWidget(self.error_radio, 4, 1)
|
||||
|
||||
# BOX SIZE #
|
||||
self.bsize_label = QtWidgets.QLabel('%s:' % _("Box Size"))
|
||||
self.bsize_label = FCLabel('%s:' % _("Box Size"))
|
||||
self.bsize_label.setToolTip(
|
||||
_("Box size control the overall size of the QRcode\n"
|
||||
"by adjusting the size of each box in the code.")
|
||||
@@ -864,7 +864,7 @@ class QRcodeUI:
|
||||
grid_lay.addWidget(self.bsize_entry, 6, 1)
|
||||
|
||||
# BORDER SIZE #
|
||||
self.border_size_label = QtWidgets.QLabel('%s:' % _("Border Size"))
|
||||
self.border_size_label = FCLabel('%s:' % _("Border Size"))
|
||||
self.border_size_label.setToolTip(
|
||||
_("Size of the QRCode border. How many boxes thick is the border.\n"
|
||||
"Default value is 4. The width of the clearance around the QRCode.")
|
||||
@@ -877,7 +877,7 @@ class QRcodeUI:
|
||||
grid_lay.addWidget(self.border_size_entry, 8, 1)
|
||||
|
||||
# POLARITY CHOICE #
|
||||
self.pol_label = QtWidgets.QLabel('%s:' % _("Polarity"))
|
||||
self.pol_label = FCLabel('%s:' % _("Polarity"))
|
||||
self.pol_label.setToolTip(
|
||||
_("Choose the polarity of the QRCode.\n"
|
||||
"It can be drawn in a negative way (squares are clear)\n"
|
||||
@@ -895,7 +895,7 @@ class QRcodeUI:
|
||||
grid_lay.addWidget(self.pol_radio, 10, 1)
|
||||
|
||||
# BOUNDING BOX TYPE #
|
||||
self.bb_label = QtWidgets.QLabel('%s:' % _("Bounding Box"))
|
||||
self.bb_label = FCLabel('%s:' % _("Bounding Box"))
|
||||
self.bb_label.setToolTip(
|
||||
_("The bounding box, meaning the empty space that surrounds\n"
|
||||
"the QRCode geometry, can have a rounded or a square shape.")
|
||||
@@ -936,7 +936,7 @@ class QRcodeUI:
|
||||
self.export_frame.hide()
|
||||
|
||||
# FILL COLOR #
|
||||
self.fill_color_label = QtWidgets.QLabel('%s:' % _('Fill Color'))
|
||||
self.fill_color_label = FCLabel('%s:' % _('Fill Color'))
|
||||
self.fill_color_label.setToolTip(
|
||||
_("Set the QRCode fill color (squares color).")
|
||||
)
|
||||
@@ -960,7 +960,7 @@ class QRcodeUI:
|
||||
self.export_lay.addWidget(self.transparent_cb, 1, 0, 1, 2)
|
||||
|
||||
# BACK COLOR #
|
||||
self.back_color_label = QtWidgets.QLabel('%s:' % _('Back Color'))
|
||||
self.back_color_label = FCLabel('%s:' % _('Back Color'))
|
||||
self.back_color_label.setToolTip(
|
||||
_("Set the QRCode background color.")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user