Commit graph

16638 commits

Author SHA1 Message Date
anatoly-os
5ea06dc407
Merge pull request #5401 from dmitrio95/295792-change-duration-std-sort-crash
fix #295792: fix a crash on changing duration of multiple notes in some situations
2019-10-18 23:23:26 +02:00
anatoly-os
f8f139c334
Merge pull request #5400 from dmitrio95/292830-copy-lyrics-failure
fix #292830: fix copying lyrics to clipboard
2019-10-18 23:22:49 +02:00
anatoly-os
d840924dc7
Merge pull request #5395 from dmitrio95/workspace-editing
Rework workspaces editing workflow
2019-10-18 23:21:26 +02:00
Dmitri Ovodok
eb2da4cc0f fix #295792: fix a crash on changing duration of multiple notes in some situations 2019-10-18 16:17:13 +02:00
Dmitri Ovodok
c004c48906 fix #292830: fix copying lyrics to clipboard
Was broken after 1a6058f9a1.
Score::extractLyrics() depends on Measure::_playbackCount values which
are used internally by RepeatList. A quick way to fix the issue with
extracting lyrics (implemented in this commit) is to force repeat list
to be computed before resetting playbackCount variables inside
extractLyrics().
2019-10-18 11:39:37 +02:00
Dmitri Ovodok
4f42e2c55a Rework workspaces editing workflow
- Workspaces are saved automatically after each change (prevents
   possible data loss after MuseScore crashes);
 - Read-only workspaces are automatically saved to different location
   with "edited" suffix;
 - Edited versions of Basic and Advanced workspace hide the default
   ones.
2019-10-17 21:53:48 +02:00
Dmitri Ovodok
417f33bc88 Fix inability to add palettes in some cases 2019-10-15 15:31:36 +02:00
Dmitri Ovodok
d3370d7f30 Make restored palettes appear at the top of palettes list 2019-10-15 10:58:58 +02:00
anatoly-os
571dcd4539
Merge pull request #5385 from anatoly-os/clang_warnings_102019
Fix clang warnings
2019-10-15 10:30:22 +02:00
anatoly-os
e2f3431e03 fix clang warnings
But the ones related to deprecations in third-party libs

* Remove unused variables
* Prevent calling non-virtual destructors
* Prevent the warning "Moving a temporary object prevents copy elision" by removing std::move call
* disable "`register` is deprecated" warning related to the 3rd party code
2019-10-14 19:01:59 +02:00
anatoly-os
ec4b29d84d fix MSVC warnings
C4456
2019-10-14 18:27:06 +02:00
Dmitri Ovodok
5be3c72fff Make "Reset Palette" action reset to a state stored in workspace file 2019-10-14 18:18:30 +02:00
Dmitri Ovodok
9ec7fbe402 Rewrite Workspace::rename() in a less dangerous way
The new way avoids deleting the old workspace file before creating
the new one which should potentially prevent data loss in case the
new file cannot be created.
2019-10-14 18:17:55 +02:00
Dmitri Ovodok
22c4808aa2 fix losing workspace on renaming, rewrite fix for a crash on uninstalling MDL
The original fix: efc5836f28
2019-10-14 18:17:50 +02:00
anatoly-os
a6ad39485f
Merge pull request #5375 from azhuologist/add-license-link-to-readme
Add link to license in README.md
2019-10-14 15:51:10 +02:00
anatoly-os
9500d905e5
Merge pull request #5379 from MarcSabatella/295531-sticking-tab
fix #295531: unable to enter successive sticking elements
2019-10-14 10:07:16 +02:00
anatoly-os
79beac5538
Merge pull request #5360 from Howard-C/fermata-min-distance
fix #295153: minimum distance property for all kinds of fermata is not saved
2019-10-14 10:04:53 +02:00
anatoly-os
9d951d9d81
Merge pull request #5367 from Jojo-Schmitz/end-start-repeat-timeline-crash
Fix #295224: end-start-repeat crashes in timeline
2019-10-14 10:02:17 +02:00
anatoly-os
7e16e03de7
Merge pull request #5368 from Jojo-Schmitz/lyrics-even-style
fix #290947: Lyrics: frame, border and highlight styling regressions
2019-10-14 10:01:52 +02:00
anatoly-os
c1b6effc66
Merge pull request #5373 from MarcSabatella/279964-bend-font
fix #279964: bend font not connected to style
2019-10-14 10:00:46 +02:00
anatoly-os
f100e6deec
Merge pull request #5374 from MarcSabatella/295357-lyrics-offset-parts
fix #295357: lyrics Y offset in parts lost on save/reload
2019-10-14 09:44:44 +02:00
Marc Sabatella
7bc8ccdef0 fix #295531: unable to enter successive sticking elements
Resolves: https://musescore.org/en/node/295531

