59 void setbbox(
const QRectF& r) { _bbox = r; }
60 qreal
y()
const {
return _bbox.y() +
_yOff; }
83 std::vector<MeasureBase*>
ml;
88 qreal _leftMargin { 0.0 };
89 mutable bool fixedDownDistance {
false };
92 int firstVisibleSysStaff()
const;
93 int lastVisibleSysStaff()
const;
95 int getBracketsColumnsCount();
96 void setBracketsXPosition(
const qreal xOffset);
105 virtual void add(
Element*)
override;
106 virtual void remove(
Element*)
override;
108 virtual void write(
XmlWriter&)
const override;
111 virtual void scanElements(
void* data,
void (*func)(
void*,
Element*),
bool all=
true)
override;
115 void removeLastMeasure();
119 void layoutSystem(qreal);
121 void addBrackets(
Measure* measure);
126 QRectF
bboxStaff(
int staff)
const {
return _staves[staff]->bbox(); }
127 QList<SysStaff*>*
staves() {
return &_staves; }
128 const QList<SysStaff*>*
staves()
const {
return &_staves; }
129 qreal staffYpage(
int staffIdx)
const;
130 qreal staffCanvasYpage(
int staffIdx)
const;
133 bool pageBreak()
const;
136 void removeStaff(
int);
137 void adjustStavesNumber(
int);
139 int y2staff(qreal
y)
const;
140 void setInstrumentNames(
bool longName,
Fraction tick = {0,1});
144 const std::vector<MeasureBase*>&
measures()
const {
return ml; }
156 const QList<Bracket*>&
brackets()
const {
return _brackets; }
164 virtual Element* nextSegmentElement()
override;
165 virtual Element* prevSegmentElement()
override;
167 qreal minDistance(
System*)
const;
168 qreal topDistance(
int staffIdx,
const SkylineLine&)
const;
169 qreal bottomDistance(
int staffIdx,
const SkylineLine&)
const;
170 qreal minTop()
const;
171 qreal minBottom()
const;
172 qreal spacerDistance(
bool up)
const;
174 void moveBracket(
int staffIdx,
int srcCol,
int dstCol);
176 int firstVisibleStaff()
const;
177 int nextVisibleStaff(
int)
const;
SysStaff()
Definition: system.h:69
QRectF _bbox
Definition: system.h:48
virtual System * clone() const override
Definition: system.h:102
virtual base class for frames "boxes"
Definition: box.h:33
Definition: bracketItem.h:25
Virtual base class for Measure, HBox and VBox.
Definition: measurebase.h:61
QList< SpannerSegment * > _spannerSegments
Definition: system.h:86
qreal distance() const
Definition: system.h:178
QRectF bboxStaff(int staff) const
Definition: system.h:126
qreal _yOff
Definition: system.h:50
one measure in a system
Definition: measure.h:65
virtual ElementType type() const override
Definition: system.h:103
const QList< Bracket * > & brackets() const
Definition: system.h:156
const QList< SpannerSegment * > & spannerSegments() const
Definition: system.h:159
Base class of score layout elements.
Definition: element.h:158
const QRectF & bbox() const
Definition: system.h:57
bool _show
Definition: system.h:51
const Skyline & skyline() const
Definition: system.h:66
void setYOff(qreal offset)
Definition: system.h:61
One staff in a System.
Definition: system.h:47
void setDistance(qreal d)
Definition: system.h:179
Page * page() const
Definition: system.h:117
void setbbox(const QRectF &r)
Definition: system.h:59
SystemDivider * systemDividerLeft() const
Definition: system.h:161
QList< InstrumentName * > instrumentNames
Definition: system.h:55
QList< System * >::const_iterator ciSystem
Definition: system.h:183
Skyline _skyline
Definition: system.h:49
std::vector< MeasureBase * > ml
Definition: system.h:83
void setShow(bool v)
Definition: system.h:64
QList< SysStaff * > * staves()
Definition: system.h:127
qreal y() const
Definition: system.h:60
SystemDivider * systemDividerRight() const
Definition: system.h:162
SysStaff * staff(int staffIdx) const
Definition: system.h:131
Definition: aeolus.cpp:26
const std::vector< MeasureBase * > & measures() const
Definition: system.h:144
qreal _distance
Definition: system.h:90
qreal leftMargin() const
Definition: system.h:153
bool show() const
Definition: system.h:63
const QList< SysStaff * > * staves() const
Definition: system.h:128
Definition: systemdivider.h:25
QList< System * >::iterator iSystem
Definition: system.h:182
One row of measures for all instruments; a complete piece of the timeline.
Definition: system.h:79
bool hasFixedDownDistance() const
Definition: system.h:175
Skyline & skyline()
Definition: system.h:67
Definition: fraction.h:46
QRectF & bbox()
Definition: system.h:58
ElementType
Definition: types.h:34
QList< SpannerSegment * > & spannerSegments()
Definition: system.h:158
QList< Bracket * > _brackets
Definition: system.h:85
QList< SysStaff * > _staves
Definition: system.h:84
~SysStaff()
Definition: system.cpp:54
MeasureBase * measure(int idx)
Definition: system.h:146