-
Notifications
You must be signed in to change notification settings - Fork 72
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
Reintroduce toolbars #300
Reintroduce toolbars #300
Conversation
Thanks for submitting this! If you need any help with the updateDynamic errors, let me know! I think I'd probably set the icons at the same time that the I do like how with the toolbar approach you can move or hide any of the sub toolbars pretty easily! I'd say the downside I've seen is that if you arrange multiple toolbars beside each other vertically (because you ran out of vertical space), the layout looks odd versus e.g. Guitar Pro's toolbar where related items are near each other in both the vertical and horizontal directions |
Icon file paths are an optional parameter to the Command constructor now. I have also set the max. size of icons in the toolbars. Up to 3877e34 compiles for me, but the commit after that does not. That is where I try to add the dynamics updating stuff. It gives the errors:
I'm a bit rusty with C so it's probably something silly, but I thought I followed your example from things like Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates! I've left a couple comments for how I think the compilation errors can be fixed.
I think the comments so far have been addressed, except for the issue of moving toolbars around potentially ruining some of the button grouping. Would you like me to start looking into making widgets that emulate the GP layout instead of using the default toolbars now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, these changes look good! Just a couple minor notes in the comments.
I think it would be good to start looking at a custom layout since the toolbars seem too limited in that area. Both GP and also MuseScore would be some good inspiration!
It's not pretty or sophisticated, but the buttons are now all in a dock and they work as far as I can tell. The toolbar has been removed too. I think my main questions now are:
|
Great! I think it's looking good as-is - adding extra nesting doesn't seem necessary since there aren't enough buttons to run out of room (at least on my screen) I think the current icons were just pngs generated from the music notation font or some simple drawings in an image editor. I can take a look at putting some together! |
Here are a few new icons: new_icons.zip. Let me know if they are usable, and then I can work on the remaining ones :) |
Those look good. Both PNG and SVG work. |
Great! I think I've got all the remaining ones in this version: |
Do you have any remaining todos now that the icons are in, or is it ready to merge? |
No problem! Let me know when you need any icons |
How about icons for these?
|
Sure, I'll look at those later this weekend! |
Here are some more icons! I'm not sure about the rewind and metronome options being in the toolbox though, since they're already in the main playbar widget |
Well I was going to call this done with the last two commits, but trying to resolve the conflicts with master has apparently broken things. I will do some investigating to see if I can sort this out. |
I think I've done all I can for the build checks. The windows failure has something to do with installing dependencies. I'm ready to merge when you are. |
Thanks! I'll merge this in shortly. |
Thanks for the contribution! |
Here's a start to adding toolbars back, like I briefly described in #188. I mainly just went through the Notes and Tab Symbols menus. Shout if there is something missing or something that should be removed.
They use the Commands already in the menus so it was just a matter of adding the toolbars. Specific widgets could be built for greater control of the appearance with the Commands just plugged into the buttons they contain. All of these buttons (except the dynamics, see below) work at this point.
It should be possible to have toolbars side-by-side when they are placed on the sides of the main window. I can do it manually on my Mac, but the ToolBarBreaks do not do this automatically for me when the application starts.
I expect there is a better place to set the Command icons than what is here now. Recommendations would be appreciated, or I'll dig around a bit to see if I can figure this out next.
I added dynamic buttons that don't do anything yet. I was working on adding a
PowerTabEditor::updateDynamic
method that these would connect to, but I ran out of patience for now with some constructor compile errors. I'll poke at this a little more and then add what I have so far as a call for help.