Merge pull request #10723 from RomanPudashkin/glissando_style
[MU4] Glissando style
This commit is contained in:
commit
2e141d9893
3 changed files with 10 additions and 2 deletions
|
@ -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 << ">";
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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 }
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue