Commit graph

69 commits

Author SHA1 Message Date
Igor Korsukov
b6dabf5e0b fixed ctor colon 2020-05-29 21:15:25 +02:00
Igor Korsukov
45b9887603 changed code style 2020-05-28 09:50:45 +02:00
Dmitri Ovodok
c7ffeba4cf Rework edit drag for lines
Restructure lines anchors rebasing code, allow for reliable line
span change between systems
2020-04-17 00:10:42 +03:00
Dmitri Ovodok
4051eb02ee Fix dragging hairpin on non-first pages 2020-04-17 00:05:36 +03:00
Dmitri Ovodok
815ee1d53f Make offset2 change undoable when dragging a line 2020-04-17 00:05:36 +03:00
pereverzev_v
6b42294919 Added possibility to rebase line anchors during the drag 2020-04-17 00:05:35 +03:00
pereverzev_v
ad2cad22b5 Now single grip of an element (usually the middle one) can have a few anchor lines 2020-04-04 01:05:58 +03:00
Dmitri Ovodok
5c3b407dae Move setting up grips out of Element::startEdit() 2019-12-24 14:16:06 +02:00
Dmitri Ovodok
f84f889d8e Basic implementation of single-click access to editing elements with grips 2019-12-24 14:15:35 +02:00
Joachim Schmitz
57af1fe2f8 fix compiler warnings on Mac 2019-07-12 10:53:42 +02:00
ws
a5381618fb fix #278916 Numbers only option has no effect on ottava display 2018-12-05 15:17:48 +01:00
Dmitri Ovodok
f42943e90b fix #278722: do not delete spanner segments but reuse them 2018-11-26 01:59:02 +02:00
Dmitri Ovodok
c354eb24c3 Remove read300 functions 2018-09-19 01:57:37 +03:00
Dmitri Ovodok
8fa920b7df Backup old MSC read functions, add a test for fileformats compatibility
Use old read functions for reading 1.x and 2.x fileformats

Assign version number 3.01 to the new MSCX format flavor
2018-08-16 19:08:45 +03:00
ws
10d1ae0529 add method propertyDelegate() to Element 2018-07-24 15:48:24 +02:00
ws
175d5aadb3 cleanup ElementFlags interface, use more Placement properties on mxml import/export 2018-07-04 12:41:14 +02:00
ws
d31cfd9885 add Stem to inspector 2018-05-07 19:05:49 +02:00
ws
49068ccf6f more updates for properties/styles 2018-03-28 10:43:28 +02:00
ws
33d1cd7fb4 rename StyleIdx -> Sid and P_ID -> Pid 2018-03-27 15:36:00 +02:00
ws
e8ec15109c substyle update 2018-03-22 10:09:52 +01:00
Werner Schweer
0e4211e2d0 update let ring, palm mute 2017-11-27 16:55:52 +01:00
Werner Schweer
6d301fbbf5 update spanner editing 2017-07-26 09:59:34 +02:00
Werner Schweer
c89464f8b0 fix quirks while editing slurs in staves > 1 2017-07-05 17:41:47 +02:00
Werner Schweer
ac41fa396e update edit infrastructure 2017-03-31 13:03:30 +02:00
Werner Schweer
90b1991912 replace Q_OBJECT with Q_GADGET for all Element based classes 2017-02-17 15:48:28 +01:00
Werner Schweer
fe8a3e5e9c move textline properties to inspector 2017-02-07 18:48:41 +01:00
Werner Schweer
73d097eec6 cleanup some header files 2017-01-19 09:17:21 +01:00
Werner Schweer
6e7e05aaec impl. staff type changes 2016-12-18 14:31:34 +01:00
Werner Schweer
c5f46bb208 rename Xml() -> XmlWriter() 2016-11-19 11:51:21 +01:00
Werner Schweer
6ef95da0d6 first simple implementation of slur autoplace 2016-11-15 16:33:38 +01:00
werner
3172717cbb autoplace for volta 2016-07-10 12:00:57 +02:00
werner
54811ac8c2 make beam thickness independent of slant 2016-07-03 16:23:11 +02:00
werner
1cf20ac90c make dashed lines configurable 2016-06-30 20:22:36 +02:00
werner
073529e737 impl. incremental layout of spanner line segment 2016-06-30 17:27:13 +02:00
ws
dfba52ba77 more regression fixes & cleaups 2016-04-13 11:10:18 +02:00
Maurizio M. Gavioli
49edb8d0c3 Fixes #19155, #22861 (duplicate of the former) and #23100.
__References__:
Issues:	https://musescore.org/en/node/19155 https://musescore.org/en/node/22861 https://musescore.org/en/node/23100

