2020-05-01 01:21:59 +00:00
|
|
|
from flatcamGUI.preferences.OptionsGroupUI import OptionsGroupUI
|
|
|
|
from flatcamGUI.preferences.PreferencesSectionUI import PreferencesSectionUI
|
2020-04-29 23:11:45 +00:00
|
|
|
from flatcamGUI.preferences.general.GeneralAppPrefGroupUI import GeneralAppPrefGroupUI
|
|
|
|
from flatcamGUI.preferences.general.GeneralAPPSetGroupUI import GeneralAPPSetGroupUI
|
2020-05-02 01:12:09 +00:00
|
|
|
from flatcamGUI.preferences.general.GeneralGUIPrefGroupUI import GeneralGUIPrefGroupUI2
|
2020-04-30 09:47:07 +00:00
|
|
|
|
2020-04-29 21:53:16 +00:00
|
|
|
|
2020-05-01 01:21:59 +00:00
|
|
|
class GeneralPreferencesUI(PreferencesSectionUI):
|
2020-04-29 21:53:16 +00:00
|
|
|
|
2020-05-01 01:21:59 +00:00
|
|
|
def __init__(self, decimals, **kwargs):
|
|
|
|
self.decimals = decimals
|
2020-05-02 01:12:09 +00:00
|
|
|
self.general_gui_group = GeneralGUIPrefGroupUI2(decimals=self.decimals)
|
2020-05-01 01:21:59 +00:00
|
|
|
self.general_app_group = GeneralAppPrefGroupUI(decimals=self.decimals)
|
2020-04-29 21:53:16 +00:00
|
|
|
self.general_app_set_group = GeneralAPPSetGroupUI(decimals=self.decimals)
|
2020-05-01 01:21:59 +00:00
|
|
|
super().__init__(**kwargs)
|
2020-04-29 21:53:16 +00:00
|
|
|
|
2020-05-01 01:21:59 +00:00
|
|
|
def build_groups(self) -> [OptionsGroupUI]:
|
|
|
|
return [
|
|
|
|
self.general_app_group,
|
|
|
|
self.general_gui_group,
|
|
|
|
self.general_app_set_group
|
|
|
|
]
|
2020-04-29 21:53:16 +00:00
|
|
|
|