radioviz.controllers.image_metadata_window_controller
Controller for displaying image metadata in a dedicated window.
This module defines the ImageMetadataWindowController which owns
metadata extracted from an image and exposes read-only entries suitable
for display in a metadata window view.
Functions
|
Build a data source describing metadata derived from an image. |
Classes
|
Controller for a read-only metadata window. |
- class radioviz.controllers.image_metadata_window_controller.ImageMetadataWindowController(source: DataSource, metadata: dict[str, Any], title: str)[source]
Bases:
SubWindowController[ImageMetadataWindow]Controller for a read-only metadata window.
This controller owns the metadata data structure and provides formatted entries for display. It is intentionally read-only and does not support save or export operations.
Initialize the metadata window controller.
- Parameters:
source (DataSource) – Data source describing the metadata origin.
metadata (dict[str, Any]) – Metadata dictionary to display.
title (str) – Window title for the metadata view.
- radioviz.controllers.image_metadata_window_controller.build_metadata_source(label: str, parent: DataSource | None) DataSource[source]
Build a data source describing metadata derived from an image.
- Parameters:
label (str) – Display label for the metadata source.
parent (DataSource | None) – Parent data source, if any.
- Returns:
Constructed data source.
- Return type: