Split up PreferencesUI.py into individual files for each class, then fixed the imports everywhere that broke because of this.

This commit is contained in:
David Robertson
2020-04-29 22:53:16 +01:00
parent aa16b5e339
commit f7989c029f
57 changed files with 10272 additions and 10004 deletions

View File

@@ -0,0 +1,37 @@
from PyQt5 import QtWidgets
from flatcamGUI.preferences.AutoCompletePrefGroupUI import AutoCompletePrefGroupUI
from flatcamGUI.preferences.FAGrbPrefGroupUI import FAGrbPrefGroupUI
from flatcamGUI.preferences.FAGcoPrefGroupUI import FAGcoPrefGroupUI
from flatcamGUI.preferences.FAExcPrefGroupUI import FAExcPrefGroupUI
class UtilPreferencesUI(QtWidgets.QWidget):
def __init__(self, decimals, parent=None):
QtWidgets.QWidget.__init__(self, parent=parent)
self.layout = QtWidgets.QHBoxLayout()
self.setLayout(self.layout)
self.decimals = decimals
self.vlay = QtWidgets.QVBoxLayout()
self.fa_excellon_group = FAExcPrefGroupUI(decimals=self.decimals)
self.fa_excellon_group.setMinimumWidth(260)
self.fa_gcode_group = FAGcoPrefGroupUI(decimals=self.decimals)
self.fa_gcode_group.setMinimumWidth(260)
self.vlay.addWidget(self.fa_excellon_group)
self.vlay.addWidget(self.fa_gcode_group)
self.fa_gerber_group = FAGrbPrefGroupUI(decimals=self.decimals)
self.fa_gerber_group.setMinimumWidth(260)
self.kw_group = AutoCompletePrefGroupUI(decimals=self.decimals)
self.kw_group.setMinimumWidth(260)
self.layout.addLayout(self.vlay)
self.layout.addWidget(self.fa_gerber_group)
self.layout.addWidget(self.kw_group)
self.layout.addStretch()