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.gerber.GerberEditorPrefGroupUI import GerberEditorPrefGroupUI
|
|
|
|
from flatcamGUI.preferences.gerber.GerberExpPrefGroupUI import GerberExpPrefGroupUI
|
|
|
|
from flatcamGUI.preferences.gerber.GerberAdvOptPrefGroupUI import GerberAdvOptPrefGroupUI
|
|
|
|
from flatcamGUI.preferences.gerber.GerberOptPrefGroupUI import GerberOptPrefGroupUI
|
|
|
|
from flatcamGUI.preferences.gerber.GerberGenPrefGroupUI import GerberGenPrefGroupUI
|
2020-04-29 21:53:16 +00:00
|
|
|
|
|
|
|
|
2020-05-06 01:15:41 +00:00
|
|
|
class GerberPreferencesUI(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.gerber_gen_group = GerberGenPrefGroupUI(decimals=self.decimals)
|
|
|
|
self.gerber_opt_group = GerberOptPrefGroupUI(decimals=self.decimals)
|
|
|
|
self.gerber_exp_group = GerberExpPrefGroupUI(decimals=self.decimals)
|
|
|
|
self.gerber_adv_opt_group = GerberAdvOptPrefGroupUI(decimals=self.decimals)
|
|
|
|
self.gerber_editor_group = GerberEditorPrefGroupUI(decimals=self.decimals)
|
2020-05-06 01:15:41 +00:00
|
|
|
super().__init__(**kwargs)
|
|
|
|
|
|
|
|
def build_groups(self) -> [OptionsGroupUI]:
|
|
|
|
return [
|
|
|
|
self.gerber_gen_group,
|
|
|
|
self.gerber_opt_group, # FIXME vertical layout with opt and ext
|
|
|
|
self.gerber_exp_group,
|
|
|
|
self.gerber_adv_opt_group,
|
|
|
|
self.gerber_editor_group
|
|
|
|
]
|