Transport Controls Panel
app.ui.qt.sections.transport_controls_panelModule for transport controls panel; implements the Qt presentation components.
See Also
PlaybackState— stores the playback state displayed by the controlsPlaybackHandler— handles transport actions
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
pan_x
|
Horizontal pan offset; magnitudes above 0.5 mark the view as panned.
TYPE:
|
pan_y
|
Vertical pan offset; magnitudes above 0.5 mark the view as panned.
TYPE:
|
update_video_related_widgets_state(is_enabled: bool = False) -> None
Enable or disable playback, seeking, rotation, and fit-view controls.
| PARAMETER | DESCRIPTION |
|---|---|
is_enabled
|
Whether video controls should be enabled.
TYPE:
|