- on Coppper Thieving Plugin some UI updates

- updated the GCGridLayout GUi element to automatically stretch the first column but offered also configuration; updated the use throughout the app
This commit is contained in:
Marius Stanciu
2021-09-09 16:28:14 +03:00
parent d61bbbb8d5
commit 241579d670
75 changed files with 222 additions and 558 deletions

View File

@@ -1193,13 +1193,9 @@ class RulesUI:
self.layout.addWidget(title_label)
# Form Layout
self.grid_layout = FCGridLayout(v_spacing=5, h_spacing=3)
self.grid_layout = FCGridLayout(v_spacing=5, h_spacing=3, c_stretch=[0, 3, 0])
self.layout.addLayout(self.grid_layout)
self.grid_layout.setColumnStretch(0, 0)
self.grid_layout.setColumnStretch(1, 3)
self.grid_layout.setColumnStretch(2, 0)
self.gerber_title_lbl = FCLabel('<b>%s</b>:' % _("GERBER"))
self.gerber_title_lbl.setToolTip(
_("Gerber objects for which to check rules.")
@@ -1399,8 +1395,6 @@ class RulesUI:
# Form Layout
self.grid_lay1 = FCGridLayout(v_spacing=5, h_spacing=3)
self.grid_lay1.setColumnStretch(0, 0)
self.grid_lay1.setColumnStretch(1, 1)
self.layout.addLayout(self.grid_lay1)
self.grid_lay1.addWidget(FCLabel(""), 0, 0, 1, 2)