68 virtual void setTrack(
int val)
override;
70 virtual void add(
Element*)
override;
71 virtual void remove(
Element*)
override;
75 void resetNumberProperty();
77 virtual bool isEditable()
const override;
78 void startEditDrag(
EditData&)
override;
79 virtual void editDrag(
EditData&)
override;
81 virtual void setSelected(
bool f)
override;
97 const std::vector<DurationElement*>&
elements()
const {
return _elements; }
98 void clear() { _elements.clear(); }
99 bool contains(
const DurationElement* el)
const {
return std::find(_elements.begin(), _elements.end(), el) != _elements.end(); }
101 virtual void layout()
override;
102 virtual void scanElements(
void* data,
void (*func)(
void*,
Element*),
bool all=
true)
override;
105 virtual void write(
XmlWriter&)
const override;
106 virtual bool readProperties(
XmlReader&)
override;
108 virtual void reset()
override;
110 virtual void draw(QPainter*)
const override;
111 int id()
const {
return _id; }
112 void setId(
int i)
const { _id = i; }
117 virtual void dump()
const override;
121 bool isUp()
const {
return _isUp; }
123 virtual Fraction rtick()
const override;
129 virtual void setVisible(
bool f)
override;
132 virtual bool setProperty(
Pid propertyId,
const QVariant& v)
override;
133 virtual QVariant propertyDefault(
Pid id)
const override;
135 virtual Shape shape()
const override;
141 std::vector<QPointF> gripsPositions(
const EditData&)
const override;
143 void sanitizeTuplet();
144 void addMissingElements();
void clear()
Definition: tuplet.h:98
Definition: durationtype.h:28
void setNumberType(TupletNumberType val)
Definition: tuplet.h:87
bool hasBracket() const
Definition: tuplet.h:89
Pid
Definition: property.h:62
void setBracketWidth(Spatium s)
Definition: tuplet.h:92
Direction _direction
Definition: tuplet.h:39
Fraction _tick
Definition: tuplet.h:50
void setBracketType(TupletBracketType val)
Definition: tuplet.h:88
bool isUp() const
Definition: tuplet.h:121
one measure in a system
Definition: measure.h:65
TupletBracketType _bracketType
Definition: tuplet.h:41
virtual Tuplet * clone() const override
Definition: tuplet.h:66
TupletNumberType
Definition: types.h:500
Base class of score layout elements.
Definition: element.h:158
Direction direction() const
Definition: tuplet.h:120
int id() const
Definition: tuplet.h:111
void setNumber(Text *t)
Definition: tuplet.h:74
Spatium _bracketWidth
Definition: tuplet.h:42
void setTick(const Fraction &v)
Definition: tuplet.h:124
Spatium bracketWidth() const
Definition: tuplet.h:91
TupletNumberType numberType() const
Definition: tuplet.h:85
TupletBracketType
Definition: types.h:501
void setHasBracket(bool b)
Definition: tuplet.h:90
Example of 1/8 triplet: _baseLen = 1/8 _actualNotes = 3 _normalNotes = 2 (3 notes played in the time ...
Definition: tuplet.h:37
void setId(int i) const
Definition: tuplet.h:112
QPointF p2
Definition: tuplet.h:52
int gripsCount() const override
Definition: tuplet.h:138
Text * number() const
Definition: tuplet.h:73
Grip defaultGrip() const override
Definition: tuplet.h:140
Grip
Definition: element.h:43
int _id
Definition: tuplet.h:54
const std::vector< DurationElement * > & elements() const
Definition: tuplet.h:97
TupletNumberType _numberType
Definition: tuplet.h:40
TDuration _baseLen
Definition: tuplet.h:46
Element::EditBehavior normalModeEditBehavior() const override
Definition: tuplet.h:137
Definition: aeolus.cpp:26
void setRatio(const Fraction &r)
Definition: tuplet.h:95
void setDirection(Direction d)
Definition: tuplet.h:119
TupletBracketType bracketType() const
Definition: tuplet.h:86
QPointF _p2
Definition: tuplet.h:53
std::vector< DurationElement * > _elements
Definition: tuplet.h:38
Virtual base class for Chord, Rest and Tuplet.
Definition: duration.h:34
TDuration baseLen() const
Definition: tuplet.h:114
Grip initialEditModeGrip() const override
Definition: tuplet.h:139
bool contains(const DurationElement *el) const
Definition: tuplet.h:99
Fraction _ratio
Definition: tuplet.h:45
void setBaseLen(const TDuration &d)
Definition: tuplet.h:115
Direction
Definition: types.h:282
virtual Fraction tick() const override
Definition: tuplet.h:122
Definition: element.h:111
virtual ElementType type() const override
Definition: tuplet.h:67
virtual Measure * measure() const override
Definition: tuplet.h:83
Text * _number
Definition: tuplet.h:56
Definition: fraction.h:46
ElementType
Definition: types.h:34
Fraction ratio() const
Definition: tuplet.h:94
bool _isUp
Definition: tuplet.h:48
Pid propertyId(const QStringRef &s)
Definition: property.cpp:347
EditBehavior
Definition: element.h:173
bool _hasBracket
Definition: tuplet.h:44