Rework radar system

This commit is contained in:
Ayzen
2026-10-06 12:32:26 +03:00
parent 552cdc688a
commit 5bb86b7165
299 changed files with 13537 additions and 27763 deletions
@@ -1,26 +1,26 @@
"""Builder for preprocess set summary section."""
from __future__ import annotations
from PyQt6.QtWidgets import QGroupBox, QLabel, QVBoxLayout
from python_app.gui.controllers.sections.layout_helpers import build_two_column_form_widget
from python_app.orchestration.preprocess_assets import VISIBLE_PREPROCESS_ASSET_KEYS, preprocess_asset_display_name
from python_app.gui.controllers.sections.layout_helpers import FormRow, build_two_column_form_widget
from python_app.orchestration.preprocess_assets import PREPROCESS_ASSET_NAMES, preprocess_asset_display_name
from python_app.gui.controllers.sections.views import PreprocessView
def build_preprocess_summary_group(owner) -> QGroupBox:
def build_preprocess_summary_group() -> PreprocessView:
"""Create selected preprocess-set summary section."""
group = QGroupBox("Selected Preprocess Sets")
view = PreprocessView(group=QGroupBox("Selected Preprocess Sets"), labels={})
group = view.group
layout = QVBoxLayout(group)
layout.setContentsMargins(10, 10, 10, 10)
layout.setSpacing(8)
owner._selected_preprocess_labels = {}
rows = []
for key in VISIBLE_PREPROCESS_ASSET_KEYS:
rows: list[FormRow] = []
for key in PREPROCESS_ASSET_NAMES:
label = QLabel("<not selected>")
owner._selected_preprocess_labels[key] = label
view.labels[key] = label
rows.append((preprocess_asset_display_name(key), label))
layout.addWidget(build_two_column_form_widget(group, rows, split_index=(len(rows) + 1) // 2))
return group
return view