47 bool _userModified[2];
65 bool twoBeamedNotes();
66 void computeStemLen(
const std::vector<ChordRest*>& crl, qreal& py1,
int beamLevels);
67 bool slopeZero(
const std::vector<ChordRest*>& crl);
73 enum class Mode : signed char {
85 virtual QPointF pagePos()
const override;
86 virtual QPointF canvasPos()
const override;
88 virtual bool isEditable()
const override {
return true; }
89 virtual void startEdit(
EditData&)
override;
90 virtual void endEdit(
EditData&)
override;
91 virtual void editDrag(
EditData&)
override;
93 virtual Fraction tick()
const override;
94 virtual Fraction rtick()
const override;
96 virtual void write(
XmlWriter& xml)
const override;
98 virtual void spatiumChanged(qreal , qreal )
override;
100 virtual void reset()
override;
105 void layoutGraceNotes();
108 const QVector<ChordRest*>&
elements() {
return _elements; }
110 bool empty()
const {
return _elements.empty(); }
111 bool contains(
const ChordRest* cr)
const {
return std::find(_elements.begin(), _elements.end(), cr) != _elements.end(); }
113 virtual void add(
Element*)
override;
114 virtual void remove(
Element*)
override;
116 virtual void move(
const QPointF&)
override;
117 virtual void draw(QPainter*)
const override;
119 bool up()
const {
return _up; }
121 void setId(
int i)
const { _id = i; }
122 int id()
const {
return _id; }
129 virtual bool acceptDrop(
EditData&)
const override;
140 bool userModified()
const;
141 void setUserModified(
bool val);
143 QPointF beamPos()
const;
144 void setBeamPos(
const QPointF& bp);
149 virtual bool setProperty(
Pid propertyId,
const QVariant&)
override;
150 virtual QVariant propertyDefault(
Pid id)
const override;
153 bool cross()
const {
return _cross; }
157 virtual void triggerLayout()
const override;
163 std::vector<QPointF> gripsPositions(
const EditData&)
const override;
168 bool isMovable()
const override;
169 void startDrag(
EditData &)
override;
172 void initBeamEditData(
EditData &ed);
bool _noSlope
Definition: beam.h:45
Definition: durationtype.h:28
bool contains(const ChordRest *cr) const
Definition: beam.h:111
Pid
Definition: property.h:62
System * system() const
Definition: beam.h:102
int _id
Definition: beam.h:57
qreal _beamDist
Definition: beam.h:53
virtual ElementType type() const override
Definition: beam.h:84
int gripsCount() const override
Definition: beam.h:160
Base class of score layout elements.
Definition: element.h:158
void setUp(bool v)
Definition: beam.h:120
qreal beamDist() const
Definition: beam.h:146
int minMove
Definition: beam.h:59
IconType
Definition: mscore.h:219
Q_GADGET QVector< ChordRest * > _elements
Definition: beam.h:39
void setId(int i) const
Definition: beam.h:121
void clear()
Definition: beam.h:109
Direction beamDirection() const
Definition: beam.h:127
int id() const
Definition: beam.h:122
Direction _direction
Definition: beam.h:41
Grip
Definition: element.h:43
const QVector< ChordRest * > & elements()
Definition: beam.h:108
qreal growLeft() const
Definition: beam.h:132
SpannerSegmentType
Definition: spanner.h:26
Mode
Definition: beam.h:73
Definition: aeolus.cpp:26
virtual Beam * clone() const override
Definition: beam.h:83
QVector< BeamFragment * > fragments
Definition: beam.h:55
Grip defaultGrip() const override
Definition: beam.h:162
EditBehavior normalModeEditBehavior() const override
Definition: beam.h:159
qreal _grow2
Definition: beam.h:52
qreal growRight() const
Definition: beam.h:133
bool _distribute
Definition: beam.h:44
bool isGrace() const
Definition: beam.h:152
TDuration maxDuration
Definition: beam.h:61
QVector< QLineF * > beamSegments
Definition: beam.h:40
bool _up
Definition: beam.h:43
Definition: chordrest.h:48
Direction
Definition: types.h:282
Definition: element.h:111
bool empty() const
Definition: beam.h:110
void setGrowRight(qreal val)
Definition: beam.h:135
One row of measures for all instruments; a complete piece of the timeline.
Definition: system.h:79
bool _cross
Definition: beam.h:49
bool distribute() const
Definition: beam.h:137
bool up() const
Definition: beam.h:119
bool noSlope() const
Definition: beam.h:123
Definition: fraction.h:46
Grip initialEditModeGrip() const override
Definition: beam.h:161
void setDistribute(bool val)
Definition: beam.h:138
ElementType
Definition: types.h:34
bool _isGrace
Definition: beam.h:48
int maxMove
Definition: beam.h:60
virtual bool isEditable() const override
Definition: beam.h:88
void setNoSlope(bool val)
Definition: beam.h:124
Pid propertyId(const QStringRef &s)
Definition: property.cpp:347
EditBehavior
Definition: element.h:173
void setGrowLeft(qreal val)
Definition: beam.h:134
bool cross() const
Definition: beam.h:153
qreal _grow1
Definition: beam.h:51