MuseScore  3.4
Music composition and notation
Namespaces | Macros | Enumerations | Functions
property.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Ms
 
 

Macros

#define M_PROPERTY(a, b, c)
 
#define M_PROPERTY2(a, b, c, d)
 

Enumerations

enum  Ms::PropertyFlags : char { Ms::PropertyFlags::NOSTYLE, Ms::PropertyFlags::UNSTYLED, Ms::PropertyFlags::STYLED }
 
enum  Ms::Pid {
  Ms::Pid::SUBTYPE, Ms::Pid::SELECTED, Ms::Pid::GENERATED, Ms::COLOR,
  Ms::VISIBLE, Ms::Pid::Z, Ms::Pid::SMALL, Ms::Pid::SHOW_COURTESY,
  Ms::Pid::KEYSIG_MODE, Ms::Pid::LINE_TYPE, Ms::PITCH, Ms::Pid::TPC1,
  Ms::Pid::TPC2, Ms::Pid::LINE, Ms::Pid::FIXED, Ms::Pid::FIXED_LINE,
  Ms::Pid::HEAD_TYPE, Ms::Pid::HEAD_GROUP, Ms::Pid::VELO_TYPE, Ms::Pid::VELO_OFFSET,
  Ms::Pid::ARTICULATION_ANCHOR, Ms::DIRECTION, Ms::Pid::STEM_DIRECTION, Ms::Pid::NO_STEM,
  Ms::Pid::SLUR_DIRECTION, Ms::Pid::LEADING_SPACE, Ms::Pid::DISTRIBUTE, Ms::Pid::MIRROR_HEAD,
  Ms::Pid::DOT_POSITION, Ms::Pid::TUNING, Ms::Pid::PAUSE, Ms::Pid::BARLINE_TYPE,
  Ms::Pid::BARLINE_SPAN, Ms::Pid::BARLINE_SPAN_FROM, Ms::Pid::BARLINE_SPAN_TO, Ms::Pid::OFFSET,
  Ms::Pid::FRET, Ms::Pid::STRING, Ms::Pid::GHOST, Ms::Pid::PLAY,
  Ms::Pid::TIMESIG_NOMINAL, Ms::Pid::TIMESIG_ACTUAL, Ms::Pid::NUMBER_TYPE, Ms::Pid::BRACKET_TYPE,
  Ms::Pid::NORMAL_NOTES, Ms::Pid::ACTUAL_NOTES, Ms::Pid::P1, Ms::Pid::P2,
  Ms::Pid::GROW_LEFT, Ms::Pid::GROW_RIGHT, Ms::Pid::BOX_HEIGHT, Ms::Pid::BOX_WIDTH,
  Ms::Pid::TOP_GAP, Ms::Pid::BOTTOM_GAP, Ms::Pid::LEFT_MARGIN, Ms::Pid::RIGHT_MARGIN,
  Ms::Pid::TOP_MARGIN, Ms::Pid::BOTTOM_MARGIN, Ms::Pid::LAYOUT_BREAK, Ms::Pid::AUTOSCALE,
  Ms::Pid::SIZE, Ms::Pid::SCALE, Ms::Pid::LOCK_ASPECT_RATIO, Ms::Pid::SIZE_IS_SPATIUM,
  Ms::Pid::TEXT, Ms::Pid::HTML_TEXT, Ms::Pid::USER_MODIFIED, Ms::Pid::BEAM_POS,
  Ms::Pid::BEAM_MODE, Ms::Pid::BEAM_NO_SLOPE, Ms::Pid::USER_LEN, Ms::Pid::SPACE,
  Ms::Pid::TEMPO, Ms::Pid::TEMPO_FOLLOW_TEXT, Ms::Pid::ACCIDENTAL_BRACKET, Ms::Pid::ACCIDENTAL_TYPE,
  Ms::Pid::NUMERATOR_STRING, Ms::Pid::DENOMINATOR_STRING, Ms::Pid::FBPREFIX, Ms::Pid::FBDIGIT,
  Ms::Pid::FBSUFFIX, Ms::Pid::FBCONTINUATIONLINE, Ms::Pid::FBPARENTHESIS1, Ms::Pid::FBPARENTHESIS2,
  Ms::Pid::FBPARENTHESIS3, Ms::Pid::FBPARENTHESIS4, Ms::Pid::FBPARENTHESIS5, Ms::Pid::OTTAVA_TYPE,
  Ms::Pid::NUMBERS_ONLY, Ms::Pid::TRILL_TYPE, Ms::Pid::VIBRATO_TYPE, Ms::Pid::HAIRPIN_CIRCLEDTIP,
  Ms::Pid::HAIRPIN_TYPE, Ms::Pid::HAIRPIN_HEIGHT, Ms::Pid::HAIRPIN_CONT_HEIGHT, Ms::Pid::VELO_CHANGE,
  Ms::Pid::VELO_CHANGE_METHOD, Ms::Pid::VELO_CHANGE_SPEED, Ms::Pid::DYNAMIC_TYPE, Ms::Pid::DYNAMIC_RANGE,
  Ms::Pid::SINGLE_NOTE_DYNAMICS, Ms::Pid::PLACEMENT, Ms::Pid::VELOCITY, Ms::Pid::JUMP_TO,
  Ms::Pid::PLAY_UNTIL, Ms::Pid::CONTINUE_AT, Ms::Pid::LABEL, Ms::Pid::MARKER_TYPE,
  Ms::Pid::ARP_USER_LEN1, Ms::Pid::ARP_USER_LEN2, Ms::Pid::REPEAT_END, Ms::Pid::REPEAT_START,
  Ms::Pid::REPEAT_JUMP, Ms::Pid::MEASURE_NUMBER_MODE, Ms::Pid::GLISS_TYPE, Ms::Pid::GLISS_TEXT,
  Ms::Pid::GLISS_SHOW_TEXT, Ms::Pid::DIAGONAL, Ms::Pid::GROUPS, Ms::Pid::LINE_STYLE,
  Ms::Pid::LINE_WIDTH, Ms::Pid::LASSO_POS, Ms::Pid::LASSO_SIZE, Ms::Pid::TIME_STRETCH,
  Ms::Pid::ORNAMENT_STYLE, Ms::Pid::TIMESIG, Ms::Pid::TIMESIG_GLOBAL, Ms::Pid::TIMESIG_STRETCH,
  Ms::Pid::TIMESIG_TYPE, Ms::Pid::SPANNER_TICK, Ms::Pid::SPANNER_TICKS, Ms::Pid::SPANNER_TRACK2,
  Ms::Pid::OFFSET2, Ms::Pid::BREAK_MMR, Ms::Pid::REPEAT_COUNT, Ms::Pid::USER_STRETCH,
  Ms::Pid::NO_OFFSET, Ms::Pid::IRREGULAR, Ms::Pid::ANCHOR, Ms::Pid::SLUR_UOFF1,
  Ms::Pid::SLUR_UOFF2, Ms::Pid::SLUR_UOFF3, Ms::Pid::SLUR_UOFF4, Ms::Pid::STAFF_MOVE,
  Ms::Pid::VERSE, Ms::Pid::SYLLABIC, Ms::Pid::LYRIC_TICKS, Ms::Pid::VOLTA_ENDING,
  Ms::Pid::LINE_VISIBLE, Ms::Pid::MAG, Ms::Pid::USE_DRUMSET, Ms::Pid::DURATION,
  Ms::Pid::DURATION_TYPE, Ms::Pid::ROLE, Ms::Pid::TRACK, Ms::Pid::GLISSANDO_STYLE,
  Ms::Pid::FRET_STRINGS, Ms::Pid::FRET_FRETS, Ms::Pid::FRET_NUT, Ms::Pid::FRET_OFFSET,
  Ms::Pid::FRET_NUM_POS, Ms::Pid::SYSTEM_BRACKET, Ms::Pid::GAP, Ms::Pid::AUTOPLACE,
  Ms::Pid::DASH_LINE_LEN, Ms::Pid::DASH_GAP_LEN, Ms::Pid::TICK, Ms::Pid::PLAYBACK_VOICE1,
  Ms::Pid::PLAYBACK_VOICE2, Ms::Pid::PLAYBACK_VOICE3, Ms::Pid::PLAYBACK_VOICE4, Ms::Pid::SYMBOL,
  Ms::Pid::PLAY_REPEATS, Ms::Pid::CREATE_SYSTEM_HEADER, Ms::Pid::STAFF_LINES, Ms::Pid::LINE_DISTANCE,
  Ms::Pid::STEP_OFFSET, Ms::Pid::STAFF_SHOW_BARLINES, Ms::Pid::STAFF_SHOW_LEDGERLINES, Ms::Pid::STAFF_STEMLESS,
  Ms::Pid::STAFF_NOTEHEAD_SCHEME, Ms::Pid::STAFF_GEN_CLEF, Ms::Pid::STAFF_GEN_TIMESIG, Ms::Pid::STAFF_GEN_KEYSIG,
  Ms::Pid::STAFF_YOFFSET, Ms::Pid::STAFF_USERDIST, Ms::Pid::STAFF_BARLINE_SPAN, Ms::Pid::STAFF_BARLINE_SPAN_FROM,
  Ms::Pid::STAFF_BARLINE_SPAN_TO, Ms::Pid::BRACKET_SPAN, Ms::Pid::BRACKET_COLUMN, Ms::Pid::INAME_LAYOUT_POSITION,
  Ms::Pid::SUB_STYLE, Ms::Pid::FONT_FACE, Ms::Pid::FONT_SIZE, Ms::Pid::FONT_STYLE,
  Ms::Pid::FRAME_TYPE, Ms::Pid::FRAME_WIDTH, Ms::Pid::FRAME_PADDING, Ms::Pid::FRAME_ROUND,
  Ms::Pid::FRAME_FG_COLOR, Ms::Pid::FRAME_BG_COLOR, Ms::Pid::SIZE_SPATIUM_DEPENDENT, Ms::Pid::ALIGN,
  Ms::Pid::SYSTEM_FLAG, Ms::Pid::BEGIN_TEXT, Ms::Pid::BEGIN_TEXT_ALIGN, Ms::Pid::BEGIN_TEXT_PLACE,
  Ms::Pid::BEGIN_HOOK_TYPE, Ms::Pid::BEGIN_HOOK_HEIGHT, Ms::Pid::BEGIN_FONT_FACE, Ms::Pid::BEGIN_FONT_SIZE,
  Ms::Pid::BEGIN_FONT_STYLE, Ms::Pid::BEGIN_TEXT_OFFSET, Ms::Pid::CONTINUE_TEXT, Ms::Pid::CONTINUE_TEXT_ALIGN,
  Ms::Pid::CONTINUE_TEXT_PLACE, Ms::Pid::CONTINUE_FONT_FACE, Ms::Pid::CONTINUE_FONT_SIZE, Ms::Pid::CONTINUE_FONT_STYLE,
  Ms::Pid::CONTINUE_TEXT_OFFSET, Ms::Pid::END_TEXT, Ms::Pid::END_TEXT_ALIGN, Ms::Pid::END_TEXT_PLACE,
  Ms::Pid::END_HOOK_TYPE, Ms::Pid::END_HOOK_HEIGHT, Ms::Pid::END_FONT_FACE, Ms::Pid::END_FONT_SIZE,
  Ms::Pid::END_FONT_STYLE, Ms::Pid::END_TEXT_OFFSET, Ms::Pid::POS_ABOVE, Ms::Pid::LOCATION_STAVES,
  Ms::Pid::LOCATION_VOICES, Ms::Pid::LOCATION_MEASURES, Ms::Pid::LOCATION_FRACTIONS, Ms::Pid::LOCATION_GRACE,
  Ms::Pid::LOCATION_NOTE, Ms::Pid::VOICE, Ms::Pid::POSITION, Ms::Pid::CLEF_TYPE_CONCERT,
  Ms::Pid::CLEF_TYPE_TRANSPOSING, Ms::Pid::KEY, Ms::Pid::ACTION, Ms::Pid::MIN_DISTANCE,
  Ms::Pid::ARPEGGIO_TYPE, Ms::Pid::CHORD_LINE_TYPE, Ms::Pid::CHORD_LINE_STRAIGHT, Ms::Pid::TREMOLO_TYPE,
  Ms::Pid::TREMOLO_PLACEMENT, Ms::Pid::HARMONY_TYPE, Ms::Pid::START_WITH_LONG_NAMES, Ms::Pid::START_WITH_MEASURE_ONE,
  Ms::Pid::PATH, Ms::Pid::END
}
 
