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
|
2020-05-03 03:18:10 +00:00
|
|
|
from flatcamGUI.preferences.general.GeneralAppSettingsGroupUI import GeneralAppSettingsGroupUI
|
2020-05-02 02:08:42 +00:00
|
|
|
from flatcamGUI.preferences.general.GeneralGUIPrefGroupUI import GeneralGUIPrefGroupUI
|
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):
|
2020-05-03 14:57:12 +00:00
|
|
|
self.decimals = 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 [
|
2020-05-03 14:57:12 +00:00
|
|
|
GeneralAppPrefGroupUI(decimals=self.decimals),
|
2020-05-03 15:01:06 +00:00
|
|
|
GeneralGUIPrefGroupUI(decimals=self.decimals),
|
2020-05-03 14:57:12 +00:00
|
|
|
GeneralAppSettingsGroupUI(decimals=self.decimals)
|
2020-05-01 01:21:59 +00:00
|
|
|
]
|
2020-04-29 21:53:16 +00:00
|
|
|
|