__Description__:
Allows to change the start and end note to which a glissando is anchored after it has been entered. Either anchor can be changed independently.

The user interface follows the current working of other 'snappable' lines. Once either the start or end grip is selected:
- `[Shift]+[Left]` snaps the anchor to the previous chord, defaulting to its top note.
- `[Shift]+[Right]` snaps to the next chord, defaulting to its top note.
- `[Shift]+[Up]` snaps to the note above (possibly in a chord, voice or staff above the current one).
- `[Shift]+[Down]` snaps to the note below (possibly in a chord, voice or staff below the current one).

This permits to set the anchor points of a glissando to any note in the score, allowing several glissandi between the notes of the same two chords and other complex configurations (glissandi skipping intermediate chords, start and end notes in different voices or staves, and so on).

It is possible to move the anchor to a different staff of the same instrument, but not to a different instrument; also, it is not possible to 'cross' a change of instrument in the same staff.

__Known limitations__:
- The `[Shift]+[Up]` and `[Shift]+[Down]` use the same note-finding functions as the `[Alt]+[Up]` and `[Alt]+[Down]`actions which move the selection cursor to the above and below note, even across voices or staves. Occasionally, in particular if the note immediately above or below is not time-aligned, the algorithm has little expected results; however, the behaviour is already known to the user. Improving the algorithm would benefit both uses.

__Notes__:
- Most of the added infrastructure is not specific to glissando but to any spanner anchored to notes, then it should also add after-the-fact "snap to" note support to note-anchored text line.
- When moving an anchor, the algorithm usually prefers a note in the same voice/staff of the old note if it exists; if there is none, it tries other voices of the same staff.
- The change of anchor is undoable.
- The fix corrects the management of the `Chord::_endsGlissando` flag, taking into account that a chord can be the ending point of several glissandi and removing one of them not necessarily means the chord no longer ends a glissando (another glissando may still exists).
- The fix also improved the rendering of the glissando wavy line, with better alignment with anchor notes and, with glissando text, better text-line spacing.
2015-09-30 09:16:47 +02:00
ws
12b4b1c097 fix #45581 manual object positioning is incorrect after staff size change 2015-02-20 11:56:13 +01:00
ws
16764d4614 fix #44466: Crash extending volta over mmrest starting a new system + other cleanups 2015-01-19 12:41:16 +01:00
ws
88b44cd82c fix #28761 2014-08-06 12:28:58 +02:00
ws
d59cc84ee2 fix some spanner bugs 2014-07-09 18:05:58 +02:00
ws
2b832e840a fix #25683 2014-05-27 17:09:27 +02:00
Joachim Schmitz
3cec0ed262 convert unnamed enum into enum class GripLine 2014-05-26 12:25:22 +02:00
Joachim Schmitz
7043cdaac5 convert "enum class" to "enum class : char"
or "enum class : signed char" or even "enum class: short", whatever/whenever feasible on all exsting "enum class" that don't have it yet, also fixing some signed vs. unadorned char. This
should reduce the memory footprint.
2014-05-23 10:35:15 +02:00
Joachim Schmitz
54ede6a1f6 improve builtin plugin documentation
reformatting, removing some comments that are irrelevant to plugin
framework in a way that DoxyGen should still find them, documenting the
enums and fully qualify all types that are specific to MuseScore,
2014-05-16 13:58:30 +02:00
ws
c20b96e370 fix #25650 2014-05-06 18:56:27 +02:00
ws
b4a3b41c49 fix #16626 2014-03-16 14:57:32 +01:00
Gai-Luron
82fd4c5a7a Add grip to modify hairpin aperture 2014-02-26 21:29:50 +01:00
ws
839b2dc313 fix for line editing; fix ottava import from 1.3 2013-08-28 11:10:47 +02:00
ws
136190a49c fix ottava position for staff > 0; fix ottava import from 1.2 2013-08-28 11:10:46 +02:00
ws
ec77df240c fix ottava reset 2013-08-28 11:10:46 +02:00