In an earlier fix for a crash entering fingering with custom text style,
I introduced a change to how the textTab() function ("fingering mode") works,
so instead of creating a new text element with the same text style as the previous element
(which could conceivably be a user style),
we create one with the same text style as the *default* text style for that element,
and then change the text style later if needed.
This fails for sticking because it had no default text style.
So this change simply adds one, by overriding Sticking::propertyDefault().

The same previous bug fix also broke expression text a little,
because this is actually a staff text, and this process of first creating an element
with the default text style and then changing it ends up missing the placement property.
So you get an object with expression text style but palcement above.
I fix that by special-casing this combination - one of the few places
where we create a pseudo element type that is really just a different text style.
We formerly did this for  system text, but it's a first class element now.
Also, RNA is just a different text style on chord symbol,
but that goes through a totally different code path, which works correctly already.
2019-10-10 22:04:41 -06:00
Marc Sabatella
f53c93d0a5 fix #286185: bends above the staff drawn incorrectly
The original impelementation of bends was for tablature only
and had no need to handle notes above the staff.
Eventually standard staves were supported,
but no allowances were made for notes above the staff.
This changes simply adjusts the vertical position of the bend
to be as high above notes above the staff
as they are notes on the top line.
It's just a matter of forcing the notePos (used in both layout and drawing)
to be no less than zero.
2019-10-08 13:58:53 -06:00
Marc Sabatella
ad7bd1a3d2 fix #286188: text on prebend misplaced
For some reason, we place the text on prebends differently than others,
and while the code worked in 2.3.2, it no longer does,
and I think it has to do with changes made for screen scaling.
Fixing the screen scaling is possible but hard to test
and hard to guarantee it will be correct on all systems.
So instead, I am fixing this by changing the code that places the text
to use the same approach as other bends:
setitng the alignment to bottom center
rather than try to align ourselves using font metrics.
2019-10-08 13:51:05 -06:00
Marc Sabatella
8f5c957184 fix #279964: bend font not connected to style
The bend symbol displays in the palette using
a "random" (first in alphabetical order) font.
This is simply because the bendStyle fails to set up
the association between Sid::bendFontFace and Pid::FONT_FACE.
It seems this line was inadvertently removed
when we made  the change to merge italic/bold/underline into style.
2019-10-08 13:45:29 -06:00
Dmitri Ovodok
2e7a18cdba Fix hidden custom cells being shown incorrectly in some workspaces 2019-10-08 13:34:58 +02:00
Andy Zhu
2359e491c5 Add link to license in README.md 2019-10-07 23:39:22 -04:00
Marc Sabatella
30e1ea9674 fix #295357: lyrics Y offset in parts lost on save/reload
In 3.0 - 3.0.5, it was not possible to change the Y position of lyrics.
You could try, and an offset would be recorded, but it would have no effect on layout.
Starting with 3.1, it became possible to change the Y position for lyrics.
For compatibility, we cleared the Y offset when reading  3.0 - 3.0.5 scores,
since it would have been ignored originally.
However, the code doing the version check fails in parts,
because mscoreVersion() returns an empty stirng in that case.
This change simply amends the check to use masterScore() rather than score(),
so parts no longer return an empty version,
and also adds an explicit check for the version being empty,
so the check works correctly in test mode,
where this field is often empty even for the master score.
2019-10-07 14:33:11 -06:00
Dmitri Ovodok
6c0bef1256
Merge pull request #5369 from dmitrio95/workspace-local-prefs-crash
Fix a crash on reading a workspace with non-existing preferences
2019-10-07 16:06:34 +02:00
Dmitri Ovodok
62c0f4217c fix #295260: ensure focus on a scoreview after inserting symbols from a palette in text editing mode
Not focusing scoreview in this situation didn't lead to issues previously
since the old palettes weren't using keyboard navigation. New palettes
actively grab focus and handle keyboard input so setting focus to a
scoreview is required now to enable using palettes while editing a text.
2019-10-07 11:47:27 +02:00
Dmitri Ovodok
80b83cf706 Fix showing a placeholder when adding a custom item to a palette
Fixup for 563fe1a1d1
2019-10-07 11:45:59 +02:00
Dmitri Ovodok
563fe1a1d1 Add a time delay for reordering palette elements with drag-and-drop
This should prevent reordering palette items by accident when dragging
palette element to a score.
2019-10-07 10:41:48 +02:00
Dmitri Ovodok
b9bb0ceb82 Fix a crash on reading a workspace with non-existing preferences
This should prevent issues like #295238 from happening in future
in case new settings get introduced to MuseScore
2019-10-05 11:35:07 +02:00
Joachim Schmitz
fac2d4f396 fix #290947: Lyrics: frame, border and highlight styling regressions
where these for even lyrics can't get set and if tried odd lyrics are
getting set instead
2019-10-04 13:19:31 +02:00
Joachim Schmitz
a5a979a758 Fix #295224: end-start-repeat crashes in timeline 2019-10-04 09:29:56 +02:00
anatoly-os
c2bfca42c3
Merge pull request #5365 from dmitrio95/vtest-info
Upload latest vtest metadata to vtest.musescore.org
2019-10-03 16:48:23 +02:00
anatoly-os
f495ca33b2
Merge pull request #5364 from Jojo-Schmitz/selection-filter
fix #295202: Filters (F6) for Lyrics and Chord Symbols are mixed up in 3.3 RC
2019-10-03 14:06:32 +02:00
Dmitri Ovodok
e2df93c1e0 Upload latest vtest metadata to vtest.musescore.org
That would allow http://vtest.musescore.org/compare.html to always
use actual data regarding existing tests and MuseScore versions
2019-10-03 13:43:19 +02:00
anatoly-os
98533ffec7 make string freeze again 2019-10-03 12:26:56 +02:00
anatoly-os
0482fc3345 temporarily unlock string freeze to push mistakenly edited string
The string from 03f6d89d80
2019-10-03 12:05:49 +02:00
Joachim Schmitz
265a7a1e81 fix #295202: Filters (F6) for Lyrics and Chord Symbols are mixed up in 3.3 RC
Figured Bass and Slurs too, culprit being commit 7443719d
2019-10-03 11:22:38 +02:00
Dmitri Ovodok
03f6d89d80 Return translation string for "Tremolos" palette
Redo the change from 7443719d87
that was accidentally reverted by fdacc32bad
2019-10-03 11:09:33 +02:00
anatoly-os
2ad67f8745 stop pushing strings to Transifex
String freeze before Release
2019-10-02 19:58:53 +02:00
anatoly-os
4d4f6f5663
Merge pull request #5327 from MarcSabatella/294126-navigate-measure-elements
fix #294126: cannot navigate to measure elements
2019-10-02 15:29:18 +02:00
Marc Sabatella
9149511f19 fix #294121: navigation skips annotations entered out of order
Annotations are appended to the annotation list as they are entered.
This means they won't necessarily be sorted by track,
if you enter them onto staves in any order but top down.
The result is the navitgation code skips all annotations for a staff
after the first annotation it encounters on a different staff.

