45 virtual void draw(QPainter*)
const = 0;
73 Qt::PenStyle _lineStyle { Qt::SolidLine };
74 qreal _dashLineLen { 5.0 };
75 qreal _dashGapLen { 5.0 };
76 bool _diagonal {
false };
85 virtual void layout()
override;
93 virtual const QRectF&
bbox()
const override;
QColor lineColor() const
Definition: line.h:102
virtual void draw(QPainter *) const =0
const LineSegment * backSegment() const
Definition: line.h:116
virtual QLineF dragAnchor() const override
Definition: line.cpp:418
LineSegment(Score *s, ElementFlags f=ElementFlag::NOTHING)
Definition: line.h:43
void setLineStyle(Qt::PenStyle v)
Definition: line.h:106
virtual void writeProperties(XmlWriter &xml) const
Definition: element.cpp:516
Pid
Definition: property.h:62
void setDashLineLen(qreal val)
Definition: line.h:109
virtual QPointF gripAnchor(Grip) const override
Definition: line.cpp:94
void setLineColor(const QColor &v)
Definition: line.h:105
virtual void editDrag(EditData &) override
Definition: line.cpp:325
virtual void localSpatiumChanged(qreal, qreal) override
Definition: line.cpp:392
virtual Element * propertyDelegate(Pid) override
Definition: line.cpp:402
Element::EditBehavior normalModeEditBehavior() const override
Definition: line.h:56
virtual bool edit(EditData &) override
Definition: line.cpp:151
parent: System
Definition: spanner.h:50
QFlags< ElementFlag > ElementFlags
Definition: element.h:101
Virtual base class for slurs, ties, lines etc.
Definition: spanner.h:136
System * system() const
Definition: spanner.h:80
SpannerSegment * segmentAt(int n)
Definition: spanner.h:211
Base class of score layout elements.
Definition: element.h:158
Grip defaultGrip() const override
Definition: line.h:59
virtual QVariant propertyDefault(Pid id) const override
Definition: spanner.cpp:162
Spanner * spanner() const
Definition: spanner.h:67
std::vector< QPointF > gripsPositions(const EditData &) const override
Definition: line.cpp:79
Virtual base class for segmented lines segments (OttavaSegment, HairpinSegment, TrillSegment...)
Definition: line.h:34
virtual void write(XmlWriter &) const
Definition: element.cpp:732
LineSegment * frontSegment()
Definition: line.h:113
virtual void startEditDrag(EditData &) override
Definition: line.cpp:136
qreal dashGapLen() const
Definition: line.h:110
static QColor defaultColor
Definition: mscore.h:328
SLine * line() const
Definition: line.h:46
bool readProperties(XmlReader &)
Definition: line.cpp:45
LineSegment * segmentAt(int n)
Definition: line.h:117
SpannerSegment * backSegment()
Definition: spanner.h:209
virtual Pid propertyId(const QStringRef &xmlName) const override
Definition: element.cpp:1326
virtual base class for Hairpin, Trill and TextLine
Definition: line.h:70
Grip
Definition: element.h:43
friend class SLine
Definition: line.h:50
virtual QVariant getProperty(Pid id) const override
Definition: spanner.cpp:127
LineSegment(Spanner *sp, Score *s, ElementFlags f=ElementFlag::NOTHING)
Definition: line.h:42
void setDashGapLen(qreal val)
Definition: line.h:111
virtual void spatiumChanged(qreal, qreal) override
Definition: line.cpp:382
Definition: aeolus.cpp:26
virtual const QRectF & bbox() const
Definition: element.h:257
Grip initialEditModeGrip() const override
Definition: line.h:58
virtual void layout()
Definition: element.h:334
LineSegment * backSegment()
Definition: line.h:115
qreal lineWidth() const
Definition: line.h:101
virtual void read(XmlReader &) override
Definition: line.cpp:69
Definition: element.h:111
qreal _lineWidth
Definition: line.h:71
int gripsCount() const override
Definition: line.h:57
Qt::PenStyle lineStyle() const
Definition: line.h:103
qreal dashLineLen() const
Definition: line.h:108
virtual bool setProperty(Pid id, const QVariant &v) override
Definition: spanner.cpp:143
One row of measures for all instruments; a complete piece of the timeline.
Definition: system.h:79
const LineSegment * frontSegment() const
Definition: line.h:114
SpannerSegment * frontSegment()
Definition: spanner.h:207
void setLineWidth(const qreal &v)
Definition: line.h:104
EditBehavior
Definition: element.h:173
const LineSegment * segmentAt(int n) const
Definition: line.h:118
bool diagonal() const
Definition: line.h:98
void setDiagonal(bool v)
Definition: line.h:99