13 #ifndef __CHORDREST_H__ 14 #define __CHORDREST_H__ 53 void processSiblings(std::function<
void(
Element*)> func);
77 virtual void undoUnlink()
override;
80 virtual Measure* measure()
const = 0;
82 virtual void writeProperties(
XmlWriter& xml)
const;
85 virtual void scanElements(
void* data,
void (*func)(
void*,
Element*),
bool all=
true)
override;
91 void setBeam(
Beam* b);
92 virtual Beam*
beam() const final {
return _beam; }
94 virtual qreal upPos()
const = 0;
95 virtual qreal downPos()
const = 0;
97 int line(
bool up)
const {
return up ? upLine() : downLine(); }
98 int line()
const {
return _up ? upLine() : downLine(); }
99 virtual int upLine()
const = 0;
100 virtual int downLine()
const = 0;
101 virtual QPointF stemPos()
const = 0;
102 virtual qreal stemPosX()
const = 0;
103 virtual QPointF stemPosBeam()
const = 0;
105 bool up()
const {
return _up; }
109 bool small()
const {
return _small; }
110 void setSmall(
bool val);
111 void undoSetSmall(
bool val);
115 virtual int vStaffIdx()
const override {
return staffIdx() + _staffMove; }
118 _crossMeasureTDur : _durationType; }
122 void setDurationType(
const QString& s);
123 void setDurationType(
const Fraction& ticks);
130 QString durationUserName()
const;
132 virtual void setTrack(
int val)
override;
134 const std::vector<Lyrics*>&
lyrics()
const {
return _lyrics; }
135 std::vector<Lyrics*>&
lyrics() {
return _lyrics; }
141 void removeDeleteBeam(
bool beamed);
154 virtual void localSpatiumChanged(qreal oldValue, qreal newValue)
override;
156 virtual bool setProperty(
Pid propertyId,
const QVariant&)
override;
157 virtual QVariant propertyDefault(
Pid)
const override;
158 bool isGrace()
const;
159 bool isGraceBefore()
const;
160 bool isGraceAfter()
const;
164 virtual void setScore(
Score* s)
override;
167 virtual Element* nextElement()
override;
168 virtual Element* prevElement()
override;
169 Element* lastElementBeforeSegment();
170 virtual Element* nextSegmentElement()
override;
171 virtual Element* prevSegmentElement()
override;
172 virtual QString accessibleExtraInfo()
const override;
173 virtual Shape shape()
const override;
178 virtual void removeMarkings(
bool keepTremolo =
false);
182 void undoAddAnnotation(
Element*);
Helper class for reading beams, tuplets and spanners.
Definition: connector.h:96
Definition: durationtype.h:28
int line(bool up) const
Definition: chordrest.h:97
bool up() const
Definition: chordrest.h:105
void setUp(bool val)
Definition: chordrest.h:106
const ElementList & el() const
Definition: chordrest.h:144
Pid
Definition: property.h:62
const std::vector< Lyrics * > & lyrics() const
Definition: chordrest.h:134
std::vector< Lyrics * > & lyrics()
Definition: chordrest.h:135
Virtual base class for slurs, ties, lines etc.
Definition: spanner.h:136
one measure in a system
Definition: measure.h:65
virtual Segment * segment() const
Definition: chordrest.h:79
DurationType
Definition: durationtype.h:30
TDuration _crossMeasureTDur
the total Duration type of the combined notes
Definition: chordrest.h:66
const TDuration durationType() const
Definition: chordrest.h:117
ElementList & el()
Definition: chordrest.h:143
TabDurationSymbol * _tabDur
Definition: chordrest.h:57
Base class of score layout elements.
Definition: element.h:158
Definition: stafftype.h:420
int line() const
Definition: chordrest.h:98
int actualDots() const
Definition: chordrest.h:128
Definition: element.h:517
Beam::Mode _beamMode
Definition: chordrest.h:60
int _staffMove
Definition: chordrest.h:51
bool _up
Definition: chordrest.h:61
virtual int vStaffIdx() const override
Definition: chordrest.h:115
void setCrossMeasureDurationType(TDuration v)
Definition: chordrest.h:152
Fraction durationTypeTicks()
Definition: chordrest.h:129
int dots() const
Definition: durationtype.h:80
Example of 1/8 triplet: _baseLen = 1/8 _actualNotes = 3 _normalNotes = 2 (3 notes played in the time ...
Definition: tuplet.h:37
int beams() const
Definition: chordrest.h:93
Placement
Definition: types.h:312
void setDots(int v)
Definition: durationtype.cpp:55
int dots() const
Definition: chordrest.h:126
bool isFullMeasureRest() const
Definition: chordrest.h:177
Beam * _beam
Definition: chordrest.h:59
TDuration crossMeasureDurationType() const
Definition: chordrest.h:151
SegmentType
Definition: types.h:333
int staffMove() const
Definition: chordrest.h:113
virtual void crossMeasureSetup(bool)
Definition: chordrest.h:148
articulation marks
Definition: articulation.h:57
Mode
Definition: beam.h:73
Definition: aeolus.cpp:26
CrossMeasure crossMeasure() const
Definition: chordrest.h:146
TDuration _durationType
Definition: chordrest.h:50
const TDuration actualDurationType() const
Definition: chordrest.h:120
CrossMeasure _crossMeasure
0: no cross-measure modification; 1: 1st note of a mod.; -1: 2nd note
Definition: chordrest.h:65
virtual void layoutStem1()
Definition: chordrest.h:174
bool _small
Definition: chordrest.h:62
Virtual base class for Chord, Rest and Tuplet.
Definition: duration.h:34
virtual void computeUp()
Definition: chordrest.h:175
Fraction ticks() const
Definition: durationtype.cpp:97
CrossMeasure
Definition: chordrest.h:24
void setStaffMove(int val)
Definition: chordrest.h:114
std::vector< Lyrics * > _lyrics
Definition: chordrest.h:56
int hooks() const
Definition: durationtype.cpp:203
Definition: chordrest.h:48
void setBeamMode(Beam::Mode m)
Definition: chordrest.h:87
Definition: element.h:111
Beam::Mode beamMode() const
Definition: chordrest.h:89
ElementList _el
Definition: chordrest.h:49
Definition: fraction.h:46
ElementType
Definition: types.h:34
bool small() const
Definition: chordrest.h:109
void setCrossMeasure(CrossMeasure val)
Definition: chordrest.h:147
virtual Beam * beam() const final
Definition: chordrest.h:92
Pid propertyId(const QStringRef &s)
Definition: property.cpp:347
void setDots(int n)
Definition: chordrest.h:125