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().
Use KEY_C instead of 0 when calling pitch2tpc()
Remove code no longer used...
Update a couple of comments...
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
inspector for Marker/Jump properties
propagate rehearsal mark to all parts
Play notes being added to a chord.

When entering notes via midi, if the first note is held down while
more notes are played, to enter a chord of notes, only the first
note sounds. This patch allows the subsequent notes to be heard.

NB. If two notes are pressed at exactly the same time so that they
are both processed in a single call to Score::processMidiInput(),
then still only one of them will be heard.