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

#include <capella.h>

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

Public Types

enum  Error : char {
  Error::CAP_NO_ERROR, Error::BAD_SIG, Error::CAP_EOF, Error::BAD_VOICE_SIG,
  Error::BAD_STAFF_SIG, Error::BAD_SYSTEM_SIG
}
 

Public Member Functions

 Capella ()
 
 ~Capella ()
 
void read (QFile *)
 
QString error (Error n) const
 
unsigned char readByte ()
 
char readChar ()
 
QColor readColor ()
 
int readInt ()
 
int readLong ()
 
short readWord ()
 
int readDWord ()
 
unsigned readUnsigned ()
 
char * readString ()
 
QString readQString ()
 
void readExtra ()
 
QList< BasicDrawObj * > readDrawObjectArray ()
 
bool read (void *p, qint64 len)
 
QFont readFont ()
 
QPointF readPoint ()
 
CapStaffLayoutstaffLayout (int idx)
 
const QList< CapStaffLayout * > & staffLayouts () const
 
void readCapx (XmlReader &e)
 
QList< BasicDrawObj * > readCapxDrawObjectArray (XmlReader &e)
 

Public Attributes

QList< CapSystem * > systems
 
QList< CapBracketbrackets
 
ChordObjbackgroundChord
 
double smallLineDist
 
double normalLineDist
 
int topDist
 

Protected Member Functions

void readStaveLayout (CapStaffLayout *, int)
 
void readLayout ()
 

Private Member Functions

void readVoice (CapStaff *, int)
 
void readStaff (CapSystem *)
 
void readSystem ()
 
void readCapxVoice (XmlReader &e, CapStaff *, int)
 
void readCapxStaff (XmlReader &e, CapSystem *, int)
 
void readCapxSystem (XmlReader &e)
 
void capxSystems (XmlReader &e)
 
void readCapxStaveLayout (XmlReader &e, CapStaffLayout *, int)
 
void capxLayoutStaves (XmlReader &e)
 
void capxLayout (XmlReader &e)
 
void initCapxLayout ()
 

Private Attributes

int curPos
 
QFile * f
 
char * author
 
char * keywords
 
char * comment
 
unsigned char beamRelMin0
 
unsigned char beamRelMin1
 
unsigned char beamRelMax0
 
unsigned char beamRelMax1
 
unsigned nRel
 
unsigned nAbs
 
bool bUseRealSize
 
bool bAllowCompression
 
bool bPrintLandscape
 
bool bShowBarCount
 
unsigned char barNumberFrame
 
unsigned char nBarDistX
 
unsigned char nBarDistY
 
unsigned nFirstPage
 
unsigned leftPageMargins
 
unsigned topPageMargins
 
unsigned rightPageMargins
 
unsigned btmPageMargins
 
QList< QFont > fonts
 
QList< CapStaffLayout * > _staffLayouts
 
int interDist
 
unsigned char txtAlign
 
unsigned char adjustVert
 
bool redundantKeys
 
bool modernDoubleNote
 
bool bSystemSeparators
 
int nUnnamed
 
QFont namesFont
 

Static Private Attributes

static const char * errmsg []
 

Member Enumeration Documentation

◆ Error

enum Ms::Capella::Error : char
strong
Enumerator
CAP_NO_ERROR 
BAD_SIG 
CAP_EOF 
BAD_VOICE_SIG 
BAD_STAFF_SIG 
BAD_SYSTEM_SIG 

Constructor & Destructor Documentation

◆ Capella()

Ms::Capella::Capella ( )

◆ ~Capella()

Ms::Capella::~Capella ( )

Member Function Documentation

◆ capxLayout()

void Ms::Capella::capxLayout ( XmlReader e)
private

◆ capxLayoutStaves()

void Ms::Capella::capxLayoutStaves ( XmlReader e)
private

◆ capxSystems()

void Ms::Capella::capxSystems ( XmlReader e)
private

◆ error()

QString Ms::Capella::error ( Error  n) const
inline

◆ initCapxLayout()

void Ms::Capella::initCapxLayout ( )
private

◆ read() [1/2]

void Ms::Capella::read ( QFile *  fp)

◆ read() [2/2]

bool Ms::Capella::read ( void *  p,
qint64  len 
)

◆ readByte()

unsigned char Ms::Capella::readByte ( )

◆ readCapx()

void Ms::Capella::readCapx ( XmlReader e)

◆ readCapxDrawObjectArray()

QList< BasicDrawObj * > Ms::Capella::readCapxDrawObjectArray ( XmlReader e)

◆ readCapxStaff()

void Ms::Capella::readCapxStaff ( XmlReader e,
CapSystem system,
int  iStave 
)
private

◆ readCapxStaveLayout()

void Ms::Capella::readCapxStaveLayout ( XmlReader e,
CapStaffLayout sl,
int   
)
private

◆ readCapxSystem()

void Ms::Capella::readCapxSystem ( XmlReader e)
private

