Commit graph

65 commits

Author SHA1 Message Date
MarcSabatella
10b3da92db reimplement firstVisibleSysStaff and lastVisibleSysStaff to return int
Previosly, these functions returned the SysStaff itself,
but there is no way to get the numeric index from that.
The functions now return the numeric index,
and their callers are adjusted to derived the SysStaff from that
(if necessary, in one case the index was the goal all along).
2019-11-20 13:42:09 -07:00
Dmitri Ovodok
b51896e5c0 fix #295881: fix a crash on undoing adding an instrument in continuous view 2019-10-22 12:56:06 +02:00
anatoly-os
1598f89f21
Merge pull request #4747 from tobik/279417-hbox-brackets
fix #279417: Add brackets after HBox with *Create system header*
2019-04-10 15:08:42 +02:00
Tobias Kretschmar
b236a495d7 fix #279417: Address dmitrio95's code review 2019-03-18 13:03:28 +01:00
Dmitri Ovodok
242ec644c4 fix #285531: fix a crash on SVG export of some scores with MM rests 2019-03-07 16:54:12 +02:00
Tobias Kretschmar
2f9d6e165b fix #279417: Add brackets after HBox with *Create system header* 2019-03-03 00:26:19 +01:00
Marc Sabatella
8fa5fcb2d2 fix #281253: staff spacer doesn't work at page bottom 2019-02-22 19:55:29 -07:00
ws
ec3be9a99a Replacd integer midi tick values by fractions.
- tick names a position on the time axis
- tick is always a Fraction()
- only Measure() and Segment() (and Tuplet?) have a tick value
- tick() for an generic element return only a sensible value if isMeasure() or isSegment() or isSegment(parent())

- "ticks" names a duration stored in a Fraction()
- the tick value for an Segment is relative to its measure

- rename "duration" to "ticks"
- rename afrac() to tick()
- rename rfrac() to rtick()
- rename some variables, changing "fraction" into "tick"
  (example: actualFraction() into actualTicks())

- Lyrics ticks are written as Fraction, on read if xmlreader sees a "/" it reads a fraction
  else midi ticks for backwards compatibility
2019-02-18 11:46:05 +01:00
Dmitri Ovodok
b4622aa978 fix #280345: ensure that measure's system is reset on detaching from system 2018-12-20 17:53:14 +02:00
MarcSabatella
b5be6f9831 partial fix #88861: show current staff name after instrument change 2018-12-02 19:17:26 -07:00
ws
89ac0a6115 Fix page layout. "layoutPage()" was sometimes called with negativ restHeight
resulting in fancy system positions.
2018-11-02 12:02:01 +01:00
ws
b232149321 remove measure staff shapes, replace with skyline 2018-09-11 16:30:47 +02:00
ws
a64d5d81d3 add preparations for 'skyline' algorithm to calculate system distance 2018-09-03 09:54:20 +02:00
ws
77523706c7 fix #122461 Title frame is not respected in text collision detection 2018-06-27 11:16:56 +02: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
beda6eecac fix #233226: undo-redo after time signature change causes crash 2017-07-19 17:54:10 +02:00
Werner Schweer
b4eef5d4d3 change vertical layout of systems 2017-07-17 15:09:48 +02:00
divya-urs
28d4e39b05 accessibility: nextElement and prevElement 2017-07-13 23:52:00 +05:30
Werner Schweer
54fc5da69d fix lyrics auto placement 2017-06-02 11:59:32 +02:00
Werner Schweer
f80caadfe8 misc. layout fixes 2017-06-02 10:28:29 +02:00
Werner Schweer
d9ff5a26f6 misc. layout fixes 2017-03-14 17:00:49 +01: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
9c8aa7a109 fix layout of system header 2016-12-14 15:44:24 +01:00
Werner Schweer
c5f46bb208 rename Xml() -> XmlWriter() 2016-11-19 11:51:21 +01:00
Werner Schweer
4e0b0dbae0 update layout code 2016-10-20 11:32:17 +02:00
Werner Schweer
79b7746f5b layout updates 2016-10-18 15:41:11 +02:00
Werner Schweer
2b44d04ad9 implement 'fixed' spacer 2016-10-12 20:06:57 +02:00
werner
8ec8b50fc8 implement autoplace for ottava 2016-06-15 16:11:17 +02:00
ws
d789e2e691 fix #107001: Adding measures can crash musescore 2016-04-19 16:56:28 +02:00
ws
097ac65733 fix more regressions; comment out all failing mtest 2016-04-13 12:07:48 +02:00
ws
3f1aa2ed1f misc. updates to layout 2016-04-13 12:05:46 +02:00
ws
bbd802f8ae framework for partial relayout 2016-04-13 11:35:21 +02:00
ws
592ce7f53c fix misc. layout regressions 2016-04-13 11:20:05 +02:00
ws
97345495ec fix regressions for system divider 2016-04-13 11:19:01 +02:00
ws
3d8749ffe9 some regression fixes, code cleanups 2016-04-13 11:08:01 +02:00
ws
9f933d8503 Layout reorganization 2016-04-13 11:05:04 +02:00
lasconic
8df88b7f50 fix #93126: Dotted line to anchor when dragging element points off page when in vertical orientation on page >1 2016-01-23 22:21:21 +04:00
Marc Sabatella
7ac83bf5fe fix #22626: automatic system dividers 2015-08-15 11:30:58 -06:00
Marc Sabatella
f86fcb3e98 fix #58796: layout of one line staff 2015-06-10 11:09:23 +02:00
lasconic
61eed11401 fix all warnings on Mac OSX. Hopefully without side effects on other platforms. 2015-05-05 18:28:39 +02:00
Maurizio M. Gavioli
c69d2a9262 Lyrics multi-system melisma and dashes
Implements melisma and dash lines for lyrics spanning several systems.

The melisma and dash line is based on the `SLine` class and its segments on the `LineSegment` class. Both the whole line and its segments are not selectable, marked as generated and not saved in the score file, which is not changed in any way.

For very wide dash segments, several dashes are drawn; the distance between the dashes is not configurable.

Lyrics layout code in `Measure` class and in `layout.cpp` file has been commented out as the lyrics line layout is all contained in the lyrics.cpp file

The line is registered with the `Score` (to have its layout delayed until all elements are positioned) with a mechanism similar to other `Spanner`'s, but in a different container (`_unmanagedSpanner`), as the owning `Lyrics` should decide when create, register, unregister and delete its line.

The line segments are registered with the `System` they belong to (to have them drawn), in the same way as other `Spanner`'s.

There is code for using the dash metrics of the lyrics font, but it is turned off via a conditional directive, as there does not seem to be a reliable way to determine the dash metrics; conventional values (determined by trials and errors and based on my taste!) are used when the conditional directive is off.
2015-01-11 10:16:19 +01:00
ws
58fec699ce do not create invisible c-keysig in new scores 2015-01-05 13:31:42 +01:00
Andrei Tuicu
9caa98b130 Added 4 new navigation commands:
- next element
- previous element
- first element
- last element
2014-08-17 17:25:21 +03: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
931e837c5e convert enum ElementType into enum class 2014-05-23 10:35:27 +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
4c2e2e971b more fixes for line editing 2013-08-30 12:46:34 +02:00
ws
6cbea6b518 fix 22043 2013-07-29 11:13:06 +02:00
ws
0d1c84aebf fix #21964 2013-07-24 14:33:46 +02:00