2020-04-29 21:53:16 +00:00
|
|
|
from PyQt5 import QtWidgets
|
|
|
|
|
2020-04-29 23:11:45 +00:00
|
|
|
from flatcamGUI.preferences.general.GeneralAppPrefGroupUI import GeneralAppPrefGroupUI
|
|
|
|
from flatcamGUI.preferences.general.GeneralAPPSetGroupUI import GeneralAPPSetGroupUI
|
|
|
|
from flatcamGUI.preferences.general.GeneralGUIPrefGroupUI import GeneralGUIPrefGroupUI
|
2020-04-29 21:53:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
class GeneralPreferencesUI(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.general_app_group = GeneralAppPrefGroupUI(decimals=self.decimals)
|
|
|
|
self.general_app_group.setMinimumWidth(250)
|
|
|
|
|
|
|
|
self.general_gui_group = GeneralGUIPrefGroupUI(decimals=self.decimals)
|
|
|
|
self.general_gui_group.setMinimumWidth(250)
|
|
|
|
|
|
|
|
self.general_app_set_group = GeneralAPPSetGroupUI(decimals=self.decimals)
|
|
|
|
self.general_app_set_group.setMinimumWidth(250)
|
|
|
|
|
|
|
|
self.layout.addWidget(self.general_app_group)
|
|
|
|
self.layout.addWidget(self.general_gui_group)
|
|
|
|
self.layout.addWidget(self.general_app_set_group)
|
|
|
|
|
|
|
|
self.layout.addStretch()
|