- Remove disabled and largely outdated continuous view layout code
- Remove declarations of functions which have no definition
- Remove unused global libmscore variables
- Remove some excessive forward declarations
Tempo is handled on measure layout stage which is common for page
and continuous view. We don't reset the whole tempomap for page view
currently, and we don't really need to do so for continuous view too.
- 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
This includes:
fix#279391 Staff text, chord symbols etc will fit under the volta. If we have fret diagrams, the chord symbols will be above the fret diagrams and the volta.
fix#279885: Tempo Text will be above all other text.
Tuplets can be layouted only if beams on the tuplet chord/rests are layouted.
Cross beams complicate this a lot as a cross beam can only be layouted after staff
distances are fixed.
The problem is deep in the initialization of staff types in Staff.
This commit also tries to make handling of StaffType more "const correct" and adds some
assertions which may lead to crashes (and helps detecting bad code).
* The one C4100
* The one C4189
* The two C4457
* The two C4701
* The 475 C4267, changing to size_t were easily possible, casting to
int elsewhere
* Fix GCC warnings reg. wrong printf format for a size_t, reg. unused
variables and reg. ambigous else branch, seen on Travis CI
Autoplacement add new shape of element to _staves but in continuous view old _staves is not reseted. So this container consist of ghost shapes after every update
1) The reason of crash is utilizing already deleted pointer. Each element are lying in tree. The parent of VBox element is System element. When we change mode to continuous view MS deleted all system elements and create new one. Then populate new tree with new system which root. But VBox is not shown in continuous view and MS do not set new parent for VBox. Sow VBox have pointer to deleted SYstem element. I fixed it.
2) Add header file to libmscore/CMakeLists. It doesn't effect on building, But it is necessary to include header files to Visual Studio IDE
3) Fix inability to show multi-measure rests in Continuous View see https://musescore.org/en/node/137501