23 struct ChordDescription;
1303 void precomputeValues();
1304 QVariant value(
Sid idx)
const;
1305 qreal
pvalue(
Sid idx)
const {
return _precomputedValues[int(idx)]; }
1306 void set(
Sid idx,
const QVariant& v);
1308 bool isDefault(
Sid idx)
const;
1312 void setChordList(
ChordList*,
bool custom =
true);
1314 void checkChordList();
1316 bool load(QFile* qf,
bool ign =
false);
1318 void save(
XmlWriter& xml,
bool optimize);
1321 bool readTextStyleValCompat(
XmlReader&);
1325 static const char* valueType(
const Sid);
1326 static const char* valueName(
const Sid);
1327 static Sid styleIdx(
const QString& name);
1341 #define TEXT_STYLE_SIZE 13 1343 typedef std::array<StyledProperty, TEXT_STYLE_SIZE>
TextStyle;
1347 const TextStyle*
textStyle(
const char*);
Definition: chordlist.h:174
Pid pid
Definition: style.h:1336
Pid
Definition: property.h:62
Tid textStyleFromName(const QString &name)
Definition: style.cpp:2317
Definition: chordlist.h:230
std::vector< StyledProperty > ElementStyle
Definition: style.h:1339
ChordList * chordList()
Definition: style.h:1311
const std::vector< Tid > & allTextStyles()
Definition: style.cpp:2398
std::array< StyledProperty, TEXT_STYLE_SIZE > TextStyle
Definition: style.h:1343
const TextStyle * textStyle(const char *name)
Definition: style.cpp:2297
void setCustomChordList(bool t)
Definition: style.h:1313
QString textStyleUserName(Tid idx)
Definition: style.cpp:2344
Tid
Enumerates the list of built-in text substyles.
Definition: types.h:371
Definition: aeolus.cpp:26
void checkStyles()
Definition: style.cpp:2866
Sid
Definition: style.h:33
const std::vector< Tid > & primaryTextStyles()
Definition: style.cpp:2415
const char * textStyleName(Tid idx)
Definition: style.cpp:2334
Sid sid
Definition: style.h:1335
Definition: xmlwriter.h:26
qreal pvalue(Sid idx) const
Definition: style.h:1305
std::array< qreal, int(Sid::STYLES)> _precomputedValues
Definition: style.h:1295
bool _customChordList
Definition: style.h:1298
ChordList _chordList
Definition: style.h:1297
std::array< QVariant, int(Sid::STYLES)> _values
Definition: style.h:1294