fix #20018: MIDI note input

Add call to MuseScore::endCmd() after processing MIDI note input,
so that the note is played and the cursor box is updated.
Key-based cursor note movement and pitch2tpc()

Replace pitch2tpc2() and both variants of pitch2tpc() with a single
generic pitch2tpc(). Add PREFER_SHARPS, PREFER_NEAREST and PREFER_FLATS.
Update all places where those functions are called from.
Use intelligent key-aware stepping of pitch and tpc in Score::upDown().
fix #19817 Crash on loading a file with incoplete slur spanner and linked part
Use KEY_C instead of 0 when calling pitch2tpc()
Remove code no longer used...
Update a couple of comments...
timesig change causes infinite loop in case of tuplets
fix crash if last element is not a measure
move colornotes plugin into submenu

and place it next to the notenames plugin
A simpler (and yet correct in more cases) algorithm to find the direction of a broken beam.

Now finds the right direction in the great majority of cases without any attempt to 'understand' the rhythm or the time signature.
Might fail with some highly subdivided tuplets (10-plets or more) or sub-tuplets.
fix #19544
Allows to hide some styles in:

*) the Text Style editor left-side list
*) in style drop lists / combo boxes as the EditTools widget or the "Text Properties" dlg box

Currently,
*) DEFAULT style is hidden everywhere
*) FIGUREDBASS and CHORDNAME styles are hidden in the Text Style editor
Merge pull request #231 from mgavioli/Hide_some_styles_in_some_contexts

Hide some styles in some contexts
Merge pull request #230 from lvinken/musicxml-fixes

fix #19544
Merge pull request #229 from mgavioli/Broken_beam_direction_again

Fix # 19021 - Broken beam direction (again!)
Merge pull request #214 from softins/7510-key-based-enharmonics

Key-based cursor note movement and pitch2tpc()
Merge pull request #222 from Jojo-Schmitz/colornotes

move colornotes plugin into submenu
Merge pull request #212 from softins/20018-midi-note-input-sound

fix #20018: MIDI note input
fix measure delete of repeat measure
update for Jump and Marker elements