56 static const char* bracketTypeName(
BracketType type);
60 void setStaffSpan(
int a,
int b);
65 qreal
magx()
const {
return _magx; }
72 virtual void setHeight(qreal)
override;
73 virtual qreal width()
const override;
77 virtual void draw(QPainter*)
const override;
78 virtual void layout()
override;
80 virtual void write(
XmlWriter& xml)
const override;
83 virtual bool isEditable()
const override {
return true; }
84 virtual void startEdit(
EditData&)
override;
85 virtual bool edit(
EditData&)
override;
86 virtual void endEdit(
EditData&)
override;
87 virtual void editDrag(
EditData&)
override;
88 virtual void endEditDrag(
EditData&)
override;
90 virtual bool acceptDrop(
EditData&)
const override;
94 virtual bool setProperty(
Pid propertyId,
const QVariant&)
override;
95 virtual QVariant propertyDefault(
Pid)
const override;
97 void undoChangeProperty(
Pid id,
const QVariant& v,
PropertyFlags ps)
override;
103 std::vector<QPointF> gripsPositions(
const EditData&)
const override;
105 virtual void setSelected(
bool f)
override;
Definition: bracketItem.h:25
Pid
Definition: property.h:62
virtual Shape shape() const override
Definition: bracket.h:75
virtual void undoChangeProperty(Pid id, const QVariant &, PropertyFlags ps)
Definition: scoreElement.cpp:291
qreal magx() const
Definition: bracket.h:65
int gripsCount() const override
Definition: bracket.h:100
int bracketSpan() const
Definition: bracketItem.h:40
Grip defaultGrip() const override
Definition: bracket.h:102
int firstStaff() const
Definition: bracket.h:58
one measure in a system
Definition: measure.h:65
virtual ElementType type() const override
Definition: bracket.h:50
BracketItem * _bi
Definition: bracket.h:30
QPainterPath path
Definition: bracket.h:37
Measure * measure() const
Definition: bracket.h:69
SymId
Definition: sym.h:30
qreal _magx
Definition: bracket.h:43
Base class of score layout elements.
Definition: element.h:158
virtual Bracket * clone() const override
Definition: bracket.h:49
int span() const
Definition: bracket.h:64
int column() const
Definition: bracketItem.h:47
SymId braceSymbol() const
Definition: bracket.h:62
int lastStaff() const
Definition: bracket.h:59
PropertyFlags
Definition: property.h:54
SymId _braceSymbol
Definition: bracket.h:38
Grip
Definition: element.h:43
Definition: aeolus.cpp:26
virtual bool isEditable() const override
Definition: bracket.h:83
Grip initialEditModeGrip() const override
Definition: bracket.h:101
int _lastStaff
Definition: bracket.h:35
qreal h2
Definition: bracket.h:32
System * system() const
Definition: bracket.h:67
void setMeasure(Measure *measure)
Definition: bracket.h:70
int _firstStaff
Definition: bracket.h:34
BracketType bracketType() const
Definition: bracket.h:55
Definition: element.h:111
BracketType
Definition: mscore.h:107
One row of measures for all instruments; a complete piece of the timeline.
Definition: system.h:79
ElementType
Definition: types.h:34
BracketType bracketType() const
Definition: bracketItem.h:41
int column() const
Definition: bracket.h:63
void setBracketItem(BracketItem *i)
Definition: bracket.h:52
BracketItem * bracketItem() const
Definition: bracket.h:53
Pid propertyId(const QStringRef &s)
Definition: property.cpp:347
Shape _shape
Definition: bracket.h:39
qreal ay1
Definition: bracket.h:31