67 virtual void scanElements(
void* data,
void (*func)(
void*,
Element*),
bool all=
true)
override;
75 virtual void layout()
override;
82 virtual QString
subtypeName()
const override {
return QObject::tr(
"Verse %1").arg(_no + 1); }
85 bool isEven()
const {
return _no % 1; }
89 virtual void remove(
Element*)
override;
101 virtual bool setProperty(
Pid propertyId,
const QVariant&)
override;
121 virtual void layout()
override;
123 virtual void removeUnmanaged()
override;
129 bool isDash()
const {
return !isEndMelisma(); }
141 int _numOfDashes = 0;
142 qreal _dashLength = 0;
149 virtual void draw(QPainter*)
const override;
150 virtual void layout()
override;
virtual bool readProperties(XmlReader &)
Definition: lyrics.cpp:128
bool isMelisma() const
Definition: lyrics.cpp:198
virtual Element * drop(EditData &) override
Handle a dropped element at canvas relative pos of given element type and subtype.
Definition: lyrics.cpp:464
virtual Sid getPropertyStyle(Pid) const override
Definition: lyrics.cpp:581
virtual QVariant getProperty(Pid propertyId) const override
Definition: lyrics.cpp:509
void layout2(int)
Definition: lyrics.cpp:355
Pid
Definition: property.h:62
Fraction _ticks
if > 0 then draw an underline to tick() + _ticks (melisma)
Definition: lyrics.h:49
virtual bool setProperty(Pid propertyId, const QVariant &) override
Definition: lyrics.cpp:527
LyricsLine * lyricsLine() const
Definition: lyrics.h:152
virtual void undoChangeProperty(Pid id, const QVariant &, PropertyFlags ps)
Definition: scoreElement.cpp:291
parent: System
Definition: spanner.h:50
Virtual base class for slurs, ties, lines etc.
Definition: spanner.h:136
one measure in a system
Definition: measure.h:65
virtual int subtype() const override
Definition: lyrics.h:81
virtual void endEdit(EditData &) override
Definition: lyrics.cpp:486
Base class of score layout elements.
Definition: element.h:158
Segment * segment() const
Definition: lyrics.h:71
bool isEndMelisma() const
Definition: lyrics.h:128
virtual void layout() override
Definition: lyrics.cpp:226
virtual void add(Element *) override
Definition: lyrics.cpp:162
~Lyrics()
Definition: lyrics.cpp:61
virtual bool acceptDrop(EditData &) const override
Return true if this element accepts a drop at canvas relative pos of given element type and subtype...
Definition: lyrics.cpp:455
Fraction endTick() const
Definition: lyrics.cpp:446
Element * parent() const
Definition: element.h:192
Virtual base class for segmented lines segments (OttavaSegment, HairpinSegment, TrillSegment...)
Definition: line.h:34
static constexpr int TEMP_MELISMA_TICKS
Definition: lyrics.h:43
virtual ElementType type() const override
Definition: lyrics.h:120
bool _even
Definition: lyrics.h:59
virtual LyricsLineSegment * clone() const override
Definition: lyrics.h:147
PropertyFlags
Definition: property.h:54
virtual void scanElements(void *data, void(*func)(void *, Element *), bool all=true) override
Definition: lyrics.cpp:71
Lyrics(Score *=0)
Definition: lyrics.cpp:40
Syllabic syllabic() const
Definition: lyrics.h:87
virtual ElementType type() const override
Definition: lyrics.h:66
void removeFromScore()
Definition: lyrics.cpp:496
LyricsLine * _separator
Definition: lyrics.h:52
virtual Lyrics * clone() const override
Definition: lyrics.h:65
virtual ElementType type() const override
Definition: lyrics.h:148
virtual void draw(QPainter *) const override
Definition: textbase.cpp:2615
Measure * measure() const
Definition: lyrics.h:72
ChordRest * chordRest() const
Definition: lyrics.h:73
virtual Fraction tick() const
Definition: element.cpp:287
virtual LyricsLine * clone() const override
Definition: lyrics.h:119
virtual base class for Hairpin, Trill and TextLine
Definition: line.h:70
Lyrics * nextLyrics() const
Definition: lyrics.h:127
void setSyllabic(Syllabic s)
Definition: lyrics.h:86
virtual QString subtypeName() const override
Definition: lyrics.h:82
virtual void undoChangeProperty(Pid id, const QVariant &, PropertyFlags ps) override
Definition: lyrics.cpp:609
bool isEven() const
Definition: lyrics.h:85
Definition: textbase.h:217
Syllabic _syllabic
Definition: lyrics.h:51
void setNo(int n)
Definition: lyrics.h:83
void setTicks(const Fraction &tick)
Definition: lyrics.h:93
Definition: aeolus.cpp:26
Sid
Definition: style.h:33
Lyrics * lyrics() const
Definition: lyrics.h:153
virtual void paste(EditData &) override
Definition: lyrics.cpp:374
int no() const
Definition: lyrics.h:84
virtual Pid propertyId(const QStringRef &xmlName) const override
Definition: textbase.cpp:1808
Lyrics * _nextLyrics
Definition: lyrics.h:113
Fraction ticks() const
Definition: lyrics.h:92
Definition: chordrest.h:48
virtual void styleChanged()
Definition: textbase.cpp:2500
Definition: element.h:111
virtual void write(XmlWriter &xml) const override
Definition: lyrics.cpp:84
One row of measures for all instruments; a complete piece of the timeline.
Definition: system.h:79
Syllabic
Definition: lyrics.h:30
Definition: fraction.h:46
ElementType
Definition: types.h:34
virtual void read(XmlReader &) override
Definition: lyrics.cpp:107
virtual QVariant propertyDefault(Pid id) const override
Definition: lyrics.cpp:555
Lyrics * lyrics() const
Definition: lyrics.h:126
bool isDash() const
Definition: lyrics.h:129
int _no
row index
Definition: lyrics.h:58