13 #ifndef __PLUGIN_API_SCORE_H__ 14 #define __PLUGIN_API_SCORE_H__ 120 Q_INVOKABLE
void addText(
const QString&
type,
const QString& text);
182 QQmlListProperty<Part>
parts() {
return wrapContainerProperty<Part>(
this,
score()->
parts()); }
virtual int npages() const
Definition: score.h:976
bool hasLyrics()
Definition: score.h:102
Q_INVOKABLE QString metaTag(const QString &tag) const
Returns as a string the metatag named tag.
Definition: score.h:112
Definition: elements.h:631
Measure * lastMeasureMM()
int npages() const
Definition: score.h:144
Base class for most of object wrappers exposed to QML.
Definition: scoreelement.h:42
QQmlListProperty< Excerpt > excerpts()
Definition: score.h:183
void appendMeasures(int)
Definition: score.cpp:3723
Definition: selection.h:28
Definition: elements.h:565
Definition of Score class.
int nmeasures() const
Definition: score.cpp:3945
int lyricCount()
Definition: score.h:104
QString extractLyrics()
Definition: score.cpp:4025
Selection * selectionWrap(Ms::Selection *select)
Definition: selection.cpp:23
QString mscoreVersion()
Definition: score.h:179
int harmonyCount()
Definition: score.h:100
void setMetaTag(const QString &tag, const QString &val)
Definition: score.cpp:1967
const Ms::Score * score() const
Definition: score.h:96
int ntracks() const
Definition: score.h:146
QQmlListProperty< Part > parts()
Definition: score.h:182
int nmeasures() const
Definition: score.h:143
Ms::ScoreElement *const e
Definition: scoreelement.h:60
void endCmd(bool rollback=false)
End a GUI command by (if undo) ending a user-visble undo and (always) updating the redraw area...
Definition: cmd.cpp:247
void setName(const QString &)
Definition: score.cpp:4583
int keysig()
Definition: score.cpp:4104
Q_INVOKABLE void startCmd()
For "dock" type plugins: to be used before score modifications to make them undoable.
Definition: score.cpp:128
bool hasHarmonies()
Definition: score.cpp:3974
Q_INVOKABLE void createPlayEvents()
Create PlayEvents for all notes based on ornamentation.
Definition: score.h:176
int ntracks() const
Definition: score.h:638
Cursor can be used by plugins to manipulate the score.
Definition: cursor.h:43
MasterScore * masterScore() const
Definition: score.h:1039
Ownership
Definition: scoreelement.h:32
Ms::PluginAPI::Selection * selection()
Definition: score.h:107
Q_INVOKABLE void addText(const QString &type, const QString &text)
Adds a header text to the score.
Definition: score.cpp:48
Q_INVOKABLE void endCmd(bool rollback=false)
For "dock" type plugins: to be used after score modifications to make them undoable.
Definition: score.h:167
virtual QString title() const override
Definition: score.cpp:4596
Definition: aeolus.cpp:26
QString scoreName
Name of the score, without path leading to it and extension.
Definition: score.h:66
virtual QList< Excerpt * > & excerpts()
Definition: score.h:1412
Q_INVOKABLE void setMetaTag(const QString &tag, const QString &val)
Sets the metatag named tag to val.
Definition: score.h:114
QString title()
Definition: score.h:106
int lyricCount()
Definition: score.cpp:3990
int nstaves() const
Definition: score.h:637
int harmonyCount()
Definition: score.cpp:4008
int duration()
Definition: score.h:99
QString mscoreRevision()
Definition: score.h:180
Main class of the plugins framework. Named as MuseScore in QML.
Definition: qmlpluginapi.h:54
Q_INVOKABLE QString extractLyrics()
Definition: score.h:137
Ms::Score * score()
Definition: score.h:95
bool hasHarmonies()
Definition: score.h:101
int nstaves() const
Definition: score.h:145
int duration()
Definition: score.cpp:4126
QString lyricist()
Definition: score.h:105
QString mscoreVersion() const
Definition: score.h:1059
QList< Part * > & parts()
Definition: score.h:768
QString composer()
Definition: score.h:98
int keysig()
Definition: score.h:103
void setName(const QString &name)
Definition: score.h:134
Q_INVOKABLE Ms::PluginAPI::Cursor * newCursor()
Creates and returns a cursor to be used to navigate in the score.
Definition: score.cpp:31
QString name() const
Definition: score.h:133
Q_INVOKABLE void appendMeasures(int n)
Appends a number of measures to this score.
Definition: score.h:119
Q_INVOKABLE Ms::PluginAPI::Segment * firstSegment()
Definition: score.cpp:75
QString metaTag(const QString &tag) const
Definition: score.cpp:1956
void createPlayEvents(Chord *)
Definition: rendermidi.cpp:2351
Measure * firstMeasureMM()
bool hasLyrics()
Definition: score.cpp:3957