MuseScore  3.4
Music composition and notation
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
Ms::MStyle Class Reference

#include <style.h>

Collaboration diagram for Ms::MStyle:
Collaboration graph
[legend]

Public Member Functions

 MStyle ()
 
void precomputeValues ()
 
QVariant value (Sid idx) const
 
qreal pvalue (Sid idx) const
 
void set (Sid idx, const QVariant &v)
 
bool isDefault (Sid idx) const
 
const ChordDescriptionchordDescription (int id) const
 
ChordListchordList ()
 
void setChordList (ChordList *, bool custom=true)
 
void setCustomChordList (bool t)
 
void checkChordList ()
 
bool load (QFile *qf, bool ign=false)
 
void load (XmlReader &e)
 
void save (XmlWriter &xml, bool optimize)
 
bool readProperties (XmlReader &)
 
bool readStyleValCompat (XmlReader &)
 
bool readTextStyleValCompat (XmlReader &)
 
void reset (Score *)
 

Static Public Member Functions

static const char * valueType (const Sid)
 
static const char * valueName (const Sid)
 
static Sid styleIdx (const QString &name)
 

Private Attributes

std::array< QVariant, int(Sid::STYLES)> _values
 
std::array< qreal, int(Sid::STYLES)> _precomputedValues
 
ChordList _chordList
 
bool _customChordList
 

Constructor & Destructor Documentation

◆ MStyle()

Ms::MStyle::MStyle ( )

Member Function Documentation

◆ checkChordList()

void Ms::MStyle::checkChordList ( )

◆ chordDescription()

const ChordDescription * Ms::MStyle::chordDescription ( int  id) const

◆ chordList()

ChordList* Ms::MStyle::chordList ( )
inline

◆ isDefault()

bool Ms::MStyle::isDefault ( Sid  idx) const

◆ load() [1/2]

bool Ms::MStyle::load ( QFile *  qf,
bool  ign = false 
)

◆ load() [2/2]

void Ms::MStyle::load ( XmlReader e)

◆ precomputeValues()

void Ms::MStyle::precomputeValues ( )

◆ pvalue()

qreal Ms::MStyle::pvalue ( Sid  idx) const
inline

◆ readProperties()

bool Ms::MStyle::readProperties ( XmlReader e)

◆ readStyleValCompat()

bool Ms::MStyle::readStyleValCompat ( XmlReader e)

◆ readTextStyleValCompat()

bool Ms::MStyle::readTextStyleValCompat ( XmlReader e)

◆ reset()

void Ms::MStyle::reset ( Score score)

◆ save()

void Ms::MStyle::save ( XmlWriter xml,
bool  optimize 
)

◆ set()

void Ms::MStyle::set ( Sid  idx,
const QVariant &  v 
)

◆ setChordList()

void Ms::MStyle::setChordList ( ChordList cl,
bool  custom = true 
)

◆ setCustomChordList()

void Ms::MStyle::setCustomChordList ( bool  t)
inline

◆ styleIdx()

Sid Ms::MStyle::styleIdx ( const QString &  name)
static

◆ value()

QVariant Ms::MStyle::value ( Sid  idx) const

◆ valueName()

const char * Ms::MStyle::valueName ( const Sid  i)
static

◆ valueType()

const char * Ms::MStyle::valueType ( const Sid  i)
static

Member Data Documentation

◆ _chordList

ChordList Ms::MStyle::_chordList
private

◆ _customChordList

bool Ms::MStyle::_customChordList
private

◆ _precomputedValues

std::array<qreal, int(Sid::STYLES)> Ms::MStyle::_precomputedValues
private

◆ _values

std::array<QVariant, int(Sid::STYLES)> Ms::MStyle::_values
private

The documentation for this class was generated from the following files: