Page MenuHome

VSE: Add context menu when no strips are selected
AbandonedPublic

Authored by Peter Fog (tintwotin) on Jun 3 2020, 5:15 PM.

Details

Summary

This patch adds a context menu for when no strips are selected and populate it with the functions from the "Add" menu which doesn't need selected strips, like Add Scene, Movieclip, Mask, Movie, Sound, Image etc. This is very useful for quickly adding new strips to the Sequencer.

It may look like a lot of code changes, but it's basically just elements from the Add menu pasted into the context menu.

Diff Detail

Event Timeline

Peter Fog (tintwotin) requested review of this revision.Jun 3 2020, 5:15 PM
Peter Fog (tintwotin) created this revision.
Peter Fog (tintwotin) retitled this revision from VSE: Add context menu for no selected strips to VSE: Add context menu when no strips are selected.Jun 4 2020, 6:48 AM
Richard Antalik (ISS) requested changes to this revision.Mar 1 2021, 6:12 AM

Here it would be better to have 2 draw functions one for case when there are no strips and another for when there are strips. Since this is really copy-paste of add menu draw function, it could be probably generalized as well.

This revision now requires changes to proceed.Mar 1 2021, 6:12 AM

This is a poor substitute for real context sensitive menus. Maybe the actual UI work can be useful, when/if some function is added to detect what is under the mouse cursor when right clicking. So I'm giving it up for now.