Mark and park
"Mark and park" means selecting an interval when previewing a media asset, and inserting it in the timeline.
This is similar to #1842.
We already have the ScaleRuler
widget in pitivi/timeline/ruler.py which shows a playhead and allows to seek. This should be used in the PreviewAssetWindow
instead of Gtk.Scale
.
ScaleRuler
should then be extended to allow specifying an interval defined by an in point and an out point. The in/out are initially at the start and end of the widget, and they can be dragged to be moved. It should never be possible to drag one of the two points past the other.
An Insert button should be added, to insert the interval into the timeline.
The following actions should be added:
- In, to mark the start of the interval, keyboard shortcut
i
- Out, to mark the end of the interval, keyboard shortcut
o
Once In or Out are pressed to mark the start or end, the current position of the playhead represents the other point of the interval. Note this means a single Mark button would be enough, but having both In and Out allows setting an interval and then seeking around without changing the interval.