2020-04-29 21:53:16 +00:00
|
|
|
from PyQt5 import QtWidgets
|
|
|
|
|
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.cncjob.CNCJobAdvOptPrefGroupUI import CNCJobAdvOptPrefGroupUI
|
|
|
|
from flatcamGUI.preferences.cncjob.CNCJobOptPrefGroupUI import CNCJobOptPrefGroupUI
|
|
|
|
from flatcamGUI.preferences.cncjob.CNCJobGenPrefGroupUI import CNCJobGenPrefGroupUI
|
2020-04-29 21:53:16 +00:00
|
|
|
|
|
|
|
|
2020-05-06 01:15:41 +00:00
|
|
|
class CNCJobPreferencesUI(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.cncjob_gen_group = CNCJobGenPrefGroupUI(decimals=self.decimals)
|
|
|
|
self.cncjob_opt_group = CNCJobOptPrefGroupUI(decimals=self.decimals)
|
|
|
|
self.cncjob_adv_opt_group = CNCJobAdvOptPrefGroupUI(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.cncjob_gen_group,
|
|
|
|
self.cncjob_opt_group,
|
|
|
|
self.cncjob_adv_opt_group
|
|
|
|
]
|
2020-05-06 02:02:23 +00:00
|
|
|
|
|
|
|
def get_tab_id(self):
|
|
|
|
# FIXME this doesn't seem right
|
|
|
|
return "text_editor_tab"
|
|
|
|
|
|
|
|
def get_tab_label(self):
|
|
|
|
return _("CNC-JOB")
|