Skip to main content

Module editor_surface

Module editor_surface 

Source
Expand description

EditorSurface — the live editor surface (ED.5/ED.7 / M-EDIT).

Renders the real EditorShell chrome driven by the loaded [EditProject], with a wired transport bar (ED.7) in the timeline slot: play/pause, frame-step, jump-to-ends, a scrubber, a speed selector, a MM:SS.ff timecode, and keyboard shortcuts — all driving the backend editor session over crate::editor_ipc. The canvas / inspector slots are filled by later chunks (preview ED.6, inspector ED.18).

Structs§

EditorSurfaceProps
Props for the EditorSurface component.
EditorTransportBarProps 🔒
Props for the EditorTransportBar component.

Functions§

EditorSurface
The editor surface. Reads the loaded [EditProject] + the playhead EditorStatus from context and renders the EditorShell with a wired transport. Keyboard: Space = play/pause, ←/→ step (Shift = 5), I/O set in/out, S split, ⌘Z undo·redo, Delete ripple-delete.
EditorTransportBar 🔒
Transport bar (ED.7) — bound to the backend editor session via crate::editor_ipc. Fine-grained reactive: only the timecode, the play glyph, and the scrubber value re-render as the playhead advances.
clip_subtitle 🔒
"1920×1080 · 30 fps · m:ss" subtitle from the clip metadata.
clip_title 🔒
File name of the clip (the document title).
default_toolbar 🔒
The editor toolbar action set (matches the reference design). When no clip is loaded every action is disabled.
format_timecode
Format a frame index as MM:SS.ff (ff = frame within the second).
handle_editor_keydown 🔒
Handle a keydown on the editor surface: transport (Space / arrows / I·O) and edit (S split, ⌘Z undo·redo, Delete ripple) shortcuts.
shell_view_for 🔒
Map the loaded project (or its absence) to the shell view-model.