13 #ifndef __ACCIDENTAL_H__ 14 #define __ACCIDENTAL_H__ 68 bool _small {
false };
77 QString subtypeUserName()
const;
78 void setSubtype(
const QString& s);
84 virtual int subtype()
const override {
return (
int)_accidentalType; }
85 virtual QString
subtypeName()
const override {
return QString(subtype2name(_accidentalType)); }
87 virtual bool acceptDrop(
EditData&)
const override;
89 virtual void layout()
override;
90 virtual void draw(QPainter*)
const override;
91 virtual bool isEditable()
const override {
return true; }
95 Note*
note()
const {
return (parent() && parent()->isNote()) ? toNote(parent()) : 0; }
102 bool small()
const {
return _small; }
105 void undoSetSmall(
bool val);
108 virtual void write(
XmlWriter& xml)
const override;
111 virtual bool setProperty(
Pid propertyId,
const QVariant&)
override;
112 virtual QVariant propertyDefault(
Pid propertyId)
const override;
113 virtual Pid propertyId(
const QStringRef& xmlName)
const override;
114 virtual QString propertyUserValue(
Pid)
const override;
123 QString accessibleInfo()
const override;
SymId sym
Definition: accidental.h:54
AccidentalVal
Definition: mscore.h:147
Pid
Definition: property.h:62
AccidentalRole
Definition: accidental.h:34
virtual QString subtypeName() const override
Definition: accidental.h:85
SymElement(SymId _sym, qreal _x)
Definition: accidental.h:56
AccidentalRole role() const
Definition: accidental.h:82
void setAccidentalType(AccidentalType t)
Definition: accidental.h:79
AccidentalType
Definition: types.h:152
SymId
Definition: sym.h:30
Base class of score layout elements.
Definition: element.h:158
virtual ElementType type() const override
Definition: accidental.h:75
Definition: accidental.h:65
void setBracket(AccidentalBracket val)
Definition: accidental.h:98
AccidentalBracket
Definition: accidental.h:43
Note * note() const
Definition: accidental.h:95
AccidentalBracket bracket() const
Definition: accidental.h:97
static bool isMicrotonal(AccidentalType t)
Definition: accidental.h:121
bool small() const
Definition: accidental.h:102
void setRole(AccidentalRole r)
Definition: accidental.h:100
virtual bool isEditable() const override
Definition: accidental.h:91
virtual Accidental * clone() const override
Definition: accidental.h:74
Definition: aeolus.cpp:26
Definition: accidental.h:53
void setSmall(bool val)
Definition: accidental.h:103
AccidentalVal sym2accidentalVal(SymId id)
Definition: accidental.cpp:137
Definition: element.h:111
virtual int subtype() const override
Definition: accidental.h:84
Graphic representation of a note.
Definition: note.h:212
ElementType
Definition: types.h:34
AccidentalType accidentalType() const
Definition: accidental.h:81
Pid propertyId(const QStringRef &s)
Definition: property.cpp:347
QList< SymElement > el
Definition: accidental.h:66
virtual void startEdit(EditData &) override
Definition: accidental.h:92
qreal x
Definition: accidental.h:55