64 virtual qreal mag()
const override;
65 virtual Fraction tick()
const override;
82 const QPointF&
userOff2()
const {
return _offset2; }
88 void setPos2(
const QPointF& p) { _p2 = p; }
90 QPointF
pos2()
const {
return _p2 + _offset2; }
92 const QPointF&
ipos2()
const {
return _p2; }
93 QPointF&
rpos2() {
return _p2; }
97 virtual bool isEditable()
const override {
return true; }
99 QByteArray mimeData(
const QPointF& dragOffset)
const override;
101 virtual QVariant getProperty(
Pid id)
const override;
102 virtual bool setProperty(
Pid id,
const QVariant& v)
override;
103 virtual QVariant propertyDefault(
Pid id)
const override;
104 virtual Element* propertyDelegate(
Pid)
override;
105 virtual void undoChangeProperty(
Pid id,
const QVariant&,
PropertyFlags ps)
override;
108 virtual Sid getPropertyStyle(
Pid id)
const override;
110 virtual void resetProperty(
Pid id)
override;
111 virtual void styleChanged()
override;
112 void reset()
override;
114 virtual void setSelected(
bool f)
override;
115 virtual void setVisible(
bool f)
override;
116 virtual void setColor(
const QColor& col)
override;
118 virtual Element* nextSegmentElement()
override;
119 virtual Element* prevSegmentElement()
override;
120 virtual QString accessibleInfo()
const override;
121 virtual void triggerLayout()
const override;
122 void autoplaceSpannerSegment();
152 bool _broken {
false };
164 int reuseSegments(
int number);
166 void fixupSegments(
unsigned int targetNumber, std::function<
SpannerSegment*()> createSegment);
175 virtual qreal mag()
const override;
178 virtual void setScore(
Score* s)
override;
180 bool readProperties(
XmlReader&)
override;
181 void writeProperties(
XmlWriter&)
const override;
215 void eraseSpannerSegments();
218 virtual void layoutSystemsDone();
220 virtual void triggerLayout()
const override;
221 virtual void triggerLayoutAll()
const override;
222 virtual void add(
Element*)
override;
223 virtual void remove(
Element*)
override;
224 virtual void scanElements(
void* data,
void (*func)(
void*,
Element*),
bool all=
true)
override;
225 bool removeSpannerBack();
226 virtual void removeUnmanaged();
227 virtual void insertTimeUnmanaged(
const Fraction& tick,
const Fraction& len);
230 bool setProperty(
Pid propertyId,
const QVariant& v);
231 QVariant propertyDefault(
Pid propertyId)
const;
232 virtual void undoChangeProperty(
Pid id,
const QVariant&,
PropertyFlags ps)
override;
234 void computeStartElement();
235 void computeEndElement();
238 void setNoteSpan(
Note* startNote,
Note* endNote);
246 void setStartElement(
Element* e);
247 void setEndElement(
Element* e);
258 virtual void setSelected(
bool f)
override;
259 virtual void setVisible(
bool f)
override;
260 virtual void setAutoplace(
bool f)
override;
261 virtual void setColor(
const QColor& col)
override;
264 virtual Element* nextSegmentElement()
override;
265 virtual Element* prevSegmentElement()
override;
const QPointF & userOff2() const
Definition: spanner.h:82
Element * editStartElement
Definition: spanner.h:36
Pid
Definition: property.h:62
void setPos2(const QPointF &p)
Definition: spanner.h:88
Definition: editdrumset.cpp:32
virtual void undoChangeProperty(Pid id, const QVariant &, PropertyFlags ps)
Definition: scoreElement.cpp:291
int track2() const
Definition: spanner.h:196
bool segmentsEmpty() const
Definition: spanner.h:214
virtual bool isEditable() const override
Definition: spanner.h:97
parent: System
Definition: spanner.h:50
bool broken() const
Definition: spanner.h:200
QFlags< ElementFlag > ElementFlags
Definition: element.h:101
Virtual base class for slurs, ties, lines etc.
Definition: spanner.h:136
one measure in a system
Definition: measure.h:65
System * system() const
Definition: spanner.h:80
void setSpannerSegmentType(SpannerSegmentType s)
Definition: spanner.h:70
SpannerSegmentType _spannerSegmentType
Definition: spanner.h:52
bool isMiddleType() const
Definition: spanner.h:76
bool isEndType() const
Definition: spanner.h:77
Element * endElement() const
Definition: spanner.h:241
SpannerSegment * segmentAt(int n)
Definition: spanner.h:211
Definition: element.h:504
Base class of score layout elements.
Definition: element.h:158
bool isSingleEndType() const
Definition: spanner.h:75
int effectiveTrack2() const
Definition: spanner.h:198
Spanner * spanner() const
Definition: spanner.h:67
const SpannerSegment * frontSegment() const
Definition: spanner.h:208
const SpannerSegment * backSegment() const
Definition: spanner.h:210
qreal & rUserYoffset2()
Definition: spanner.h:86
SpannerSegmentType spannerSegmentType() const
Definition: spanner.h:71
void setAnchor(Anchor a)
Definition: spanner.h:204
void setUserOff2(const QPointF &o)
Definition: spanner.h:83
Anchor
Definition: spanner.h:139
PropertyFlags
Definition: property.h:54
QPointF _offset2
Definition: spanner.h:56
Anchor anchor() const
Definition: spanner.h:203
const QPointF & ipos2() const
Definition: spanner.h:92
virtual Fraction tick() const override
Definition: spanner.h:188
const std::vector< SpannerSegment * > & spannerSegments()
Definition: spanner.h:206
void setBroken(bool v)
Definition: spanner.h:201
SpannerSegment * backSegment()
Definition: spanner.h:209
qreal & rUserXoffset2()
Definition: spanner.h:85
int editTick2
Definition: spanner.h:39
SpannerSegmentType
Definition: spanner.h:26
Element * editEndElement
Definition: spanner.h:37
bool isSingleBeginType() const
Definition: spanner.h:74
bool isBeginType() const
Definition: spanner.h:73
Definition: aeolus.cpp:26
int editTrack2
Definition: spanner.h:40
std::vector< SpannerSegment * > segments
Definition: spanner.h:154
Sid
Definition: style.h:33
QPointF _p2
Definition: spanner.h:55
qreal & rypos2()
Definition: spanner.h:95
const SpannerSegment * segmentAt(int n) const
Definition: spanner.h:212
QList< QPointF > userOffsets2
Definition: spanner.h:42
size_t nsegments() const
Definition: spanner.h:213
QList< QPointF > userOffsets
Definition: spanner.h:41
Graphic representation of a chord.
Definition: chord.h:55
void setTrack2(int v)
Definition: spanner.h:197
Definition: chordrest.h:48
int editTick
Definition: spanner.h:38
QPointF pos2() const
Definition: spanner.h:90
const std::vector< SpannerSegment * > spannerSegments() const
Definition: spanner.h:168
qreal & rxpos2()
Definition: spanner.h:94
One row of measures for all instruments; a complete piece of the timeline.
Definition: system.h:79
Graphic representation of a note.
Definition: note.h:212
Definition: fraction.h:46
ElementType
Definition: types.h:34
void setUserXoffset2(qreal x)
Definition: spanner.h:84
Fraction ticks() const
Definition: spanner.h:190
Spanner * _spanner
Definition: spanner.h:51
Element * startElement() const
Definition: spanner.h:240
Spanner * setSpanner(Spanner *val)
Definition: spanner.h:68
SpannerSegment * frontSegment()
Definition: spanner.h:207
Pid propertyId(const QStringRef &s)
Definition: property.cpp:347
bool isSingleType() const
Definition: spanner.h:72
QPointF & rpos2()
Definition: spanner.h:93
std::deque< SpannerSegment * > unusedSegments
Definition: spanner.h:155
Fraction tick2() const
Definition: spanner.h:189