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

#include <mscore.h>

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

Public Types

enum  DirectionH : char { DirectionH::AUTO, DirectionH::LEFT, DirectionH::RIGHT }
 
enum  OrnamentStyle : char { OrnamentStyle::DEFAULT, OrnamentStyle::BAROQUE }
 

Static Public Member Functions

static void init ()
 
static const MStylebaseStyle ()
 
static MStyledefaultStyle ()
 
static const MStyledefaultStyleForParts ()
 
static bool readDefaultStyle (QString file)
 
static void setDefaultStyle (const MStyle &s)
 
static void defaultStyleForPartsHasChanged ()
 
static const QString & globalShare ()
 
static qreal hRaster ()
 
static qreal vRaster ()
 
static void setHRaster (int val)
 
static void setVRaster (int val)
 
static void setNudgeStep (qreal val)
 
static void setNudgeStep10 (qreal val)
 
static void setNudgeStep50 (qreal val)
 
static bool verticalOrientation ()
 
static void setVerticalOrientation (bool val)
 
static MPaintDevicepaintDevice ()
 
static void setError (MsError e)
 
static const char * errorMessage ()
 
static const char * errorGroup ()
 
static void init ()
 

Static Public Attributes

static MsError _error { MS_NO_ERROR }
 
static std::vector< MScoreErrorerrorList
 
static QColor selectColor [VOICES]
 
static QColor defaultColor
 
static QColor dropColor
 
static QColor layoutBreakColor
 
static QColor frameMarginColor
 
static QColor bgColor
 
static bool warnPitchRange
 
static bool playRepeats
 
static bool panPlayback
 
static qreal nudgeStep
 
static qreal nudgeStep10
 
static qreal nudgeStep50
 
static int defaultPlayDuration
 
static QString lastError
 
static bool noHorizontalStretch = false
 
static bool noVerticalStretch = false
 
static bool showSegmentShapes = false
 
static bool showSkylines = false
 
static bool showMeasureShapes = false
 
static bool showBoundingRect = false
 
static bool showSystemBoundingRect = false
 
static bool showCorruptedMeasures = true
 
static bool useFallbackFont = true
 
static bool debugMode = false
 
static bool testMode = false
 
static int division = 480
 
static int sampleRate = 44100
 
static int mtcType
 
static Sequencerseq = 0
 
static bool saveTemplateMode = false
 
static bool noGui = false
 
static bool noExcerpts = false
 
static bool noImages = false
 
static bool pdfPrinting = false
 
static bool svgPrinting = false
 
static double pixelRatio = 0.8
 
static qreal verticalPageGap = 5.0
 
static qreal horizontalPageGapEven = 1.0
 
static qreal horizontalPageGapOdd = 50.0
 

Static Private Attributes

static Q_GADGET MStyle _baseStyle
 
static MStyle _defaultStyle
 
static MStyle_defaultStyleForParts
 
static QString _globalShare
 
static int _hRaster
 
static int _vRaster
 
static bool _verticalOrientation = false
 
static MPaintDevice_paintDevice
 

Member Enumeration Documentation

◆ DirectionH

enum Ms::MScore::DirectionH : char
strong
Enumerator
AUTO 
LEFT 
RIGHT 

◆ OrnamentStyle

enum Ms::MScore::OrnamentStyle : char
strong
Enumerator
DEFAULT 
BAROQUE 

Member Function Documentation

◆ baseStyle()

static const MStyle& Ms::MScore::baseStyle ( )
inlinestatic

◆ defaultStyle()

static MStyle& Ms::MScore::defaultStyle ( )
inlinestatic

◆ defaultStyleForParts()

static const MStyle* Ms::MScore::defaultStyleForParts ( )
inlinestatic

◆ defaultStyleForPartsHasChanged()

void Ms::MScore::defaultStyleForPartsHasChanged ( )
static

◆ errorGroup()

const char * Ms::MScore::errorGroup ( )
static

◆ errorMessage()

const char * Ms::MScore::errorMessage ( )
static

◆ globalShare()

static const QString& Ms::MScore::globalShare ( )
inlinestatic

◆ hRaster()

static qreal Ms::MScore::hRaster ( )
inlinestatic

