void Jump::setJumpType(JumpType t) { for (const JumpTypeTable& p : jumpTypeTable) { if (p.type == t) { setText(p.text); setJumpTo(p.jumpTo); setPlayUntil(p.playUntil); setContinueAt(p.continueAt); break; } } }
void Jump::setJumpType(Type t) { for (const JumpTypeTable& p : jumpTypeTable) { if (p.type == t) { setXmlText(p.text); setJumpTo(p.jumpTo); setPlayUntil(p.playUntil); setContinueAt(p.continueAt); initSubStyle(p.subStyle); break; } } }
void Jump::setJumpType(Type t) { for (const JumpTypeTable& p : jumpTypeTable) { if (p.type == t) { setXmlText(p.text); setJumpTo(p.jumpTo); setPlayUntil(p.playUntil); setContinueAt(p.continueAt); initTid(Tid::REPEAT_RIGHT); break; } } }
void Jump::setJumpType(int t) { switch(t) { case JUMP_DC: setText("D.C."); setJumpTo("start"); setPlayUntil("end"); break; case JUMP_DC_AL_FINE: setText("D.C. al Fine"); setJumpTo("start"); setPlayUntil("fine"); break; case JUMP_DC_AL_CODA: setText("D.C. al Coda"); setJumpTo("start"); setPlayUntil("coda"); setContinueAt("codab"); break; case JUMP_DS_AL_CODA: setText("D.S. al Coda"); setJumpTo("segno"); setPlayUntil("coda"); setContinueAt("codab"); break; case JUMP_DS_AL_FINE: setText("D.S. al Fine"); setJumpTo("segno"); setPlayUntil("fine"); break; case JUMP_DS: setText("D.S."); setJumpTo("segno"); setPlayUntil("end"); break; case JUMP_USER: break; default: printf("unknown jump type\n"); break; } }
bool Jump::setProperty(P_ID propertyId, const QVariant& v) { switch (propertyId) { case P_ID::JUMP_TO: setJumpTo(v.toString()); break; case P_ID::PLAY_UNTIL: setPlayUntil(v.toString()); break; case P_ID::CONTINUE_AT: setContinueAt(v.toString()); break; default: if (!Text::setProperty(propertyId, v)) return false; break; } score()->setLayoutAll(); return true; }
bool Jump::setProperty(P_ID propertyId, const QVariant& v) { switch (propertyId) { case P_ID::JUMP_TO: setJumpTo(v.toString()); break; case P_ID::PLAY_UNTIL: setPlayUntil(v.toString()); break; case P_ID::CONTINUE_AT: setContinueAt(v.toString()); break; case P_ID::PLAY_REPEATS: setPlayRepeats(v.toInt()); break; default: if (!Text::setProperty(propertyId, v)) return false; break; } triggerLayout(); score()->setPlaylistDirty(); return true; }