13 #ifndef __PLUGIN_API_SELECTION_H__ 14 #define __PLUGIN_API_SELECTION_H__ 73 bool checkSelectionIsNotLocked() const;
82 {
return wrapContainerProperty<Element>(
this, _select->elements()); }
84 bool isRange()
const {
return _select->isRange(); }
88 int startStaff()
const {
return _select->staffStart(); }
89 int endStaff()
const {
return _select->staffEnd(); }
95 Q_INVOKABLE
bool clear();
Ms::PluginAPI::Segment endSegment
End segment of selection, excluded.
Definition: selection.h:53
Definition: selection.h:28
Definition: elements.h:709
int startStaff
First staff of selection, included.
Definition: selection.h:60
Definition: elements.h:85
Q_INVOKABLE bool selectRange(int startTick, int endTick, int startStaff, int endStaff)
Selects a range in a score.
Definition: selection.cpp:104
bool isRange
Whether this selection covers a range of a score, as opposed to a list of distinct elements...
Definition: selection.h:39
Q_INVOKABLE bool clear()
Clears the selection.
Definition: selection.cpp:161
QQmlListProperty< Ms::PluginAPI::Element > elements
Current GUI selections for the score.
Definition: selection.h:32
Definition: cursor.cpp:30
Main class of the plugins framework. Named as MuseScore in QML.
Definition: qmlpluginapi.h:62
int endStaff
End staff of selection, included.
Definition: selection.h:67
Q_INVOKABLE bool select(Ms::PluginAPI::Element *e, bool add=false)
Selects the given element.
Definition: selection.cpp:62
Q_INVOKABLE bool deselect(Ms::PluginAPI::Element *e)
Deselects the given element.
Definition: selection.cpp:140
Ms::PluginAPI::Segment startSegment
Start segment of selection, included.
Definition: selection.h:46