Skip to content
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

double-click WTrackProperty to open DlgTrackInfo #2990

Merged
merged 2 commits into from
Aug 10, 2020

Conversation

ronso0
Copy link
Member

@ronso0 ronso0 commented Aug 4, 2020

Double-click any track property label in decks to quickly open the track metadata editor popup.
applies to WTrackProperty and WTrackText

Discussed there https://mixxx.zulipchat.com/#narrow/stream/109171-development/topic/Track.20property.3A.20quick.20edit.20mode.20in.20decks

@ronso0 ronso0 added this to the 2.3.0 milestone Aug 4, 2020
@ronso0 ronso0 added the ui label Aug 4, 2020
@ronso0 ronso0 self-assigned this Aug 4, 2020
@Holzhaus
Copy link
Member

Holzhaus commented Aug 4, 2020

Idea: Can we focus the corresponding field? I.e. if I double click the track title, the property windows opens with that field focused and the text selected, so that I can just type something and press enter to save and close the window.

@ronso0
Copy link
Member Author

ronso0 commented Aug 4, 2020

hmm, don't know. This would require WTrackProperty to send the property and DlgTrackInfo have corresponding focus targets.
fwiw, I noticed the previously focused field is focused again after closing/re-opening the dialog.

Directly opening an editor for the clicked property matches @daschuer 's proposal, but with this method we cannot access fields not visible in skins (comment, album etc.).
This could implemented separately to open on 'selected click' (delayed double-click).

@Holzhaus
Copy link
Member

Holzhaus commented Aug 4, 2020

If we focus the field in the full dlgtraackinfo window, you can still select a different field to edit manually (without focusing the field you would need to do that anyway).

@ronso0
Copy link
Member Author

ronso0 commented Aug 4, 2020

I don't know what you refer to.
The alternative proposal is to open a single edit field (Qlinedit like in Cue menu), thus we could only address fields visible in skins:
image

In the current full DlgTrackInfo navigation with Tab is easy as you'd need the keyboard for typing anyway.
The only minor downside I noticed that the comment field (QPlainTextEdit) doesn't have the same focus border as the other QLineEdit fields (at least with my OS theme).

@Holzhaus
Copy link
Member

Holzhaus commented Aug 4, 2020

I was replying to this:

Directly opening an editor for the clicked property matches @daschuer 's proposal, but with this method we cannot access fields not visible in skins (comment, album etc.).
This could implemented separately to open on 'selected click' (delayed double-click).

I think it's better to just open the full DlgTrackInfo window. That way you can still edit any property regardless if it's exposed in skins or not. It's just that the edit field for the property you double clicked on is pre-selected. If you want to edit a different field from what you clicked on, you can still use tab or the mouse.

@ronso0
Copy link
Member Author

ronso0 commented Aug 4, 2020

so we're on the same page :)

@ronso0
Copy link
Member Author

ronso0 commented Aug 5, 2020

Ready for merge btw

@ronso0
Copy link
Member Author

ronso0 commented Aug 5, 2020

wow, used this for two days now and I love it! I don't look back how cumbersome metadata editing was before..
Basically, since I was just building on top of it: thanks again @hacksdump for making the track context availbale in decks!

src/widget/wtrackproperty.cpp Outdated Show resolved Hide resolved
src/widget/wtrackproperty.cpp Outdated Show resolved Hide resolved
@ronso0 ronso0 force-pushed the quick-track-edit--2.3 branch from e5c74d6 to bd57acc Compare August 6, 2020 14:01
@ronso0
Copy link
Member Author

ronso0 commented Aug 6, 2020

Comments are addressed:
we use mouseDoubleClickEvent now, and I added the behaviour to WTrackText, too (used in preview deck).
Sqashed, ready for merge.

@ronso0 ronso0 force-pushed the quick-track-edit--2.3 branch from bd57acc to 0cd8d95 Compare August 6, 2020 14:11
Copy link
Member

@Holzhaus Holzhaus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@Holzhaus Holzhaus merged commit 340d37e into mixxxdj:2.3 Aug 10, 2020
@ronso0 ronso0 deleted the quick-track-edit--2.3 branch August 10, 2020 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants