MuseScore
3.4
Music composition and notation
|
Base class of score layout elements. More...
#include <element.h>
Public Types | |
enum | EditBehavior { EditBehavior::SelectOnly, EditBehavior::Edit } |
Public Member Functions | |
Element (Score *=0, ElementFlags=ElementFlag::NOTHING) | |
Element (const Element &) | |
virtual | ~Element () |
Element & | operator= (const Element &)=delete |
virtual Q_INVOKABLE Ms::Element * | clone () const =0 |
virtual Element * | linkedClone () |
Element * | parent () const |
void | setParent (Element *e) |
Measure * | findMeasure () |
const Measure * | findMeasure () const |
MeasureBase * | findMeasureBase () |
const MeasureBase * | findMeasureBase () const |
virtual bool | isElement () const override |
qreal | spatium () const |
void | setFlag (ElementFlag f, bool v) |
void | setFlag (ElementFlag f, bool v) const |
bool | flag (ElementFlag f) const |
bool | selected () const |
virtual void | setSelected (bool f) |
bool | visible () const |
virtual void | setVisible (bool f) |
virtual bool | sizeIsSpatiumDependent () const override |
void | setSizeIsSpatiumDependent (bool v) |
Placement | placement () const |
void | setPlacement (Placement val) |
bool | placeAbove () const |
bool | placeBelow () const |
bool | generated () const |
void | setGenerated (bool val) |
Spatium | minDistance () const |
void | setMinDistance (Spatium v) |
OffsetChange | offsetChanged () const |
void | setOffsetChanged (bool v, bool absolute=true, const QPointF &diff=QPointF()) |
const QPointF & | ipos () const |
virtual const QPointF | pos () const |
virtual qreal | x () const |
virtual qreal | y () const |
void | setPos (qreal x, qreal y) |
void | setPos (const QPointF &p) |
QPointF & | rpos () |
qreal & | rxpos () |
qreal & | rypos () |
virtual void | move (const QPointF &s) |
virtual QPointF | pagePos () const |
position in page coordinates More... | |
virtual QPointF | canvasPos () const |
position in canvas coordinates More... | |
qreal | pageX () const |
qreal | canvasX () const |
const QPointF & | offset () const |
virtual void | setOffset (const QPointF &o) |
void | setOffset (qreal x, qreal y) |
QPointF & | roffset () |
qreal & | rxoffset () |
qreal & | ryoffset () |
virtual Fraction | tick () const |
virtual Fraction | rtick () const |
bool | isNudged () const |
virtual const QRectF & | bbox () const |
virtual QRectF & | bbox () |
virtual qreal | height () const |
virtual void | setHeight (qreal v) |
virtual qreal | width () const |
virtual void | setWidth (qreal v) |
QRectF | abbox () const |
QRectF | pageBoundingRect () const |
QRectF | canvasBoundingRect () const |
virtual void | setbbox (const QRectF &r) const |
virtual void | addbbox (const QRectF &r) const |
bool | contains (const QPointF &p) const |
bool | intersects (const QRectF &r) const |
virtual Shape | shape () const |
virtual qreal | baseLine () const |
virtual int | subtype () const |
virtual void | draw (QPainter *) const |
void | drawAt (QPainter *p, const QPointF &pt) const |
virtual void | writeProperties (XmlWriter &xml) const |
virtual bool | readProperties (XmlReader &) |
virtual void | write (XmlWriter &) const |
virtual void | read (XmlReader &) |
virtual void | startDrag (EditData &) |
virtual QRectF | drag (EditData &) |
Return update Rect relative to canvas. More... | |
virtual void | endDrag (EditData &) |
virtual QLineF | dragAnchor () const |
virtual bool | isEditable () const |
virtual void | startEdit (EditData &) |
virtual bool | edit (EditData &) |
virtual void | startEditDrag (EditData &) |
virtual void | editDrag (EditData &) |
virtual void | endEditDrag (EditData &) |
virtual void | endEdit (EditData &) |
virtual void | editCut (EditData &) |
virtual void | editCopy (EditData &) |
void | updateGrips (EditData &) const |
virtual bool | nextGrip (EditData &) const |
virtual bool | prevGrip (EditData &) const |
virtual QPointF | gripAnchor (Grip) const |
virtual EditBehavior | normalModeEditBehavior () const |
virtual int | gripsCount () const |
virtual Grip | initialEditModeGrip () const |
virtual Grip | defaultGrip () const |
virtual std::vector< QPointF > | gripsPositions (const EditData &) const |
int | track () const |
virtual void | setTrack (int val) |
int | z () const |
void | setZ (int val) |
int | staffIdx () const |
virtual int | vStaffIdx () const |
int | voice () const |
void | setVoice (int v) |
Staff * | staff () const |
StaffType * | staffType () const |
Part * | part () const |
virtual void | add (Element *) |
virtual void | remove (Element *) |
virtual void | change (Element *o, Element *n) |
virtual void | layout () |
virtual void | spatiumChanged (qreal, qreal) |
virtual void | localSpatiumChanged (qreal, qreal) |
virtual void | dump () const |
virtual Q_INVOKABLE QString | subtypeName () const |
virtual Q_INVOKABLE QString | _name () const |
virtual QColor | color () const |
QColor | curColor () const |
QColor | curColor (bool isVisible) const |
QColor | curColor (bool isVisible, QColor normalColor) const |
virtual void | setColor (const QColor &c) |
void | undoSetColor (const QColor &c) |
void | undoSetVisible (bool v) |
virtual QByteArray | mimeData (const QPointF &) const |
virtual bool | acceptDrop (EditData &) const |
Return true if this element accepts a drop at canvas relative pos of given element type and subtype. More... | |
virtual Element * | drop (EditData &) |
Handle a dropped element at canvas relative pos of given element type and subtype. More... | |
virtual bool | mousePress (EditData &) |
delivers mouseEvent to element in edit mode returns true if mouse event is accepted by element More... | |
virtual void | scanElements (void *data, void(*func)(void *, Element *), bool all=true) |
virtual void | reset () override |
virtual qreal | mag () const |
void | setMag (qreal val) |
qreal | magS () const |
bool | isPrintable () const |
qreal | point (const Spatium sp) const |
bool | systemFlag () const |
void | setSystemFlag (bool v) const |
bool | header () const |
void | setHeader (bool v) |
bool | trailer () const |
void | setTrailer (bool val) |
bool | selectable () const |
void | setSelectable (bool val) |
bool | dropTarget () const |
void | setDropTarget (bool v) const |
bool | composition () const |
void | setComposition (bool v) const |
virtual bool | isMovable () const |
bool | enabled () const |
void | setEnabled (bool val) |
uint | tag () const |
void | setTag (uint val) |
bool | autoplace () const |
virtual void | setAutoplace (bool v) |
bool | addToSkyline () const |
virtual QVariant | getProperty (Pid) const override |
virtual bool | setProperty (Pid, const QVariant &) override |
virtual void | undoChangeProperty (Pid id, const QVariant &, PropertyFlags ps) override |
virtual QVariant | propertyDefault (Pid) const override |
virtual Pid | propertyId (const QStringRef &xmlName) const override |
virtual QString | propertyUserValue (Pid) const override |
virtual Element * | propertyDelegate (Pid) |
bool | custom (Pid) const |
virtual bool | isUserModified () const |
void | drawSymbol (SymId id, QPainter *p, const QPointF &o=QPointF(), qreal scale=1.0) const |
void | drawSymbol (SymId id, QPainter *p, const QPointF &o, int n) const |
void | drawSymbols (const std::vector< SymId > &, QPainter *p, const QPointF &o=QPointF(), qreal scale=1.0) const |
void | drawSymbols (const std::vector< SymId > &, QPainter *p, const QPointF &o, const QSizeF &scale) const |
qreal | symHeight (SymId id) const |
qreal | symWidth (SymId id) const |
qreal | symWidth (const std::vector< SymId > &) const |
QRectF | symBbox (SymId id) const |
QRectF | symBbox (const std::vector< SymId > &) const |
QPointF | symStemDownNW (SymId id) const |
QPointF | symStemUpSE (SymId id) const |
QPointF | symCutOutNE (SymId id) const |
QPointF | symCutOutNW (SymId id) const |
QPointF | symCutOutSE (SymId id) const |
QPointF | symCutOutSW (SymId id) const |
qreal | symAdvance (SymId id) const |
bool | symIsValid (SymId id) const |
bool | concertPitch () const |
virtual Element * | nextElement () |
virtual Element * | prevElement () |
virtual Element * | nextSegmentElement () |
virtual Element * | prevSegmentElement () |
virtual QString | accessibleInfo () const |
virtual QString | screenReaderInfo () const |
virtual QString | accessibleExtraInfo () const |
virtual void | triggerLayout () const |
virtual void | triggerLayoutAll () const |
virtual void | drawEditMode (QPainter *, EditData &) |
void | autoplaceSegmentElement (bool above, bool add) |
void | autoplaceMeasureElement (bool above, bool add) |
void | autoplaceSegmentElement (bool add=true) |
void | autoplaceMeasureElement (bool add=true) |
void | autoplaceCalculateOffset (QRectF &r, qreal minDistance) |
qreal | rebaseOffset (bool nox=true) |
bool | rebaseMinDistance (qreal &md, qreal &yd, qreal sp, qreal rebase, bool above, bool fix) |
qreal | styleP (Sid idx) const |
Public Member Functions inherited from Ms::ScoreElement | |
ScoreElement (Score *s) | |
ScoreElement (const ScoreElement &se) | |
virtual | ~ScoreElement () |
Score * | score () const |
MasterScore * | masterScore () const |
virtual void | setScore (Score *s) |
const char * | name () const |
virtual QString | userName () const |
virtual ElementType | type () const =0 |
virtual void | resetProperty (Pid id) |
QVariant | propertyDefault (Pid pid, Tid tid) const |
virtual void | initElementStyle (const ElementStyle *) |
virtual const ElementStyle * | styledProperties () const |
virtual PropertyFlags * | propertyFlagsList () const |
virtual PropertyFlags | propertyFlags (Pid) const |
bool | isStyled (Pid pid) const |
QVariant | styleValue (Pid, Sid) const |
void | setPropertyFlags (Pid, PropertyFlags) |
virtual Sid | getPropertyStyle (Pid) const |
bool | readProperty (const QStringRef &, XmlReader &, Pid) |
void | readProperty (XmlReader &, Pid) |
bool | readStyledProperty (XmlReader &e, const QStringRef &tag) |
virtual void | readAddConnector (ConnectorInfoReader *info, bool pasteMode) |
virtual void | styleChanged () |
void | undoChangeProperty (Pid id, const QVariant &) |
void | undoResetProperty (Pid id) |
void | undoPushProperty (Pid) |
void | writeProperty (XmlWriter &xml, Pid id) const |
void | writeStyledProperties (XmlWriter &) const |
QList< ScoreElement * > | linkList () const |
void | linkTo (ScoreElement *) |
void | unlink () |
bool | isLinked (ScoreElement *) |
return true if se is different and linked to this element More... | |
virtual void | undoUnlink () |
int | lid () const |
LinkedElements * | links () const |
void | setLinks (LinkedElements *le) |
bool | isNote () const |
bool | isRest () const |
bool | isChord () const |
bool | isBarLine () const |
bool | isArticulation () const |
bool | isFermata () const |
bool | isMarker () const |
bool | isClef () const |
bool | isKeySig () const |
bool | isTimeSig () const |
bool | isMeasure () const |
bool | isTempoText () const |
bool | isBreath () const |
bool | isHBox () const |
bool | isVBox () const |
bool | isTBox () const |
bool | isFBox () const |
bool | isTie () const |
bool | isSlur () const |
bool | isGlissando () const |
bool | isGlissandoSegment () const |
bool | isSystemDivider () const |
bool | isRehearsalMark () const |
bool | isHarmony () const |
bool | isVolta () const |
bool | isJump () const |
bool | isOttava () const |
bool | isLayoutBreak () const |
bool | isSegment () const |
bool | isTremolo () const |
bool | isSystem () const |
bool | isLyrics () const |
bool | isStem () const |
bool | isBeam () const |
bool | isHook () const |
bool | isStemSlash () const |
bool | isSlurSegment () const |
bool | isTieSegment () const |
bool | isSpacer () const |
bool | isStaffLines () const |
bool | isAmbitus () const |
bool | isBracket () const |
bool | isInstrumentChange () const |
bool | isStaffTypeChange () const |
bool | isHairpin () const |
bool | isHairpinSegment () const |
bool | isBend () const |
bool | isTremoloBar () const |
bool | isRepeatMeasure () const |
bool | isTuplet () const |
bool | isNoteDot () const |
bool | isDynamic () const |
bool | isInstrumentName () const |
bool | isAccidental () const |
bool | isTextLine () const |
bool | isTextLineSegment () const |
bool | isPedal () const |
bool | isPedalSegment () const |
bool | isOttavaSegment () const |
bool | isLedgerLine () const |
bool | isIcon () const |
bool | isVoltaSegment () const |
bool | isNoteLine () const |
bool | isTrill () const |
bool | isTrillSegment () const |
bool | isLetRing () const |
bool | isLetRingSegment () const |
bool | isVibrato () const |
bool | isPalmMute () const |
bool | isPalmMuteSegment () const |
bool | isVibratoSegment () const |
bool | isSymbol () const |
bool | isFSymbol () const |
bool | isFingering () const |
bool | isNoteHead () const |
bool | isLyricsLine () const |
bool | isLyricsLineSegment () const |
bool | isFiguredBass () const |
bool | isStaffState () const |
bool | isArpeggio () const |
bool | isImage () const |
bool | isChordLine () const |
bool | isFretDiagram () const |
bool | isPage () const |
bool | isText () const |
bool | isMeasureNumber () const |
bool | isStaffText () const |
bool | isSystemText () const |
bool | isBracketItem () const |
bool | isScore () const |
bool | isStaff () const |
bool | isPart () const |
bool | isBagpipeEmbellishment () const |
bool | isLasso () const |
bool | isSticking () const |
bool | isChordRest () const |
bool | isDurationElement () const |
bool | isSlurTieSegment () const |
bool | isSLineSegment () const |
bool | isBox () const |
bool | isVBoxBase () const |
bool | isMeasureBase () const |
bool | isTextBase () const |
bool | isTextLineBaseSegment () const |
bool | isLineSegment () const |
bool | isSpannerSegment () const |
bool | isBSymbol () const |
bool | isTextLineBase () const |
bool | isSLine () const |
bool | isSpanner () const |
bool | isStaffTextBase () const |
Static Public Member Functions | |
static ElementType | readType (XmlReader &node, QPointF *, Fraction *) |
static Element * | readMimeData (Score *score, const QByteArray &data, QPointF *, Fraction *) |
static Ms::Element * | create (Ms::ElementType type, Score *) |
static Element * | name2Element (const QStringRef &, Score *) |
Static Public Member Functions inherited from Ms::ScoreElement | |
static ElementType | name2type (const QStringRef &, bool silent=false) |
static ElementType | name2type (const QString &s) |
static const char * | name (ElementType) |
Public Attributes | |
bool | itemDiscovered { false } |
helper flag for bsp More... | |
Protected Attributes | |
int | _z |
QColor | _color |
element color attribute More... | |
Protected Attributes inherited from Ms::ScoreElement | |
const ElementStyle * | _elementStyle { &emptyStyle } |
PropertyFlags * | _propertyFlagsList { 0 } |
LinkedElements * | _links { 0 } |
Private Attributes | |
Element * | _parent { 0 } |
QRectF | _bbox |
Bounding box relative to _pos + _offset. More... | |
qreal | _mag |
standard magnification (derived value) More... | |
QPointF | _pos |
Reference position, relative to _parent, set by autoplace. More... | |
QPointF | _offset |
offset from reference position, set by autoplace or user More... | |
OffsetChange | _offsetChanged |
set by user actions that change offset, used by autoplace More... | |
QPointF | _changedPos |
position set when changing offset More... | |
Spatium | _minDistance |
autoplace min distance More... | |
int | _track |
staffIdx * VOICES + voice More... | |
ElementFlags | _flags |
valid after call to layout() More... | |
uint | _tag |
tag bitmask More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Ms::ScoreElement | |
virtual int | getPropertyFlagsIdx (Pid id) const |
Base class of score layout elements.
The Element class is the virtual base class of all score layout elements.
|
strong |
Ms::Element::Element | ( | Score * | s = 0 , |
ElementFlags | f = ElementFlag::NOTHING |
||
) |
Ms::Element::Element | ( | const Element & | e | ) |
|
virtual |
|
inlinevirtual |
|
inline |
|
inlinevirtual |
Return true if this element accepts a drop at canvas relative pos of given element type and subtype.
Reimplemented by elements that accept drops. Used to change cursor shape while dragging to indicate drop targets.
Reimplemented in Ms::Note, Ms::TextBase, Ms::FretDiagram, Ms::Harmony, Ms::Measure, Ms::Clef, Ms::Beam, Ms::BarLine, Ms::TimeSig, Ms::Bracket, Ms::Accidental, Ms::Lyrics, Ms::Box, Ms::Arpeggio, Ms::LayoutBreak, Ms::Rest, Ms::HairpinSegment, Ms::StaffState, Ms::Stem, Ms::KeySig, Ms::TrillSegment, and Ms::BSymbol.
|
inlinevirtual |
Reimplemented in Ms::Note, Ms::Chord, Ms::Segment, Ms::ChordRest, Ms::BarLine, Ms::Box, and Ms::TBox.
|
virtual |
Reimplemented in Ms::Note, Ms::TextBase, Ms::Measure, Ms::Harmony, Ms::Clef, Ms::Hairpin, Ms::BarLine, Ms::Dynamic, Ms::Articulation, Ms::TimeSig, Ms::Ottava, Ms::Accidental, Ms::SpannerSegment, Ms::Trill, Ms::Rest, Ms::Tremolo, Ms::Vibrato, Ms::Ambitus, Ms::Volta, Ms::Fermata, Ms::Jump, Ms::KeySig, Ms::Marker, Ms::TempoText, Ms::Breath, Ms::ChordLine, Ms::Fingering, and Ms::RepeatMeasure.
|
virtual |
Reimplemented in Ms::Note, Ms::Spanner, Ms::FretDiagram, Ms::Chord, Ms::FBox, Ms::ChordRest, Ms::Segment, Ms::MeasureBase, Ms::Beam, Ms::Measure, Ms::System, Ms::BarLine, Ms::Lyrics, Ms::Trill, Ms::Tuplet, Ms::Rest, Ms::Box, Ms::TrillSegment, Ms::TBox, and Ms::BSymbol.
|
inlinevirtual |
|
inline |
bool Ms::Element::autoplace | ( | ) | const |
void Ms::Element::autoplaceCalculateOffset | ( | QRectF & | r, |
qreal | minDistance | ||
) |
void Ms::Element::autoplaceMeasureElement | ( | bool | above, |
bool | add | ||
) |
|
inline |
void Ms::Element::autoplaceSegmentElement | ( | bool | above, |
bool | add | ||
) |
|
inline |
|
inlinevirtual |
Reimplemented in Ms::TextBase, Ms::Harmony, Ms::FSymbol, and Ms::Symbol.
|
inlinevirtual |
Reimplemented in Ms::SLine.
|
inlinevirtual |
|
inline |
|
virtual |
position in canvas coordinates
Reimplemented in Ms::Beam, Ms::BarLine, Ms::BSymbol, and Ms::StaffLines.
qreal Ms::Element::canvasX | ( | ) | const |
Reimplemented in Ms::Measure, and Ms::System.
|
pure virtual |
Implemented in Ms::TabDurationSymbol, Ms::Note, Ms::FiguredBass, Ms::FretDiagram, Ms::FBox, Ms::FiguredBassItem, Ms::LyricsLineSegment, Ms::NoteHead, Ms::VBox, Ms::Clef, Ms::LyricsLine, Ms::HBox, Ms::Harmony, Ms::Hairpin, Ms::Ottava, Ms::System, Ms::Measure, Ms::Dynamic, Ms::Chord, Ms::Beam, Ms::Articulation, Ms::MeasureBase, Ms::Segment, Ms::BarLine, Ms::Trill, Ms::OttavaSegment, Ms::Accidental, Ms::FSymbol, Ms::Vibrato, Ms::Glissando, Ms::TimeSig, Ms::Tie, Ms::Tuplet, Ms::Lyrics, Ms::HairpinSegment, Ms::Slur, Ms::SpannerSegment, Ms::Image, Ms::BagpipeEmbellishment, Ms::Tremolo, Ms::Volta, Ms::Jump, Ms::Arpeggio, Ms::LayoutBreak, Ms::Marker, Ms::PalmMute, Ms::Pedal, Ms::Rest, Ms::TextLine, Ms::Bracket, Ms::Page, Ms::ChordLine, Ms::LetRing, Ms::StaffState, Ms::Fermata, Ms::Ambitus, Ms::Breath, Ms::Spacer, Ms::Bend, Ms::Symbol, Ms::TempoText, Ms::KeySig, Ms::LedgerLine, Ms::TremoloBar, Ms::TrillSegment, Ms::ShadowNote, Ms::VibratoSegment, Ms::GlissandoSegment, Ms::Sticking, Ms::TieSegment, Ms::StaffTypeChange, Ms::Stem, Ms::Icon, Ms::SystemDivider, Ms::VoltaSegment, Ms::NoteLine, Ms::SlurSegment, Ms::StemSlash, Ms::InstrumentName, Ms::InstrumentChange, Ms::RepeatMeasure, Ms::TBox, Ms::PalmMuteSegment, Ms::PedalSegment, Ms::StaffText, Ms::TextLineSegment, Ms::SystemText, Ms::Hook, Ms::NoteDot, Ms::Fingering, Ms::LetRingSegment, Ms::MeasureNumber, Ms::Text, Ms::Ossia, Ms::RehearsalMark, Ms::StaffLines, and Ms::Lasso.
|
inlinevirtual |
|
inline |
bool Ms::Element::concertPitch | ( | ) | const |
bool Ms::Element::contains | ( | const QPointF & | p | ) | const |
|
static |
QColor Ms::Element::curColor | ( | ) | const |
QColor Ms::Element::curColor | ( | bool | isVisible | ) | const |
QColor Ms::Element::curColor | ( | bool | isVisible, |
QColor | normalColor | ||
) | const |
bool Ms::Element::custom | ( | Pid | id | ) | const |
|
inlinevirtual |
Reimplemented in Ms::Beam, Ms::BarLine, Ms::Tuplet, Ms::SlurTieSegment, Ms::Bracket, Ms::Arpeggio, Ms::Box, Ms::Image, Ms::Stem, Ms::ChordLine, Ms::Spacer, Ms::LineSegment, Ms::Lasso, and Ms::FotoLasso.
|
virtual |
Return update Rect relative to canvas.
Reimplemented in Ms::Note, Ms::Beam, Ms::HBox, Ms::Dynamic, Ms::SystemDivider, Ms::BSymbol, and Ms::Rest.
|
inlinevirtual |
Reimplemented in Ms::TextBase, Ms::FretDiagram, Ms::Articulation, Ms::Fermata, Ms::LineSegment, Ms::BSymbol, and Ms::Arpeggio.
|
inlinevirtual |
Reimplemented in Ms::Compound, Ms::TabDurationSymbol, Ms::Note, Ms::TextBase, Ms::FiguredBass, Ms::FretDiagram, Ms::FiguredBassItem, Ms::Clef, Ms::LyricsLineSegment, Ms::Beam, Ms::Tuplet, Ms::Harmony, Ms::Accidental, Ms::BarLine, Ms::Ambitus, Ms::Bracket, Ms::FSymbol, Ms::TimeSig, Ms::Tremolo, Ms::Articulation, Ms::Page, Ms::BagpipeEmbellishment, Ms::Image, Ms::Arpeggio, Ms::ChordLine, Ms::Rest, Ms::Breath, Ms::HairpinSegment, Ms::LedgerLine, Ms::Spacer, Ms::Symbol, Ms::Box, Ms::Icon, Ms::Bend, Ms::LayoutBreak, Ms::TextLineBaseSegment, Ms::LineSegment, Ms::ShadowNote, Ms::TremoloBar, Ms::TieSegment, Ms::KeySig, Ms::TrillSegment, Ms::VibratoSegment, Ms::GlissandoSegment, Ms::SlurSegment, Ms::StaffState, Ms::Stem, Ms::Fermata, Ms::Fingering, Ms::Hook, Ms::RepeatMeasure, Ms::StemSlash, Ms::NoteDot, Ms::StaffLines, Ms::StaffTypeChange, and Ms::Lasso.
|
inline |
|
virtual |
Reimplemented in Ms::TextBase, Ms::SlurTieSegment, Ms::Harmony, Ms::BarLine, and Ms::FotoLasso.
void Ms::Element::drawSymbol | ( | SymId | id, |
QPainter * | p, | ||
const QPointF & | o = QPointF() , |
||
qreal | scale = 1.0 |
||
) | const |
void Ms::Element::drawSymbol | ( | SymId | id, |
QPainter * | p, | ||
const QPointF & | o, | ||
int | n | ||
) | const |
void Ms::Element::drawSymbols | ( | const std::vector< SymId > & | s, |
QPainter * | p, | ||
const QPointF & | o = QPointF() , |
||
qreal | scale = 1.0 |
||
) | const |
void Ms::Element::drawSymbols | ( | const std::vector< SymId > & | s, |
QPainter * | p, | ||
const QPointF & | o, | ||
const QSizeF & | scale | ||
) | const |
Handle a dropped element at canvas relative pos of given element type and subtype.
Returns dropped element if any. The ownership of element in DropData is transferred to the called element (if not used, element has to be deleted). The returned element will be selected if not in note edit mode.
Reimplemented by elements that accept drops.
Reimplemented in Ms::Note, Ms::TextBase, Ms::FretDiagram, Ms::Harmony, Ms::Measure, Ms::Clef, Ms::Beam, Ms::Chord, Ms::BarLine, Ms::TimeSig, Ms::Bracket, Ms::Accidental, Ms::ChordRest, Ms::Lyrics, Ms::Box, Ms::Arpeggio, Ms::LayoutBreak, Ms::Rest, Ms::HairpinSegment, Ms::StaffState, Ms::Stem, Ms::KeySig, Ms::TrillSegment, Ms::BSymbol, and Ms::TBox.
|
inline |
|
virtual |
Reimplemented in Ms::Tuplet.
|
virtual |
Reimplemented in Ms::TextBase, Ms::Harmony, Ms::Bracket, Ms::Arpeggio, Ms::Box, Ms::TieSegment, Ms::SlurSegment, and Ms::LineSegment.
|
inlinevirtual |
Reimplemented in Ms::TextBase.
|
inlinevirtual |
Reimplemented in Ms::TextBase.
|
virtual |
Reimplemented in Ms::Note, Ms::BarLine, Ms::SlurTieSegment, Ms::Beam, Ms::Bracket, Ms::Tuplet, Ms::Arpeggio, Ms::ChordLine, Ms::Box, Ms::Spacer, Ms::HairpinSegment, Ms::Image, Ms::TieSegment, Ms::Stem, Ms::LineSegment, and Ms::Lasso.
|
inline |
|
virtual |
Reimplemented in Ms::TextBase, Ms::FiguredBass, Ms::Harmony, Ms::Dynamic, Ms::BarLine, Ms::Beam, Ms::Lyrics, Ms::Bracket, Ms::Box, Ms::TempoText, and Ms::FotoLasso.
|
virtual |
Reimplemented in Ms::FretDiagram, Ms::HBox, Ms::BarLine, Ms::SlurTieSegment, and Ms::Bracket.
Measure * Ms::Element::findMeasure | ( | ) |
const Measure * Ms::Element::findMeasure | ( | ) | const |
MeasureBase * Ms::Element::findMeasureBase | ( | ) |
const MeasureBase * Ms::Element::findMeasureBase | ( | ) | const |
|
inline |
|
inline |
|
overridevirtual |
Implements Ms::ScoreElement.
Reimplemented in Ms::Note, Ms::TextBase, Ms::FiguredBass, Ms::Measure, Ms::FretDiagram, Ms::Spanner, Ms::Chord, Ms::FiguredBassItem, Ms::Harmony, Ms::Segment, Ms::Clef, Ms::SlurTie, Ms::ChordRest, Ms::Beam, Ms::Hairpin, Ms::Dynamic, Ms::MeasureBase, Ms::Tuplet, Ms::BarLine, Ms::HBox, Ms::Ottava, Ms::SLine, Ms::TextLineBase, Ms::TimeSig, Ms::Accidental, Ms::Trill, Ms::Articulation, Ms::Tremolo, Ms::SlurTieSegment, Ms::SpannerSegment, Ms::Lyrics, Ms::Rest, Ms::Ambitus, Ms::Bracket, Ms::Vibrato, Ms::Arpeggio, Ms::Box, Ms::Volta, Ms::Image, Ms::LayoutBreak, Ms::Jump, Ms::Glissando, Ms::KeySig, Ms::Marker, Ms::ChordLine, Ms::TempoText, Ms::DurationElement, Ms::Spacer, Ms::Fermata, Ms::Breath, Ms::Bend, Ms::Symbol, Ms::Stem, Ms::TremoloBar, Ms::Icon, Ms::StaffTypeChange, Ms::InstrumentName, and Ms::Lasso.
|
inlinevirtual |
Reimplemented in Ms::SlurTieSegment, Ms::Image, Ms::Arpeggio, and Ms::LineSegment.
|
inlinevirtual |
Reimplemented in Ms::Beam, Ms::BarLine, Ms::Tuplet, Ms::SlurTieSegment, Ms::Bracket, Ms::Arpeggio, Ms::Box, Ms::Image, Ms::Stem, Ms::ChordLine, Ms::HairpinSegment, Ms::Spacer, Ms::LineSegment, and Ms::Lasso.
|
inlinevirtual |
Reimplemented in Ms::Beam, Ms::BarLine, Ms::VBox, Ms::Tuplet, Ms::HBox, Ms::SlurTieSegment, Ms::Bracket, Ms::Arpeggio, Ms::Box, Ms::Image, Ms::Stem, Ms::ChordLine, Ms::HairpinSegment, Ms::Spacer, Ms::LineSegment, and Ms::Lasso.
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in Ms::Beam, Ms::BarLine, Ms::Tuplet, Ms::SlurTieSegment, Ms::Bracket, Ms::Arpeggio, Ms::Box, Ms::Image, Ms::Stem, Ms::ChordLine, Ms::Spacer, Ms::LineSegment, Ms::Lasso, and Ms::FotoLasso.
bool Ms::Element::intersects | ( | const QRectF & | r | ) | const |
|
inline |
|
inlinevirtual |
Reimplemented in Ms::TabDurationSymbol, Ms::Clef, Ms::Harmony, Ms::Dynamic, Ms::Measure, Ms::SlurTieSegment, Ms::SpannerSegment, Ms::BarLine, Ms::Accidental, Ms::Beam, Ms::Bracket, Ms::Tuplet, Ms::Arpeggio, Ms::Spacer, Ms::Image, Ms::Box, Ms::InstrumentName, Ms::Stem, and Ms::Lasso.
|
inlineoverridevirtual |
Reimplemented from Ms::ScoreElement.
|
inlinevirtual |
|
inline |
bool Ms::Element::isPrintable | ( | ) | const |
|
virtual |
|
inlinevirtual |
Reimplemented in Ms::Compound, Ms::TabDurationSymbol, Ms::Note, Ms::TextBase, Ms::FiguredBass, Ms::Chord, Ms::FretDiagram, Ms::FBox, Ms::FiguredBassItem, Ms::Clef, Ms::LyricsLineSegment, Ms::VBox, Ms::Harmony, Ms::LyricsLine, Ms::HBox, Ms::Hairpin, Ms::Dynamic, Ms::Beam, Ms::Tuplet, Ms::MeasureBase, Ms::Articulation, Ms::Accidental, Ms::BarLine, Ms::SLine, Ms::Ambitus, Ms::Trill, Ms::OttavaSegment, Ms::FSymbol, Ms::TimeSig, Ms::Bracket, Ms::Lyrics, Ms::Tremolo, Ms::Vibrato, Ms::Glissando, Ms::HairpinSegment, Ms::BagpipeEmbellishment, Ms::Image, Ms::Slur, Ms::Arpeggio, Ms::Jump, Ms::Rest, Ms::TempoText, Ms::ChordLine, Ms::Marker, Ms::Box, Ms::Breath, Ms::Fermata, Ms::Symbol, Ms::LedgerLine, Ms::Icon, Ms::TextLineBaseSegment, Ms::Bend, Ms::KeySig, Ms::SystemDivider, Ms::TrillSegment, Ms::Sticking, Ms::TBox, Ms::TremoloBar, Ms::ShadowNote, Ms::Stem, Ms::VibratoSegment, Ms::BSymbol, Ms::GlissandoSegment, Ms::StaffState, Ms::Fingering, Ms::InstrumentChange, Ms::RepeatMeasure, Ms::StemSlash, Ms::VoltaSegment, Ms::NoteDot, Ms::Hook, Ms::PalmMuteSegment, Ms::PedalSegment, Ms::StaffText, Ms::TextLineSegment, Ms::MeasureNumber, Ms::LetRingSegment, Ms::RehearsalMark, Ms::StaffLines, Ms::StaffTypeChange, and Ms::SystemText.
|
virtual |
Reimplemented in Ms::Chord, Ms::Rest, and Ms::RepeatMeasure.
|
virtual |
Reimplemented in Ms::Note, Ms::Chord, Ms::Harmony, Ms::ChordRest, Ms::Tremolo, Ms::Rest, and Ms::LineSegment.
|
inlinevirtual |
Reimplemented in Ms::Note, Ms::Spanner, Ms::Clef, Ms::Chord, Ms::Articulation, Ms::TimeSig, Ms::Tremolo, Ms::SpannerSegment, Ms::BagpipeEmbellishment, Ms::Rest, Ms::Fermata, Ms::Ambitus, Ms::KeySig, Ms::Breath, Ms::NoteDot, Ms::Hook, and Ms::StemSlash.
qreal Ms::Element::magS | ( | ) | const |
|
virtual |
Reimplemented in Ms::SpannerSegment.
|
inline |
|
inlinevirtual |
delivers mouseEvent to element in edit mode returns true if mouse event is accepted by element
Reimplemented in Ms::TextBase.
|
inlinevirtual |
Reimplemented in Ms::Beam, and Ms::SlurTieSegment.
|
virtual |
Reimplemented in Ms::Note, Ms::Chord, Ms::ChordRest, and Ms::Rest.
|
virtual |
|
virtual |
Reimplemented in Ms::Note, Ms::Spanner, Ms::Chord, Ms::Clef, Ms::ChordRest, Ms::System, Ms::BarLine, Ms::TimeSig, Ms::SpannerSegment, Ms::Ambitus, Ms::Jump, Ms::KeySig, Ms::Marker, and Ms::Breath.
|
inlinevirtual |
Reimplemented in Ms::Beam, Ms::BarLine, Ms::Tuplet, Ms::SlurTieSegment, Ms::Arpeggio, Ms::Box, Ms::Image, Ms::Stem, Ms::ChordLine, Ms::Spacer, Ms::LineSegment, and Ms::TBox.
|
inline |
|
inline |
|
inline |
|
virtual |
position in page coordinates
Reimplemented in Ms::FretDiagram, Ms::Chord, Ms::BarLine, Ms::Beam, Ms::Ambitus, Ms::Page, Ms::Breath, Ms::BSymbol, Ms::LedgerLine, and Ms::StaffLines.
qreal Ms::Element::pageX | ( | ) | const |
|
inline |
Part * Ms::Element::part | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
|
virtual |
Reimplemented in Ms::Note, Ms::Chord, Ms::ChordRest, and Ms::Rest.
|
virtual |
|
virtual |
Reimplemented in Ms::Note, Ms::Spanner, Ms::Chord, Ms::Clef, Ms::ChordRest, Ms::System, Ms::BarLine, Ms::TimeSig, Ms::SpannerSegment, Ms::Ambitus, Ms::Jump, Ms::KeySig, Ms::Marker, and Ms::Breath.
|
overridevirtual |
Reimplemented from Ms::ScoreElement.
Reimplemented in Ms::Note, Ms::TextBase, Ms::FiguredBass, Ms::Measure, Ms::FretDiagram, Ms::Spanner, Ms::Chord, Ms::FiguredBassItem, Ms::Harmony, Ms::Segment, Ms::Clef, Ms::SlurTie, Ms::ChordRest, Ms::Beam, Ms::Hairpin, Ms::Dynamic, Ms::MeasureBase, Ms::Tuplet, Ms::BarLine, Ms::HBox, Ms::Ottava, Ms::SLine, Ms::TimeSig, Ms::Accidental, Ms::Trill, Ms::Articulation, Ms::SlurTieSegment, Ms::SpannerSegment, Ms::Lyrics, Ms::Rest, Ms::Ambitus, Ms::Bracket, Ms::Vibrato, Ms::Arpeggio, Ms::Box, Ms::Volta, Ms::Image, Ms::LayoutBreak, Ms::Jump, Ms::Glissando, Ms::KeySig, Ms::Marker, Ms::ChordLine, Ms::TempoText, Ms::Spacer, Ms::Fermata, Ms::Breath, Ms::Bend, Ms::PalmMute, Ms::Pedal, Ms::Stem, Ms::TextLine, Ms::TremoloBar, Ms::LetRing, Ms::StaffTypeChange, Ms::InstrumentName, Ms::InstrumentChange, Ms::Fingering, Ms::Sticking, Ms::RehearsalMark, Ms::Text, Ms::MeasureNumber, Ms::StaffText, and Ms::SystemText.
|
overridevirtual |
Reimplemented from Ms::ScoreElement.
Reimplemented in Ms::TextBase, Ms::Hairpin, Ms::Dynamic, Ms::BarLine, Ms::Ottava, Ms::TextLineBase, Ms::TimeSig, Ms::Accidental, Ms::Articulation, Ms::Trill, Ms::Tremolo, Ms::Vibrato, Ms::Arpeggio, Ms::LayoutBreak, Ms::Glissando, Ms::ChordLine, and Ms::Fermata.
|
overridevirtual |
Reimplemented from Ms::ScoreElement.
Reimplemented in Ms::Note, Ms::Dynamic, Ms::Accidental, and Ms::Tremolo.
|
virtual |
Reimplemented in Ms::Note, Ms::TextBase, Ms::FiguredBass, Ms::Segment, Ms::FretDiagram, Ms::Harmony, Ms::FiguredBassItem, Ms::SlurTie, Ms::Clef, Ms::Hairpin, Ms::SlurTieSegment, Ms::Ottava, Ms::Dynamic, Ms::TextLineBase, Ms::System, Ms::Accidental, Ms::Chord, Ms::Measure, Ms::Tuplet, Ms::Articulation, Ms::Beam, Ms::SLine, Ms::Trill, Ms::Ambitus, Ms::BarLine, Ms::Bracket, Ms::Lyrics, Ms::FSymbol, Ms::TimeSig, Ms::Tremolo, Ms::Vibrato, Ms::Glissando, Ms::Rest, Ms::Arpeggio, Ms::BagpipeEmbellishment, Ms::LayoutBreak, Ms::Box, Ms::Image, Ms::Volta, Ms::Jump, Ms::Marker, Ms::Breath, Ms::ChordLine, Ms::Fermata, Ms::StaffState, Ms::Page, Ms::KeySig, Ms::PalmMute, Ms::Pedal, Ms::LineSegment, Ms::Symbol, Ms::Spacer, Ms::LetRing, Ms::Bend, Ms::StaffTextBase, Ms::Stem, Ms::Icon, Ms::TempoText, Ms::Sticking, Ms::TremoloBar, Ms::SystemDivider, Ms::StaffTypeChange, Ms::TBox, Ms::InstrumentChange, Ms::NoteDot, and Ms::Text.
|
static |
|
virtual |
Reimplemented in Ms::Note, Ms::TextBase, Ms::Spanner, Ms::SlurTie, Ms::MeasureBase, Ms::Ottava, Ms::HBox, Ms::TextLineBase, Ms::Tuplet, Ms::Chord, Ms::Articulation, Ms::Ambitus, Ms::SLine, Ms::ChordRest, Ms::Lyrics, Ms::Box, Ms::Fermata, Ms::LedgerLine, Ms::LineSegment, Ms::StaffTextBase, Ms::Stem, and Ms::BSymbol.
|
static |
bool Ms::Element::rebaseMinDistance | ( | qreal & | md, |
qreal & | yd, | ||
qreal | sp, | ||
qreal | rebase, | ||
bool | above, | ||
bool | fix | ||
) |
qreal Ms::Element::rebaseOffset | ( | bool | nox = true | ) |
|
virtual |
Reimplemented in Ms::Note, Ms::Spanner, Ms::FretDiagram, Ms::Chord, Ms::ChordRest, Ms::Segment, Ms::MeasureBase, Ms::Beam, Ms::Measure, Ms::System, Ms::BarLine, Ms::Lyrics, Ms::Trill, Ms::Tuplet, Ms::Rest, Ms::TrillSegment, Ms::TBox, and Ms::BSymbol.
|
overridevirtual |
Reimplemented from Ms::ScoreElement.
Reimplemented in Ms::Note, Ms::Chord, Ms::SlurTie, Ms::Dynamic, Ms::SpannerSegment, Ms::Tuplet, Ms::SlurTieSegment, Ms::Beam, Ms::Arpeggio, Ms::Rest, and Ms::Stem.
|
inline |
|
inline |
|
virtual |
Reimplemented in Ms::Segment, Ms::Tuplet, and Ms::Beam.
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
Reimplemented in Ms::Note, Ms::FretDiagram, Ms::Spanner, Ms::Measure, Ms::Chord, Ms::Segment, Ms::System, Ms::Trill, Ms::Tuplet, Ms::MeasureBase, Ms::BarLine, Ms::Ambitus, Ms::ChordRest, Ms::Glissando, Ms::Page, Ms::Lyrics, Ms::Rest, Ms::TrillSegment, Ms::TBox, and Ms::BSymbol.
|
inlinevirtual |
Reimplemented in Ms::Note, Ms::TextBase, Ms::Harmony, Ms::Dynamic, and Ms::Rest.
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in Ms::Spanner.
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in Ms::Spanner, and Ms::SpannerSegment.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in Ms::Arpeggio, and Ms::Bracket.
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in Ms::Rest.
|
inline |
void Ms::Element::setOffsetChanged | ( | bool | v, |
bool | absolute = true , |
||
const QPointF & | diff = QPointF() |
||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
overridevirtual |
Implements Ms::ScoreElement.
Reimplemented in Ms::Note, Ms::TextBase, Ms::FiguredBass, Ms::Measure, Ms::FretDiagram, Ms::Spanner, Ms::Chord, Ms::FiguredBassItem, Ms::Harmony, Ms::Segment, Ms::Clef, Ms::SlurTie, Ms::ChordRest, Ms::Beam, Ms::Hairpin, Ms::Dynamic, Ms::MeasureBase, Ms::Tuplet, Ms::BarLine, Ms::LyricsLine, Ms::HBox, Ms::Ottava, Ms::SLine, Ms::TextLineBase, Ms::TimeSig, Ms::Accidental, Ms::Trill, Ms::Articulation, Ms::Tremolo, Ms::SlurTieSegment, Ms::SpannerSegment, Ms::Lyrics, Ms::Rest, Ms::Ambitus, Ms::Bracket, Ms::Vibrato, Ms::Arpeggio, Ms::Box, Ms::Volta, Ms::Image, Ms::LayoutBreak, Ms::Jump, Ms::Glissando, Ms::KeySig, Ms::Marker, Ms::ChordLine, Ms::TempoText, Ms::DurationElement, Ms::Spacer, Ms::Fermata, Ms::Breath, Ms::Bend, Ms::Symbol, Ms::Stem, Ms::TremoloBar, Ms::Icon, Ms::StaffTypeChange, Ms::InstrumentName, and Ms::Lasso.
|
inline |
|
inlinevirtual |
Reimplemented in Ms::Compound, Ms::FiguredBass, Ms::Spanner, Ms::SpannerSegment, Ms::Bracket, Ms::Tuplet, and Ms::TextLineBaseSegment.
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in Ms::Note, Ms::Chord, Ms::ChordRest, Ms::BarLine, Ms::Ambitus, Ms::Tuplet, Ms::Slur, and Ms::Rest.
|
inline |
|
inlinevirtual |
Reimplemented in Ms::Compound, Ms::FiguredBass, Ms::Spanner, Ms::Tuplet, and Ms::SpannerSegment.
|
inline |
|
inlinevirtual |
|
inline |
|
inlinevirtual |
Reimplemented in Ms::Note, Ms::Chord, Ms::ChordRest, Ms::Tuplet, Ms::SlurTieSegment, Ms::BarLine, Ms::Rest, Ms::TimeSig, Ms::Bracket, Ms::HairpinSegment, Ms::TextLineBaseSegment, Ms::TrillSegment, Ms::KeySig, and Ms::VibratoSegment.
|
inlineoverridevirtual |
Reimplemented from Ms::ScoreElement.
qreal Ms::Element::spatium | ( | ) | const |
|
virtual |
Reimplemented in Ms::Harmony, Ms::Clef, Ms::Measure, Ms::TextLineBase, Ms::Beam, Ms::Tremolo, Ms::SlurTieSegment, Ms::LedgerLine, Ms::Spacer, Ms::TextLineBaseSegment, Ms::LayoutBreak, Ms::LineSegment, Ms::Arpeggio, Ms::Stem, and Ms::StaffTypeChange.
Staff * Ms::Element::staff | ( | ) | const |
|
inline |
StaffType * Ms::Element::staffType | ( | ) | const |
|
virtual |
Reimplemented in Ms::TextBase, Ms::FiguredBass, Ms::Harmony, Ms::Dynamic, Ms::BarLine, Ms::Accidental, Ms::Beam, Ms::Bracket, Ms::Box, Ms::Arpeggio, Ms::Stem, and Ms::FotoLasso.
|
virtual |
Reimplemented in Ms::SlurTieSegment, Ms::Tuplet, Ms::ChordLine, Ms::Box, Ms::Spacer, Ms::HairpinSegment, Ms::Image, and Ms::LineSegment.
qreal Ms::Element::styleP | ( | Sid | idx | ) | const |
|
inlinevirtual |
Reimplemented in Ms::TextBase, Ms::Note, Ms::BarLine, Ms::Dynamic, Ms::Articulation, Ms::Accidental, Ms::Lyrics, Ms::Tremolo, Ms::Jump, Ms::Marker, Ms::Fermata, Ms::TieSegment, and Ms::SlurSegment.
|
virtual |
Reimplemented in Ms::TextBase, Ms::Note, Ms::BarLine, Ms::Dynamic, Ms::Accidental, Ms::Lyrics, Ms::Tremolo, Ms::TieSegment, and Ms::SlurSegment.
qreal Ms::Element::symAdvance | ( | SymId | id | ) | const |
QRectF Ms::Element::symBbox | ( | SymId | id | ) | const |
QRectF Ms::Element::symBbox | ( | const std::vector< SymId > & | s | ) | const |
QPointF Ms::Element::symCutOutNE | ( | SymId | id | ) | const |
QPointF Ms::Element::symCutOutNW | ( | SymId | id | ) | const |
QPointF Ms::Element::symCutOutSE | ( | SymId | id | ) | const |
QPointF Ms::Element::symCutOutSW | ( | SymId | id | ) | const |
qreal Ms::Element::symHeight | ( | SymId | id | ) | const |
bool Ms::Element::symIsValid | ( | SymId | id | ) | const |
QPointF Ms::Element::symStemDownNW | ( | SymId | id | ) | const |
QPointF Ms::Element::symStemUpSE | ( | SymId | id | ) | const |
qreal Ms::Element::symWidth | ( | SymId | id | ) | const |
qreal Ms::Element::symWidth | ( | const std::vector< SymId > & | s | ) | const |
|
inline |
|
inline |
|
virtual |
Reimplemented in Ms::Spanner, Ms::Segment, Ms::MeasureBase, Ms::Tuplet, Ms::Beam, and Ms::SpannerSegment.
|
inline |
|
inline |
|
virtual |
Reimplemented in Ms::Measure, Ms::Spanner, Ms::Beam, Ms::MeasureBase, and Ms::SpannerSegment.
|
virtual |
Reimplemented in Ms::Spanner.
|
overridevirtual |
Reimplemented from Ms::ScoreElement.
Reimplemented in Ms::TextBase, Ms::Spanner, Ms::BarLine, Ms::SlurTieSegment, Ms::SpannerSegment, Ms::Bracket, Ms::Ottava, Ms::OttavaSegment, Ms::Lyrics, and Ms::TempoText.
void Ms::Element::undoSetColor | ( | const QColor & | c | ) |
void Ms::Element::undoSetVisible | ( | bool | v | ) |
void Ms::Element::updateGrips | ( | EditData & | ed | ) | const |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in Ms::ChordRest, and Ms::Stem.
|
inlinevirtual |
Reimplemented in Ms::Bracket.
|
virtual |
Reimplemented in Ms::Note, Ms::TextBase, Ms::FiguredBass, Ms::Segment, Ms::FretDiagram, Ms::Harmony, Ms::FiguredBassItem, Ms::Clef, Ms::Hairpin, Ms::Ottava, Ms::Dynamic, Ms::TextLineBase, Ms::Accidental, Ms::System, Ms::Measure, Ms::Tuplet, Ms::Chord, Ms::Articulation, Ms::Beam, Ms::MeasureBase, Ms::SLine, Ms::Ambitus, Ms::Trill, Ms::BarLine, Ms::Bracket, Ms::Lyrics, Ms::FSymbol, Ms::TimeSig, Ms::Tremolo, Ms::Tie, Ms::Vibrato, Ms::Rest, Ms::Glissando, Ms::Arpeggio, Ms::Slur, Ms::BagpipeEmbellishment, Ms::LayoutBreak, Ms::Image, Ms::Jump, Ms::Marker, Ms::Volta, Ms::ChordLine, Ms::Fermata, Ms::Box, Ms::Breath, Ms::StaffState, Ms::Pedal, Ms::Page, Ms::KeySig, Ms::TextLine, Ms::Symbol, Ms::Spacer, Ms::Bend, Ms::StaffTextBase, Ms::Stem, Ms::Icon, Ms::TempoText, Ms::Sticking, Ms::TremoloBar, Ms::SystemDivider, Ms::StaffTypeChange, Ms::InstrumentChange, and Ms::TBox.
|
virtual |
Reimplemented in Ms::TextBase, Ms::Spanner, Ms::SlurTie, Ms::MeasureBase, Ms::HBox, Ms::TextLineBase, Ms::SLine, Ms::ChordRest, Ms::Box, Ms::LedgerLine, and Ms::BSymbol.
|
inlinevirtual |
Reimplemented in Ms::Segment.
|
inlinevirtual |
int Ms::Element::z | ( | ) | const |
|
mutableprivate |
Bounding box relative to _pos + _offset.
|
private |
position set when changing offset
|
protected |
element color attribute
|
mutableprivate |
valid after call to layout()
|
private |
standard magnification (derived value)
|
private |
autoplace min distance
|
private |
offset from reference position, set by autoplace or user
|
private |
set by user actions that change offset, used by autoplace
|
private |
|
private |
Reference position, relative to _parent, set by autoplace.
|
private |
tag bitmask
|
private |
staffIdx * VOICES + voice
|
mutableprotected |
|
mutable |
helper flag for bsp