Merge pull request #10723 from RomanPudashkin/glissando_style

[MU4] Glissando style
This commit is contained in:
RomanPudashkin 2022-03-03 16:21:17 +02:00 committed by GitHub
commit 2e141d9893
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 2 deletions

View file

@ -300,6 +300,12 @@ void XmlWriter::tagProperty(const char* name, P_TYPE type, const PropertyValue&
*this << XmlValue::toXml(data.value<OrnamentStyle>());
*this << "</" << ename << ">\n";
} break;
case P_TYPE::GLISS_STYLE: {
putLevel();
*this << "<" << name << ">";
*this << XmlValue::toXml(data.value<GlissandoStyle>());
*this << "</" << ename << ">\n";
} break;
case P_TYPE::ALIGN: {
putLevel();
*this << "<" << name << ">";

View file

@ -30,11 +30,13 @@ class GlissandoTypes
Q_GADGET
public:
//! NOTE: must be in sync with Ms::GlissandoStyle
enum class Style {
STYLE_CHROMATIC = 0,
STYLE_WHITE_KEYS,
STYLE_BLACK_KEYS,
STYLE_DIATONIC
STYLE_DIATONIC,
STYLE_PORTAMENTO
};
Q_ENUM(Style)

View file

@ -54,7 +54,7 @@ ExpandableBlank {
{ text: qsTrc("inspector", "White keys"), value: Glissando.STYLE_WHITE_KEYS },
{ text: qsTrc("inspector", "Black keys"), value: Glissando.STYLE_BLACK_KEYS },
{ text: qsTrc("inspector", "Diatonic"), value: Glissando.STYLE_DIATONIC },
{ text: qsTrc("inspector", "Portamento"), value: Glissando.STYLE_PORTAENTO }
{ text: qsTrc("inspector", "Portamento"), value: Glissando.STYLE_PORTAMENTO }
]
}
}