Ottava::Ottava(Score* s) : TextLineBase(s, ElementFlag::ON_STAFF | ElementFlag::MOVABLE) { _ottavaType = OttavaType::OTTAVA_8VA; setBeginTextPlace(PlaceText::LEFT); setContinueTextPlace(PlaceText::LEFT); setEndHookType(HookType::HOOK_90); setLineVisible(true); setBeginHookHeight(Spatium(.0)); setEndText(""); initElementStyle(&ottavaStyle); }
Ottava::Ottava(Score* s) : TextLineBase(s, ElementFlag::ON_STAFF | ElementFlag::MOVABLE) { _ottavaType = OttavaType::OTTAVA_8VA; _ottavaStyle = ottavaElementStyle; // make copy setBeginTextPlace(PlaceText::LEFT); setContinueTextPlace(PlaceText::LEFT); setEndHookType(HookType::HOOK_90); setLineVisible(true); initElementStyle(&_ottavaStyle); }
Volta::Volta(Score* s) : TextLine(s) { _voltaType = VoltaType::OPEN; setBeginText("1.", s->textStyle(TEXT_STYLE_VOLTA)); setBeginTextPlace(PLACE_BELOW); setContinueTextPlace(PLACE_BELOW); setBeginHook(true); Spatium hook(s->styleS(ST_voltaHook)); setBeginHookHeight(hook); setEndHookHeight(hook); setAnchor(ANCHOR_MEASURE); }
Volta::Volta(Score* s) : TextLine(s) { setLineWidth(Spatium(.18)); setBeginText("1.", TEXT_STYLE_VOLTA); setBeginTextPlace(PLACE_BELOW); setContinueTextPlace(PLACE_BELOW); setBeginHook(true); setBeginHookHeight(Spatium(1.9)); setYoff(-4.0); setEndHookHeight(Spatium(1.9)); setAnchor(ANCHOR_MEASURE); }
Volta::Volta(Score* s) : TextLineBase(s) { setBeginTextPlace(PlaceText::BELOW); setContinueTextPlace(PlaceText::BELOW); setBeginHookType(HookType::HOOK_90); setAnchor(Anchor::MEASURE); resetProperty(P_ID::BEGIN_HOOK_HEIGHT); resetProperty(P_ID::END_HOOK_HEIGHT); resetProperty(P_ID::LINE_WIDTH); resetProperty(P_ID::LINE_STYLE); resetProperty(P_ID::BEGIN_TEXT_OFFSET); resetProperty(P_ID::BEGIN_TEXT_ALIGN); }
Volta::Volta(Score* s) : TextLineBase(s) { setBeginText("1.", TextStyleType::VOLTA); setBeginTextPlace(PlaceText::BELOW); setContinueTextPlace(PlaceText::BELOW); setBeginHook(true); setAnchor(Anchor::MEASURE); resetProperty(P_ID::BEGIN_HOOK_HEIGHT); resetProperty(P_ID::END_HOOK_HEIGHT); resetProperty(P_ID::LINE_WIDTH); resetProperty(P_ID::LINE_STYLE); }
Volta::Volta(Score* s) : TextLine(s) { setBeginText("1.", TextStyleType::VOLTA); setBeginTextPlace(PlaceText::BELOW); setContinueTextPlace(PlaceText::BELOW); setBeginHook(true); Spatium hook(s->styleS(StyleIdx::voltaHook)); setBeginHookHeight(hook); setEndHookHeight(hook); setAnchor(Anchor::MEASURE); setLineWidth(score()->styleS(StyleIdx::voltaLineWidth)); lineWidthStyle = PropertyStyle::STYLED; }
Volta::Volta(Score* s) : TextLine(s) { _voltaType = VoltaType::OPEN; setBeginText("1.", TEXT_STYLE_VOLTA); setBeginTextPlace(PLACE_BELOW); setContinueTextPlace(PLACE_BELOW); setBeginHook(true); Spatium hook(s->styleS(ST_voltaHook)); setBeginHookHeight(hook); setEndHookHeight(hook); setAnchor(ANCHOR_MEASURE); setLineWidth(score()->styleS(ST_voltaLineWidth)); lineWidthStyle = PropertyStyle::STYLED; }