23struct ChordDescription;
28#ifdef SCRIPT_INTERFACE
29#define BEGIN_QT_REGISTERED_ENUM(Name) \
33#define END_QT_REGISTERED_ENUM(Name) \
36using Name = MSQE_##Name::Name;
38#define BEGIN_QT_REGISTERED_ENUM(Name)
39#define END_QT_REGISTERED_ENUM(Name)
49BEGIN_QT_REGISTERED_ENUM(
Sid)
1434END_QT_REGISTERED_ENUM(
Sid)
1436inline uint qHash(
Sid id)
1438 return static_cast<uint
>(id);
1450 std::array<qreal, int(
Sid::STYLES)> _precomputedValues;
1452 ChordList _chordList;
1453 bool _customChordList;
1454 int _defaultStyleVersion = -1;
1459 void precomputeValues();
1460 const QVariant& value(
Sid idx)
const;
1461 qreal pvalue(
Sid idx)
const {
return _precomputedValues[int(idx)]; }
1462 void set(
Sid idx,
const QVariant& v);
1464 bool isDefault(
Sid idx)
const;
1466 int defaultStyleVersion()
const {
return _defaultStyleVersion; }
1468 const ChordDescription* chordDescription(
int id)
const;
1469 ChordList* chordList() {
return &_chordList; }
1470 void setChordList(ChordList*,
bool custom =
true);
1471 void setCustomChordList(
bool t) { _customChordList = t; }
1472 void checkChordList();
1474 bool load(QFile* qf,
bool ign =
false);
1475 void load(XmlReader& e);
1476 void applyNewDefaults(
const MStyle& other,
const int defaultsVersion);
1477 void save(XmlWriter& xml,
bool optimize);
1478 bool readProperties(XmlReader&);
1479 bool readStyleValCompat(XmlReader&);
1480 bool readTextStyleValCompat(XmlReader&);
1482 void resetAllStyles(Score* score,
const QSet<Sid>& ignoredStyles = QSet<Sid>());
1483 void resetStyles(Score* score,
const QSet<Sid>& stylesToReset);
1485 static const char* valueType(
const Sid);
1486 static const char* valueName(
const Sid);
1487 static Sid styleIdx(
const QString& name);
1496struct StyledProperty {
1501typedef std::vector<StyledProperty> ElementStyle;
1503#define TEXT_STYLE_SIZE 14
1505typedef std::array<StyledProperty, TEXT_STYLE_SIZE> TextStyle;
1508const TextStyle* textStyle(
Tid);
1509const TextStyle* textStyle(
const char*);
1511const char* textStyleName(
Tid);
1512QString textStyleUserName(
Tid);
1513Tid textStyleFromName(
const QString&);
1515const std::vector<Tid>& allTextStyles();
1516const std::vector<Tid>& primaryTextStyles();
1518QSet<Sid> pageStyles();
1521extern void checkStyles();
Sid
Enumerates the list of score style settings.
Definition style.h:50
@ lhGuitarFingeringFontSpatiumDependent
@ articulationAnchorDefault
@ voltaFontSpatiumDependent
@ autoplaceHairpinDynamicsDistance
@ instrumentChangeFontStyle
@ chordSymbolBLineSpacing
@ nashvilleNumberLineSpacing
@ user4FontSpatiumDependent
@ autoplaceVerticalAlignRange
@ subTitleFontSpatiumDependent
@ user7FontSpatiumDependent
@ metronomeFontSpatiumDependent
@ shortInstrumentFramePadding
@ mmRestShowMeasureNumberRange
@ user12FontSpatiumDependent
@ shortInstrumentFontSpatiumDependent
@ measureNumberFrameRound
@ staffTextFontSpatiumDependent
@ user1FontSpatiumDependent
@ palmMuteBeginTextOffset
@ lyricsEvenFontSpatiumDependent
@ systemTextLineTextAlign
@ titleFontSpatiumDependent
@ longInstrumentFramePadding
@ nashvilleNumberFrameFgColor
@ instrumentChangeFontFace
@ hideInstrumentNameIfOneInstrument
@ lyricsMinBottomDistance
@ longInstrumentFrameRound
@ partInstrumentFrameBgColor
@ shortInstrumentFrameFgColor
@ footerFontSpatiumDependent
@ instrumentChangePosBelow
@ ottava15MAnoContinueText
@ measureNumberFramePadding
@ systemTextLineFrameType
@ shortInstrumentLineSpacing
@ partInstrumentLineSpacing
@ enableIndentationOnFirstSystem
@ nashvilleNumberFramePadding
@ rhGuitarFingeringFontSpatiumDependent
@ repeatRightFontSpatiumDependent
@ ottava8VAnoContinueText
@ user2FontSpatiumDependent
@ systemTextLinePlacement
@ rhGuitarFingeringFrameType
@ hairpinFontSpatiumDependent
@ expressionFontSpatiumDependent
@ mmRestRangeFramePadding
@ rhGuitarFingeringFrameWidth
@ tupletBracketHookHeight
@ articulationAnchorLuteFingering
@ defaultFontSpatiumDependent
@ partInstrumentFontStyle
@ rhGuitarFingeringFrameBgColor
@ romanNumeralFrameBgColor
@ textLineFontSpatiumDependent
@ systemHeaderTimeSigDistance
@ lhGuitarFingeringFontFace
@ instrumentChangeFrameRound
@ longInstrumentFrameFgColor
@ stringNumberFrameFgColor
@ measureNumberOffsetType
@ instrumentChangeFramePadding
@ stringNumberLineSpacing
@ lhGuitarFingeringLineSpacing
@ rehearsalMarkFrameWidth
@ nashvilleNumberPosAbove
@ longInstrumentLineSpacing
@ nashvilleNumberFontFace
@ shortInstrumentFrameWidth
@ romanNumeralLineSpacing
@ shortInstrumentFontStyle
@ systemTextLineFramePadding
@ romanNumeralFramePadding
@ nashvilleNumberFontStyle
@ chordSymbolAFrameFgColor
@ systemTextLineSystemFlag
@ ottavaFontSpatiumDependent
@ repeatRightFrameFgColor
@ stringNumberFrameBgColor
@ chordSymbolAFrameBgColor
@ shortInstrumentFontSize
@ lhGuitarFingeringFrameFgColor
@ measureNumberFrameBgColor
@ repeatBarlineDotSeparation
@ chordSymbolALineSpacing
@ ottava15MBnoContinueText
@ lyricsOddFontSpatiumDependent
@ romanNumeralFontSpatiumDependent
@ stringNumberFontSpatiumDependent
@ headerFontSpatiumDependent
@ glissandoFontSpatiumDependent
@ nashvilleNumberPlacement
@ instrumentChangePosAbove
@ measureNumberVPlacement
@ nashvilleNumberFrameWidth
@ ottava8VBnoContinueText
@ instrumentChangePlacement
@ partInstrumentFrameFgColor
@ ArpeggioHiddenInStdIfTab
@ alwaysShowBracketsWhenEmptyStavesAreHidden
@ bracketedAccidentalPadding
@ tempoFontSpatiumDependent
@ nashvilleNumberFrameType
@ shortInstrumentFrameRound
@ shortInstrumentFrameBgColor
@ stickingFontSpatiumDependent
@ instrumentChangeMinDistance
@ rehearsalMarkFrameRound
@ chordSymbolBFrameFgColor
@ measureNumberLineSpacing
@ createMultiMeasureRests
@ rehearsalMarkFrameBgColor
@ chordSymbolBFontSpatiumDependent
@ mmRestRangeFrameBgColor
@ instrumentChangeFrameType
@ longInstrumentFontSpatiumDependent
@ user8FontSpatiumDependent
@ user5FontSpatiumDependent
@ systemTextLineFontSpatiumDependent
@ ottava22MBnoContinueText
@ instrumentChangeFrameBgColor
@ rhGuitarFingeringFontStyle
@ instrumentChangeFrameFgColor
@ longInstrumentFrameWidth
@ automaticCapitalization
@ user3FontSpatiumDependent
@ instrumentChangeFrameWidth
@ systemTextLineFrameRound
@ nashvilleNumberPosBelow
@ lhGuitarFingeringFontSize
@ articulationMinDistance
@ bendFontSpatiumDependent
@ partInstrumentFrameRound
@ measureNumberHPlacement
@ instrumentChangeLineSpacing
@ rhGuitarFingeringFontFace
@ chordSymbolBFrameBgColor
@ romanNumeralFrameFgColor
@ systemTextLineFrameWidth
@ rehearsalMarkFontSpatiumDependent
@ user11FontSpatiumDependent
@ chordSymbolAFramePadding
@ lhGuitarFingeringFontStyle
@ repeatRightFrameBgColor
@ instrumentChangeFontSpatiumDependent
@ nashvilleNumberFrameBgColor
@ lhGuitarFingeringOffset
@ lhGuitarFingeringFrameType
@ tupletNoteRightDistance
@ longInstrumentFontStyle
@ repeatRightFramePadding
@ ottava22MAnoContinueText
@ nashvilleNumberFontSpatiumDependent
@ composerFontSpatiumDependent
@ mmRestRangeFontSpatiumDependent
@ rehearsalMarkMinDistance
@ fingeringFontSpatiumDependent
@ rhGuitarFingeringOffset
@ user10FontSpatiumDependent
@ measureNumberFrameWidth
@ measureNumberFrameFgColor
@ systemTextLineFrameFgColor
@ nashvilleNumberFrameRound
@ lhGuitarFingeringFrameWidth
@ dontHideStavesInFirstSystem
@ pedalFontSpatiumDependent
@ user9FontSpatiumDependent
@ rhGuitarFingeringFramePadding
@ lhGuitarFingeringFrameBgColor
@ longInstrumentFrameBgColor
@ stringNumberFramePadding
@ figuredBassFontSpatiumDependent
@ shortInstrumentFrameType
@ rhGuitarFingeringLineSpacing
@ rehearsalMarkLineSpacing
@ chordSymbolBFramePadding
@ tupletFontSpatiumDependent
@ lhGuitarFingeringFramePadding
@ partInstrumentFontSpatiumDependent
@ letRingFontSpatiumDependent
@ tupletStemRightDistance
@ longInstrumentFrameType
@ rhGuitarFingeringFrameRound
@ frameFontSpatiumDependent
@ tremoloStrokeLengthMultiplier
@ rehearsalMarkFramePadding
@ chordSymbolAFontSpatiumDependent
@ articulationAnchorOther
@ dynamicsFontSpatiumDependent
@ systemTextFontSpatiumDependent
@ partInstrumentFrameWidth
@ shortInstrumentFontFace
@ translatorFontSpatiumDependent
@ palmMuteFontSpatiumDependent
@ mmRestRangeFrameFgColor
@ systemTextLineFrameBgColor
@ rhGuitarFingeringFontSize
@ repeatLeftFontSpatiumDependent
@ lhGuitarFingeringFrameRound
@ lyricsDashLineThickness
@ rhGuitarFingeringFrameFgColor
@ nashvilleNumberFontSize
@ user6FontSpatiumDependent
@ rehearsalMarkFrameFgColor
@ systemTextLineMinDistance
@ measureNumberFontSpatiumDependent
@ firstSystemIndentationValue
@ lyricistFontSpatiumDependent
@ instrumentChangeFontSize
@ partInstrumentFramePadding
@ systemTextLineFontStyle
@ partInstrumentFrameType
Tid
Enumerates the list of built-in text substyles.
Definition types.h:474