Skip to content

Add help message & icon to empty automation editor#8171

Merged
regulus79 merged 14 commits intoLMMS:masterfrom
AW1534:automationEditorEmptyIcon
Dec 17, 2025
Merged

Add help message & icon to empty automation editor#8171
regulus79 merged 14 commits intoLMMS:masterfrom
AW1534:automationEditorEmptyIcon

Conversation

@AW1534
Copy link
Member

@AW1534 AW1534 commented Dec 14, 2025

This PR brings the changes from #8148 into the automation editor

image

@regulus79
Copy link
Member

The grey empty space around the darker middle feels a bit off.
image

Also, it appears you are able to interact with the buttons and stuff when you first open the automation editor; they are not disabled like with the piano roll.

LMMS crashed when I tried clicking on the cubic hermite curve button when no clip was open.

@AW1534
Copy link
Member Author

AW1534 commented Dec 14, 2025

The grey empty space around the darker middle feels a bit off.

I did notice that, but I couldnt figure out how to fix it.

Also, it appears you are able to interact with the buttons and stuff when you first open the automation editor; they are not disabled like with the piano roll.

The piano roll buttons currently aren't disabled when there isnt a midi clip open, unless theres something wrong with my build

LMMS crashed when I tried clicking on the cubic hermite curve button when no clip was open.

should be a simple fix

@allejok96
Copy link
Contributor

LMMS crashed when I tried clicking on the cubic hermite curve button when no clip was open

Aha this exists in master too. It should be fixed in AutomationEditorWindow::updateEditTanButton and not by hiding the button, because what if a key-combo activated it?

@AW1534
Copy link
Member Author

AW1534 commented Dec 16, 2025

It should be fixed in AutomationEditorWindow::updateEditTanButton and not by hiding the button, because what if a key-combo activated it?

I've added a validClip() check in updateEditTanButton(), and that fixed the problem alone. but I've also taken your suggestion to disable the editor with a signal when validClip() returns false. I've changed this in the Piano Roll too.

Comment on lines 4916 to 4918
// disable all controls when no clip is selected
connect(m_editor, &PianoRoll::currentMidiClipChanged, this, [this]{ setEnabled(m_editor->hasValidMidiClip()); });

Copy link
Member

Choose a reason for hiding this comment

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

Is this already implemented in PianoRollWindow::updateAfterMidiClipChange?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not anymore, I undid my changes to that function

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

oh weird, its not there on my end and i have no uncommitted/unpushed changes

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh i see now that you were talking about the Piano Roll and not the automation editor. It's weird that this seems to be already implemented though, as when i tested the Piano Roll before my changes, the buttons seemed to be working when no clip was selected even though they should have been disabled.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is a bug, the pianoroll buttons get enabled/disabled when the clip is changed but they should default to disabled. I think it should be fixed by rearranging the calls in the constructor, instead of adding this lambda connection. There's also a few more thing that can be cleaned up related to that, so I will open a separate PR for that. Could you revert this change?

Copy link
Member Author

Choose a reason for hiding this comment

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

Okay, I'll revert all my Piano Roll changes

Copy link
Contributor

@allejok96 allejok96 left a comment

Choose a reason for hiding this comment

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

I haven't bothered to check the paintEvent code, I trust you did correct whitespace changes

Copy link
Member

@regulus79 regulus79 left a comment

Choose a reason for hiding this comment

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

I tested a build a few commits back, and it seemed to work as expected. The changes look fine to me, although I am not super familiar with all the signals in the editors, so I am not an expert here. But I couldn't find any bugs when testing.

@AW1534
Copy link
Member Author

AW1534 commented Dec 17, 2025

Should be good for merge

@regulus79 regulus79 merged commit 8a33dd7 into LMMS:master Dec 17, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants