-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Library: add control to open/close the track menu #4465
Conversation
4fa278b
to
84edc04
Compare
This CO makes sense to me. Especially with the Search Related Track function. |
Yeah, and it works well. It's also useful for deleting a track from disk. There's still an issue with submenus: in ~10% of the attmpts I can open for example the "Search related" menu but for some reason subsequent move/scroll commands are still sent to the main tracks menu. Seems to be a focus issue related to the cursor position because that determines in which direction the menu unfolds. Some more findings from real life testing:
|
I can confirm that this is useful. Especially when we think of creating a touch skin. |
84edc04
to
797aa84
Compare
Okay, there's interest so this could be merged? |
797aa84
to
305a5ad
Compare
305a5ad
to
a1346e4
Compare
Works nicely! Tested with #4618 |
Can we close this PR now since it is part of #4618 |
No, I prefer to have those feature in separate PRs. |
a1346e4
to
8cf8e1f
Compare
I changed the control to |
Is toggle really what suits best? If we want to toggle from a script, we've allready |
The difference is that this does not toggle the control but the context menu, only |
For me the new name is clear, but I don't mind to change back to the old name, if it is considered to be confusing. Just give me a hint when this is ready to be merged. |
IMO I prefer the richer CO where you can actually read the state from the CO. I do not see the benefit of hiding that information via a "smarter" toggle CO. |
This toggle is only for opening/closing WTrackMenu parented to WTrackTableView. The connection is made in LibraryControl > WTrackTableView (> m_pTrackMenu). It's not "smart", it's simple and efficient. FWIW if the |
So is it possible to open these menus by setting |
no, only existing library widget can be focused with Reverted the name to |
Thank you. I think this is fine as long as we document it as part of the MixxxControls. |
Sure, I'll update the manual after merge. |
4808a05
to
2e286e5
Compare
Documentation comments updated, rebased, squashed, ready for review! |
2e286e5
to
9953da0
Compare
(forgot to |
This is mergeable now. However some conflicts have been developed. |
I'll take care of it in two weeks. |
Fixed, ready for merge |
Thank you! |
Note: I don't intend to merge this, unless others consider it a useful addition, of course.
This is just to get a review if someone is interested.
This adds
[Library],show_track_menu
control. It's read/write, i.e. set to1
to open the track menu for the track currently selected in the tracks table at the current mouse pointer position -- set to0
to close it.It's set to
1
if there's an open track context menu, no matter if opened with right-click, menu key (Shift+F10?) or the CO.This is only supposed to work with the track menu of the tracks table -- other instances opened from the deck labels are not registered. The tracks table does not need to be focused for this to work.
In conjunction with #4618 this allows me to pick a query from the "Search related tracks" submenu easily with encoder pushs (Enter) and turns (Up / Down), so I need to use my laptop's touchpad even rarer.