13 #ifndef __TEXTLINEBASE_H__ 14 #define __TEXTLINEBASE_H__ 22 enum class Align : char;
38 bool twoLines {
false };
46 virtual void draw(QPainter*)
const override;
48 virtual void layout()
override;
49 virtual void setSelected(
bool f);
51 virtual void spatiumChanged(qreal , qreal )
override;
53 virtual Element* propertyDelegate(
Pid)
override;
55 virtual Shape shape()
const override;
71 enum class LineType : char { CRESCENDO, DECRESCENDO };
87 M_PROPERTY(PlaceText, continueTextPlace, setContinueTextPlace)
89 M_PROPERTY(Align, continueTextAlign, setContinueTextAlign)
90 M_PROPERTY(QString, continueFontFamily, setContinueFontFamily)
92 M_PROPERTY(FontStyle, continueFontStyle, setContinueFontStyle)
93 M_PROPERTY(QPointF, continueTextOffset, setContinueTextOffset)
109 virtual
void write(
XmlWriter& xml) const override;
112 virtual
void writeProperties(
XmlWriter& xml) const override;
113 virtual
bool readProperties(
XmlReader& node) override;
115 virtual
void spatiumChanged(qreal , qreal ) override;
117 virtual QVariant getProperty(
Pid id) const override;
118 virtual
bool setProperty(
Pid propertyId, const QVariant&) override;
119 virtual
Pid propertyId(const QStringRef& xmlName) const override;
123 Q_DECLARE_METATYPE(
Ms::HookType);
Pid
Definition: property.h:62
QFlags< ElementFlag > ElementFlags
Definition: element.h:101
Virtual base class for slurs, ties, lines etc.
Definition: spanner.h:136
Base class of score layout elements.
Definition: element.h:158
FontStyle
Definition: types.h:468
qreal lineLength
Definition: textlinebase.h:37
Virtual base class for segmented lines segments (OttavaSegment, HairpinSegment, TrillSegment...)
Definition: line.h:34
LineType
Definition: textlinebase.h:71
TextLineBase * textLineBase() const
Definition: textlinebase.h:45
#define M_PROPERTY2(a, b, c, d)
Definition: property.h:43
virtual base class for Hairpin, Trill and TextLine
Definition: line.h:70
Definition: textlinebase.h:31
#define M_PROPERTY(a, b, c)
Definition: property.h:36
ElementFlag
Definition: element.h:66
Definition: aeolus.cpp:26
HookType
Definition: textlinebase.h:62
Definition: textlinebase.h:70
PlaceText
Definition: mscore.h:115
Align
Definition: types.h:439
Pid propertyId(const QStringRef &s)
Definition: property.cpp:347
int npoints
Definition: textlinebase.h:36
Text * _text
Definition: textlinebase.h:33
Text * _endText
Definition: textlinebase.h:34