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

Percussions - Implement PercussionPanelModel and PercussionPanelToolBar #24609

Closed

Conversation

mathesoncalum
Copy link
Contributor

@mathesoncalum mathesoncalum commented Sep 10, 2024

Draft for now - still working on a couple of things.

This PR demonstrates how #22050 can be used to implement the toolbar for the percussions panel.

@mathesoncalum mathesoncalum force-pushed the percussions_frame_actions branch 2 times, most recently from 0569fb2 to ef8ec1d Compare September 10, 2024 09:32
cbjeukendrup and others added 11 commits September 10, 2024 16:10
KDDockWidgets requires using two MouseAreas: one for dragging the title bar (which will drag the whole floating window when it's undocked) and one for dragging individual tabs (this will drag the tabs out of the floating window, which gives a strange effect when there is only one tab in the floating window.

The design specifies that we want tabs instead of a title bar for horizontal panels even when there is only one tab. In this case, we need to make the tabs visible, but make their MouseArea disabled, and instead use the title bar MouseArea.
Old situation: you tell the docking system a navigation panel for each dock panel, and the docking system will mess with the order of this panel.

Problems: if a dock panel contains multiple navigation panels, you need to chain those other panels to the first one. And if the first panel is not really available, as in the case of the mixer toolbar, you can't tell the docking system about it.

New situation: you tell the docking system about the navigation section directly, instead of the navigation panel. The docking system will give you a `contentNavigationPanelOrderStart` property back, which you can use to correctly set the order of all navigation panels in your dock panel.
reset toolbarComponent when destroying panel
Turns out to be necessary after rebase
@mathesoncalum mathesoncalum changed the title Percussions - provide mechanism for adding actions to DockFrame Percussions - Implement PercussionPanelModel and PercussionPanelToolBar Sep 11, 2024
@mathesoncalum
Copy link
Contributor Author

Closing - #24753 will contain all the necessary logic for the Percussion Panel toolbar (and we'll hook it all up properly once #22050 is completed).

@mathesoncalum mathesoncalum deleted the percussions_frame_actions branch September 26, 2024 14:31
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