Skip to content

add WCuebutton: drag onto play button to latch play / + fix: revert to 36 hotcues - #14753

Merged
daschuer merged 7 commits into
mixxxdj:2.6from
ronso0:cuebutton-drag-onto-play
May 14, 2025
Merged

add WCuebutton: drag onto play button to latch play / + fix: revert to 36 hotcues#14753
daschuer merged 7 commits into
mixxxdj:2.6from
ronso0:cuebutton-drag-onto-play

Conversation

@ronso0

@ronso0 ronso0 commented May 6, 2025

Copy link
Copy Markdown
Member

(late) follow-up for #14179

Like WHotcueButton, it can be dragged onto WPlayButton to switch from cue previewing to regular (latched) play.
Mostly c/p from WHotcueButton + adjusted hotcuedrag helpers and callers.

edit also reverts to 36 hotcues #14753 (comment)

IMHO this can slip into 2.6-beta after release, wdyt?

cue-drag-play

TODO

  • implement in all skins

this allows replacing the massive include cuecontrol.h where only the max hotcue number is needed
@Eve00000

Eve00000 commented May 7, 2025

Copy link
Copy Markdown
Contributor

Yes, as it's closely related to dropping hotcues on the playbutton,
it would avoid a lot of Q's 'why can't the cue button ... ' when this was merged in 2.6 too.

@ronso0
ronso0 force-pushed the cuebutton-drag-onto-play branch from b3b5d29 to f816012 Compare May 7, 2025 10:14
Comment thread src/util/defs.h Outdated
constexpr unsigned int MAX_BUFFER_LEN = 160000;

constexpr int kMaxNumberOfDecks = 4;
constexpr int kMaxNumberOfHotcues = 37;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Btw why is this 37?
Some dev was bored of even numbers and 2^n and picked a prime number to make it a bit more exciting 🤣

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is for https://github.com/mixxxdj/mixxx/wiki/Stanton-Scs.3D#trig-modes
There must have happen a one-off isseue somewhere that we have 37 and not 36 = 3 x 12
622ed83

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Okay, thanks for digging.
Shall we revert that to 36?
I know this would be considered a 'breaking change', but I wonder who is really using 37 hotcues?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yes, I support it.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Alright. Can do this when this PR gets a LGTM

@daschuer

Copy link
Copy Markdown
Member

IMHO this can slip into 2.6-beta after release, wdyt?

Since it completes (fixes) the cue button sorting feature so I tend to agree.

Can you add a CHANGELOG entry to this PR to reduce maintenance.

I have also tried to make the main CUE a hot cue, by dropping. I have no use case for this though.

@daschuer daschuer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good and works good.

@daschuer

Copy link
Copy Markdown
Member

Thank you.

@daschuer
daschuer merged commit 0e57921 into mixxxdj:2.6 May 14, 2025
@ronso0
ronso0 deleted the cuebutton-drag-onto-play branch May 14, 2025 05:52
@ronso0 ronso0 changed the title add WCuebutton: drag onto play button to latch play add WCuebutton: drag onto play button to latch play / + fix: revert to 36 hotcues Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants