- replaced all usages of QFormLayout with QGridLayout
This commit is contained in:
@@ -3859,7 +3859,9 @@ class DialogBoxRadio(QtWidgets.QDialog):
|
||||
self.setWindowIcon(icon)
|
||||
self.setWindowTitle(str(title))
|
||||
|
||||
self.form = QtWidgets.QFormLayout(self)
|
||||
grid0 = QtWidgets.QGridLayout(self)
|
||||
grid0.setColumnStretch(0, 0)
|
||||
grid0.setColumnStretch(1, 1)
|
||||
|
||||
self.ref_label = QtWidgets.QLabel('%s:' % _("Reference"))
|
||||
self.ref_label.setToolTip(
|
||||
@@ -3872,12 +3874,13 @@ class DialogBoxRadio(QtWidgets.QDialog):
|
||||
{"label": _("Relative"), "value": "rel"}
|
||||
], orientation='horizontal', stretch=False)
|
||||
self.ref_radio.set_value(reference)
|
||||
self.form.addRow(self.ref_label, self.ref_radio)
|
||||
grid0.addWidget(self.ref_label, 0, 0)
|
||||
grid0.addWidget(self.ref_radio, 0, 1)
|
||||
|
||||
self.form.addRow(QtWidgets.QLabel(''))
|
||||
grid0.addWidget(QtWidgets.QLabel(''), 2, 0, 1, 2)
|
||||
|
||||
self.wdg_label = QtWidgets.QLabel('<b>%s</b>' % str(label))
|
||||
self.form.addRow(self.wdg_label)
|
||||
grid0.addWidget(self.wdg_label, 4, 0, 1, 2)
|
||||
|
||||
self.loc_label = QtWidgets.QLabel('%s:' % _("Location"))
|
||||
self.loc_label.setToolTip(
|
||||
@@ -3890,11 +3893,12 @@ class DialogBoxRadio(QtWidgets.QDialog):
|
||||
self.lineEdit.setText(str(self.location).replace('(', '').replace(')', ''))
|
||||
self.lineEdit.selectAll()
|
||||
self.lineEdit.setFocus()
|
||||
self.form.addRow(self.loc_label, self.lineEdit)
|
||||
grid0.addWidget(self.loc_label, 6, 0)
|
||||
grid0.addWidget(self.lineEdit, 6, 1)
|
||||
|
||||
self.button_box = QtWidgets.QDialogButtonBox(QtWidgets.QDialogButtonBox.Ok | QtWidgets.QDialogButtonBox.Cancel,
|
||||
orientation=Qt.Horizontal, parent=self)
|
||||
self.form.addRow(self.button_box)
|
||||
grid0.addWidget(self.button_box, 8, 0, 1, 2)
|
||||
|
||||
self.button_box.button(QtWidgets.QDialogButtonBox.Ok).setText(_("Ok"))
|
||||
self.button_box.button(QtWidgets.QDialogButtonBox.Cancel).setText(_("Cancel"))
|
||||
|
||||
@@ -2910,11 +2910,14 @@ class DocumentObjectUI(ObjectUI):
|
||||
h_lay.addStretch()
|
||||
|
||||
# ##############################################################
|
||||
# ############ FORM LAYOUT #####################################
|
||||
# ############ Grid LAYOUT #####################################
|
||||
# ##############################################################
|
||||
|
||||
self.form_box = QtWidgets.QFormLayout()
|
||||
self.custom_box.addLayout(self.form_box)
|
||||
self.grid0 = QtWidgets.QGridLayout()
|
||||
self.grid0.setColumnStretch(0, 0)
|
||||
self.grid0.setColumnStretch(1, 1)
|
||||
self.grid0.setColumnStretch(2, 0)
|
||||
self.custom_box.addLayout(self.grid0)
|
||||
|
||||
# Font
|
||||
self.font_type_label = FCLabel('%s:' % _("Font Type"))
|
||||
@@ -2931,27 +2934,27 @@ class DocumentObjectUI(ObjectUI):
|
||||
self.font_type_cb = QtWidgets.QFontComboBox(self)
|
||||
self.font_type_cb.setCurrentFont(f_current)
|
||||
|
||||
self.form_box.addRow(self.font_type_label, self.font_type_cb)
|
||||
self.grid0.addWidget(self.font_type_label, 0, 0)
|
||||
self.grid0.addWidget(self.font_type_cb, 0, 1)
|
||||
|
||||
# Font Size
|
||||
self.font_size_label = FCLabel('%s:' % _("Font Size"))
|
||||
|
||||
size_hlay = QtWidgets.QHBoxLayout()
|
||||
|
||||
self.font_size_cb = FCComboBox()
|
||||
self.font_size_cb.setEditable(True)
|
||||
self.font_size_cb.setMinimumContentsLength(3)
|
||||
self.font_size_cb.setMaximumWidth(70)
|
||||
# self.font_size_cb.setMaximumWidth(70)
|
||||
|
||||
font_sizes = ['6', '7', '8', '9', '10', '11', '12', '13', '14',
|
||||
'15', '16', '18', '20', '22', '24', '26', '28',
|
||||
'32', '36', '40', '44', '48', '54', '60', '66',
|
||||
'72', '80', '88', '96']
|
||||
|
||||
for i in font_sizes:
|
||||
self.font_size_cb.addItem(i)
|
||||
self.font_size_cb.addItems(font_sizes)
|
||||
|
||||
size_hlay = QtWidgets.QHBoxLayout()
|
||||
size_hlay.addWidget(self.font_size_cb)
|
||||
size_hlay.addStretch()
|
||||
|
||||
self.font_bold_tb = QtWidgets.QToolButton()
|
||||
self.font_bold_tb.setCheckable(True)
|
||||
@@ -2967,7 +2970,8 @@ class DocumentObjectUI(ObjectUI):
|
||||
self.font_under_tb.setIcon(QtGui.QIcon(self.resource_loc + '/underline32.png'))
|
||||
size_hlay.addWidget(self.font_under_tb)
|
||||
|
||||
self.form_box.addRow(self.font_size_label, size_hlay)
|
||||
self.grid0.addWidget(self.font_size_label, 2, 0)
|
||||
self.grid0.addLayout(size_hlay, 2, 1)
|
||||
|
||||
# Alignment Choices
|
||||
self.alignment_label = FCLabel('%s:' % _("Alignment"))
|
||||
@@ -2994,39 +2998,48 @@ class DocumentObjectUI(ObjectUI):
|
||||
self.al_justify_tb.setIcon(QtGui.QIcon(self.resource_loc + '/align_justify32.png'))
|
||||
al_hlay.addWidget(self.al_justify_tb)
|
||||
|
||||
self.form_box.addRow(self.alignment_label, al_hlay)
|
||||
al_hlay.addStretch()
|
||||
|
||||
self.grid0.addWidget(self.alignment_label, 4, 0)
|
||||
self.grid0.addLayout(al_hlay, 4, 1)
|
||||
|
||||
# Font Color
|
||||
self.font_color_label = FCLabel('%s:' % _('Font Color'))
|
||||
self.font_color_label.setToolTip(
|
||||
_("Set the font color for the selected text")
|
||||
)
|
||||
|
||||
self.grid0_child_1 = QtWidgets.QHBoxLayout()
|
||||
|
||||
self.font_color_entry = FCEntry()
|
||||
self.font_color_button = FCButton()
|
||||
self.font_color_button.setFixedSize(15, 15)
|
||||
|
||||
self.form_box_child_1 = QtWidgets.QHBoxLayout()
|
||||
self.form_box_child_1.addWidget(self.font_color_entry)
|
||||
self.form_box_child_1.addWidget(self.font_color_button)
|
||||
self.form_box_child_1.setAlignment(QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter)
|
||||
self.grid0_child_1.addWidget(self.font_color_entry)
|
||||
self.grid0_child_1.addWidget(self.font_color_button)
|
||||
self.grid0_child_1.setAlignment(QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter)
|
||||
|
||||
self.form_box.addRow(self.font_color_label, self.form_box_child_1)
|
||||
self.grid0.addWidget(self.font_color_label, 6, 0)
|
||||
self.grid0.addLayout(self.grid0_child_1, 6, 1)
|
||||
|
||||
# Selection Color
|
||||
self.sel_color_label = FCLabel('%s:' % _('Selection Color'))
|
||||
self.sel_color_label.setToolTip(
|
||||
_("Set the selection color when doing text selection.")
|
||||
)
|
||||
|
||||
self.grid0_child_2 = QtWidgets.QHBoxLayout()
|
||||
|
||||
self.sel_color_entry = FCEntry()
|
||||
self.sel_color_button = FCButton()
|
||||
self.sel_color_button.setFixedSize(15, 15)
|
||||
|
||||
self.form_box_child_2 = QtWidgets.QHBoxLayout()
|
||||
self.form_box_child_2.addWidget(self.sel_color_entry)
|
||||
self.form_box_child_2.addWidget(self.sel_color_button)
|
||||
self.form_box_child_2.setAlignment(QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter)
|
||||
self.grid0_child_2.addWidget(self.sel_color_entry)
|
||||
self.grid0_child_2.addWidget(self.sel_color_button)
|
||||
self.grid0_child_2.setAlignment(QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter)
|
||||
|
||||
self.form_box.addRow(self.sel_color_label, self.form_box_child_2)
|
||||
self.grid0.addWidget(self.sel_color_label, 8, 0)
|
||||
self.grid0.addLayout(self.grid0_child_2, 8, 1)
|
||||
|
||||
# Tab size
|
||||
self.tab_size_label = FCLabel('%s:' % _('Tab Size'))
|
||||
@@ -3036,8 +3049,9 @@ class DocumentObjectUI(ObjectUI):
|
||||
self.tab_size_spinner = FCSpinner(callback=self.confirmation_message_int)
|
||||
self.tab_size_spinner.set_range(0, 1000)
|
||||
|
||||
self.form_box.addRow(self.tab_size_label, self.tab_size_spinner)
|
||||
self.grid0.addWidget(self.tab_size_label, 10, 0)
|
||||
self.grid0.addWidget(self.tab_size_spinner, 10, 1)
|
||||
|
||||
self.custom_box.addStretch()
|
||||
self.custom_box.addStretch(1)
|
||||
|
||||
# end of file
|
||||
|
||||
@@ -34,8 +34,10 @@ class ExcellonExpPrefGroupUI(OptionsGroupUI):
|
||||
)
|
||||
self.layout.addWidget(self.export_options_label)
|
||||
|
||||
form = QtWidgets.QFormLayout()
|
||||
self.layout.addLayout(form)
|
||||
grid0 = QtWidgets.QGridLayout()
|
||||
grid0.setColumnStretch(0, 0)
|
||||
grid0.setColumnStretch(1, 1)
|
||||
self.layout.addLayout(grid0)
|
||||
|
||||
# Excellon Units
|
||||
self.excellon_units_label = FCLabel('%s:' % _('Units'))
|
||||
@@ -49,7 +51,8 @@ class ExcellonExpPrefGroupUI(OptionsGroupUI):
|
||||
_("The units used in the Excellon file.")
|
||||
)
|
||||
|
||||
form.addRow(self.excellon_units_label, self.excellon_units_radio)
|
||||
grid0.addWidget(self.excellon_units_label, 0, 0)
|
||||
grid0.addWidget(self.excellon_units_radio, 0, 1)
|
||||
|
||||
# Excellon non-decimal format
|
||||
self.digits_label = FCLabel("%s:" % _("Int/Decimals"))
|
||||
@@ -85,7 +88,8 @@ class ExcellonExpPrefGroupUI(OptionsGroupUI):
|
||||
hlay1.addWidget(self.format_dec_entry, QtCore.Qt.AlignLeft)
|
||||
hlay1.addStretch()
|
||||
|
||||
form.addRow(self.digits_label, hlay1)
|
||||
grid0.addWidget(self.digits_label, 2, 0)
|
||||
grid0.addLayout(hlay1, 2, 1)
|
||||
|
||||
# Select the Excellon Format
|
||||
self.format_label = FCLabel("%s:" % _("Format"))
|
||||
@@ -108,7 +112,8 @@ class ExcellonExpPrefGroupUI(OptionsGroupUI):
|
||||
"or TZ = trailing zeros are kept.")
|
||||
)
|
||||
|
||||
form.addRow(self.format_label, self.format_radio)
|
||||
grid0.addWidget(self.format_label, 4, 0)
|
||||
grid0.addWidget(self.format_radio, 4, 1)
|
||||
|
||||
# Excellon Zeros
|
||||
self.zeros_label = FCLabel('%s:' % _('Zeros'))
|
||||
@@ -131,7 +136,8 @@ class ExcellonExpPrefGroupUI(OptionsGroupUI):
|
||||
"and Leading Zeros are removed.")
|
||||
)
|
||||
|
||||
form.addRow(self.zeros_label, self.zeros_radio)
|
||||
grid0.addWidget(self.zeros_label, 6, 0)
|
||||
grid0.addWidget(self.zeros_radio, 6, 1)
|
||||
|
||||
# Slot type
|
||||
self.slot_type_label = FCLabel('%s:' % _('Slot type'))
|
||||
@@ -154,9 +160,12 @@ class ExcellonExpPrefGroupUI(OptionsGroupUI):
|
||||
"using the Drilled slot command (G85).")
|
||||
)
|
||||
|
||||
form.addRow(self.slot_type_label, self.slot_type_radio)
|
||||
grid0.addWidget(self.slot_type_label, 8, 0)
|
||||
grid0.addWidget(self.slot_type_radio, 8, 1)
|
||||
|
||||
self.layout.addStretch()
|
||||
self.layout.addStretch(1)
|
||||
|
||||
# Signals
|
||||
self.format_radio.activated_custom.connect(self.optimization_selection)
|
||||
|
||||
def optimization_selection(self):
|
||||
|
||||
@@ -35,8 +35,10 @@ class GerberExpPrefGroupUI(OptionsGroupUI):
|
||||
)
|
||||
self.layout.addWidget(self.export_options_label)
|
||||
|
||||
form = QtWidgets.QFormLayout()
|
||||
self.layout.addLayout(form)
|
||||
grid0 = QtWidgets.QGridLayout()
|
||||
grid0.setColumnStretch(0, 0)
|
||||
grid0.setColumnStretch(1, 1)
|
||||
self.layout.addLayout(grid0)
|
||||
|
||||
# Gerber Units
|
||||
self.gerber_units_label = FCLabel('%s:' % _('Units'))
|
||||
@@ -50,7 +52,8 @@ class GerberExpPrefGroupUI(OptionsGroupUI):
|
||||
_("The units used in the Gerber file.")
|
||||
)
|
||||
|
||||
form.addRow(self.gerber_units_label, self.gerber_units_radio)
|
||||
grid0.addWidget(self.gerber_units_label, 0, 0)
|
||||
grid0.addWidget(self.gerber_units_radio, 0, 1)
|
||||
|
||||
# Gerber format
|
||||
self.digits_label = FCLabel("%s:" % _("Int/Decimals"))
|
||||
@@ -90,7 +93,8 @@ class GerberExpPrefGroupUI(OptionsGroupUI):
|
||||
hlay1.addWidget(self.format_dec_entry, QtCore.Qt.AlignLeft)
|
||||
hlay1.addStretch()
|
||||
|
||||
form.addRow(self.digits_label, hlay1)
|
||||
grid0.addWidget(self.digits_label, 2, 0)
|
||||
grid0.addLayout(hlay1, 2, 1)
|
||||
|
||||
# Gerber Zeros
|
||||
self.zeros_label = FCLabel('%s:' % _('Zeros'))
|
||||
@@ -113,6 +117,7 @@ class GerberExpPrefGroupUI(OptionsGroupUI):
|
||||
"and Leading Zeros are kept.")
|
||||
)
|
||||
|
||||
form.addRow(self.zeros_label, self.zeros_radio)
|
||||
grid0.addWidget(self.zeros_label, 4, 0)
|
||||
grid0.addWidget(self.zeros_radio, 4, 1)
|
||||
|
||||
self.layout.addStretch()
|
||||
|
||||
@@ -35,19 +35,21 @@ class Tools2RulesCheckPrefGroupUI(OptionsGroupUI):
|
||||
self.layout.addWidget(self.crlabel)
|
||||
|
||||
# Form Layout
|
||||
self.form_layout_1 = QtWidgets.QFormLayout()
|
||||
self.layout.addLayout(self.form_layout_1)
|
||||
self.grid0 = QtWidgets.QGridLayout()
|
||||
self.grid0.setColumnStretch(0, 0)
|
||||
self.grid0.setColumnStretch(1, 1)
|
||||
self.layout.addLayout(self.grid0)
|
||||
|
||||
# Trace size
|
||||
self.trace_size_cb = FCCheckBox('%s:' % _("Trace Size"))
|
||||
self.trace_size_cb.setToolTip(
|
||||
_("This checks if the minimum size for traces is met.")
|
||||
)
|
||||
self.form_layout_1.addRow(self.trace_size_cb)
|
||||
self.grid0.addWidget(self.trace_size_cb, 0, 0, 1, 2)
|
||||
|
||||
# Trace size value
|
||||
self.trace_size_entry = FCDoubleSpinner()
|
||||
self.trace_size_entry.set_range(0.00001, 999.99999)
|
||||
self.trace_size_entry.set_range(0.0000, 10000.0000)
|
||||
self.trace_size_entry.set_precision(self.decimals)
|
||||
self.trace_size_entry.setSingleStep(0.1)
|
||||
|
||||
@@ -55,7 +57,8 @@ class Tools2RulesCheckPrefGroupUI(OptionsGroupUI):
|
||||
self.trace_size_lbl.setToolTip(
|
||||
_("Minimum acceptable trace size.")
|
||||
)
|
||||
self.form_layout_1.addRow(self.trace_size_lbl, self.trace_size_entry)
|
||||
self.grid0.addWidget(self.trace_size_lbl, 2, 0)
|
||||
self.grid0.addWidget(self.trace_size_entry, 2, 1)
|
||||
|
||||
# Copper2copper clearance
|
||||
self.clearance_copper2copper_cb = FCCheckBox('%s:' % _("Copper to Copper clearance"))
|
||||
@@ -63,11 +66,11 @@ class Tools2RulesCheckPrefGroupUI(OptionsGroupUI):
|
||||
_("This checks if the minimum clearance between copper\n"
|
||||
"features is met.")
|
||||
)
|
||||
self.form_layout_1.addRow(self.clearance_copper2copper_cb)
|
||||
self.grid0.addWidget(self.clearance_copper2copper_cb, 4, 0, 1, 2)
|
||||
|
||||
# Copper2copper clearance value
|
||||
self.clearance_copper2copper_entry = FCDoubleSpinner()
|
||||
self.clearance_copper2copper_entry.set_range(0.00001, 999.99999)
|
||||
self.clearance_copper2copper_entry.set_range(0.0000, 10000.0000)
|
||||
self.clearance_copper2copper_entry.set_precision(self.decimals)
|
||||
self.clearance_copper2copper_entry.setSingleStep(0.1)
|
||||
|
||||
@@ -75,7 +78,8 @@ class Tools2RulesCheckPrefGroupUI(OptionsGroupUI):
|
||||
self.clearance_copper2copper_lbl.setToolTip(
|
||||
_("Minimum acceptable clearance value.")
|
||||
)
|
||||
self.form_layout_1.addRow(self.clearance_copper2copper_lbl, self.clearance_copper2copper_entry)
|
||||
self.grid0.addWidget(self.clearance_copper2copper_lbl, 6, 0)
|
||||
self.grid0.addWidget(self.clearance_copper2copper_entry, 6, 1)
|
||||
|
||||
# Copper2outline clearance
|
||||
self.clearance_copper2ol_cb = FCCheckBox('%s:' % _("Copper to Outline clearance"))
|
||||
@@ -83,11 +87,11 @@ class Tools2RulesCheckPrefGroupUI(OptionsGroupUI):
|
||||
_("This checks if the minimum clearance between copper\n"
|
||||
"features and the outline is met.")
|
||||
)
|
||||
self.form_layout_1.addRow(self.clearance_copper2ol_cb)
|
||||
self.grid0.addWidget(self.clearance_copper2ol_cb, 8, 0, 1, 2)
|
||||
|
||||
# Copper2outline clearance value
|
||||
self.clearance_copper2ol_entry = FCDoubleSpinner()
|
||||
self.clearance_copper2ol_entry.set_range(0.00001, 999.99999)
|
||||
self.clearance_copper2ol_entry.set_range(0.0000, 10000.0000)
|
||||
self.clearance_copper2ol_entry.set_precision(self.decimals)
|
||||
self.clearance_copper2ol_entry.setSingleStep(0.1)
|
||||
|
||||
@@ -95,7 +99,8 @@ class Tools2RulesCheckPrefGroupUI(OptionsGroupUI):
|
||||
self.clearance_copper2ol_lbl.setToolTip(
|
||||
_("Minimum acceptable clearance value.")
|
||||
)
|
||||
self.form_layout_1.addRow(self.clearance_copper2ol_lbl, self.clearance_copper2ol_entry)
|
||||
self.grid0.addWidget(self.clearance_copper2ol_lbl, 10, 0)
|
||||
self.grid0.addWidget(self.clearance_copper2ol_entry, 10, 1)
|
||||
|
||||
# Silkscreen2silkscreen clearance
|
||||
self.clearance_silk2silk_cb = FCCheckBox('%s:' % _("Silk to Silk Clearance"))
|
||||
@@ -103,11 +108,11 @@ class Tools2RulesCheckPrefGroupUI(OptionsGroupUI):
|
||||
_("This checks if the minimum clearance between silkscreen\n"
|
||||
"features and silkscreen features is met.")
|
||||
)
|
||||
self.form_layout_1.addRow(self.clearance_silk2silk_cb)
|
||||
self.grid0.addWidget(self.clearance_silk2silk_cb, 12, 0, 1, 2)
|
||||
|
||||
# Copper2silkscreen clearance value
|
||||
self.clearance_silk2silk_entry = FCDoubleSpinner()
|
||||
self.clearance_silk2silk_entry.set_range(0.00001, 999.99999)
|
||||
self.clearance_silk2silk_entry.set_range(0.0000, 10000.0000)
|
||||
self.clearance_silk2silk_entry.set_precision(self.decimals)
|
||||
self.clearance_silk2silk_entry.setSingleStep(0.1)
|
||||
|
||||
@@ -115,7 +120,8 @@ class Tools2RulesCheckPrefGroupUI(OptionsGroupUI):
|
||||
self.clearance_silk2silk_lbl.setToolTip(
|
||||
_("Minimum acceptable clearance value.")
|
||||
)
|
||||
self.form_layout_1.addRow(self.clearance_silk2silk_lbl, self.clearance_silk2silk_entry)
|
||||
self.grid0.addWidget(self.clearance_silk2silk_lbl, 14, 0)
|
||||
self.grid0.addWidget(self.clearance_silk2silk_entry, 14, 1)
|
||||
|
||||
# Silkscreen2soldermask clearance
|
||||
self.clearance_silk2sm_cb = FCCheckBox('%s:' % _("Silk to Solder Mask Clearance"))
|
||||
@@ -123,11 +129,11 @@ class Tools2RulesCheckPrefGroupUI(OptionsGroupUI):
|
||||
_("This checks if the minimum clearance between silkscreen\n"
|
||||
"features and soldermask features is met.")
|
||||
)
|
||||
self.form_layout_1.addRow(self.clearance_silk2sm_cb)
|
||||
self.grid0.addWidget(self.clearance_silk2sm_cb, 16, 0, 1, 2)
|
||||
|
||||
# Silkscreen2soldermask clearance value
|
||||
self.clearance_silk2sm_entry = FCDoubleSpinner()
|
||||
self.clearance_silk2sm_entry.set_range(0.00001, 999.99999)
|
||||
self.clearance_silk2sm_entry.set_range(0.0000, 10000.0000)
|
||||
self.clearance_silk2sm_entry.set_precision(self.decimals)
|
||||
self.clearance_silk2sm_entry.setSingleStep(0.1)
|
||||
|
||||
@@ -135,7 +141,8 @@ class Tools2RulesCheckPrefGroupUI(OptionsGroupUI):
|
||||
self.clearance_silk2sm_lbl.setToolTip(
|
||||
_("Minimum acceptable clearance value.")
|
||||
)
|
||||
self.form_layout_1.addRow(self.clearance_silk2sm_lbl, self.clearance_silk2sm_entry)
|
||||
self.grid0.addWidget(self.clearance_silk2sm_lbl, 18, 0)
|
||||
self.grid0.addWidget(self.clearance_silk2sm_entry, 18, 1)
|
||||
|
||||
# Silk2outline clearance
|
||||
self.clearance_silk2ol_cb = FCCheckBox('%s:' % _("Silk to Outline Clearance"))
|
||||
@@ -143,11 +150,11 @@ class Tools2RulesCheckPrefGroupUI(OptionsGroupUI):
|
||||
_("This checks if the minimum clearance between silk\n"
|
||||
"features and the outline is met.")
|
||||
)
|
||||
self.form_layout_1.addRow(self.clearance_silk2ol_cb)
|
||||
self.grid0.addWidget(self.clearance_silk2ol_cb, 20, 0, 1, 2)
|
||||
|
||||
# Silk2outline clearance value
|
||||
self.clearance_silk2ol_entry = FCDoubleSpinner()
|
||||
self.clearance_silk2ol_entry.set_range(0.00001, 999.99999)
|
||||
self.clearance_silk2ol_entry.set_range(0.0000, 10000.0000)
|
||||
self.clearance_silk2ol_entry.set_precision(self.decimals)
|
||||
self.clearance_silk2ol_entry.setSingleStep(0.1)
|
||||
|
||||
@@ -155,7 +162,8 @@ class Tools2RulesCheckPrefGroupUI(OptionsGroupUI):
|
||||
self.clearance_silk2ol_lbl.setToolTip(
|
||||
_("Minimum acceptable clearance value.")
|
||||
)
|
||||
self.form_layout_1.addRow(self.clearance_silk2ol_lbl, self.clearance_silk2ol_entry)
|
||||
self.grid0.addWidget(self.clearance_silk2ol_lbl, 22, 0)
|
||||
self.grid0.addWidget(self.clearance_silk2ol_entry, 22, 1)
|
||||
|
||||
# Soldermask2soldermask clearance
|
||||
self.clearance_sm2sm_cb = FCCheckBox('%s:' % _("Minimum Solder Mask Sliver"))
|
||||
@@ -163,11 +171,11 @@ class Tools2RulesCheckPrefGroupUI(OptionsGroupUI):
|
||||
_("This checks if the minimum clearance between soldermask\n"
|
||||
"features and soldermask features is met.")
|
||||
)
|
||||
self.form_layout_1.addRow(self.clearance_sm2sm_cb)
|
||||
self.grid0.addWidget(self.clearance_sm2sm_cb, 24, 0, 1, 2)
|
||||
|
||||
# Soldermask2soldermask clearance value
|
||||
self.clearance_sm2sm_entry = FCDoubleSpinner()
|
||||
self.clearance_sm2sm_entry.set_range(0.00001, 999.99999)
|
||||
self.clearance_sm2sm_entry.set_range(0.0000, 10000.0000)
|
||||
self.clearance_sm2sm_entry.set_precision(self.decimals)
|
||||
self.clearance_sm2sm_entry.setSingleStep(0.1)
|
||||
|
||||
@@ -175,7 +183,8 @@ class Tools2RulesCheckPrefGroupUI(OptionsGroupUI):
|
||||
self.clearance_sm2sm_lbl.setToolTip(
|
||||
_("Minimum acceptable clearance value.")
|
||||
)
|
||||
self.form_layout_1.addRow(self.clearance_sm2sm_lbl, self.clearance_sm2sm_entry)
|
||||
self.grid0.addWidget(self.clearance_sm2sm_lbl, 26, 0)
|
||||
self.grid0.addWidget(self.clearance_sm2sm_entry, 26, 1)
|
||||
|
||||
# Ring integrity check
|
||||
self.ring_integrity_cb = FCCheckBox('%s:' % _("Minimum Annular Ring"))
|
||||
@@ -183,11 +192,11 @@ class Tools2RulesCheckPrefGroupUI(OptionsGroupUI):
|
||||
_("This checks if the minimum copper ring left by drilling\n"
|
||||
"a hole into a pad is met.")
|
||||
)
|
||||
self.form_layout_1.addRow(self.ring_integrity_cb)
|
||||
self.grid0.addWidget(self.ring_integrity_cb, 28, 0, 1, 2)
|
||||
|
||||
# Ring integrity value
|
||||
self.ring_integrity_entry = FCDoubleSpinner()
|
||||
self.ring_integrity_entry.set_range(0.00001, 999.99999)
|
||||
self.ring_integrity_entry.set_range(0.0000, 10000.0000)
|
||||
self.ring_integrity_entry.set_precision(self.decimals)
|
||||
self.ring_integrity_entry.setSingleStep(0.1)
|
||||
|
||||
@@ -195,9 +204,10 @@ class Tools2RulesCheckPrefGroupUI(OptionsGroupUI):
|
||||
self.ring_integrity_lbl.setToolTip(
|
||||
_("Minimum acceptable ring value.")
|
||||
)
|
||||
self.form_layout_1.addRow(self.ring_integrity_lbl, self.ring_integrity_entry)
|
||||
self.grid0.addWidget(self.ring_integrity_lbl, 30, 0)
|
||||
self.grid0.addWidget(self.ring_integrity_entry, 30, 1)
|
||||
|
||||
self.form_layout_1.addRow(FCLabel(""))
|
||||
self.grid0.addWidget(FCLabel(''), 32, 0, 1, 2)
|
||||
|
||||
# Hole2Hole clearance
|
||||
self.clearance_d2d_cb = FCCheckBox('%s:' % _("Hole to Hole Clearance"))
|
||||
@@ -205,11 +215,11 @@ class Tools2RulesCheckPrefGroupUI(OptionsGroupUI):
|
||||
_("This checks if the minimum clearance between a drill hole\n"
|
||||
"and another drill hole is met.")
|
||||
)
|
||||
self.form_layout_1.addRow(self.clearance_d2d_cb)
|
||||
self.grid0.addWidget(self.clearance_d2d_cb, 34, 0, 1, 2)
|
||||
|
||||
# Hole2Hole clearance value
|
||||
self.clearance_d2d_entry = FCDoubleSpinner()
|
||||
self.clearance_d2d_entry.set_range(0.00001, 999.99999)
|
||||
self.clearance_d2d_entry.set_range(0.0000, 10000.0000)
|
||||
self.clearance_d2d_entry.set_precision(self.decimals)
|
||||
self.clearance_d2d_entry.setSingleStep(0.1)
|
||||
|
||||
@@ -217,7 +227,8 @@ class Tools2RulesCheckPrefGroupUI(OptionsGroupUI):
|
||||
self.clearance_d2d_lbl.setToolTip(
|
||||
_("Minimum acceptable drill size.")
|
||||
)
|
||||
self.form_layout_1.addRow(self.clearance_d2d_lbl, self.clearance_d2d_entry)
|
||||
self.grid0.addWidget(self.clearance_d2d_lbl, 36, 0)
|
||||
self.grid0.addWidget(self.clearance_d2d_entry, 36, 1)
|
||||
|
||||
# Drill holes size check
|
||||
self.drill_size_cb = FCCheckBox('%s:' % _("Hole Size"))
|
||||
@@ -225,11 +236,11 @@ class Tools2RulesCheckPrefGroupUI(OptionsGroupUI):
|
||||
_("This checks if the drill holes\n"
|
||||
"sizes are above the threshold.")
|
||||
)
|
||||
self.form_layout_1.addRow(self.drill_size_cb)
|
||||
self.grid0.addWidget(self.drill_size_cb, 38, 0, 1, 2)
|
||||
|
||||
# Drile holes value
|
||||
self.drill_size_entry = FCDoubleSpinner()
|
||||
self.drill_size_entry.set_range(0.00001, 999.99999)
|
||||
self.drill_size_entry.set_range(0.0000, 10000.0000)
|
||||
self.drill_size_entry.set_precision(self.decimals)
|
||||
self.drill_size_entry.setSingleStep(0.1)
|
||||
|
||||
@@ -237,6 +248,7 @@ class Tools2RulesCheckPrefGroupUI(OptionsGroupUI):
|
||||
self.drill_size_lbl.setToolTip(
|
||||
_("Minimum acceptable clearance value.")
|
||||
)
|
||||
self.form_layout_1.addRow(self.drill_size_lbl, self.drill_size_entry)
|
||||
self.grid0.addWidget(self.drill_size_lbl, 40, 0)
|
||||
self.grid0.addWidget(self.drill_size_entry, 40, 1)
|
||||
|
||||
self.layout.addStretch()
|
||||
self.layout.addStretch(1)
|
||||
|
||||
Reference in New Issue
Block a user