24 static const int MIN_BARLINE_FROMTO_DIST = 2;
25 static const int MIN_BARLINE_SPAN_FROMTO = -2;
28 static const int BARLINE_SPAN_1LINESTAFF_FROM = -4;
29 static const int BARLINE_SPAN_1LINESTAFF_TO = 4;
32 static const int BARLINE_SPAN_TICK1_FROM = -1;
33 static const int BARLINE_SPAN_TICK1_TO = -7;
34 static const int BARLINE_SPAN_TICK2_FROM = -2;
35 static const int BARLINE_SPAN_TICK2_TO = -6;
36 static const int BARLINE_SPAN_SHORT1_FROM = 2;
37 static const int BARLINE_SPAN_SHORT1_TO = -2;
38 static const int BARLINE_SPAN_SHORT2_FROM = 1;
39 static const int BARLINE_SPAN_SHORT2_TO = -1;
67 void drawDots(QPainter* painter, qreal x)
const;
68 void drawTips(QPainter* painter,
bool reversed, qreal x)
const;
70 bool isBottom()
const;
71 void drawEditMode(QPainter*,
EditData&);
81 virtual void write(
XmlWriter& xml)
const override;
83 virtual void draw(QPainter*)
const override;
84 virtual QPointF canvasPos()
const override;
85 virtual QPointF pagePos()
const override;
86 virtual void layout()
override;
88 virtual void scanElements(
void* data,
void (*func)(
void*,
Element*),
bool all=
true)
override;
89 virtual void setTrack(
int t)
override;
90 virtual void setScore(
Score* s)
override;
91 virtual void add(
Element*)
override;
92 virtual void remove(
Element*)
override;
93 virtual bool acceptDrop(
EditData&)
const override;
95 virtual bool isEditable()
const override {
return true; }
107 virtual void startEdit(
EditData& ed)
override;
108 virtual void endEdit(
EditData&)
override;
109 virtual void editDrag(
EditData&)
override;
110 virtual void endEditDrag(
EditData&)
override;
111 virtual Shape shape()
const override;
119 QString barLineTypeName()
const;
121 void setBarLineType(
const QString& s);
126 virtual int subtype()
const override {
return int(_barLineType); }
127 virtual QString
subtypeName()
const override {
return qApp->translate(
"barline", barLineTypeName().toUtf8()); }
130 virtual bool setProperty(
Pid propertyId,
const QVariant&)
override;
131 virtual QVariant propertyDefault(
Pid propertyId)
const override;
132 virtual Pid propertyId(
const QStringRef& xmlName)
const override;
137 QRectF layoutRect()
const;
139 virtual Element* nextSegmentElement()
override;
140 virtual Element* prevSegmentElement()
override;
142 virtual QString accessibleInfo()
const override;
143 virtual QString accessibleExtraInfo()
const override;
149 std::vector<QPointF> gripsPositions(
const EditData&)
const override;
const char * userName
Definition: barline.h:47
void setSpanFrom(int val)
Definition: barline.h:101
ElementList * el()
Definition: barline.h:113
Pid
Definition: property.h:62
virtual void undoChangeProperty(Pid id, const QVariant &, PropertyFlags ps)
Definition: scoreElement.cpp:291
virtual BarLine * clone() const override
Definition: barline.h:79
int spanTo() const
Definition: barline.h:105
const ElementList * el() const
Definition: barline.h:114
one measure in a system
Definition: measure.h:65
ElementList _el
fermata or other articulations
Definition: barline.h:64
Segment * segment() const
Definition: barline.h:97
Grip initialEditModeGrip() const override
Definition: barline.h:147
Base class of score layout elements.
Definition: element.h:158
const char * name
Definition: barline.h:48
Definition: element.h:517
qreal y1
Definition: barline.h:62
int spanStaff() const
Definition: barline.h:103
Measure * measure() const
Definition: barline.h:98
PropertyFlags
Definition: property.h:54
int spanFrom() const
Definition: barline.h:104
virtual QString subtypeName() const override
Definition: barline.h:127
Grip defaultGrip() const override
Definition: barline.h:148
Grip
Definition: element.h:43
void setSpanTo(int val)
Definition: barline.h:102
virtual int subtype() const override
Definition: barline.h:126
Definition: aeolus.cpp:26
void setBarLineType(BarLineType i)
Definition: barline.h:122
BarLineType type
Definition: barline.h:46
void setSpanStaff(int val)
Definition: barline.h:100
int gripsCount() const override
Definition: barline.h:146
EditBehavior normalModeEditBehavior() const override
Definition: barline.h:145
Definition: element.h:111
virtual ElementType type() const override
Definition: barline.h:80
ElementType
Definition: types.h:34
qreal y2
Definition: barline.h:63
Pid propertyId(const QStringRef &s)
Definition: property.cpp:347
EditBehavior
Definition: element.h:173
static const std::vector< BarLineTableItem > barLineTable
Definition: barline.h:151
BarLineType
Definition: mscore.h:199
BarLineType barLineType() const
Definition: barline.h:123
virtual bool isEditable() const override
Definition: barline.h:95