Palette* MuseScore::newRepeatsPalette() { Palette* sp = new Palette; sp->setName(QT_TRANSLATE_NOOP("Palette", "Repeats && Jumps")); sp->setMag(0.65); sp->setGrid(84, 28); sp->setDrawGrid(true); RepeatMeasure* rm = new RepeatMeasure(gscore); sp->append(rm, tr("Repeat measure sign")); for (int i = 0; i < markerTypeTableSize(); i++) { if(markerTypeTable[i].type == Marker::Type::CODETTA) //not in smufl continue; Marker* mk = new Marker(gscore); mk->setMarkerType(markerTypeTable[i].type); sp->append(mk, qApp->translate("markerType", markerTypeTable[i].name.toUtf8().constData())); } for (int i = 0; i < jumpTypeTableSize(); i++) { Jump* jp = new Jump(gscore); jp->setJumpType(jumpTypeTable[i].type); sp->append(jp, qApp->translate("jumpType", jumpTypeTable[i].userText.toUtf8().constData())); } return sp; }
QString Jump::jumpTypeUserName() const { int idx = static_cast<int>(this->jumpType()); if (idx < jumpTypeTableSize()) return qApp->translate("jumpType", jumpTypeTable[idx].userText.toUtf8().constData()); return tr("Custom"); }
QString Jump::jumpTypeUserName() const { int idx = static_cast<int>(this->jumpType()); if(idx < jumpTypeTableSize()) return jumpTypeTable[idx].userText; return QString("Custom"); }