Commit graph

302 commits

Author SHA1 Message Date
vpereverzev
5eced6c748 Updated license headers in .sh files 2021-04-19 17:10:01 +02:00
vpereverzev
783ec26046 Updated license headers for cmake files 2021-04-19 17:09:37 +02:00
vpereverzev
fe45ef6b8b Updated license headers for .cpp/.h files 2021-04-19 17:08:37 +02:00
Casper Jeukendrup
4a0c972296 Adjust uncrustify configuration to add space after comma 2021-04-16 19:54:50 +03:00
apricot2012
a7e415974a Fix Issue with Shift Selecting Across Staffs
Assert enforces ending staffidx to be higher than starting staffidx. This code reverses the two indexes if they don't satisfy idx2 >= idx1.
2021-04-12 22:26:33 +02:00
apricot2012
7b96c73531 Fix #319079: Shift Selecting Last Word
Changed condition to only check for s1. s2 might be nullptr which marks end of score.
2021-04-12 22:26:33 +02:00
Matt McClinch
f2092fa931 Fix #301016: Copying a partial measure leaves rest(s) missing in voices 2-4
Resolves: https://musescore.org/en/node/301016.

Rebased version of #5702
2021-04-11 15:45:22 +02:00
Matt McClinch
f198f8829b Fix #301768: Unexpected tieing behaviour
Resolves: https://musescore.org/en/node/301768.

Rebased version of #5777
2021-04-11 15:45:22 +02:00
Joachim Schmitz
88e7737df8 Fix #319448: Glissando tab layout and style minTieLength
The calculation for Tablatur was inconsistent with that of pitched staff
2021-04-05 01:43:39 +03:00
Niek van den Berg
ebcb40f818 Solve issue of fixed spacer between last staff and bottom of page.
A negative value for a fixed spacer on the last staff will no longer push the last staff below the Music Bottom Margin.
2021-04-02 13:38:38 +03:00
Niek van den Berg
527eb59f8f In VerticalGapData use SysStaff.bbox().y() for the Y-coordinate instead of
SysStaff.y() when calculating the vertical position of the SysStaff because
in case of single line staves, SysStaff.y() the returned value includes an
offset. This resulted in wrong initial spacing between staves when one of
he staves was a single line staff.
SysStaff.bbox().y() returns the uncorrected Y-coordinate which is required
to calculate the correct spacing between staves.
2021-03-31 13:41:55 +03:00
Eism
bb4851348e Implemented missing preferences 2021-03-30 10:53:51 +02:00
Casper Jeukendrup
8c8b2694e5 Fix Compiler Warnings (Clang) 2021-03-30 09:19:13 +02:00
Igor Korsukov
5943d524cc reduced draw debug logging 2021-03-25 11:05:56 +02:00
Niek van den Berg
3d109b6604 Fix 317951 - Horizontal Frame on system by itself at end of page causes previous system to disappear
Will return the correct bottom y coordinate in case a SysStaff contains only a horizontal frame.
In this case the SysStaff doens't have a valid skyline and the initial (far too large) maximum value is returned.
This is solved by returning the height of the SysStaff in case the skyline is invalid (has no segments).
2021-03-23 23:59:23 +02:00
Niek van den Berg
24fa2ede61 Solve a crash when score contains a vbox which is not on top of a page. 2021-03-22 15:25:48 +02:00
Peter Jonas
e0eaf973ac Fix compilation with MinGW on Windows
Use the explicit 'W' (wide) symbols from the Windows API to provide
Unicode support regardless of whether UNICODE is defined:

- SetFileAttributesW
- LPCWSTR

Define UNICODE anyway for the sake of thirdparty code that uses the
aliases, which only work properly when UNICODE is defined:

- SetFileAttributes
- LPCTSTR

If UNICODE is not defined then the aliases refer to the narrow symbols:

- SetFileAttributesA
- LPCSTR

But the explict 'W' symbols are still available. The aliases are only
needed for compatibility with code written prior to Windows NT.
2021-03-19 16:46:14 +02:00
Matt McClinch
ad0d20e5d2 Fix crash while saving as MSCZ or exporting as PDF or SVG
When a Painter object goes out of scope, its endTarget() method will be executed, which in turn calls the endTarget() method of the concrete subclasses of IPaintProvider. But if the Painter has already called endDraw(), then BufferedPaintProvider::endObject() will already have been called, and must not be called again. BufferedPaintProvider::endTarget() must only call endObject() if m_isActive is true.
2021-03-19 09:39:15 +02:00
Igor Korsukov
2c0414c36c fixed painter world transform 2021-03-18 14:07:44 +02:00
RomanPudashkin
210132326e
Merge pull request #7737 from igorkorsukov/mu4/autobot/draw_diff
[MU4] Added diff painting step
2021-03-18 10:27:51 +02:00
Matt McClinch
7183fb0449 Do not save unused images in the MSCZ archive.
Resolves: https://musescore.org/en/node/318772.

