本文整理汇总了C++中TextLine::setEndHookHeight方法的典型用法代码示例。如果您正苦于以下问题:C++ TextLine::setEndHookHeight方法的具体用法?C++ TextLine::setEndHookHeight怎么用?C++ TextLine::setEndHookHeight使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TextLine
的用法示例。
在下文中一共展示了TextLine::setEndHookHeight方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: lineMenu
//.........这里部分代码省略.........
volta->setSubtype(VOLTA_CLOSED);
sp->append(volta, tr("Prima volta"));
volta = new Volta(gscore);
volta->setLen(l);
volta->setText("2.");
il.clear();
il.append(2);
volta->setEndings(il);
volta->setSubtype(VOLTA_CLOSED);
sp->append(volta, tr("Seconda volta"));
volta = new Volta(gscore);
volta->setLen(l);
volta->setText("3.");
il.clear();
il.append(3);
volta->setEndings(il);
volta->setSubtype(VOLTA_CLOSED);
sp->append(volta, tr("Terza volta"));
volta = new Volta(gscore);
volta->setLen(l);
volta->setText("2.");
il.clear();
il.append(2);
volta->setEndings(il);
volta->setSubtype(VOLTA_OPEN);
sp->append(volta, tr("Seconda volta"));
//--------
Ottava* ottava = new Ottava(gscore);
ottava->setSubtype(0);
ottava->setLen(l);
sp->append(ottava, tr("8va"));
ottava = new Ottava(gscore);
ottava->setSubtype(1);
ottava->setLen(l);
sp->append(ottava, tr("15ma"));
ottava = new Ottava(gscore);
ottava->setSubtype(2);
ottava->setLen(l);
sp->append(ottava, tr("8vb"));
ottava = new Ottava(gscore);
ottava->setSubtype(3);
ottava->setLen(l);
sp->append(ottava, tr("15mb"));
//-------
Pedal* pedal = new Pedal(gscore);
pedal->setLen(l);
sp->append(pedal, tr("Pedal"));
pedal = new Pedal(gscore);
pedal->setLen(l);
pedal->setEndHookType(HOOK_45);
sp->append(pedal, tr("Pedal"));
pedal = new Pedal(gscore);
pedal->setLen(l);
pedal->setBeginSymbol(-1);
pedal->setBeginHook(true);
pedal->setBeginHookHeight(Spatium(-1.5));
pedal->setBeginHookType(HOOK_45);
pedal->setEndHookType(HOOK_45);
sp->append(pedal, tr("Pedal"));
pedal = new Pedal(gscore);
pedal->setLen(l);
pedal->setBeginSymbol(-1);
pedal->setBeginHook(true);
pedal->setBeginHookHeight(Spatium(-1.5));
pedal->setBeginHookType(HOOK_45);
sp->append(pedal, tr("Pedal"));
//-------
Trill* trill = new Trill(gscore);
trill->setLen(l);
sp->append(trill, tr("Trill line"));
TextLine* textLine = new TextLine(gscore);
textLine->setBeginText("VII");
sp->append(textLine, tr("Text line"));
textLine->setEndHook(true);
textLine->setEndHookHeight(Spatium(1.5));
TextLine* line = new TextLine(gscore);
line->setDiagonal(true);
sp->append(line, tr("Line"));
}
linePalette->show();
linePalette->raise();
}