13 #ifndef __CHORDLINE_H__ 14 #define __CHORDLINE_H__ 41 const int _initialLength = 2;
54 virtual void setStraight(
bool straight) { _straight = straight; }
55 virtual void setLengthX(qreal length) { _lengthX = length; }
56 virtual void setLengthY(qreal length) { _lengthY = length; }
59 virtual void write(
XmlWriter& xml)
const override;
60 virtual void layout()
override;
61 virtual void draw(QPainter*)
const override;
63 void startEditDrag(
EditData&)
override;
64 virtual void editDrag(
EditData&)
override;
66 virtual QString accessibleInfo()
const override;
69 virtual bool setProperty(
Pid propertyId,
const QVariant&)
override;
70 virtual QVariant propertyDefault(
Pid)
const override;
71 virtual Pid propertyId(
const QStringRef& xmlName)
const override;
74 int gripsCount()
const override {
return _straight ? 1 : path.elementCount(); }
77 std::vector<QPointF> gripsPositions(
const EditData&)
const override;
virtual ChordLine * clone() const override
Definition: chordline.h:47
Element::EditBehavior normalModeEditBehavior() const override
Definition: chordline.h:73
bool modified
Definition: chordline.h:38
bezier line attached to top note of a chord implements fall, doit, plop, bend
Definition: chordline.h:34
Pid
Definition: property.h:62
Grip initialEditModeGrip() const override
Definition: chordline.h:75
Grip defaultGrip() const override
Definition: chordline.h:76
virtual void setStraight(bool straight)
Definition: chordline.h:54
int gripsCount() const override
Definition: chordline.h:74
Base class of score layout elements.
Definition: element.h:158
QPainterPath path
Definition: chordline.h:37
ChordLineType
Definition: chordline.h:23
Grip
Definition: element.h:43
virtual void setLengthY(qreal length)
Definition: chordline.h:56
ChordLineType _chordLineType
Definition: chordline.h:35
ChordLineType chordLineType() const
Definition: chordline.h:51
Definition: aeolus.cpp:26
Chord * chord() const
Definition: chordline.h:52
virtual ElementType type() const override
Definition: chordline.h:48
const char * scorelineNames[]
Definition: chordline.cpp:22
Graphic representation of a chord.
Definition: chord.h:55
Definition: element.h:111
qreal _lengthX
Definition: chordline.h:39
ElementType
Definition: types.h:34
Pid propertyId(const QStringRef &s)
Definition: property.cpp:347
EditBehavior
Definition: element.h:173
virtual void setLengthX(qreal length)
Definition: chordline.h:55
virtual bool isStraight() const
Definition: chordline.h:53
qreal _lengthY
Definition: chordline.h:40
bool _straight
Definition: chordline.h:36