◆ init() [1/2]

static void Ms::MScore::init ( )
static

◆ init() [2/2]

void Ms::MScore::init ( )
static

◆ paintDevice()

MPaintDevice * Ms::MScore::paintDevice ( )
static

◆ readDefaultStyle()

bool Ms::MScore::readDefaultStyle ( QString  file)
static

◆ setDefaultStyle()

static void Ms::MScore::setDefaultStyle ( const MStyle s)
inlinestatic

◆ setError()

static void Ms::MScore::setError ( MsError  e)
inlinestatic

◆ setHRaster()

static void Ms::MScore::setHRaster ( int  val)
inlinestatic

◆ setNudgeStep()

static void Ms::MScore::setNudgeStep ( qreal  val)
inlinestatic

◆ setNudgeStep10()

static void Ms::MScore::setNudgeStep10 ( qreal  val)
inlinestatic

◆ setNudgeStep50()

static void Ms::MScore::setNudgeStep50 ( qreal  val)
inlinestatic

◆ setVerticalOrientation()

static void Ms::MScore::setVerticalOrientation ( bool  val)
inlinestatic

◆ setVRaster()

static void Ms::MScore::setVRaster ( int  val)
inlinestatic

◆ verticalOrientation()

static bool Ms::MScore::verticalOrientation ( )
inlinestatic

◆ vRaster()

static qreal Ms::MScore::vRaster ( )
inlinestatic

Member Data Documentation

◆ _baseStyle

MStyle Ms::MScore::_baseStyle
staticprivate

◆ _defaultStyle

MStyle Ms::MScore::_defaultStyle
staticprivate

◆ _defaultStyleForParts

MStyle * Ms::MScore::_defaultStyleForParts
staticprivate

◆ _error

MsError Ms::MScore::_error { MS_NO_ERROR }
static

◆ _globalShare

QString Ms::MScore::_globalShare
staticprivate

◆ _hRaster

int Ms::MScore::_hRaster
staticprivate

◆ _paintDevice

MPaintDevice * Ms::MScore::_paintDevice
staticprivate

◆ _verticalOrientation

bool Ms::MScore::_verticalOrientation = false
staticprivate

◆ _vRaster

int Ms::MScore::_vRaster
staticprivate

◆ bgColor

QColor Ms::MScore::bgColor
static

◆ debugMode

bool Ms::MScore::debugMode = false
static

◆ defaultColor

QColor Ms::MScore::defaultColor
static

◆ defaultPlayDuration

int Ms::MScore::defaultPlayDuration
static

◆ division

int Ms::MScore::division = 480
static

◆ dropColor

QColor Ms::MScore::dropColor
static

◆ errorList

std::vector< MScoreError > Ms::MScore::errorList
static
Initial value:
{
{ MS_NO_ERROR, 0, 0 },
{ NO_NOTE_SELECTED, "s1", QT_TRANSLATE_NOOP("error", "No note selected:\nPlease select a note and retry\n") },
{ NO_CHORD_REST_SELECTED, "s2", QT_TRANSLATE_NOOP("error", "No chord/rest selected:\nPlease select a chord or rest and retry") },
{ NO_LYRICS_SELECTED, "s3", QT_TRANSLATE_NOOP("error", "No note or lyrics selected:\nPlease select a note or lyrics and retry") },
{ NO_NOTE_REST_SELECTED, "s4", QT_TRANSLATE_NOOP("error", "No note or rest selected:\nPlease select a note or rest and retry") },
{ NO_NOTE_SLUR_SELECTED, "s5", QT_TRANSLATE_NOOP("error", "No note or slur selected:\nPlease select a note or slur and retry") },
{ NO_STAFF_SELECTED, "s6", QT_TRANSLATE_NOOP("error", "No staff selected:\nPlease select one or more staves and retry\n") },
{ NO_NOTE_FIGUREDBASS_SELECTED, "s7", QT_TRANSLATE_NOOP("error", "No note or figured bass selected:\nPlease select a note or figured bass and retry") },
{ CANNOT_INSERT_TUPLET, "t1", QT_TRANSLATE_NOOP("error", "Cannot insert chord/rest in tuplet") },
{ CANNOT_SPLIT_TUPLET, "t2", QT_TRANSLATE_NOOP("error", "Cannot split tuplet") },
{ CANNOT_SPLIT_MEASURE_FIRST_BEAT, "m1", QT_TRANSLATE_NOOP("error", "Cannot split measure here:\n" "First beat of measure") },
{ CANNOT_SPLIT_MEASURE_TUPLET, "m2", QT_TRANSLATE_NOOP("error", "Cannot split measure here:\n" "Cannot split tuplet") },
{ NO_DEST, "p1", QT_TRANSLATE_NOOP("error", "No destination to paste") },
{ DEST_TUPLET, "p2", QT_TRANSLATE_NOOP("error", "Cannot paste into tuplet") },
{ TUPLET_CROSSES_BAR, "p3", QT_TRANSLATE_NOOP("error", "Tuplet cannot cross barlines") },
{ DEST_LOCAL_TIME_SIGNATURE, "p4", QT_TRANSLATE_NOOP("error", "Cannot paste in local time signature") },
{ DEST_TREMOLO, "p5", QT_TRANSLATE_NOOP("error", "Cannot paste in tremolo") },
{ NO_MIME, "p6", QT_TRANSLATE_NOOP("error", "Nothing to paste") },
{ DEST_NO_CR, "p7", QT_TRANSLATE_NOOP("error", "Destination is not a chord or rest") },
{ CANNOT_CHANGE_LOCAL_TIMESIG, "l1", QT_TRANSLATE_NOOP("error", "Cannot change local time signature:\nMeasure is not empty") },
}

