-
Notifications
You must be signed in to change notification settings - Fork 3k
horizontal fixed layout added (each measure has the same size) #9068
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
horizontal fixed layout added (each measure has the same size) #9068
Conversation
|
Seems this would fix a pretty frequent request, see https://musescore.org/en/node/313555. Isn't there any UI to switch this on/off? |
| { | ||
| Segment* current = nullptr; | ||
| for (current = measure->first(); current && !current->enabled(); current = current->next()) { | ||
| } |
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.
Empty for loop?
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.
it chanegs the current segment
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.
Yes, I see that it used the side effect, but that's confusing code, to me at least.
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.
I agree with Jojo, I believe needs rewrite this code
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.
yes, that while loop is better
@Jojo-Schmitz there is no UI. I didn't know about the issue. I tested with setting in layoutoptions.h: struct LayoutOptions |
|
OK, so a UI for this is not part of this PR (yet), but needed. |
| QSet<int> occupiedMidiChannels; // each entry is port*16+channel, port range: 0-inf, channel: 0-15 | ||
| unsigned int searchMidiMappingFrom = 0; // makes getting next free MIDI mapping faster | ||
|
|
||
| qreal m_widthOfSegmentCell { 3 }; |
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.
needs qreal m_widthOfSegmentCell = 3.0;(https://github.com/musescore/MuseScore/wiki/CodeGuidelines#declaring-variables)
src/engraving/libmscore/measure.cpp
Outdated
|
|
||
| qreal Measure::computeFirstSegmentXPosition(Segment* segment) | ||
| { | ||
| qreal x{ 0 }; |
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.
f33158d to
2221851
Compare
@Jojo-Schmitz, no UI yet, so I didn't change the name |
|
We plan to make the UI later |
(Very partial) backport of musescore#9068
(Very partial) backport of musescore#9068, the rest is too large for too litle benefit (mainly due to the missing UI) and also requires C++17.
(Very partial) backport of musescore#9068, the rest is too large for too litle benefit (mainly due to the missing UI) and also requires C++17.
(Very partial) backport of musescore#9068, the rest is too large for too litle benefit (mainly due to the missing UI) and also requires C++17.
…spacing Backport of musescore#9137 (needs parts of musescore#9068)
(Very partial) backport of musescore#9068, the rest is too large for too litle benefit (mainly due to the missing UI) and also requires C++17.
…spacing Backport of musescore#9137 (needs parts of musescore#9068)
(Very partial) backport of musescore#9068, the rest is too large for too litle benefit (mainly due to the missing UI) and also requires C++17.
…spacing Backport of musescore#9137 (needs parts of musescore#9068)
(Very partial) backport of musescore#9068, the rest is too large for too litle benefit (mainly due to the missing UI) and also requires C++17.
…spacing Backport of musescore#9137 (needs parts of musescore#9068)
(Very partial) backport of musescore#9068, the rest is too large for too litle benefit (mainly due to the missing UI) and also requires C++17.
…spacing Backport of musescore#9137 (needs parts of musescore#9068)
(Very partial) backport of musescore#9068, the rest is too large for too litle benefit (mainly due to the missing UI) and also requires C++17.
…spacing Backport of musescore#9137 (needs parts of musescore#9068)
(Very partial) backport of musescore#9068, the rest is too large for too litle benefit (mainly due to the missing UI) and also requires C++17.
…spacing Backport of musescore#9137 (needs parts of musescore#9068)
(Very partial) backport of musescore#9068, the rest is too large for too litle benefit (mainly due to the missing UI) and also requires C++17.
…spacing Backport of musescore#9137 (needs parts of musescore#9068)
(Very partial) backport of musescore#9068, the rest is too large for too litle benefit (mainly due to the missing UI) and also requires C++17.
…spacing Backport of musescore#9137 (needs parts of musescore#9068)
(Very partial) backport of musescore#9068, the rest is too large for too litle benefit (mainly due to the missing UI) and also requires C++17.
…pacing Backport of musescore#9137 (needs parts of musescore#9068)
(Very partial) backport of musescore#9068, the rest is too large for too litle benefit (mainly due to the missing UI) and also requires C++17.
…pacing Backport of musescore#9137 (needs parts of musescore#9068)
(Very partial) backport of musescore#9068, the rest is too large for too litle benefit (mainly due to the missing UI) and also requires C++17.
…pacing Backport of musescore#9137 (needs parts of musescore#9068)
(Very partial) backport of musescore#9068, the rest is too large for too litle benefit (mainly due to the missing UI) and also requires C++17.
…pacing Backport of musescore#9137 (needs parts of musescore#9068)
(Very partial) backport of musescore#9068, the rest is too large for too litle benefit (mainly due to the missing UI) and also requires C++17.
…pacing Backport of musescore#9137 (needs parts of musescore#9068)
(Very partial) backport of musescore#9068, the rest is too large for too litle benefit (mainly due to the missing UI) and also requires C++17.
…pacing Backport of musescore#9137 (needs parts of musescore#9068)
(Very partial) backport of musescore#9068, the rest is too large for too litle benefit (mainly due to the missing UI) and also requires C++17.
…pacing Backport of musescore#9137 (needs parts of musescore#9068)
(Very partial) backport of musescore#9068, the rest is too large for too litle benefit (mainly due to the missing UI) and also requires C++17.
…pacing Backport of musescore#9137 (needs parts of musescore#9068)
(Very partial) backport of musescore#9068, the rest is too large for too litle benefit (mainly due to the missing UI) and also requires C++17.
…pacing Backport of musescore#9137 (needs parts of musescore#9068)
(Very partial) backport of musescore#9068, the rest is too large for too litle benefit (mainly due to the missing UI) and also requires C++17.
…pacing Backport of musescore#9137 (needs parts of musescore#9068)
(Very partial) backport of musescore#9068, the rest is too large for too litle benefit (mainly due to the missing UI) and also requires C++17.
…pacing Backport of musescore#9137 (needs parts of musescore#9068)
Resolves: (direct link to the issue)
(short description of the changes and the motivation to make the changes)