39 virtual void draw(QPainter*)
const override;
40 virtual bool isEditable()
const override {
return true; }
41 virtual void layout()
override;
49 virtual void reset()
override;
54 virtual bool setProperty(
Pid propertyId,
const QVariant&)
override;
73 QPointF
p2()
const {
return line.p2(); }
qreal len() const
Definition: stem.h:69
void setLineWidth(qreal w)
Definition: stem.h:66
qreal stemLen() const
Definition: stem.cpp:67
Stem & operator=(const Stem &)=delete
qreal _userLen
Definition: stem.h:30
Pid
Definition: property.h:62
bool up() const
Definition: stem.cpp:58
virtual void layout() override
Definition: stem.cpp:81
Graphic representation of a note stem.
Definition: stem.h:27
Grip initialEditModeGrip() const override
Definition: stem.h:77
virtual bool setProperty(Pid propertyId, const QVariant &) override
Definition: stem.cpp:354
int gripsCount() const override
Definition: stem.h:76
Base class of score layout elements.
Definition: element.h:158
Grip defaultGrip() const override
Definition: stem.h:78
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: stem.cpp:302
Element * parent() const
Definition: element.h:192
virtual Stem * clone() const override
Definition: stem.h:37
virtual void draw(QPainter *) const override
Definition: stem.cpp:148
EditBehavior normalModeEditBehavior() const override
Definition: stem.h:75
virtual bool readProperties(XmlReader &) override
Definition: stem.cpp:239
virtual int vStaffIdx() const override
Definition: stem.cpp:49
void setLen(qreal l)
Definition: stem.cpp:128
qreal lineWidth() const
Definition: stem.h:65
virtual QVariant getProperty(Pid propertyId) const override
Definition: stem.cpp:336
virtual Pid propertyId(const QStringRef &xmlName) const override
Definition: element.cpp:1326
Grip
Definition: element.h:43
Definition: aeolus.cpp:26
virtual void startEdit(EditData &) override
Definition: stem.cpp:267
qreal _len
Definition: stem.h:31
virtual void reset() override
Definition: stem.cpp:292
qreal userLen() const
Definition: stem.h:62
Stem(Score *=0)
Definition: stem.cpp:38
QPointF hookPos() const
Definition: stem.cpp:396
virtual void editDrag(EditData &) override
Definition: stem.cpp:278
Chord * chord() const
Definition: stem.h:59
Graphic representation of a chord.
Definition: chord.h:55
qreal _lineWidth
Definition: stem.h:29
virtual bool isEditable() const override
Definition: stem.h:40
Definition: element.h:111
virtual QVariant propertyDefault(Pid id) const override
Definition: stem.cpp:377
virtual ElementType type() const override
Definition: stem.h:38
virtual void spatiumChanged(qreal, qreal) override
Definition: stem.cpp:138
ElementType
Definition: types.h:34
virtual void write(XmlWriter &xml) const override
Definition: stem.cpp:214
std::vector< QPointF > gripsPositions(const EditData &) const override
Definition: stem.cpp:258
QLineF line
Definition: stem.h:28
void setUserLen(qreal l)
Definition: stem.h:63
QPointF p2() const
Definition: stem.h:73
EditBehavior
Definition: element.h:173
virtual void read(XmlReader &e) override
Definition: stem.cpp:227
virtual Element * drop(EditData &) override
Handle a dropped element at canvas relative pos of given element type and subtype.
Definition: stem.cpp:315