MuseScore
3.4
Music composition and notation
|
#include <stafftype.h>
Public Member Functions | |
StaffType () | |
StaffType (StaffGroup sg, const QString &xml, const QString &name, int lines, int stpOff, qreal lineDist, bool genClef, bool showBarLines, bool stemless, bool genTimeSig, bool genKeySig, bool showLedgerLines) | |
StaffType (StaffGroup sg, const QString &xml, const QString &name, int lines, int stpOff, qreal lineDist, bool genClef, bool showBarLines, bool stemless, bool genTimesig, const QString &durFontName, qreal durFontSize, qreal durFontUserY, qreal genDur, const QString &fretFontName, qreal fretFontSize, qreal fretFontUserY, TablatureSymbolRepeat symRepeat, bool linesThrough, TablatureMinimStyle minimStyle, bool onLines, bool showRests, bool stemsDown, bool stemThrough, bool upsideDown, bool showTabFingering, bool useNumbers, bool showBackTied) | |
virtual | ~StaffType () |
bool | operator== (const StaffType &) const |
bool | isSameStructure (const StaffType &) const |
StaffGroup | group () const |
const QString & | name () const |
const QString & | xmlName () const |
void | setName (const QString &val) |
void | setXmlName (const QString &val) |
const char * | groupName () const |
void | setLines (int val) |
int | lines () const |
void | setStepOffset (int v) |
int | stepOffset () const |
void | setLineDistance (const Spatium &val) |
Spatium | lineDistance () const |
void | setGenClef (bool val) |
bool | genClef () const |
void | setShowBarlines (bool val) |
bool | showBarlines () const |
qreal | userMag () const |
bool | small () const |
void | setUserMag (qreal val) |
void | setSmall (bool val) |
Spatium | yoffset () const |
void | setYoffset (Spatium val) |
qreal | spatium (Score *) const |
void | write (XmlWriter &xml) const |
void | read (XmlReader &) |
void | setStemless (bool val) |
bool | stemless () const |
bool | genTimesig () const |
void | setGenTimesig (bool val) |
qreal | doty1 () const |
qreal | doty2 () const |
void | setGenKeysig (bool val) |
bool | genKeysig () const |
void | setShowLedgerLines (bool val) |
bool | showLedgerLines () const |
void | setNoteHeadScheme (NoteHeadScheme s) |
NoteHeadScheme | noteHeadScheme () const |
QString | fretString (int fret, int string, bool ghost) const |
QString | durationString (TDuration::DurationType type, int dots) const |
int | physStringToVisual (int strg) const |
int | visualStringToPhys (int line) const |
qreal | physStringToYOffset (int strg) const |
QString | tabBassStringPrefix (int strg, bool *hasFret) const |
void | drawInputStringMarks (QPainter *p, int string, int voice, QRectF rect) const |
int | numOfTabLedgerLines (int string) const |
qreal | durationBoxH () const |
qreal | durationBoxY () const |
const QFont & | durationFont () const |
const QString | durationFontName () const |
qreal | durationFontSize () const |
qreal | durationFontUserY () const |
qreal | durationFontYOffset () const |
qreal | durationGridYOffset () const |
qreal | fretBoxH () const |
qreal | fretBoxY () const |
qreal | fretMaskH () const |
qreal | fretMaskY () const |
const QFont & | fretFont () const |
const QString | fretFontName () const |
qreal | fretFontSize () const |
qreal | fretFontUserY () const |
qreal | fretFontYOffset () const |
bool | genDurations () const |
bool | linesThrough () const |
TablatureMinimStyle | minimStyle () const |
TablatureSymbolRepeat | symRepeat () const |
bool | onLines () const |
bool | showRests () const |
bool | stemsDown () const |
bool | stemThrough () const |
bool | upsideDown () const |
bool | showTabFingering () const |
bool | useNumbers () const |
bool | showBackTied () const |
void | setDurationFontName (const QString &) |
void | setDurationFontSize (qreal) |
void | setDurationFontUserY (qreal val) |
void | setFretFontName (const QString &) |
void | setFretFontSize (qreal) |
void | setFretFontUserY (qreal val) |
void | setGenDurations (bool val) |
void | setLinesThrough (bool val) |
void | setMinimStyle (TablatureMinimStyle val) |
void | setSymbolRepeat (TablatureSymbolRepeat val) |
void | setOnLines (bool) |
void | setShowRests (bool val) |
void | setStemsDown (bool val) |
void | setStemsThrough (bool val) |
void | setUpsideDown (bool val) |
void | setShowTabFingering (bool val) |
void | setUseNumbers (bool val) |
void | setShowBackTied (bool val) |
QPointF | chordStemPos (const Chord *) const |
qreal | chordRestStemPosY (const ChordRest *) const |
qreal | chordStemPosX (const Chord *) const |
QPointF | chordStemPosBeam (const Chord *) const |
qreal | chordStemLength (const Chord *) const |
bool | isTabStaff () const |
bool | isDrumStaff () const |
Static Public Member Functions | |
static const char * | groupName (StaffGroup) |
static const StaffType * | getDefaultPreset (StaffGroup grp) |
static const StaffType * | preset (StaffTypes idx) |
static const StaffType * | presetFromXmlName (QString &xmlName) |
static QList< QString > | fontNames (bool bDuration) |
static bool | fontData (bool bDuration, int nIdx, QString *pFamily, QString *pDisplayName, qreal *pSize, qreal *pYOff) |
static void | initStaffTypes () |
static const std::vector< StaffType > & | presets () |
static QString | scheme2userName (NoteHeadScheme ns) |
static QString | scheme2name (NoteHeadScheme ns) |
static NoteHeadScheme | name2scheme (QString name) |
Private Member Functions | |
void | setDurationMetrics () const |
void | setFretMetrics () const |
Static Private Member Functions | |
static bool | readConfigFile (const QString &fileName) |
Static Private Attributes | |
static QList< TablatureFretFont > | _fretFonts = QList<TablatureFretFont>() |
static QList< TablatureDurationFont > | _durationFonts = QList<TablatureDurationFont>() |
static std::vector< StaffType > | _presets |
static const char | groupNames [STAFF_GROUP_MAX][STAFF_GROUP_NAME_MAX_LENGTH] |
static const QString | fileGroupNames [STAFF_GROUP_MAX] = { "pitched", "percussion", "tablature" } |
Friends | |
class | TabDurationSymbol |
Ms::StaffType::StaffType | ( | ) |
Ms::StaffType::StaffType | ( | StaffGroup | sg, |
const QString & | xml, | ||
const QString & | name, | ||
int | lines, | ||
int | stpOff, | ||
qreal | lineDist, | ||
bool | genClef, | ||
bool | showBarLines, | ||
bool | stemless, | ||
bool | genTimeSig, | ||
bool | genKeySig, | ||
bool | showLedgerLines | ||
) |
Ms::StaffType::StaffType | ( | StaffGroup | sg, |
const QString & | xml, | ||
const QString & | name, | ||
int | lines, | ||
int | stpOff, | ||
qreal | lineDist, | ||
bool | genClef, | ||
bool | showBarLines, | ||
bool | stemless, | ||
bool | genTimesig, | ||
const QString & | durFontName, | ||
qreal | durFontSize, | ||
qreal | durFontUserY, | ||
qreal | genDur, | ||
const QString & | fretFontName, | ||
qreal | fretFontSize, | ||
qreal | fretFontUserY, | ||
TablatureSymbolRepeat | symRepeat, | ||
bool | linesThrough, | ||
TablatureMinimStyle | minimStyle, | ||
bool | onLines, | ||
bool | showRests, | ||
bool | stemsDown, | ||
bool | stemThrough, | ||
bool | upsideDown, | ||
bool | showTabFingering, | ||
bool | useNumbers, | ||
bool | showBackTied | ||
) |
|
inlinevirtual |
qreal Ms::StaffType::chordRestStemPosY | ( | const ChordRest * | chordRest | ) | const |
qreal Ms::StaffType::chordStemLength | ( | const Chord * | chord | ) | const |
QPointF Ms::StaffType::chordStemPos | ( | const Chord * | chord | ) | const |
QPointF Ms::StaffType::chordStemPosBeam | ( | const Chord * | chord | ) | const |
|
inline |
qreal Ms::StaffType::doty1 | ( | ) | const |
qreal Ms::StaffType::doty2 | ( | ) | const |
void Ms::StaffType::drawInputStringMarks | ( | QPainter * | p, |
int | string, | ||
int | voice, | ||
QRectF | rect | ||
) | const |
qreal Ms::StaffType::durationBoxH | ( | ) | const |
qreal Ms::StaffType::durationBoxY | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
QString Ms::StaffType::durationString | ( | TDuration::DurationType | type, |
int | dots | ||
) | const |
|
static |
|
static |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
QString Ms::StaffType::fretString | ( | int | fret, |
int | string, | ||
bool | ghost | ||
) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
inline |
const char * Ms::StaffType::groupName | ( | ) | const |
|
static |
|
static |
|
inline |
bool Ms::StaffType::isSameStructure | ( | const StaffType & | st | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
inline |
int Ms::StaffType::numOfTabLedgerLines | ( | int | string | ) | const |
|
inline |
bool Ms::StaffType::operator== | ( | const StaffType & | st | ) | const |
int Ms::StaffType::physStringToVisual | ( | int | strg | ) | const |
qreal Ms::StaffType::physStringToYOffset | ( | int | strg | ) | const |
|
static |
|
static |
|
inlinestatic |
void Ms::StaffType::read | ( | XmlReader & | e | ) |
|
staticprivate |
|
static |
|
static |
void Ms::StaffType::setDurationFontName | ( | const QString & | name | ) |
void Ms::StaffType::setDurationFontSize | ( | qreal | val | ) |
|
inline |
|
private |
void Ms::StaffType::setFretFontName | ( | const QString & | name | ) |
void Ms::StaffType::setFretFontSize | ( | qreal | val | ) |
|
inline |
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void Ms::StaffType::setOnLines | ( | bool | val | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
qreal Ms::StaffType::spatium | ( | Score * | score | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
QString Ms::StaffType::tabBassStringPrefix | ( | int | strg, |
bool * | hasFret | ||
) | const |
|
inline |
|
inline |
|
inline |
int Ms::StaffType::visualStringToPhys | ( | int | line | ) | const |
void Ms::StaffType::write | ( | XmlWriter & | xml | ) | const |
|
inline |
|
inline |
|
friend |
|
mutableprivate |
|
mutableprivate |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
mutableprivate |
|
mutableprivate |
|
mutableprivate |
|
mutableprivate |
|
mutableprivate |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
mutableprivate |
|
mutableprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
mutableprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
staticprivate |