Commit graph

19 commits

Author SHA1 Message Date
Joachim Schmitz
4e048f1712 convert enum Key into enum class
and to be able to ret rid of the KEY_ prefix, change enum Tpc's members
by adding (back) the prefix TPC_
2014-05-30 13:37:39 +02:00
Joachim Schmitz
7f1b612615 convert enum P_ID into enum class 2014-05-26 18:18:01 +02:00
Joachim Schmitz
0b43247956 convert enum StyleIdx into enum class 2014-05-26 15:31:36 +02:00
Joachim Schmitz
93a60e8944 convert unnamed enum into enum Key
but converting into enum class requires some more work. And mostly for
that reason can't yet get rid of the "KEY_", as it clashes with enum Tpc
(which too hasn't yet been converted into en enum class)
2014-05-26 12:27:31 +02:00
Joachim Schmitz
0d6cc4ffe0 convert unnamed enum into enum Tpc
but haven't had the guts to make it an enum class yet
2014-05-26 12:27:29 +02:00
Joachim Schmitz
931e837c5e convert enum ElementType into enum class 2014-05-23 10:35:27 +02:00
Joachim Schmitz
a1c6c8c493 improve enum ElementFlag
more work needed to convert it into a class, same issue as with
ArticulationShowIn.
2014-05-23 10:35:22 +02:00
Joachim Schmitz
6b3bd55258 convert enum AccidentalType to enum class 2014-05-23 10:35:08 +02:00
ws
76eb9ebfb0 use char for some enums 2014-05-07 18:09:01 +02:00
Maurizio M. Gavioli
0a556afa3a Merge pull request #824 from mgavioli/fix_ambitus_layout
Fix ambitus layout
2014-04-10 21:06:52 +02:00
ws
e534cccef8 bug fixes for concert pitch switch 2014-04-09 16:09:21 +02:00
Maurizio M. Gavioli
1d8d0eac9e Fixes to ambitus:
- Fix missing adjustReadPos() for ambitus in Maesure::layoutX()

- Reduce left margin in there are accidentals
2014-04-09 12:45:28 +02:00
Maurizio M. Gavioli
0bca1ed811 Clean up code and correct octave detection in updateRange() 2014-04-09 12:45:28 +02:00
Maurizio M. Gavioli
390b4ced3e Fix layout of ambitus elements with accidentals.
Ambitus elements with accidental(s) are laid out misaligned with ambitus elements without accidental(s).

The new algorithm aligns the leftmost note heads of each ambitus and places accidentals accordingly.
2014-04-09 12:45:28 +02:00
ws
d280091f22 implement separate tpc values for transposed view 2014-04-09 09:40:48 +02:00
Maurizio M. Gavioli
b32000dcfc Selecting [undefined] TPC in Ambitus inspector causes crash.
The [undefined] item is informational only (when the ambitus range cannot be calculated, for instance when there are no notes in the staff yet) and should not be selected.

Fixed at two levels:

1) The [undefined] item is disabled and cannot be selected any longer

2) The Ambitus::layout() method is more robust to in dealing with undefined ranges.
2014-03-16 23:40:20 +01:00
ws
e9fd861fbc hide noteHeads array 2013-11-25 15:42:40 +01:00
ws
43beb5ad9e merge Ambitus 2013-11-25 15:28:53 +01:00
Maurizio M. Gavioli
41588b2bc1 Renamed element to "Ambitus" 2013-11-25 12:17:12 +01:00
Renamed from libmscore/partrange.cpp (Browse further)