21 struct ChordDescription;
39 TextSegment(
const QFont& f, qreal _x, qreal _y) : font(f), x(_x), y(_y), select(false) {}
40 TextSegment(
const QString&,
const QFont&, qreal x, qreal y);
41 void set(
const QString&,
const QFont&, qreal
x, qreal
y);
42 void setText(
const QString& t) { text = t; }
83 bool showSpell =
false;
98 void determineRootBaseSpelling();
99 virtual void draw(QPainter*)
const override;
100 virtual void drawEditMode(QPainter* p,
EditData& ed)
override;
101 void render(
const QString&, qreal&, qreal&);
103 virtual Sid getPropertyStyle(
Pid)
const override;
113 int id()
const {
return _id; }
133 virtual void layout()
override;
134 virtual void layout1()
override;
137 virtual void startEdit(
EditData&)
override;
138 virtual bool edit(
EditData&)
override;
139 virtual void endEdit(
EditData&)
override;
152 void addDegree(
const HDegree& d);
153 int numberOfDegrees()
const;
156 const QList<HDegree>& degreeList()
const;
161 virtual void write(
XmlWriter& xml)
const override;
163 QString harmonyName()
const;
166 const ChordDescription* parseHarmony(
const QString& s,
int* root,
int* base,
bool syntaxOnly =
false);
168 const QString& extensionName()
const;
170 QString xmlKind()
const;
171 QString musicXmlText()
const;
172 QString xmlSymbols()
const;
173 QString xmlParens()
const;
174 QStringList xmlDegrees()
const;
176 void resolveDegreeList();
178 virtual qreal baseLine()
const override;
180 const ChordDescription* fromXml(
const QString&,
const QString&,
const QString&,
const QString&,
const QList<HDegree>&);
183 virtual void spatiumChanged(qreal oldValue, qreal newValue)
override;
184 virtual void localSpatiumChanged(qreal oldValue, qreal newValue)
override;
185 void setHarmony(
const QString& s);
186 void calculateBoundingRect();
188 virtual QString userName()
const override;
189 virtual QString accessibleInfo()
const override;
190 virtual QString screenReaderInfo()
const override;
192 virtual bool acceptDrop(
EditData&)
const override;
196 virtual bool setProperty(
Pid propertyId,
const QVariant& v)
override;
197 virtual QVariant propertyDefault(
Pid id)
const override;
Definition: chordlist.h:174
QString _function
Definition: harmony.h:79
HarmonyType harmonyType() const
Definition: harmony.h:158
int _id
Definition: harmony.h:76
Pid
Definition: property.h:62
TextSegment()
Definition: harmony.h:38
qreal width() const
Definition: harmony.cpp:1275
int id() const
Definition: harmony.h:113
QFont font
Definition: harmony.h:29
Definition: chordlist.h:89
virtual bool isEditable() const override
Definition: harmony.h:136
void setRootTpc(int val)
Definition: harmony.h:147
int _baseTpc
Definition: harmony.h:74
bool _rightParen
Definition: harmony.h:90
Base class of score layout elements.
Definition: element.h:158
Definition: chordlist.h:125
void setText(const QString &t)
Definition: harmony.h:42
NoteCaseType _rootCase
Definition: harmony.h:95
QList< HDegree > _degreeList
Definition: harmony.h:86
int baseTpc() const
Definition: harmony.h:144
TextSegment(const QFont &f, qreal _x, qreal _y)
Definition: harmony.h:39
NoteCaseType
Definition: pitchspelling.h:68
virtual Harmony * clone() const override
Definition: harmony.h:109
int rootTpc() const
Definition: harmony.h:146
void setBaseTpc(int val)
Definition: harmony.h:145
void setId(int d)
Definition: harmony.h:112
bool select
Definition: harmony.h:32
void setBaseCase(NoteCaseType c)
Definition: harmony.h:115
HarmonyType
Definition: harmony.h:66
NoteSpellingType
Definition: pitchspelling.h:67
void setTextName(const QString &s)
Definition: harmony.h:148
bool rightParen() const
Definition: harmony.h:119
QString text
Definition: harmony.h:30
QList< QFont > fontList
Definition: harmony.h:87
QRectF _tbbox
Definition: harmony.h:92
QRectF boundingRect() const
Definition: harmony.cpp:1296
QString _textName
Definition: harmony.h:81
Definition: textbase.h:217
Definition: aeolus.cpp:26
Sid
Definition: style.h:33
void setRootCase(NoteCaseType c)
Definition: harmony.h:116
void setLeftParen(bool leftParen)
Definition: harmony.h:120
void setFunction(const QString &s)
Definition: harmony.h:149
QString hUserName() const
Definition: harmony.h:142
QList< TextSegment * > textList
Definition: harmony.h:88
NoteSpellingType _rootSpelling
Definition: harmony.h:94
Definition: chordlist.h:30
Definition: element.h:111
int _rootTpc
Definition: harmony.h:73
QString hFunction() const
Definition: harmony.h:141
void setRightParen(bool rightParen)
Definition: harmony.h:121
virtual ElementType type() const override
Definition: harmony.h:110
qreal y
Definition: harmony.h:31
int tpc(int idx, int pitch, int opt)
Definition: pitchspelling.cpp:539
ParsedChord * _parsedForm
Definition: harmony.h:82
QRectF tightBoundingRect() const
Definition: harmony.cpp:1306
ElementType
Definition: types.h:34
bool leftParen() const
Definition: harmony.h:118
QString hTextName() const
Definition: harmony.h:143
qreal x
Definition: harmony.h:31
HarmonyType _harmonyType
Definition: harmony.h:84
Pid propertyId(const QStringRef &s)
Definition: property.cpp:347
NoteCaseType _rootRenderCase
Definition: harmony.h:96
QString _userName
Definition: harmony.h:80