ExcellonPreferencesUI.py 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. from PyQt5 import QtWidgets
  2. from flatcamGUI.preferences.ExcellonEditorPrefGroupUI import ExcellonEditorPrefGroupUI
  3. from flatcamGUI.preferences.ExcellonExpPrefGroupUI import ExcellonExpPrefGroupUI
  4. from flatcamGUI.preferences.ExcellonAdvOptPrefGroupUI import ExcellonAdvOptPrefGroupUI
  5. from flatcamGUI.preferences.ExcellonOptPrefGroupUI import ExcellonOptPrefGroupUI
  6. from flatcamGUI.preferences.ExcellonGenPrefGroupUI import ExcellonGenPrefGroupUI
  7. class ExcellonPreferencesUI(QtWidgets.QWidget):
  8. def __init__(self, decimals, parent=None):
  9. QtWidgets.QWidget.__init__(self, parent=parent)
  10. self.layout = QtWidgets.QHBoxLayout()
  11. self.setLayout(self.layout)
  12. self.decimals = decimals
  13. self.excellon_gen_group = ExcellonGenPrefGroupUI(decimals=self.decimals)
  14. self.excellon_gen_group.setMinimumWidth(220)
  15. self.excellon_opt_group = ExcellonOptPrefGroupUI(decimals=self.decimals)
  16. self.excellon_opt_group.setMinimumWidth(290)
  17. self.excellon_exp_group = ExcellonExpPrefGroupUI(decimals=self.decimals)
  18. self.excellon_exp_group.setMinimumWidth(250)
  19. self.excellon_adv_opt_group = ExcellonAdvOptPrefGroupUI(decimals=self.decimals)
  20. self.excellon_adv_opt_group.setMinimumWidth(250)
  21. self.excellon_editor_group = ExcellonEditorPrefGroupUI(decimals=self.decimals)
  22. self.excellon_editor_group.setMinimumWidth(260)
  23. self.vlay = QtWidgets.QVBoxLayout()
  24. self.vlay.addWidget(self.excellon_opt_group)
  25. self.vlay.addWidget(self.excellon_exp_group)
  26. self.layout.addWidget(self.excellon_gen_group)
  27. self.layout.addLayout(self.vlay)
  28. self.layout.addWidget(self.excellon_adv_opt_group)
  29. self.layout.addWidget(self.excellon_editor_group)
  30. self.layout.addStretch()