MuseScore
3.4
Music composition and notation
|
#include <pianoview.h>
Public Slots | |
void | moveLocator (int) |
void | updateNotes () |
void | setXZoom (int) |
void | setTuplet (int) |
void | setSubdiv (int) |
void | setBarPattern (int) |
Signals | |
void | xZoomChanged (qreal) |
void | tupletChanged (int) |
void | subdivChanged (int) |
void | barPatternChanged (int) |
void | noteHeightChanged (int) |
void | pitchChanged (int) |
void | trackingPosChanged (const Pos &) |
void | selectionChanged () |
Public Member Functions | |
PianoView () | |
~PianoView () | |
Staff * | staff () |
void | setStaff (Staff *, Pos *locator) |
void | ensureVisible (int tick) |
int | noteHeight () |
qreal | xZoom () |
int | tuplet () |
int | subdiv () |
int | barPattern () |
QList< QGraphicsItem * > | items () |
int | pixelXToTick (int pixX) |
int | tickToPixelX (int tick) |
int | pixelYToPitch (int pixY) |
PianoItem * | pickNote (int tick, int pitch) |
QList< PianoItem * > | getSelectedItems () |
QList< PianoItem * > | getItems () |
bool | playEventsView () |
Static Public Attributes | |
static const BarPattern | barPatterns [] |
Protected Member Functions | |
virtual void | wheelEvent (QWheelEvent *event) |
virtual void | mousePressEvent (QMouseEvent *event) |
virtual void | mouseReleaseEvent (QMouseEvent *event) |
virtual void | mouseMoveEvent (QMouseEvent *event) |
virtual void | leaveEvent (QEvent *) |
virtual void | contextMenuEvent (QContextMenuEvent *event) |
Private Member Functions | |
virtual void | drawBackground (QPainter *painter, const QRectF &rect) |
void | addChord (Chord *chord, int voice) |
void | updateBoundingSize () |
void | clearNoteData () |
void | selectNotes (int startTick, int endTick, int lowPitch, int highPitch, NoteSelectType selType) |
void | showPopupMenu (const QPoint &pos) |
bool | cutChordRest (ChordRest *e, int track, int cutTick, ChordRest *&cr0, ChordRest *&cr1) |
QAction * | getAction (const char *id) |
Private Attributes | |
Staff * | _staff |
Chord * | chord |
Pos | trackingPos |
Pos * | _locator |
int | ticks |
TType | _timeType |
int | _noteHeight |
qreal | _xZoom |
int | _tuplet |
int | _subdiv |
int | _barPattern |
bool | _playEventsView |
bool | mouseDown |
bool | dragStarted |
QPointF | mouseDownPos |
QPointF | lastMousePos |
DragStyle | dragStyle |
int | lastDragPitch |
bool | inProgressUndoEvent |
QList< PianoItem * > | noteList |
Ms::PianoView::PianoView | ( | ) |
Ms::PianoView::~PianoView | ( | ) |
|
private |
|
inline |
|
signal |
|
private |
|
protectedvirtual |
|
private |
|
privatevirtual |
void Ms::PianoView::ensureVisible | ( | int | tick | ) |
|
private |
QList< PianoItem * > Ms::PianoView::getItems | ( | ) |
QList< PianoItem * > Ms::PianoView::getSelectedItems | ( | ) |
|
inline |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
slot |
|
inline |
|
signal |
PianoItem * Ms::PianoView::pickNote | ( | int | tick, |
int | pitch | ||
) |
|
signal |
int Ms::PianoView::pixelXToTick | ( | int | pixX | ) |
|
inline |
|
inline |
|
signal |
|
private |
|
slot |
|
slot |
|
slot |
|
slot |
|
private |
|
inline |
|
inline |
|
signal |
int Ms::PianoView::tickToPixelX | ( | int | tick | ) |
|
signal |
|
inline |
|
signal |
|
private |
|
slot |
|
protectedvirtual |
|
inline |
|
signal |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
static |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |