- more modifications for the Gerber UI layout; made 'follow' an advanced Gerber option

This commit is contained in:
Marius Stanciu
2019-02-25 19:42:56 +02:00
committed by Marius S
parent d43de2ea77
commit 11ef818f0d
5 changed files with 41 additions and 31 deletions

View File

@@ -147,6 +147,14 @@ class GerberObjectUI(ObjectUI):
self.multicolored_cb.setFixedWidth(55)
grid0.addWidget(self.multicolored_cb, 0, 2)
# Plot CB
self.plot_cb = FCCheckBox('Plot')
self.plot_cb.setToolTip(
"Plot (show) this object."
)
self.plot_cb.setFixedWidth(55)
grid0.addWidget(self.plot_cb, 0, 3)
## Object name
self.name_hlay = QtWidgets.QHBoxLayout()
self.custom_box.addLayout(self.name_hlay)
@@ -160,7 +168,7 @@ class GerberObjectUI(ObjectUI):
self.custom_box.addLayout(hlay_plot)
#### Gerber Apertures ####
self.apertures_table_label = QtWidgets.QLabel('<b>Apertures</b>')
self.apertures_table_label = QtWidgets.QLabel('<b>Apertures:</b>')
self.apertures_table_label.setToolTip(
"Apertures Table containining this Gerber object apertures."
)
@@ -168,18 +176,12 @@ class GerberObjectUI(ObjectUI):
hlay_plot.addWidget(self.apertures_table_label)
# Aperture Table Visibility CB
self.aperture_table_visibility_cb = FCCheckBox()
hlay_plot.addWidget(self.aperture_table_visibility_cb)
# Plot CB
self.plot_cb = FCCheckBox('Plot Object')
self.plot_cb.setToolTip(
"Plot (show) this object."
)
self.plot_cb.setLayoutDirection(QtCore.Qt.RightToLeft)
hlay_plot.addStretch()
hlay_plot.addWidget(self.plot_cb)
# Aperture Table Visibility CB
self.aperture_table_visibility_cb = FCCheckBox('Show/Hide')
self.aperture_table_visibility_cb.setLayoutDirection(QtCore.Qt.RightToLeft)
hlay_plot.addWidget(self.aperture_table_visibility_cb)
self.apertures_table = FCTable()
self.custom_box.addWidget(self.apertures_table)