This commit fixes the issue by continuing to loop through the annotations,
looking for more on the same staff.

anatoly-os: rewrite the improvement from #5308 using `find_if`

anatoly-os: Did refactoring using `find_if` to make the code cleaner. Initial idea and implementation are authored by @MarcSabatella.
2019-10-02 15:23:01 +02:00
anatoly-os
7ca7ad4eca
Merge pull request #5359 from Jojo-Schmitz/warnings
fix MSVC compiler warnings
2019-10-02 15:09:22 +02:00
anatoly-os
578d4a9659 fix #295121: crazy behaviour of the colorLabel
Rewrite ColorLabel to be a child of QPushButton instead of QFrame. The reason is that QFrame doesn't implement MouseClickEvent. That led to the issues when opening the colour picker widget on mousePressEvent.

I have to move `Awl::ColorLabel` `else if` statement checks above the `QPushButton` ones, because the latter set incorrect connects for the `ColorLabel` which inherits `QPushButton` now.
2019-10-02 14:56:54 +02:00
Howard-C
911ea73f71 fix #295153: minimum distance property for all kinds of fermata is not saved
Resolves: https://musescore.org/node/295153.

Fermata uses a different cpp file than other articulations, so it is possible that this part of property read-and-writing was simply forgotten.
2019-10-02 20:14:16 +08:00
Dmitri Ovodok
2cf1cf7b2a Fix mtest build
Fixup for db001c2d0a: exclude feature
on notifying plugins of score changes from mtest until it becomes
possible to include it there
2019-10-02 14:08:47 +02:00
Dmitri Ovodok
773481cbe4 Update MuseScore version in plugin docs 2019-10-02 13:08:51 +02:00