Merge pull request #935 from Jojo-Schmitz/enum-class

convert as many "enum" as possible to "enum class", and make them ": char" in the due course #3
convert enum UpDownMode into enum class
convert enum StaffGroup into enum class