◆ frameMarginColor

QColor Ms::MScore::frameMarginColor
static

◆ horizontalPageGapEven

qreal Ms::MScore::horizontalPageGapEven = 1.0
static

◆ horizontalPageGapOdd

qreal Ms::MScore::horizontalPageGapOdd = 50.0
static

◆ lastError

QString Ms::MScore::lastError
static

◆ layoutBreakColor

QColor Ms::MScore::layoutBreakColor
static

◆ mtcType

int Ms::MScore::mtcType
static

◆ noExcerpts

bool Ms::MScore::noExcerpts = false
static

◆ noGui

bool Ms::MScore::noGui = false
static

◆ noHorizontalStretch

bool Ms::MScore::noHorizontalStretch = false
static

◆ noImages

bool Ms::MScore::noImages = false
static

◆ noVerticalStretch

bool Ms::MScore::noVerticalStretch = false
static

◆ nudgeStep

qreal Ms::MScore::nudgeStep
static

◆ nudgeStep10

qreal Ms::MScore::nudgeStep10
static

◆ nudgeStep50

qreal Ms::MScore::nudgeStep50
static

◆ panPlayback

bool Ms::MScore::panPlayback
static

◆ pdfPrinting

bool Ms::MScore::pdfPrinting = false
static

◆ pixelRatio

double Ms::MScore::pixelRatio = 0.8
static

◆ playRepeats

bool Ms::MScore::playRepeats
static

◆ sampleRate

int Ms::MScore::sampleRate = 44100
static

◆ saveTemplateMode

bool Ms::MScore::saveTemplateMode = false
static

◆ selectColor

static QColor Ms::MScore::selectColor
static

◆ seq

Sequencer * Ms::MScore::seq = 0
static

◆ showBoundingRect

bool Ms::MScore::showBoundingRect = false
static

◆ showCorruptedMeasures

bool Ms::MScore::showCorruptedMeasures = true
static

◆ showMeasureShapes

bool Ms::MScore::showMeasureShapes = false
static

◆ showSegmentShapes

bool Ms::MScore::showSegmentShapes = false
static

◆ showSkylines

bool Ms::MScore::showSkylines = false
static

◆ showSystemBoundingRect

bool Ms::MScore::showSystemBoundingRect = false
static

◆ svgPrinting

bool Ms::MScore::svgPrinting = false
static

◆ testMode

bool Ms::MScore::testMode = false
static

◆ useFallbackFont

bool Ms::MScore::useFallbackFont = true
static

◆ verticalPageGap

qreal Ms::MScore::verticalPageGap = 5.0
static

◆ warnPitchRange

bool Ms::MScore::warnPitchRange
static

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