Palette* MuseScore::newArpeggioPalette() { Palette* sp = new Palette(); sp->setName(QT_TRANSLATE_NOOP("Palette", "Arpeggios && Glissandi")); sp->setGrid(27, 60); sp->setDrawGrid(true); for (int i = 0; i < 6; ++i) { Arpeggio* a = new Arpeggio(gscore); a->setArpeggioType(ArpeggioType(i)); sp->append(a, tr("Arpeggio")); } for (int i = 0; i < 2; ++i) { Glissando* a = new Glissando(gscore); a->setGlissandoType(Glissando::Type(i)); sp->append(a, tr("Glissando")); } //fall and doits ChordLine* cl = new ChordLine(gscore); cl->setChordLineType(ChordLineType::FALL); sp->append(cl, tr(scorelineNames[0])); cl = new ChordLine(gscore); cl->setChordLineType(ChordLineType::DOIT); sp->append(cl, tr(scorelineNames[1])); cl = new ChordLine(gscore); cl->setChordLineType(ChordLineType::PLOP); sp->append(cl, tr(scorelineNames[2])); cl = new ChordLine(gscore); cl->setChordLineType(ChordLineType::SCOOP); sp->append(cl, tr(scorelineNames[3])); cl = new ChordLine(gscore); cl->setChordLineType(ChordLineType::FALL); cl->setStraight(true); sp->append(cl, qApp->translate("articulation", "Slide out down")); cl = new ChordLine(gscore); cl->setChordLineType(ChordLineType::DOIT); cl->setStraight(true); sp->append(cl, qApp->translate("articulation", "Slide out up")); cl = new ChordLine(gscore); cl->setChordLineType(ChordLineType::PLOP); cl->setStraight(true); sp->append(cl, qApp->translate("articulation", "Slide in above")); cl = new ChordLine(gscore); cl->setChordLineType(ChordLineType::SCOOP); cl->setStraight(true); sp->append(cl, qApp->translate("articulation", "Slide in below")); return sp; }
Palette* MuseScore::newArpeggioPalette() { Palette* sp = new Palette(); sp->setName(QT_TRANSLATE_NOOP("Palette", "Arpeggios && Glissandi")); sp->setGrid(27, 60); sp->setDrawGrid(true); for (int i = 0; i < 6; ++i) { Arpeggio* a = new Arpeggio(gscore); a->setArpeggioType(ArpeggioType(i)); sp->append(a, tr("Arpeggio")); } for (int i = 0; i < 2; ++i) { Glissando* a = new Glissando(gscore); a->setGlissandoType(Glissando::Type(i)); sp->append(a, tr("Glissando")); } //fall and doits const char* scorelineNames[] = { QT_TR_NOOP("fall"), QT_TR_NOOP("doit"), QT_TR_NOOP("plop"), QT_TR_NOOP("scoop"), }; ChordLine* cl = new ChordLine(gscore); cl->setChordLineType(ChordLineType::FALL); sp->append(cl, tr(scorelineNames[0])); cl = new ChordLine(gscore); cl->setChordLineType(ChordLineType::DOIT); sp->append(cl, tr(scorelineNames[1])); cl = new ChordLine(gscore); cl->setChordLineType(ChordLineType::PLOP); sp->append(cl, tr(scorelineNames[2])); cl = new ChordLine(gscore); cl->setChordLineType(ChordLineType::SCOOP); sp->append(cl, tr(scorelineNames[3])); return sp; }
Palette* MuseScore::newArpeggioPalette() { Palette* sp = new Palette(); sp->setName(QT_TRANSLATE_NOOP("Palette", "Arpeggio && Glissando")); sp->setGrid(27, 60); sp->setDrawGrid(true); for (int i = 0; i < 6; ++i) { Arpeggio* a = new Arpeggio(gscore); a->setArpeggioType(ArpeggioType(i)); sp->append(a, tr("Arpeggio")); } for (int i = 0; i < 2; ++i) { Glissando* a = new Glissando(gscore); a->setGlissandoType(GlissandoType(i)); sp->append(a, tr("Glissando")); } return sp; }