2020-05-06 01:15:41 +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.excellon.ExcellonEditorPrefGroupUI import ExcellonEditorPrefGroupUI
|
|
|
|
from flatcamGUI.preferences.excellon.ExcellonExpPrefGroupUI import ExcellonExpPrefGroupUI
|
|
|
|
from flatcamGUI.preferences.excellon.ExcellonAdvOptPrefGroupUI import ExcellonAdvOptPrefGroupUI
|
|
|
|
from flatcamGUI.preferences.excellon.ExcellonOptPrefGroupUI import ExcellonOptPrefGroupUI
|
|
|
|
from flatcamGUI.preferences.excellon.ExcellonGenPrefGroupUI import ExcellonGenPrefGroupUI
|
2020-04-29 21:53:16 +00:00
|
|
|
|
2020-04-30 09:47:07 +00:00
|
|
|
|
2020-05-06 01:15:41 +00:00
|
|
|
class ExcellonPreferencesUI(PreferencesSectionUI):
|
2020-04-29 21:53:16 +00:00
|
|
|
|
2020-05-06 01:15:41 +00:00
|
|
|
def __init__(self, decimals, **kwargs):
|
2020-04-29 21:53:16 +00:00
|
|
|
self.decimals = decimals
|
|
|
|
self.excellon_gen_group = ExcellonGenPrefGroupUI(decimals=self.decimals)
|
|
|
|
self.excellon_opt_group = ExcellonOptPrefGroupUI(decimals=self.decimals)
|
|
|
|
self.excellon_exp_group = ExcellonExpPrefGroupUI(decimals=self.decimals)
|
|
|
|
self.excellon_adv_opt_group = ExcellonAdvOptPrefGroupUI(decimals=self.decimals)
|
|
|
|
self.excellon_editor_group = ExcellonEditorPrefGroupUI(decimals=self.decimals)
|
2020-05-06 01:15:41 +00:00
|
|
|
super().__init__(**kwargs)
|
2020-04-29 21:53:16 +00:00
|
|
|
|
2020-05-06 01:15:41 +00:00
|
|
|
def build_groups(self) -> [OptionsGroupUI]:
|
|
|
|
return [
|
|
|
|
self.excellon_gen_group,
|
|
|
|
self.excellon_opt_group,
|
|
|
|
self.excellon_exp_group,
|
|
|
|
self.excellon_adv_opt_group,
|
|
|
|
self.excellon_editor_group
|
|
|
|
]
|
2020-04-29 21:53:16 +00:00
|
|
|
|