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_metadata_source(label, parent)

Build a data source describing metadata derived from an image.

Classes

ImageMetadataWindowController(source, ...)

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.

metadata_items() list[tuple[str, str, str]][source]

Provide formatted metadata items for display.

Returns:

List of tag/name/value tuples representing metadata entries.

Return type:

list[tuple[str, str, str]]

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:

DataSource