40 class AccidentalState;
90 void computeMinWidth(
Segment* s, qreal x,
bool isSystemHeader);
92 void readVoice(
XmlReader& e,
int staffIdx,
bool irregular);
100 virtual void setScore(
Score* s)
override;
107 void write(
XmlWriter&,
int,
bool writeSystemElements,
bool forceTimeSig)
const;
111 void checkMeasure(
int idx);
113 virtual void add(
Element*)
override;
114 virtual void remove(
Element*)
override;
116 virtual void spatiumChanged(qreal oldValue, qreal newValue)
override;
119 bool hasVoices(
int staffIdx)
const;
120 void setHasVoices(
int staffIdx,
bool v);
123 Spacer* vspacerDown(
int staffIdx)
const;
124 Spacer* vspacerUp(
int staffIdx)
const;
125 void setStaffVisible(
int staffIdx,
bool visible);
126 void setStaffStemless(
int staffIdx,
bool stemless);
127 bool corrupted(
int staffIdx)
const;
128 void setCorrupted(
int staffIdx,
bool val);
132 void createStaves(
int);
152 qreal userStretch()
const;
155 void stretchMeasure(qreal stretch);
158 void layoutMeasureNumber();
165 void insertStaff(
Staff*,
int staff);
166 void insertMStaff(
MStaff* staff,
int idx);
167 void removeMStaff(
MStaff* staff,
int idx);
169 virtual void moveTicks(
const Fraction& diff)
override;
171 void cmdRemoveStaves(
int s,
int e);
172 void cmdAddStaves(
int s,
int e,
bool createRest);
173 void removeStaves(
int s,
int e);
174 void insertStaves(
int s,
int e);
179 void sortStaves(QList<int>& dst);
181 virtual bool acceptDrop(
EditData&)
const override;
197 void connectTremolo();
199 qreal createEndBarLines(
bool);
200 void barLinesSetSpan(
Segment*);
201 void setEndBarLineType(
BarLineType val,
int track,
bool visible =
true, QColor color = QColor());
205 virtual void scanElements(
void* data,
void (*func)(
void*,
Element*),
bool all=
true)
override;
206 void createVoice(
int track);
207 void adjustToLen(
Fraction,
bool appendRestsIfNecessary =
true);
211 void exchangeVoice(
int voice1,
int voice2,
int staffIdx);
212 void checkMultiVoices(
int staffIdx);
213 bool hasVoice(
int track)
const;
214 bool isEmpty(
int staffIdx)
const;
215 bool isFullMeasureRest()
const;
216 bool isRepeatMeasure(
const Staff* staff)
const;
217 bool visible(
int staffIdx)
const;
218 bool stemless(
int staffIdx)
const;
219 bool isFinalMeasureOfSection()
const;
220 bool isAnacrusis()
const;
226 bool isOnlyRests(
int track)
const;
227 bool isOnlyDeletedRests(
int track)
const;
228 bool isOnlyDeletedRests(
int track,
const Fraction& stick,
const Fraction& etick)
const;
232 QRectF staffabbox(
int staffIdx)
const;
235 virtual bool setProperty(
Pid propertyId,
const QVariant&)
override;
236 virtual QVariant propertyDefault(
Pid)
const override;
241 const Measure* mmRest1()
const;
248 Element* nextElementStaff(
int staff);
249 Element* prevElementStaff(
int staff);
250 virtual QString accessibleInfo()
const override;
252 void addSystemHeader(
bool firstSystem);
253 void addSystemTrailer(
Measure* nm);
254 void removeSystemHeader();
255 void removeSystemTrailer();
257 const BarLine* endBarLine()
const;
259 bool endBarLineVisible()
const;
260 virtual void triggerLayout()
const override;
261 qreal basicStretch()
const;
262 qreal basicWidth()
const;
263 int layoutWeight(
int maxMMRestLength = 0)
const;
264 virtual void computeMinWidth();
267 void setStretchedWidth(qreal);
268 void layoutStaffLines();
Definition: segmentlist.h:26
Ms::Segment * first() const
Definition: measure.h:144
Helper class for reading beams, tuplets and spanners.
Definition: connector.h:96
Global staff data not directly related to drawing.
Definition: staff.h:62
AccidentalVal
Definition: mscore.h:147
Pid
Definition: property.h:62
Virtual base class for Measure, HBox and VBox.
Definition: measurebase.h:61
const SegmentList & segments() const
Definition: measure.h:150
Definition of MeasureBase class.
qreal _userStretch
Definition: measure.h:70
Per staff values of measure.
Definition: measure.cpp:90
int repeatCount() const
Definition: measure.h:184
Ms::Segment * last() const
Definition: measure.h:148
bool isIrregular() const
Definition: measure.h:141
Definition: measurenumber.h:24
one measure in a system
Definition: measure.h:65
MeasureNumberMode _noMode
Definition: measure.h:83
Segment * undoGetSegment(SegmentType st, const Fraction &f)
Definition: measure.h:194
Segment * first() const
Definition: segmentlist.h:42
MeasureNumberMode measureNumberMode() const
Definition: measure.h:134
std::pair< ElementType, ReducedFraction > findChordRest(const Segment *seg, int strack)
Definition: importmidi_clef.cpp:221
Base class of score layout elements.
Definition: element.h:158
Segment * first(SegmentType t) const
Definition: measure.h:145
int _repeatCount
end repeat marker und repeat count
Definition: measure.h:81
std::vector< MStaff * > _mstaves
Definition: measure.h:66
Segment * getSegment(SegmentType st, const Fraction &f)
Definition: measure.h:195
virtual bool isEditable() const override
Definition: measure.h:110
int size() const
Definition: measure.h:143
int playbackCount() const
Definition: measure.h:230
virtual void write(XmlWriter &) const
Definition: element.cpp:732
Segment * last() const
Definition: segmentlist.h:46
void setMMRest(Measure *m)
Definition: measure.h:242
void setPlaybackCount(int val)
Definition: measure.h:231
System * system() const
Definition: measure.h:118
bool breakMultiMeasureRest() const
Definition: measure.h:222
void setBreakMultiMeasureRest(bool val)
Definition: measure.h:223
void setMMRestCount(int n)
Definition: measure.h:244
void setRepeatCount(int val)
Definition: measure.h:185
The StaffLines class is the graphic representation of a staff, it draws the horizontal staff lines...
Definition: stafflines.h:23
Vertical spacer element to adjust the distance of staves.
Definition: spacer.h:33
Measure * mmRest() const
Definition: measure.h:240
SegmentType
Definition: types.h:333
void setTimesig(const Fraction &f)
Definition: measure.h:138
bool _breakMultiMeasureRest
Definition: measure.h:84
Measure * _mmRest
Definition: measure.h:68
virtual void write(XmlWriter &xml) const override
Definition: measure.h:106
Fraction _timesig
Definition: measure.h:72
void setMeasureNumberMode(MeasureNumberMode v)
Definition: measure.h:135
Segment * findSegment(SegmentType st, const Fraction &f) const
Definition: measure.h:193
Definition: aeolus.cpp:26
MeasureNumberMode
Definition: measure.h:51
int _mmRestCount
Definition: measure.h:74
bool isMMRest() const
Definition: measure.h:239
Definition: xmlwriter.h:26
Graphic representation of a chord.
Definition: chord.h:55
Definition: chordrest.h:48
Segment * firstEnabled() const
Definition: measure.h:146
Definition: element.h:111
int _playbackCount
Definition: measure.h:78
virtual Measure * clone() const override
Definition: measure.h:98
int mmRestCount() const
Definition: measure.h:243
SegmentList _segments
Definition: measure.h:67
One row of measures for all instruments; a complete piece of the timeline.
Definition: system.h:79
Graphic representation of a note.
Definition: note.h:212
Definition: fraction.h:46
void setUserStretch(qreal v)
Definition: measure.h:153
ElementType
Definition: types.h:34
int size() const
Definition: segmentlist.h:40
virtual ElementType type() const override
Definition: measure.h:99
Pid propertyId(const QStringRef &s)
Definition: property.cpp:347
bool hasMMRest() const
Definition: measure.h:238
SegmentList & segments()
Definition: measure.h:149
BarLineType
Definition: mscore.h:199
Fraction timesig() const
Definition: measure.h:137
void read(XmlReader &d)
Definition: measure.h:104