enum  Ms::P_TYPE : char {
  Ms::P_TYPE::BOOL, Ms::P_TYPE::INT, Ms::P_TYPE::REAL, Ms::P_TYPE::SPATIUM,
  Ms::P_TYPE::SP_REAL, Ms::P_TYPE::FRACTION, Ms::P_TYPE::POINT, Ms::P_TYPE::POINT_SP,
  Ms::P_TYPE::POINT_MM, Ms::P_TYPE::POINT_SP_MM, Ms::P_TYPE::SIZE, Ms::P_TYPE::SIZE_MM,
  Ms::P_TYPE::STRING, Ms::P_TYPE::SCALE, Ms::COLOR, Ms::DIRECTION,
  Ms::P_TYPE::DIRECTION_H, Ms::P_TYPE::ORNAMENT_STYLE, Ms::P_TYPE::TDURATION, Ms::P_TYPE::LAYOUT_BREAK,
  Ms::P_TYPE::VALUE_TYPE, Ms::P_TYPE::BEAM_MODE, Ms::P_TYPE::PLACEMENT, Ms::P_TYPE::TEXT_PLACE,
  Ms::P_TYPE::TEMPO, Ms::P_TYPE::GROUPS, Ms::P_TYPE::SYMID, Ms::P_TYPE::INT_LIST,
  Ms::P_TYPE::GLISSANDO_STYLE, Ms::P_TYPE::BARLINE_TYPE, Ms::P_TYPE::HEAD_TYPE, Ms::P_TYPE::HEAD_GROUP,
  Ms::P_TYPE::ZERO_INT, Ms::P_TYPE::FONT, Ms::P_TYPE::SUB_STYLE, Ms::P_TYPE::ALIGN,
  Ms::P_TYPE::CHANGE_METHOD, Ms::P_TYPE::CHANGE_SPEED, Ms::P_TYPE::CLEF_TYPE, Ms::P_TYPE::DYNAMIC_TYPE,
  Ms::P_TYPE::KEYMODE, Ms::P_TYPE::PATH
}
 

Functions

QVariant Ms::readProperty (Pid id, XmlReader &e)
 
QVariant Ms::propertyFromString (Pid id, QString value)
 
QString Ms::propertyToString (Pid id, QVariant value, bool mscx)
 
P_TYPE Ms::propertyType (Pid id)
 
const char * Ms::propertyName (Pid id)
 
bool Ms::propertyLink (Pid id)
 
Pid Ms::propertyId (const QString &s)
 
Pid Ms::propertyId (const QStringRef &s)
 
QString Ms::propertyUserName (Pid id)
 

Macro Definition Documentation

◆ M_PROPERTY

#define M_PROPERTY (   a,
  b,
 
)
Value:
a _ ## b; \
public: \
const a& b() const { return _ ## b; } \
void c(const a& val) { _ ## b = val; } \
private:

◆ M_PROPERTY2

#define M_PROPERTY2 (   a,
  b,
  c,
 
)
Value:
a _ ## b { d }; \
public: \
const a& b() const { return _ ## b; } \
void c(const a& val) { _ ## b = val; } \
private: