13 #ifndef __MEASUREBASE_H__ 14 #define __MEASUREBASE_H__ 43 return static_cast<Repeat>(
static_cast<int>(t1) | static_cast<int>(t2));
46 return static_cast<int>(t1) & static_cast<int>(t2);
73 void cleanupLayoutBreaks(
bool undo);
83 virtual void setScore(
Score* s)
override;
96 virtual void write(
XmlWriter&)
const override = 0;
97 virtual void write(
XmlWriter&,
int,
bool,
bool)
const = 0;
99 virtual void layout();
101 virtual void scanElements(
void* data,
void (*func)(
void*,
Element*),
bool all=
true);
117 virtual void add(
Element*)
override;
118 virtual void remove(
Element*)
override;
119 virtual void writeProperties(
XmlWriter&)
const override;
120 virtual bool readProperties(
XmlReader&)
override;
130 void triggerLayout()
const override;
134 virtual QVariant getProperty(
Pid)
const override;
135 virtual bool setProperty(
Pid,
const QVariant&)
override;
136 virtual QVariant propertyDefault(
Pid)
const override;
138 void clearElements();
141 int no()
const {
return _no; }
176 int measureIndex()
const;
symbols for line break, page break etc.
Definition: layoutbreak.h:27
Pid
Definition: property.h:62
Virtual base class for Measure, HBox and VBox.
Definition: measurebase.h:61
virtual void moveTicks(const Fraction &diff)
Definition: measurebase.h:115
bool repeatEnd() const
Definition: measurebase.h:146
ElementList & el()
Definition: measurebase.h:102
one measure in a system
Definition: measure.h:65
constexpr ArticulationShowIn operator|(ArticulationShowIn a1, ArticulationShowIn a2)
Definition: articulation.h:45
void setTicks(const Fraction &f)
Definition: measurebase.h:126
void setNoOffset(int n)
Definition: measurebase.h:144
Base class of score layout elements.
Definition: element.h:158
bool hasCourtesyKeySig() const
Definition: measurebase.h:170
Definition: layoutbreak.h:32
Definition: element.h:517
void setRepeatEnd(bool v)
Definition: measurebase.h:147
void setIrregular(bool v)
Definition: measurebase.h:156
bool repeatStart() const
Definition: measurebase.h:149
bool repeatJump() const
Definition: measurebase.h:152
MeasureBase * next() const
Definition: measurebase.h:85
void undoSetPageBreak(bool v)
Definition: measurebase.h:111
constexpr bool operator &(ArticulationShowIn a1, ArticulationShowIn a2)
Definition: articulation.h:48
MeasureBase * prev() const
Definition: measurebase.h:88
void setRepeatStart(bool v)
Definition: measurebase.h:150
bool irregular() const
Definition: measurebase.h:155
Type
Definition: layoutbreak.h:30
ElementList _el
Measure(/tick) relative -elements: with defined start time but outside the staff. ...
Definition: measurebase.h:65
bool sectionBreak() const
Definition: measurebase.h:164
Fraction endTick() const
Definition: measurebase.h:128
void setSystem(System *s)
Definition: measurebase.h:105
void setPageBreak(bool v)
Definition: measurebase.h:162
void setNo(int n)
Definition: measurebase.h:142
bool pageBreak() const
Definition: measurebase.h:161
System * system() const
Definition: measurebase.h:104
int no() const
Definition: measurebase.h:141
void setRepeatJump(bool v)
Definition: measurebase.h:153
Definition: aeolus.cpp:26
int noOffset() const
Definition: measurebase.h:143
void setNext(MeasureBase *e)
Definition: measurebase.h:87
bool lineBreak() const
Definition: measurebase.h:158
Fraction ticks() const
Definition: measurebase.h:125
Definition: layoutbreak.h:32
void setHasCourtesyKeySig(int v)
Definition: measurebase.h:171
void setPrev(MeasureBase *e)
Definition: measurebase.h:89
Definition: layoutbreak.h:32
void setLineBreak(bool v)
Definition: measurebase.h:159
bool noBreak() const
Definition: measurebase.h:167
void undoSetNoBreak(bool v)
Definition: measurebase.h:113
virtual void computeMinWidth()
Definition: measurebase.h:173
void undoSetLineBreak(bool v)
Definition: measurebase.h:110
const ElementList & el() const
Definition: measurebase.h:103
void setSectionBreak(bool v)
Definition: measurebase.h:165
void setTick(const Fraction &f)
Definition: measurebase.h:123
Repeat
Definition: measurebase.h:34
One row of measures for all instruments; a complete piece of the timeline.
Definition: system.h:79
Fraction tick() const
Definition: measurebase.h:122
Definition: fraction.h:46
void undoSetSectionBreak(bool v)
Definition: measurebase.h:112
ElementType
Definition: types.h:34
void setNoBreak(bool v)
Definition: measurebase.h:168
Definition: layoutbreak.h:32