121 int filter()
const {
return int(_filter); }
137 Q_INVOKABLE
bool next();
139 Q_INVOKABLE
bool prev();
142 Q_INVOKABLE
void addNote(
int pitch,
bool addToChord =
false);
Definition: elements.h:631
Cursor(Ms::Score *s=nullptr)
Definition: cursor.cpp:36
int keySignature
Key signature of current staff at tick pos.
Definition: cursor.h:70
Definition: elements.h:565
int qmlKeySignature()
Definition: cursor.cpp:511
SegmentType _filter
Definition: cursor.h:96
Rewind to the end of a selection.
Definition: cursor.h:85
void setScore(Ms::Score *s)
Definition: cursor.cpp:55
Base class of score layout elements.
Definition: element.h:158
Definition: elements.h:75
Q_INVOKABLE void rewind(RewindMode mode)
Rewind cursor to a certain position.
Definition: cursor.cpp:85
Rewind to the start of a selection.
Definition: cursor.h:84
void prevInTrack()
Definition: cursor.cpp:486
int _track
Definition: cursor.h:91
Q_INVOKABLE void addNote(int pitch, bool addToChord=false)
Adds a note to the current cursor position.
Definition: cursor.cpp:322
void setVoice(int v)
Definition: cursor.cpp:452
Measure * measure() const
Cursor can be used by plugins to manipulate the score.
Definition: cursor.h:43
void setTrack(int v)
Definition: cursor.cpp:422
SegmentType
Definition: types.h:333
int track() const
Definition: cursor.h:112
RewindMode
Definition: cursor.h:82
int filter() const
Definition: cursor.h:121
void setStaffIdx(int v)
Definition: cursor.cpp:437
Definition: aeolus.cpp:26
Q_INVOKABLE bool prev()
Move the cursor to the previous segment.
Definition: cursor.cpp:129
Element * element() const
void setFilter(int f)
Definition: cursor.h:122
Rewind to the start of a score.
Definition: cursor.h:83
void nextInTrack()
Definition: cursor.cpp:499
Q_INVOKABLE void add(Ms::PluginAPI::Element *)
Adds the given element to a score at this cursor's position.
Definition: cursor.cpp:185
Ms::Segment * _segment
Definition: cursor.h:95
Main class of the plugins framework. Named as MuseScore in QML.
Definition: qmlpluginapi.h:54
Ms::Score * _score
Definition: cursor.h:90
Q_INVOKABLE bool nextMeasure()
Move the cursor to the first segment of the next measure.
Definition: cursor.cpp:165
Q_INVOKABLE bool next()
Move the cursor to the next segment.
Definition: cursor.cpp:146
Segment * segment() const
Ms::Element * currentElement() const
Definition: cursor.cpp:383
Q_INVOKABLE void setDuration(int z, int n)
Set duration of the notes added by the cursor.
Definition: cursor.cpp:344