-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert QML Menus to QWidgets and QActions #1299
Conversation
32664e7
to
5c8d205
Compare
Blend/Unblend Selected Track is new, right?
|
Thanks for your review
It has been in the code for a while. It is not in the online shortcut reference. I am happy to remove it if it is not needed.
Done
I have implemented a solution for this. It is now possible to select a blank clip when right clicking on it. This allows the context menu to popup and the only action enabled is "Ripple Delete". Blanks and Clip can not be selected at the same time. Multiple blanks can not be selected at the same time. I think this is more intuitive than the previous behavior because there is a visible selection indicator (red outline).
Done. Let me know if you see any more. They are easy to move around.
Done
Done
Done
Done |
|
Done. I removed disabling the action. I incorrectly thought Overwrite would occur on the selected clip.
Done
Done
Done. After looking more closely, I see that Paste calls Insert which will use either the clipboard or the source player. Will this confuse people? I wonder if we need two actions:
Alternately, we could change the text from "Paste" to "Paste/Insert".
Done. But see my previous comment.
Done FYI: There will be more PRs to come after this one. I aspire to convert all the docks to eventually use the new DockToolBar widget for visual consistency. Also, there are still more actions that should be converted. Finally, I will create a singleton class to manage all the actions so that it can be responsible for providing user configuration of shortcuts. My main goals for this PR are to remove the QML menus and to get general agreement on the patterns being used. Thanks for your review. |
Sorry that I told you to remove Paste from the timeline menu. That does belong in its Edit submenu. |
FYI after you add a class to list all actions, I will add an action search. |
The file was boilerplate and the scrollview was being overwritten by the QQuickWidget in the TimelineDock constructor.
Done
OK. I will work on that next - then we can work in parallel: you can work on search while I continue to convert actions and toolbars. I wold like to submit that in a new PR if you are agreeable to that. |
This is a work in progress submitted for review on the approach before I commit to converting all the toolbars. So far I have converted the Timeline dock toolbar, Timeline main menu and Timeline right click context menu. Every action that can be performed from a timeline toolbar or menu has been converted to a QAction which will later be indexed and managed to allow the user to change default keyboard shortcuts. I replicated the timeline toolbar as closely as possible to the QML based implementation. The menus changed slightly. In particular, the main menu has many new entries to account for shortcuts that did not have corresponding menu entries. I am interested in feedback about the names and organization of the menus. I also moved all timeline related settings into the top level Settings menu.
New Timeline and Hamburger Menu:
New Right-Click Context Menu:
New Timeline section in the settings menu: