in src/open_vp_cal/widgets/project_settings_widget.py [0:0]
def init_ui(self):
"""
Initializes the UI components.
"""
scroll = QScrollArea()
scroll.setWidgetResizable(True)
main_widget = QWidget()
main_layout = QVBoxLayout(main_widget)
plate_settings_group = QGroupBox("Plate Settings")
plate_settings_layout = QFormLayout()
plate_settings_layout.addRow(QLabel("Input Plate Gamut:"), self.input_plate_gamut)
self.shoot_cam_label = QLabel("Shooting Camera Gamut:")
self.shoot_cam_label.setToolTip("The colour space of the camera used on the led "
"stage to shoot the production, and which "
"you are ALSO using to record the calibration."
"patches")
plate_settings_layout.addRow(self.shoot_cam_label, self.native_camera_gamut)
plate_settings_layout.addRow(QLabel("Auto WB Source:"), self.auto_wb_source)
plate_settings_group.setLayout(plate_settings_layout)
main_layout.addWidget(plate_settings_group)
reference_settings_group = QGroupBox("Reference Settings")
reference_settings_layout = QFormLayout()
reference_settings_layout.addRow(QLabel("Match Reference Wall:"), self.match_reference_wall)
reference_settings_layout.addRow(QLabel("Reference Wall:"), self.reference_wall)
reference_settings_group.setLayout(reference_settings_layout)
main_layout.addWidget(reference_settings_group)
self.white_point_offset_source_button = QPushButton("Browse")
white_point_offset_source_layout = QHBoxLayout()
white_point_offset_source_layout.addWidget(self.white_point_offset_source)
white_point_offset_source_layout.addWidget(self.white_point_offset_source_button)
white_point_offset_group = QGroupBox("White Point Offset")
white_point_layout = QFormLayout()
white_point_layout.addRow(QLabel("Use White Point Offset:"), self.use_white_point_offset)
white_point_layout.addRow("White Point Offset Source:", white_point_offset_source_layout)
white_point_offset_group.setLayout(white_point_layout)
main_layout.addWidget(white_point_offset_group)
# Add the main widget to the scroll area
scroll.setWidget(main_widget)
# Set the scroll area as the main layout of the widget
self.master_layout = QVBoxLayout(self)
self.master_layout.addWidget(scroll)