Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/engraving/dom/factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,7 @@ TripletFeel* Factory::createTripletFeel(Segment * parent, TripletFeelType type,
CREATE_ITEM_IMPL(Vibrato, ElementType::VIBRATO, EngravingItem, isAccessibleEnabled)

CREATE_ITEM_IMPL(TextLine, ElementType::TEXTLINE, EngravingItem, isAccessibleEnabled)
MAKE_ITEM_IMPL(TextLine, EngravingItem);

CREATE_ITEM_IMPL(Ottava, ElementType::OTTAVA, EngravingItem, isAccessibleEnabled)

Expand Down
1 change: 1 addition & 0 deletions src/engraving/dom/factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ class Factory
static Vibrato* createVibrato(EngravingItem* parent, bool isAccessibleEnabled = true);

static TextLine* createTextLine(EngravingItem* parent, bool isAccessibleEnabled = true);
static std::shared_ptr<TextLine> makeTextLine(EngravingItem* parent);

static Ottava* createOttava(EngravingItem* parent, bool isAccessibleEnabled = true);

Expand Down
9 changes: 9 additions & 0 deletions src/engraving/dom/gradualtempochange.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,15 @@ static const ElementStyle tempoStyle {
{ Sid::tempoChangeDashLineLen, Pid::DASH_LINE_LEN },
{ Sid::tempoChangeDashGapLen, Pid::DASH_GAP_LEN },
{ Sid::tempoChangeFontSpatiumDependent, Pid::TEXT_SIZE_SPATIUM_DEPENDENT },

{ Sid::gradualTempoChangeEndLineArrowHeight, Pid::END_LINE_ARROW_HEIGHT },
{ Sid::gradualTempoChangeEndLineArrowWidth, Pid::END_LINE_ARROW_WIDTH },
{ Sid::gradualTempoChangeBeginLineArrowHeight, Pid::BEGIN_LINE_ARROW_HEIGHT },
{ Sid::gradualTempoChangeBeginLineArrowWidth, Pid::BEGIN_LINE_ARROW_WIDTH },
{ Sid::gradualTempoChangeEndFilledArrowHeight, Pid::END_FILLED_ARROW_HEIGHT },
{ Sid::gradualTempoChangeEndFilledArrowWidth, Pid::END_FILLED_ARROW_WIDTH },
{ Sid::gradualTempoChangeBeginFilledArrowHeight, Pid::BEGIN_FILLED_ARROW_HEIGHT },
{ Sid::gradualTempoChangeBeginFilledArrowWidth, Pid::BEGIN_FILLED_ARROW_WIDTH },
};

static const ElementStyle tempoSegmentStyle {
Expand Down
8 changes: 8 additions & 0 deletions src/engraving/dom/hairpin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ static const ElementStyle hairpinStyle {
{ Sid::hairpinLineDashLineLen, Pid::DASH_LINE_LEN },
{ Sid::hairpinLineDashGapLen, Pid::DASH_GAP_LEN },
{ Sid::hairpinFontSpatiumDependent, Pid::TEXT_SIZE_SPATIUM_DEPENDENT, },
{ Sid::hairpinEndLineArrowHeight, Pid::END_LINE_ARROW_HEIGHT },
{ Sid::hairpinEndLineArrowWidth, Pid::END_LINE_ARROW_WIDTH },
{ Sid::hairpinBeginLineArrowHeight, Pid::BEGIN_LINE_ARROW_HEIGHT },
{ Sid::hairpinBeginLineArrowWidth, Pid::BEGIN_LINE_ARROW_WIDTH },
{ Sid::hairpinEndFilledArrowHeight, Pid::END_FILLED_ARROW_HEIGHT },
{ Sid::hairpinEndFilledArrowWidth, Pid::END_FILLED_ARROW_WIDTH },
{ Sid::hairpinBeginFilledArrowHeight, Pid::BEGIN_FILLED_ARROW_HEIGHT },
{ Sid::hairpinBeginFilledArrowWidth, Pid::BEGIN_FILLED_ARROW_WIDTH },
};

//---------------------------------------------------------
Expand Down
10 changes: 10 additions & 0 deletions src/engraving/dom/harmonicmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,16 @@ PropertyValue HarmonicMark::propertyDefault(Pid propertyId) const
case Pid::TEXT_STYLE:
return TextStyleType::LET_RING;

case Pid::BEGIN_FILLED_ARROW_HEIGHT: // No arrow endings for harmonic mark
case Pid::BEGIN_FILLED_ARROW_WIDTH:
case Pid::END_FILLED_ARROW_HEIGHT:
case Pid::END_FILLED_ARROW_WIDTH:
case Pid::BEGIN_LINE_ARROW_HEIGHT:
case Pid::BEGIN_LINE_ARROW_WIDTH:
case Pid::END_LINE_ARROW_HEIGHT:
case Pid::END_LINE_ARROW_WIDTH:
return 0.0;

default:
return TextLineBase::propertyDefault(propertyId);
}
Expand Down
10 changes: 10 additions & 0 deletions src/engraving/dom/letring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,16 @@ PropertyValue LetRing::propertyDefault(Pid propertyId) const
case Pid::TEXT_STYLE:
return TextStyleType::LET_RING;

case Pid::BEGIN_FILLED_ARROW_HEIGHT: // No arrow endings for let ring
case Pid::BEGIN_FILLED_ARROW_WIDTH:
case Pid::END_FILLED_ARROW_HEIGHT:
case Pid::END_FILLED_ARROW_WIDTH:
case Pid::BEGIN_LINE_ARROW_HEIGHT:
case Pid::BEGIN_LINE_ARROW_WIDTH:
case Pid::END_LINE_ARROW_HEIGHT:
case Pid::END_LINE_ARROW_WIDTH:
return 0.0;

default:
return TextLineBase::propertyDefault(propertyId);
}
Expand Down
13 changes: 12 additions & 1 deletion src/engraving/dom/noteline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ static const ElementStyle noteLineStyle {
{ Sid::noteLineStyle, Pid::LINE_STYLE },
{ Sid::noteLineDashLineLen, Pid::DASH_LINE_LEN },
{ Sid::noteLineDashGapLen, Pid::DASH_GAP_LEN },
{ Sid::noteLineEndLineArrowHeight, Pid::END_LINE_ARROW_HEIGHT },
{ Sid::noteLineEndLineArrowWidth, Pid::END_LINE_ARROW_WIDTH },
{ Sid::noteLineBeginLineArrowHeight, Pid::BEGIN_LINE_ARROW_HEIGHT },
{ Sid::noteLineBeginLineArrowWidth, Pid::BEGIN_LINE_ARROW_WIDTH },
{ Sid::noteLineEndFilledArrowHeight, Pid::END_FILLED_ARROW_HEIGHT },
{ Sid::noteLineEndFilledArrowWidth, Pid::END_FILLED_ARROW_WIDTH },
{ Sid::noteLineBeginFilledArrowHeight, Pid::BEGIN_FILLED_ARROW_HEIGHT },
{ Sid::noteLineBeginFilledArrowWidth, Pid::BEGIN_FILLED_ARROW_WIDTH },
};

