Commit graph

60 commits

Author SHA1 Message Date
anatoly-os
e29406d265
Merge pull request #5947 from MarcSabatella/301259-2-text-offset
fix #301259: wrong text offset for non-default text styles
2020-04-28 14:51:28 +03:00
Dmitri Ovodok
55230ca86d Add a way to handle dragging elements collectively
Also draw anchor lines for multiple selected elements on dragging
2020-04-17 00:10:39 +03:00
Marc Sabatella
a780a36dea fix #301259
Resolves: https://musescore.org/en/node/301259

See also https://github.com/musescore/MuseScore/pull/5728/

The problem occurs in several different overrides to
getPropertyStyle() for various different text classes.
The function is supposed to determine
which Sid to use for Pid::OFFSET, based on placement above/below.
But that calculation should only be relevant
if the element is using the default text style for its type.
Otherwise it should use the offset in the current text style.

This code removes the overrides for getPropertyStyle() in each class,
instead modifying TextBase::getPropertyStyle() to check
if the element is using its default text style or not,
and then only if so does it use the placement to select a Sid.
Otherwise it uses the offset of the current text style.
2020-04-15 18:07:27 -06:00
Igor Korsukov
9d9d06b3c2 fixed virtual methods 2020-03-24 15:49:16 +02:00
Joachim Schmitz
b1ab9574cc Use C++ casts 2020-03-03 15:49:37 +01:00
Dmitri Ovodok
5136e5c03e Add a missing Q_GADGET statement 2019-05-28 14:52:14 +02:00
Dmitri Ovodok
d26bd056de Assign PIDs and names for some properties 2019-03-14 15:13:43 +02:00
James Thistlewood
459049b5c4 Add single-note dynamics 2019-03-02 18:18:12 +00:00
ws
996a411503 fix #276153 Select>mover... by subtype does not work to select by text style 2018-12-18 18:02:10 +01:00
ws
739386bcd5 Revert "fix #276153 Select>more... by subtype does not work to select by text style"
This reverts commit 78933732e9.
2018-12-18 11:06:33 +01:00
ws
78933732e9 fix #276153 Select>more... by subtype does not work to select by text style 2018-12-17 15:50:15 +01:00
ws
ca4c4df1d0 fix #277705 Chord symbols: "Default vertical position" has been lost.
This commit adds another style value for the position of Chord Symbols below a staff.
2018-11-30 12:04:19 +01:00
ws
e122462931 fix #277746 hairpins can't get moved above staff anymore 2018-11-05 11:49:28 +01:00
ws
d77183b3bb refactoring of Element::userOff and TextBase::offset 2018-10-18 11:56:23 +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
33d1cd7fb4 rename StyleIdx -> Sid and P_ID -> Pid 2018-03-27 15:36:00 +02:00
Werner Schweer
e6175c5dda rearrange class hierarchy 2017-12-27 11:51:09 +01:00
Werner Schweer
b46b55fa1e fix ties from/to grace notes; add 'final' to classes were appropriate 2017-12-21 14:08:44 +01:00
Werner Schweer
0e4211e2d0 update let ring, palm mute 2017-11-27 16:55:52 +01:00
lasconic
dee95b59e9 add screenreader info for text and dynamics 2017-06-15 17:01: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
1d4c6b2f21 move Element::type() to ScoreElement 2017-01-18 14:16:33 +01:00
Werner Schweer
c5f46bb208 rename Xml() -> XmlWriter() 2016-11-19 11:51:21 +01:00
werner
d4cc062763 updates for hairpins, dynamics 2016-08-02 17:06:35 +02:00
werner
305fad4fba layout hairpin+dynamics update 2016-07-19 14:36:22 +02:00
ws
492709f203 code cleanups 2016-04-13 11:10:17 +02:00
Nicolas Froment
b14c0586b6 Merge pull request #1966 from mgavioli/plugin_manual_classes_A-D
Plugin Manual - Documentation update for classes A-D
2015-07-13 10:07:11 +02:00
Marc Sabatella
ff823835e3 fix #65961: dotted line when dragging text 2015-06-19 14:37:27 -06:00
Maurizio M. Gavioli
38df8d9a8e Plugin Manual - Documentation update for classes A-D
Updates the documentation for classes named from A to D to proposal A) in http://dev-list.musescore.org/Plugin-documentation-generated-manual-td7579164.html

Properties are also sorted in alphabetical order for easier identification.

Note that `enum`s for `Accidental` are not final, as current situation does not seem to work in plug-ins.
2015-04-23 21:06:36 +02:00
Andrei Tuicu
6460485d3f Score accessibility system.
Provides screen-reader feedback for the selected element.
2014-08-19 00:09:13 +03:00
Bartlomiej Lewandowski
7e1f810def Added subtype for dynamics 2014-07-22 14:54:49 +02:00
Joachim Schmitz
75623c53dc move ElementType to Element::Type
needed to make it available to the Plugin framework
2014-06-26 11:57:35 +02:00
Joachim Schmitz
0e0350dd9c move enum DynamicRange to Dynamic::Range
needed to make it available to the Plugin framework
2014-06-26 11:49:06 +02:00
Joachim Schmitz
fe4fa356d1 rename enum Dynamic::DynamicType to Dynamic::Type 2014-06-26 11:49:05 +02:00
ws
e8be73f41b fix transposition when changing instrument 2014-06-04 10:40:26 +02:00
Joachim Schmitz
931e837c5e convert enum ElementType into enum class 2014-05-23 10:35:27 +02:00
Joachim Schmitz
dc14da679b convert enum DynamicRange to enum class 2014-05-23 10:35:04 +02:00
Joachim Schmitz
256519de1f convert enum DynamicType to enum class 2014-05-23 10:34:58 +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
lasconic
3b42696285 fix dynamic range access from plugin framework 2014-05-12 10:40:39 +02:00
ws
ce4c61e5ad dynamics update 2014-03-14 18:34:07 +01:00
ws
e6cbbabe2b move anchor while dragging dynamics 2013-10-22 12:05:31 +02:00
Maurizio M. Gavioli
e03f9eb358 Text of dynamics created via the palette cannot be permanently edited as the edited text is not saved to the score: the text is saved only for dynamics of type DYNAMIC_OTHER.
Fix: If the text of dynamic is changed, the type is also changed to DYNAMIC_OTHER.
2013-07-03 22:22:54 +02:00
ws
9ebabcc2e5 add namespace Ms 2013-05-13 19:43:59 +02:00
ws
220db94494 reorganize synthesizer; add zita1 reverb 2013-04-03 12:50:21 +02:00
ws
317e39ad28 replace all subtype()/setSubtype() Element methods 2013-03-05 20:24:16 +01:00
ws
db47bf6fac adapt exportxml to changes in Dynamics; fix regression tests 2013-02-14 14:14:21 +01:00
ws
5ab0347ef2 fix dynamic regression 2013-02-14 14:14:21 +01:00