- some more code is refactored in the Preferences - the axis will now be drawn on the canvas as they were left in the previous run (just like the HUD and the Workspace) - for processors with less than 4 cores now the default number of workers is 1 (changed from 2) - some graphical settings go now directly to the defaults dictionary and will not pass through the `options` app dictionary
42 lines
1.5 KiB
Python
42 lines
1.5 KiB
Python
from PyQt6 import QtWidgets
|
|
import sys
|
|
|
|
from appGUI.preferences.utilities.AutoCompletePrefGroupUI import AutoCompletePrefGroupUI
|
|
from appGUI.preferences.utilities.FAGrbPrefGroupUI import FAGrbPrefGroupUI
|
|
from appGUI.preferences.utilities.FAGcoPrefGroupUI import FAGcoPrefGroupUI
|
|
from appGUI.preferences.utilities.FAExcPrefGroupUI import FAExcPrefGroupUI
|
|
|
|
|
|
class UtilPreferencesUI(QtWidgets.QWidget):
|
|
|
|
def __init__(self, app, parent=None):
|
|
QtWidgets.QWidget.__init__(self, parent=parent)
|
|
self.layout = QtWidgets.QHBoxLayout()
|
|
self.setLayout(self.layout)
|
|
|
|
self.fa_excellon_group = FAExcPrefGroupUI(app=app)
|
|
self.fa_excellon_group.setMinimumWidth(260)
|
|
|
|
self.fa_gcode_group = FAGcoPrefGroupUI(app=app)
|
|
self.fa_gcode_group.setMinimumWidth(260)
|
|
|
|
self.fa_gerber_group = FAGrbPrefGroupUI(app=app)
|
|
self.fa_gerber_group.setMinimumWidth(260)
|
|
|
|
self.kw_group = AutoCompletePrefGroupUI(app=app)
|
|
self.kw_group.setMinimumWidth(260)
|
|
|
|
# this does not make sense in Linux and MacOs so w edo not display it for those OS's
|
|
if sys.platform not in ['linux', 'darwin']:
|
|
self.vlay = QtWidgets.QVBoxLayout()
|
|
|
|
self.vlay.addWidget(self.fa_excellon_group)
|
|
self.vlay.addWidget(self.fa_gcode_group)
|
|
|
|
self.layout.addLayout(self.vlay)
|
|
self.layout.addWidget(self.fa_gerber_group)
|
|
|
|
self.layout.addWidget(self.kw_group)
|
|
|
|
self.layout.addStretch(1)
|