◆ readCapxVoice()

void Ms::Capella::readCapxVoice ( XmlReader e,
CapStaff cs,
int  idx 
)
private

◆ readChar()

char Ms::Capella::readChar ( )

◆ readColor()

QColor Ms::Capella::readColor ( )

◆ readDrawObjectArray()

QList< BasicDrawObj * > Ms::Capella::readDrawObjectArray ( )

◆ readDWord()

int Ms::Capella::readDWord ( )

◆ readExtra()

void Ms::Capella::readExtra ( )

◆ readFont()

QFont Ms::Capella::readFont ( )

◆ readInt()

int Ms::Capella::readInt ( )

◆ readLayout()

void Ms::Capella::readLayout ( )
protected

◆ readLong()

int Ms::Capella::readLong ( )

◆ readPoint()

QPointF Ms::Capella::readPoint ( )

◆ readQString()

QString Ms::Capella::readQString ( )

◆ readStaff()

void Ms::Capella::readStaff ( CapSystem system)
private

◆ readStaveLayout()

void Ms::Capella::readStaveLayout ( CapStaffLayout sl,
int  idx 
)
protected

◆ readString()

char * Ms::Capella::readString ( )

◆ readSystem()

void Ms::Capella::readSystem ( )
private

◆ readUnsigned()

unsigned Ms::Capella::readUnsigned ( )

◆ readVoice()

void Ms::Capella::readVoice ( CapStaff cs,
int  idx 
)
private

◆ readWord()

short Ms::Capella::readWord ( )

◆ staffLayout()

CapStaffLayout* Ms::Capella::staffLayout ( int  idx)
inline

◆ staffLayouts()

const QList<CapStaffLayout*>& Ms::Capella::staffLayouts ( ) const
inline

Member Data Documentation

◆ _staffLayouts

QList<CapStaffLayout*> Ms::Capella::_staffLayouts
private

◆ adjustVert

unsigned char Ms::Capella::adjustVert
private

◆ author

char* Ms::Capella::author
private

◆ backgroundChord

ChordObj* Ms::Capella::backgroundChord

◆ bAllowCompression

bool Ms::Capella::bAllowCompression
private

◆ barNumberFrame

unsigned char Ms::Capella::barNumberFrame
private

◆ beamRelMax0

unsigned char Ms::Capella::beamRelMax0
private

◆ beamRelMax1

unsigned char Ms::Capella::beamRelMax1
private

◆ beamRelMin0

unsigned char Ms::Capella::beamRelMin0
private

◆ beamRelMin1

unsigned char Ms::Capella::beamRelMin1
private

◆ bPrintLandscape

bool Ms::Capella::bPrintLandscape
private

◆ brackets

QList<CapBracket> Ms::Capella::brackets

◆ bShowBarCount

bool Ms::Capella::bShowBarCount
private

◆ bSystemSeparators

bool Ms::Capella::bSystemSeparators
private

◆ btmPageMargins

unsigned Ms::Capella::btmPageMargins
private

◆ bUseRealSize

bool Ms::Capella::bUseRealSize
private

◆ comment

char* Ms::Capella::comment
private

◆ curPos

int Ms::Capella::curPos
private

◆ errmsg

const char * Ms::Capella::errmsg
staticprivate
Initial value:
= {
"no error",
"bad file signature, no Capella file or not from version 2000 (3.0) or later?",
"unexpected end of file",
"bad voice signature",
"bad staff signature",
"bad system signature",
}

◆ f

QFile* Ms::Capella::f
private

◆ fonts

QList<QFont> Ms::Capella::fonts
private

◆ interDist

int Ms::Capella::interDist
private

◆ keywords

char* Ms::Capella::keywords
private

◆ leftPageMargins

unsigned Ms::Capella::leftPageMargins
private

◆ modernDoubleNote

bool Ms::Capella::modernDoubleNote
private

◆ nAbs

unsigned Ms::Capella::nAbs
private

◆ namesFont

QFont Ms::Capella::namesFont
private

◆ nBarDistX

unsigned char Ms::Capella::nBarDistX
private

◆ nBarDistY

unsigned char Ms::Capella::nBarDistY
private

◆ nFirstPage

unsigned Ms::Capella::nFirstPage
private

◆ normalLineDist

double Ms::Capella::normalLineDist

◆ nRel

unsigned Ms::Capella::nRel
private

◆ nUnnamed

int Ms::Capella::nUnnamed
private

◆ redundantKeys

bool Ms::Capella::redundantKeys
private

◆ rightPageMargins

unsigned Ms::Capella::rightPageMargins
private

◆ smallLineDist

double Ms::Capella::smallLineDist

◆ systems

QList<CapSystem*> Ms::Capella::systems

◆ topDist

int Ms::Capella::topDist

◆ topPageMargins

unsigned Ms::Capella::topPageMargins
private

◆ txtAlign

unsigned char Ms::Capella::txtAlign
private

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