When checking whether an image is used in a given score, also check whether the image's parent actually contains the image. If not, this means that the image has been removed, but is being kept alive in the undo stack, and should not be saved in the MSCZ archive.
2021-03-18 10:10:26 +02:00
Joachim Schmitz
231cd02016 Fix #318646: Crash when changing key signature on staff with Instruments change and transposing instruments 2021-03-17 16:52:07 +02:00
Joachim Schmitz
b20aee7e73 Fix #318837: Add Turkish folk music accidentals 2021-03-17 16:51:32 +02:00
Igor Korsukov
2d5fd494e0 added diff painting 2021-03-17 16:47:02 +02:00
Igor Korsukov
4e1525d8b8 added draw data compare step 2021-03-16 16:27:14 +02:00
RomanPudashkin
089208337d
Merge pull request #7731 from igorkorsukov/mu4/autobot/deser
[MU4] Added draw deserialization step
2021-03-16 10:47:52 +02:00
Igor Korsukov
5060aaa31d added draw deserialization step 2021-03-16 10:05:00 +02:00
Elnur Ismailzada
ea03f8a5a1
Merge pull request #7709 from RomanPudashkin/palettes_stabilization
[MU4] Palettes stabilization
2021-03-15 13:03:13 +02:00
Elnur Ismailzada
4344f24949
Merge pull request #7730 from RomanPudashkin/preferences_dialog
[MU4] Basis for preferences dialog
2021-03-15 12:59:13 +02:00
RomanPudashkin
3a4c3ec7e1 implemented a basis for preferences dialog 2021-03-15 12:28:16 +02:00
Igor Korsukov
d1090c7f96 added draw buffer serialization to json 2021-03-15 09:53:19 +02:00
RomanPudashkin
efc389a35f fixed build 2021-03-15 09:23:01 +02:00
RomanPudashkin
4ba4b3a81d removed restoring of xml formatting because it breaks tempo text
codestyle fixes
2021-03-15 09:23:01 +02:00
RomanPudashkin
41ae6f0b6b replaced raw pointers to Element with std::shared_ptr 2021-03-15 09:23:01 +02:00
RomanPudashkin
eb238e045b fixed displaying of dynamic in the score/palettes panel (added protection against changing the default state of TextBase)
Details: all fragments in TextBase will have ScoreText font after init and TextBase will have Edwin as its default. After calling styleChanged() to all fragments will be applied Edwin even if symbols of those fragments missed in Edwin
2021-03-15 09:23:01 +02:00
RomanPudashkin
2f59750981 implemented actions for adding brackets 2021-03-15 09:16:03 +02:00
RomanPudashkin
9b7d9802fd fixed drawing of icons in the palettes panel 2021-03-15 09:16:03 +02:00
RomanPudashkin
b4de3cec4d fixed the default font 2021-03-15 09:16:03 +02:00
RomanPudashkin
f3f57884cc implemented actions for adding beams 2021-03-15 09:16:03 +02:00
RomanPudashkin
e2c7fc2ce1 implemented actions for adding grace notes 2021-03-15 09:16:03 +02:00
Igor Korsukov
fa8deac875 added objects to buffered paint provider 2021-03-12 17:11:31 +02:00
Niek van den Berg
5d7d9d7f56 New System methods upSpacer/downSpacer for finding active spacers of a system. 2021-03-11 16:32:41 +02:00
RomanPudashkin
322b9e8d17
Merge pull request #7721 from igorkorsukov/mu4/draw/serialization
[MU4] Reduced paint provider interface
2021-03-11 15:27:06 +02:00
Igor Korsukov
b461bcc093 reduced paint provider interface 2021-03-11 14:59:27 +02:00
Matt McClinch
cebccd1419 Fix #307704: Capo settings applied via staff text do not affect chord symbols
Resolves: https://musescore.org/en/node/307704.
2021-03-10 20:00:15 +02:00
Igor Korsukov
c8d462fd81 split into parts sym file 2021-03-10 16:09:58 +02:00
RomanPudashkin
72f9a235a7
Merge pull request #7713 from njvdberg/vertical-staves-adjustment-master
[MU4] Enable vertical staves adjustment
2021-03-10 10:55:59 +02:00
Niek van den Berg
5d92374114 Enable vertical staves adjustment for MU4. 2021-03-10 07:46:13 +01:00
Joachim Schmitz
02c5317aaa Fix typo in a the name of a style setting 2021-03-10 00:20:36 +01:00
Matt McClinch
f7fe7dbc0b Fix #318388: Crash when trying to attach an image to key signature
Resolves: https://musescore.org/en/node/318388.
2021-03-09 23:48:01 +01:00