- added a Mark All button in the Gerber aperture table.

- because adding shapes to the shapes collection (when doing Mark or Mark All) is time consuming I made the plot_apertures() threaded.
This commit is contained in:
Marius Stanciu
2019-02-26 23:12:15 +02:00
committed by Marius S
parent 5cade2ec4e
commit 7b4ea1dfa9
4 changed files with 93 additions and 33 deletions

View File

@@ -171,25 +171,36 @@ class GerberObjectUI(ObjectUI):
#### Gerber Apertures ####
self.apertures_table_label = QtWidgets.QLabel('<b>Apertures:</b>')
self.apertures_table_label.setToolTip(
"Apertures Table containining this Gerber object apertures."
"Apertures Table for the Gerber Object."
)
self.apertures_table_label.setFixedWidth(90)
hlay_plot.addWidget(self.apertures_table_label)
hlay_plot.addStretch()
# Aperture Table Visibility CB
self.aperture_table_visibility_cb = FCCheckBox('Show/Hide')
self.aperture_table_visibility_cb = FCCheckBox()
self.aperture_table_visibility_cb.setToolTip(
"Toogle the display of the Gerber Apertures Table.\n"
"Also, on hide, it will delete all mark shapes\n"
"Toggle the display of the Gerber Apertures Table.\n"
"When unchecked, it will delete all mark shapes\n"
"that are drawn on canvas."
)
self.aperture_table_visibility_cb.setLayoutDirection(QtCore.Qt.RightToLeft)
# self.aperture_table_visibility_cb.setLayoutDirection(QtCore.Qt.RightToLeft)
hlay_plot.addWidget(self.aperture_table_visibility_cb)
hlay_plot.addStretch()
# Aperture Mark all CB
self.mark_all_cb = FCCheckBox('Mark All')
self.mark_all_cb.setToolTip(
"When checked it will display all the apertures.\n"
"When unchecked, it will delete all mark shapes\n"
"that are drawn on canvas."
)
self.mark_all_cb.setLayoutDirection(QtCore.Qt.RightToLeft)
hlay_plot.addWidget(self.mark_all_cb)
self.apertures_table = FCTable()
self.custom_box.addWidget(self.apertures_table)