Skip to content

Transport Controls Panel

app.ui.qt.sections.transport_controls_panel

View source code

Module for transport controls panel; implements the Qt presentation components.

See Also

Layer: Presentation. Context: Implements the qt presentation components at this architectural boundary.

TransportControlsPanel

Bases: QVBoxLayout

Provide the transport controls panel presentation component.

PARAMETER DESCRIPTION
parent

Optional Qt parent object.

TYPE: QWidget

fit_view_requested = Signal() class-attribute instance-attribute

rotate_requested = Signal(int) class-attribute instance-attribute

seek_pos_changed = Signal(int) class-attribute instance-attribute

__init__(parent: QWidget)

refresh_theme_icons() -> None

Recompute transport icons after runtime palette/style changes.

set_frame_label_text(text: str)

Update the text shown beside the transport controls.

PARAMETER DESCRIPTION
text

Frame-position text to display.

TYPE: str

set_rotation_degrees(rotation_degrees: int) -> None

Store rotation modulo 360 degrees and refresh the viewport summary.

PARAMETER DESCRIPTION
rotation_degrees

Current image rotation in degrees.

TYPE: int

set_seek_range(maximum_frame_index: int) -> None

Set the seek slider range from frame zero through the final frame.

PARAMETER DESCRIPTION
maximum_frame_index

Index of the final frame; negative values produce a zero-only range.

TYPE: int

set_seek_value(frame_index: int) -> None

Set the seek position to the given frame index.

PARAMETER DESCRIPTION
frame_index

Zero-based frame index.

TYPE: int

set_viewport_state(zoom_factor: float, pan_x: float, pan_y: float) -> None

Update the zoom and whether the viewport label should report a panned view.

PARAMETER DESCRIPTION
zoom_factor

Current zoom multiplier.

TYPE: float

pan_x

Horizontal pan offset; magnitudes above 0.5 mark the view as panned.

TYPE: float

pan_y

Vertical pan offset; magnitudes above 0.5 mark the view as panned.

TYPE: float

Enable or disable playback, seeking, rotation, and fit-view controls.

PARAMETER DESCRIPTION
is_enabled

Whether video controls should be enabled.

TYPE: bool DEFAULT: False