Sid NoteLineSegment::getPropertyStyle(Pid pid) const
Expand Down Expand Up @@ -75,8 +83,11 @@ EngravingObject* NoteLineSegment::propertyDelegate(Pid pid) const

Sid NoteLine::getPropertyStyle(Pid pid) const
{
if (pid == Pid::OFFSET) {
switch (pid) {
case Pid::OFFSET:
return Sid::NOSTYLE;
default:
break;
}
return TextLineBase::getPropertyStyle(pid);
}
Expand Down
8 changes: 8 additions & 0 deletions src/engraving/dom/ottava.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ static const ElementStyle ottavaStyle {
{ Sid::ottavaDashGapLen, Pid::DASH_GAP_LEN },
{ Sid::ottavaPosAbove, Pid::OFFSET },
{ Sid::ottavaFontSpatiumDependent, Pid::TEXT_SIZE_SPATIUM_DEPENDENT },
{ Sid::ottavaEndLineArrowHeight, Pid::END_LINE_ARROW_HEIGHT },
{ Sid::ottavaEndLineArrowWidth, Pid::END_LINE_ARROW_WIDTH },
{ Sid::ottavaBeginLineArrowHeight, Pid::BEGIN_LINE_ARROW_HEIGHT },
{ Sid::ottavaBeginLineArrowWidth, Pid::BEGIN_LINE_ARROW_WIDTH },
{ Sid::ottavaEndFilledArrowHeight, Pid::END_FILLED_ARROW_HEIGHT },
{ Sid::ottavaEndFilledArrowWidth, Pid::END_FILLED_ARROW_WIDTH },
{ Sid::ottavaBeginFilledArrowHeight, Pid::BEGIN_FILLED_ARROW_HEIGHT },
{ Sid::ottavaBeginFilledArrowWidth, Pid::BEGIN_FILLED_ARROW_WIDTH },
};

OttavaSegment::OttavaSegment(Ottava* sp, System* parent)
Expand Down
8 changes: 8 additions & 0 deletions src/engraving/dom/palmmute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ static const ElementStyle palmMuteStyle {
{ Sid::palmMuteLineWidth, Pid::LINE_WIDTH },
{ Sid::palmMutePlacement, Pid::PLACEMENT },
{ Sid::palmMutePosBelow, Pid::OFFSET },
{ Sid::palmMuteEndLineArrowHeight, Pid::END_LINE_ARROW_HEIGHT },
{ Sid::palmMuteEndLineArrowWidth, Pid::END_LINE_ARROW_WIDTH },
{ Sid::palmMuteBeginLineArrowHeight, Pid::BEGIN_LINE_ARROW_HEIGHT },
{ Sid::palmMuteBeginLineArrowWidth, Pid::BEGIN_LINE_ARROW_WIDTH },
{ Sid::palmMuteEndFilledArrowHeight, Pid::END_FILLED_ARROW_HEIGHT },
{ Sid::palmMuteEndFilledArrowWidth, Pid::END_FILLED_ARROW_WIDTH },
{ Sid::palmMuteBeginFilledArrowHeight, Pid::BEGIN_FILLED_ARROW_HEIGHT },
{ Sid::palmMuteBeginFilledArrowWidth, Pid::BEGIN_FILLED_ARROW_WIDTH },
};

PalmMuteSegment::PalmMuteSegment(PalmMute* sp, System* parent)
Expand Down
10 changes: 9 additions & 1 deletion src/engraving/dom/pedal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,15 @@ static const ElementStyle pedalStyle {
{ Sid::pedalPlacement, Pid::PLACEMENT },
{ Sid::pedalLineStyle, Pid::LINE_STYLE },
{ Sid::pedalPosBelow, Pid::OFFSET },
{ Sid::pedalFontSpatiumDependent, Pid::TEXT_SIZE_SPATIUM_DEPENDENT }
{ Sid::pedalFontSpatiumDependent, Pid::TEXT_SIZE_SPATIUM_DEPENDENT },
{ Sid::pedalEndLineArrowHeight, Pid::END_LINE_ARROW_HEIGHT },
{ Sid::pedalEndLineArrowWidth, Pid::END_LINE_ARROW_WIDTH },
{ Sid::pedalBeginLineArrowHeight, Pid::BEGIN_LINE_ARROW_HEIGHT },
{ Sid::pedalBeginLineArrowWidth, Pid::BEGIN_LINE_ARROW_WIDTH },
{ Sid::pedalEndFilledArrowHeight, Pid::END_FILLED_ARROW_HEIGHT },
{ Sid::pedalEndFilledArrowWidth, Pid::END_FILLED_ARROW_WIDTH },
{ Sid::pedalBeginFilledArrowHeight, Pid::BEGIN_FILLED_ARROW_HEIGHT },
{ Sid::pedalBeginFilledArrowWidth, Pid::BEGIN_FILLED_ARROW_WIDTH },
};

const String Pedal::PEDAL_SYMBOL = u"<sym>keyboardPedalPed</sym>";
Expand Down
10 changes: 10 additions & 0 deletions src/engraving/dom/pickscrape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,16 @@ PropertyValue PickScrape::propertyDefault(Pid propertyId) const
case Pid::TEXT_STYLE:
return TextStyleType::PALM_MUTE;

case Pid::BEGIN_FILLED_ARROW_HEIGHT: // No arrow endings for pick scrape
case Pid::BEGIN_FILLED_ARROW_WIDTH:
case Pid::END_FILLED_ARROW_HEIGHT:
case Pid::END_FILLED_ARROW_WIDTH:
case Pid::BEGIN_LINE_ARROW_HEIGHT:
case Pid::BEGIN_LINE_ARROW_WIDTH:
case Pid::END_LINE_ARROW_HEIGHT:
case Pid::END_LINE_ARROW_WIDTH:
return 0.0;

default:
return TextLineBase::propertyDefault(propertyId);
}
Expand Down
8 changes: 8 additions & 0 deletions src/engraving/dom/property.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,10 @@ static constexpr PropertyMetaData propertyList[] = {
{ Pid::BEGIN_TEXT_PLACE, P_TYPE::TEXT_PLACE, PropertyGroup::APPEARANCE, false, "beginTextPlace", QT_TRANSLATE_NOOP("engraving/propertyName", "begin text place") },
{ Pid::BEGIN_HOOK_TYPE, P_TYPE::HOOK_TYPE, PropertyGroup::APPEARANCE, true, "beginHookType", QT_TRANSLATE_NOOP("engraving/propertyName", "begin hook type") },
{ Pid::BEGIN_HOOK_HEIGHT, P_TYPE::SPATIUM, PropertyGroup::APPEARANCE, false, "beginHookHeight", QT_TRANSLATE_NOOP("engraving/propertyName", "begin hook height") },
{ Pid::BEGIN_LINE_ARROW_HEIGHT, P_TYPE::SPATIUM, PropertyGroup::APPEARANCE, false, "beginLineArrowHeight", QT_TRANSLATE_NOOP("engraving/propertyName", "begin line arrow height") },
{ Pid::BEGIN_LINE_ARROW_WIDTH, P_TYPE::SPATIUM, PropertyGroup::APPEARANCE, false, "beginLineArrowWidth", QT_TRANSLATE_NOOP("engraving/propertyName", "begin line arrow width") },
{ Pid::BEGIN_FILLED_ARROW_HEIGHT, P_TYPE::SPATIUM, PropertyGroup::APPEARANCE, false, "beginFilledArrowHeight", QT_TRANSLATE_NOOP("engraving/propertyName", "begin filled arrow height") },
{ Pid::BEGIN_FILLED_ARROW_WIDTH, P_TYPE::SPATIUM, PropertyGroup::APPEARANCE, false, "beginFilledArrowWidth", QT_TRANSLATE_NOOP("engraving/propertyName", "begin filled arrow width") },
{ Pid::BEGIN_FONT_FACE, P_TYPE::STRING, PropertyGroup::APPEARANCE, false, "beginFontFace", QT_TRANSLATE_NOOP("engraving/propertyName", "begin font face") },
{ Pid::BEGIN_FONT_SIZE, P_TYPE::REAL, PropertyGroup::APPEARANCE, false, "beginFontSize", QT_TRANSLATE_NOOP("engraving/propertyName", "begin font size") },
{ Pid::BEGIN_FONT_STYLE, P_TYPE::INT, PropertyGroup::APPEARANCE, false, "beginFontStyle", QT_TRANSLATE_NOOP("engraving/propertyName", "begin font style") },
Expand All @@ -368,6 +372,10 @@ static constexpr PropertyMetaData propertyList[] = {
{ Pid::END_TEXT_PLACE, P_TYPE::TEXT_PLACE, PropertyGroup::APPEARANCE, false, "endTextPlace", QT_TRANSLATE_NOOP("engraving/propertyName", "end text place") },
{ Pid::END_HOOK_TYPE, P_TYPE::HOOK_TYPE, PropertyGroup::APPEARANCE, true, "endHookType", QT_TRANSLATE_NOOP("engraving/propertyName", "end hook type") },
{ Pid::END_HOOK_HEIGHT, P_TYPE::SPATIUM, PropertyGroup::APPEARANCE, false, "endHookHeight", QT_TRANSLATE_NOOP("engraving/propertyName", "end hook height") },
{ Pid::END_LINE_ARROW_HEIGHT, P_TYPE::SPATIUM, PropertyGroup::APPEARANCE, false, "endLineArrowHeight", QT_TRANSLATE_NOOP("engraving/propertyName", "end line arrow height") },
{ Pid::END_LINE_ARROW_WIDTH, P_TYPE::SPATIUM, PropertyGroup::APPEARANCE, false, "endLineArrowWidth", QT_TRANSLATE_NOOP("engraving/propertyName", "end line arrow width") },
{ Pid::END_FILLED_ARROW_HEIGHT, P_TYPE::SPATIUM, PropertyGroup::APPEARANCE, false, "endFilledArrowHeight", QT_TRANSLATE_NOOP("engraving/propertyName", "end filled arrow height") },
{ Pid::END_FILLED_ARROW_WIDTH, P_TYPE::SPATIUM, PropertyGroup::APPEARANCE, false, "endFilledArrowWidth", QT_TRANSLATE_NOOP("engraving/propertyName", "end filled arrow width") },
{ Pid::END_FONT_FACE, P_TYPE::STRING, PropertyGroup::APPEARANCE, false, "endFontFace", QT_TRANSLATE_NOOP("engraving/propertyName", "end font face") },
{ Pid::END_FONT_SIZE, P_TYPE::REAL, PropertyGroup::APPEARANCE, false, "endFontSize", QT_TRANSLATE_NOOP("engraving/propertyName", "end font size") },
{ Pid::END_FONT_STYLE, P_TYPE::INT, PropertyGroup::APPEARANCE, false, "endFontStyle", QT_TRANSLATE_NOOP("engraving/propertyName", "end font style") },
Expand Down
8 changes: 8 additions & 0 deletions src/engraving/dom/property.h
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,10 @@ enum class Pid : short {
BEGIN_TEXT_PLACE,
BEGIN_HOOK_TYPE,
BEGIN_HOOK_HEIGHT,
BEGIN_LINE_ARROW_HEIGHT,
BEGIN_LINE_ARROW_WIDTH,
BEGIN_FILLED_ARROW_HEIGHT,
BEGIN_FILLED_ARROW_WIDTH,
BEGIN_FONT_FACE,
BEGIN_FONT_SIZE,
BEGIN_FONT_STYLE,
Expand All @@ -377,6 +381,10 @@ enum class Pid : short {
END_TEXT_PLACE,
END_HOOK_TYPE,
END_HOOK_HEIGHT,
END_LINE_ARROW_HEIGHT,
END_LINE_ARROW_WIDTH,
END_FILLED_ARROW_HEIGHT,
END_FILLED_ARROW_WIDTH,
END_FONT_FACE,
END_FONT_SIZE,
END_FONT_STYLE,
Expand Down
10 changes: 10 additions & 0 deletions src/engraving/dom/rasgueado.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,16 @@ PropertyValue Rasgueado::propertyDefault(Pid propertyId) const
case Pid::TEXT_STYLE:
return TextStyleType::LET_RING;

case Pid::BEGIN_FILLED_ARROW_HEIGHT: // No arrow endings for rasguedo
case Pid::BEGIN_FILLED_ARROW_WIDTH:
case Pid::END_FILLED_ARROW_HEIGHT:
case Pid::END_FILLED_ARROW_WIDTH:
case Pid::BEGIN_LINE_ARROW_HEIGHT:
case Pid::BEGIN_LINE_ARROW_WIDTH:
case Pid::END_LINE_ARROW_HEIGHT:
case Pid::END_LINE_ARROW_WIDTH:
return 0.0;

default:
return TextLineBase::propertyDefault(propertyId);
}
Expand Down
14 changes: 13 additions & 1 deletion src/engraving/dom/textline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ static const ElementStyle textLineStyle {
{ Sid::textLineLineStyle, Pid::LINE_STYLE },
{ Sid::textLinePosAbove, Pid::OFFSET },
{ Sid::textLineFontSpatiumDependent, Pid::TEXT_SIZE_SPATIUM_DEPENDENT },
{ Sid::textLineEndLineArrowHeight, Pid::END_LINE_ARROW_HEIGHT },
{ Sid::textLineEndLineArrowWidth, Pid::END_LINE_ARROW_WIDTH },
{ Sid::textLineBeginLineArrowHeight, Pid::BEGIN_LINE_ARROW_HEIGHT },
{ Sid::textLineBeginLineArrowWidth, Pid::BEGIN_LINE_ARROW_WIDTH },
{ Sid::textLineEndFilledArrowHeight, Pid::END_FILLED_ARROW_HEIGHT },
{ Sid::textLineEndFilledArrowWidth, Pid::END_FILLED_ARROW_WIDTH },
{ Sid::textLineBeginFilledArrowHeight, Pid::BEGIN_FILLED_ARROW_HEIGHT },
{ Sid::textLineBeginFilledArrowWidth, Pid::BEGIN_FILLED_ARROW_WIDTH },
};

//---------------------------------------------------------
Expand Down Expand Up @@ -241,13 +249,17 @@ Sid TextLineSegment::getPropertyStyle(Pid pid) const

Sid TextLine::getPropertyStyle(Pid pid) const
{
if (pid == Pid::OFFSET) {
switch (pid) {
case Pid::OFFSET: {
if (anchor() == Spanner::Anchor::NOTE) {
return Sid::NOSTYLE;
} else {
return getTextLinePos(placeAbove());
}
}
default:
break;
}
return TextLineBase::getPropertyStyle(pid);
}

Expand Down
53 changes: 51 additions & 2 deletions src/engraving/dom/textlinebase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,20 @@ void TextLineBaseSegment::spatiumChanged(double ov, double nv)
m_endText->spatiumChanged(ov, nv);
}

static constexpr std::array<Pid, 30> TextLineBasePropertyId = { {
static constexpr std::array<Pid, 38> TextLineBasePropertyId = { {
Pid::LINE_VISIBLE,
Pid::BEGIN_HOOK_TYPE,
Pid::BEGIN_HOOK_HEIGHT,
Pid::BEGIN_LINE_ARROW_HEIGHT,
Pid::BEGIN_LINE_ARROW_WIDTH,
Pid::BEGIN_FILLED_ARROW_HEIGHT,
Pid::BEGIN_FILLED_ARROW_WIDTH,
Pid::END_HOOK_TYPE,
Pid::END_HOOK_HEIGHT,
Pid::END_LINE_ARROW_HEIGHT,
Pid::END_LINE_ARROW_WIDTH,
Pid::END_FILLED_ARROW_HEIGHT,
Pid::END_FILLED_ARROW_WIDTH,
Pid::GAP_BETWEEN_TEXT_AND_LINE,
Pid::BEGIN_TEXT,
Pid::BEGIN_TEXT_ALIGN,
Expand Down Expand Up @@ -154,7 +162,7 @@ static constexpr std::array<Pid, 30> TextLineBasePropertyId = { {
Pid::END_TEXT_OFFSET,
} };

const std::array<Pid, 30>& TextLineBase::textLineBasePropertyIds()
const std::array<Pid, 38>& TextLineBase::textLineBasePropertyIds()
{
return TextLineBasePropertyId;
}
Expand Down Expand Up @@ -245,6 +253,14 @@ PropertyValue TextLineBase::getProperty(Pid id) const
return _beginHookType;
case Pid::BEGIN_HOOK_HEIGHT:
return _beginHookHeight;
case Pid::BEGIN_LINE_ARROW_HEIGHT:
return _beginLineArrowHeight;
case Pid::BEGIN_LINE_ARROW_WIDTH:
return _beginLineArrowWidth;
case Pid::BEGIN_FILLED_ARROW_HEIGHT:
return _beginFilledArrowHeight;
case Pid::BEGIN_FILLED_ARROW_WIDTH:
return _beginFilledArrowWidth;
case Pid::BEGIN_FONT_FACE:
return _beginFontFamily;
case Pid::BEGIN_FONT_SIZE:
Expand Down Expand Up @@ -273,6 +289,14 @@ PropertyValue TextLineBase::getProperty(Pid id) const
return _endHookType;
case Pid::END_HOOK_HEIGHT:
return _endHookHeight;
case Pid::END_LINE_ARROW_HEIGHT:
return _endLineArrowHeight;
case Pid::END_LINE_ARROW_WIDTH:
return _endLineArrowWidth;
case Pid::END_FILLED_ARROW_HEIGHT:
return _endFilledArrowHeight;
case Pid::END_FILLED_ARROW_WIDTH:
return _endFilledArrowWidth;
case Pid::GAP_BETWEEN_TEXT_AND_LINE:
return _gapBetweenTextAndLine;
case Pid::END_FONT_FACE:
Expand Down Expand Up @@ -370,6 +394,31 @@ bool TextLineBase::setProperty(Pid id, const PropertyValue& v)
case Pid::END_HOOK_TYPE:
_endHookType = v.value<HookType>();
break;

case Pid::BEGIN_FILLED_ARROW_HEIGHT:
_beginFilledArrowHeight = v.value<Spatium>();
break;
case Pid::BEGIN_FILLED_ARROW_WIDTH:
_beginFilledArrowWidth = v.value<Spatium>();
break;
case Pid::END_FILLED_ARROW_HEIGHT:
_endFilledArrowHeight = v.value<Spatium>();
break;
case Pid::END_FILLED_ARROW_WIDTH:
_endFilledArrowWidth = v.value<Spatium>();
break;
case Pid::BEGIN_LINE_ARROW_HEIGHT:
_beginLineArrowHeight = v.value<Spatium>();
break;
case Pid::BEGIN_LINE_ARROW_WIDTH:
_beginLineArrowWidth = v.value<Spatium>();
break;
case Pid::END_LINE_ARROW_HEIGHT:
_endLineArrowHeight = v.value<Spatium>();
break;
case Pid::END_LINE_ARROW_WIDTH:
_endLineArrowWidth = v.value<Spatium>();
break;
case Pid::BEGIN_TEXT:
setBeginText(v.value<String>());
break;
Expand Down
Loading
Loading