- some reformatting and class rename
- when clicking the coordinates toolbars in the status bar now the Distance Plugin is shown and if already displayed, it is closed (toggle action)
This commit is contained in:
@@ -3,7 +3,7 @@ import platform
|
||||
from PyQt6 import QtWidgets, QtCore, QtGui
|
||||
|
||||
from appGUI.GUIElements import FCCheckBox, FCSpinner, RadioSet, FCSliderWithSpinner, FCColorEntry, FCLabel, \
|
||||
FCGridLayout, FCFrame
|
||||
GLay, FCFrame
|
||||
from appGUI.preferences.OptionsGroupUI import OptionsGroupUI
|
||||
import gettext
|
||||
import appTranslation as fcTranslate
|
||||
@@ -33,7 +33,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
|
||||
plot_frame = FCFrame()
|
||||
self.layout.addWidget(plot_frame)
|
||||
|
||||
plot_grid = FCGridLayout(v_spacing=5, h_spacing=3)
|
||||
plot_grid = GLay(v_spacing=5, h_spacing=3)
|
||||
plot_frame.setLayout(plot_grid)
|
||||
|
||||
# Plot CB
|
||||
@@ -105,7 +105,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
|
||||
format_frame = FCFrame()
|
||||
self.layout.addWidget(format_frame)
|
||||
|
||||
format_grid = FCGridLayout(v_spacing=5, h_spacing=3)
|
||||
format_grid = GLay(v_spacing=5, h_spacing=3)
|
||||
format_frame.setLayout(format_grid)
|
||||
|
||||
self.excellon_format_in_label = FCLabel('%s:' % _("INCH"))
|
||||
@@ -226,7 +226,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
|
||||
opt_frame = FCFrame()
|
||||
self.layout.addWidget(opt_frame)
|
||||
|
||||
opt_grid = FCGridLayout(v_spacing=5, h_spacing=3)
|
||||
opt_grid = GLay(v_spacing=5, h_spacing=3)
|
||||
opt_frame.setLayout(opt_grid)
|
||||
|
||||
self.excellon_optimization_label = FCLabel(_('Algorithm:'))
|
||||
@@ -278,7 +278,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
|
||||
fuse_frame = FCFrame()
|
||||
self.layout.addWidget(fuse_frame)
|
||||
|
||||
fuse_grid = FCGridLayout(v_spacing=5, h_spacing=3)
|
||||
fuse_grid = GLay(v_spacing=5, h_spacing=3)
|
||||
fuse_frame.setLayout(fuse_grid)
|
||||
|
||||
self.fuse_tools_cb = FCCheckBox(_("Fuse Tools"))
|
||||
@@ -297,7 +297,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
|
||||
obj_frame = FCFrame()
|
||||
self.layout.addWidget(obj_frame)
|
||||
|
||||
obj_grid = FCGridLayout(v_spacing=5, h_spacing=3)
|
||||
obj_grid = GLay(v_spacing=5, h_spacing=3)
|
||||
obj_frame.setLayout(obj_grid)
|
||||
|
||||
# Plot Line Color
|
||||
@@ -332,7 +332,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
|
||||
obj_grid.addWidget(self.excellon_alpha_label, 4, 0)
|
||||
obj_grid.addWidget(self.excellon_alpha_entry, 4, 1)
|
||||
|
||||
FCGridLayout.set_common_column_size([plot_grid, format_grid, opt_grid, obj_grid, fuse_grid], 0)
|
||||
GLay.set_common_column_size([plot_grid, format_grid, opt_grid, obj_grid, fuse_grid], 0)
|
||||
|
||||
self.layout.addStretch()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user