- 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:
@@ -1,6 +1,6 @@
|
||||
from PyQt6 import QtWidgets
|
||||
|
||||
from appGUI.GUIElements import FCDoubleSpinner, FCLabel, FCGridLayout, FCFrame
|
||||
from appGUI.GUIElements import FCDoubleSpinner, FCLabel, GLay, FCFrame
|
||||
from appGUI.preferences.OptionsGroupUI import OptionsGroupUI
|
||||
|
||||
import gettext
|
||||
@@ -35,7 +35,7 @@ class GeometryAdvOptPrefGroupUI(OptionsGroupUI):
|
||||
adv_frame = FCFrame()
|
||||
self.layout.addWidget(adv_frame)
|
||||
|
||||
adv_grid = FCGridLayout(v_spacing=5, h_spacing=3)
|
||||
adv_grid = GLay(v_spacing=5, h_spacing=3)
|
||||
adv_frame.setLayout(adv_grid)
|
||||
|
||||
# Size of trace segment on X axis
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from PyQt6 import QtWidgets
|
||||
|
||||
from appGUI.GUIElements import FCSpinner, RadioSet, FCLabel, FCGridLayout, FCFrame
|
||||
from appGUI.GUIElements import FCSpinner, RadioSet, FCLabel, GLay, FCFrame
|
||||
from appGUI.preferences.OptionsGroupUI import OptionsGroupUI
|
||||
|
||||
import gettext
|
||||
@@ -33,7 +33,7 @@ class GeometryEditorPrefGroupUI(OptionsGroupUI):
|
||||
editor_frame = FCFrame()
|
||||
self.layout.addWidget(editor_frame)
|
||||
|
||||
editor_grid = FCGridLayout(v_spacing=5, h_spacing=3)
|
||||
editor_grid = GLay(v_spacing=5, h_spacing=3)
|
||||
editor_frame.setLayout(editor_grid)
|
||||
|
||||
# Selection Limit
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from PyQt6 import QtWidgets, QtCore
|
||||
|
||||
from appGUI.GUIElements import FCLabel, FCComboBox, FCGridLayout, FCFrame
|
||||
from appGUI.GUIElements import FCLabel, FCComboBox, GLay, FCFrame
|
||||
from appGUI.preferences.OptionsGroupUI import OptionsGroupUI
|
||||
import gettext
|
||||
import appTranslation as fcTranslate
|
||||
@@ -33,7 +33,7 @@ class GeometryExpPrefGroupUI(OptionsGroupUI):
|
||||
export_frame = FCFrame()
|
||||
self.layout.addWidget(export_frame)
|
||||
|
||||
export_grid = FCGridLayout(v_spacing=5, h_spacing=3)
|
||||
export_grid = GLay(v_spacing=5, h_spacing=3)
|
||||
export_frame.setLayout(export_grid)
|
||||
|
||||
# Excellon non-decimal format
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from PyQt6 import QtGui
|
||||
|
||||
from appGUI.GUIElements import FCCheckBox, FCSpinner, FCColorEntry, RadioSet, FCLabel, FCGridLayout, FCFrame
|
||||
from appGUI.GUIElements import FCCheckBox, FCSpinner, FCColorEntry, RadioSet, FCLabel, GLay, FCFrame
|
||||
from appGUI.preferences.OptionsGroupUI import OptionsGroupUI
|
||||
|
||||
import platform
|
||||
@@ -32,7 +32,7 @@ class GeometryGenPrefGroupUI(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
|
||||
@@ -75,7 +75,7 @@ class GeometryGenPrefGroupUI(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.opt_algorithm_label = FCLabel(_('Algorithm:'))
|
||||
@@ -125,7 +125,7 @@ class GeometryGenPrefGroupUI(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"))
|
||||
@@ -144,7 +144,7 @@ class GeometryGenPrefGroupUI(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
|
||||
@@ -157,7 +157,7 @@ class GeometryGenPrefGroupUI(OptionsGroupUI):
|
||||
obj_grid.addWidget(self.line_color_label, 0, 0)
|
||||
obj_grid.addWidget(self.line_color_entry, 0, 1)
|
||||
|
||||
FCGridLayout.set_common_column_size([plot_grid, opt_grid, obj_grid, fuse_grid], 0)
|
||||
GLay.set_common_column_size([plot_grid, opt_grid, obj_grid, fuse_grid], 0)
|
||||
|
||||
self.layout.addStretch(1)
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from PyQt6 import QtWidgets
|
||||
from PyQt6.QtCore import Qt
|
||||
|
||||
from appGUI.GUIElements import FCDoubleSpinner, FCLabel, FCGridLayout, FCFrame
|
||||
from appGUI.GUIElements import FCDoubleSpinner, FCLabel, GLay, FCFrame
|
||||
from appGUI.preferences.OptionsGroupUI import OptionsGroupUI
|
||||
|
||||
import gettext
|
||||
@@ -31,7 +31,7 @@ class GeometryOptPrefGroupUI(OptionsGroupUI):
|
||||
param_frame = FCFrame()
|
||||
self.layout.addWidget(param_frame)
|
||||
|
||||
param_grid = FCGridLayout(v_spacing=5, h_spacing=3)
|
||||
param_grid = GLay(v_spacing=5, h_spacing=3)
|
||||
param_frame.setLayout(param_grid)
|
||||
|
||||
# Cut Z
|
||||
|
||||
Reference in New Issue
Block a user