20 #ifndef __PIANOLEVELS_H__ 21 #define __PIANOLEVELS_H__ 92 void adjustLevelLerp(
int tick0,
int value0,
int tick1,
int value1,
bool selectedOnly =
true);
127 #endif // __PIANOLEVELS_H__ void setScore(Score *, Pos *locator)
Definition: pianolevels.cpp:73
int tuplet() const
Definition: pianolevels.h:119
int _tuplet
Definition: pianolevels.h:56
Pos * _locator
Definition: pianolevels.h:54
void locatorMoved(int idx, const Pos &)
int levelLen
Definition: pianolevels.h:60
void posChanged(const Pos &)
~PianoLevels()
Definition: pianolevels.cpp:64
Global staff data not directly related to drawing.
Definition: staff.h:62
Definition: noteevent.h:25
QList< Note * > noteList
Definition: pianolevels.h:73
void adjustLevel(Note *note, NoteEvent *noteEvt, int value)
Definition: pianolevels.cpp:372
Note * singleNoteDrag
Definition: pianolevels.h:68
Staff * staff()
Definition: pianolevels.h:116
QPointF lastMousePos
Definition: pianolevels.h:65
virtual void paintEvent(QPaintEvent *)
Definition: pianolevels.cpp:115
void updateNotes()
Definition: pianolevels.cpp:611
int vMargin
Definition: pianolevels.h:59
int dragging
Definition: pianolevels.h:66
void setSubdiv(int)
Definition: pianolevels.cpp:662
QPointF mouseDownPos
Definition: pianolevels.h:64
int valToPixelY(int value)
Definition: pianolevels.cpp:300
int pickRadius
Definition: pianolevels.h:61
void setXpos(int)
Definition: pianolevels.cpp:86
virtual void mouseReleaseEvent(QMouseEvent *event)
Definition: pianolevels.cpp:459
int pixelYToVal(int value)
Definition: pianolevels.cpp:314
Pos _cursor
Definition: pianolevels.h:53
Definition: pianolevels.h:47
int _levelsIndex
Definition: pianolevels.h:58
DragStyle
Definition: pianolevels.h:46
void adjustLevelLerp(int tick0, int value0, int tick1, int value1, bool selectedOnly=true)
Definition: pianolevels.cpp:389
virtual void leaveEvent(QEvent *)
Definition: pianolevels.cpp:547
void clearNoteData()
Definition: pianolevels.cpp:640
qreal xZoom() const
Definition: pianolevels.h:123
DragStyle dragStyle
Definition: pianolevels.h:67
void moveLocator(QMouseEvent *)
Definition: pianolevels.cpp:532
bool mouseDown
Definition: pianolevels.h:63
void setStaff(Staff *, Pos *locator)
Definition: pianolevels.cpp:580
void addChord(Chord *chord, int voice)
Definition: pianolevels.cpp:596
Definition: pianolevels.h:47
Definition: aeolus.cpp:26
Staff * _staff
Definition: pianolevels.h:55
virtual void mousePressEvent(QMouseEvent *)
Definition: pianolevels.cpp:438
int minBeatGap
Definition: pianolevels.h:71
int _xpos
Definition: pianolevels.h:51
Graphic representation of a chord.
Definition: chord.h:55
int xpos() const
Definition: pianolevels.h:122
void setTuplet(int)
Definition: pianolevels.cpp:649
void levelsIndexChanged(int)
Definition: pianolevels.h:42
Score * _score
Definition: pianolevels.h:50
int noteStartTick(Note *note, NoteEvent *evt)
Definition: pianolevels.cpp:287
int _subdiv
Definition: pianolevels.h:57
int pixelXToTick(int pixX)
Definition: pianolevels.cpp:97
Graphic representation of a note.
Definition: note.h:212
virtual void mouseMoveEvent(QMouseEvent *event)
Definition: pianolevels.cpp:482
void setPos(const Pos &)
Definition: pianolevels.cpp:558
NoteEvent * singleNoteEventDrag
Definition: pianolevels.h:69
int tickToPixelX(int tick)
Definition: pianolevels.cpp:106
qreal _xZoom
Definition: pianolevels.h:52
bool pickNoteEvent(int x, int y, bool selectedOnly, Note *&pickedNote, NoteEvent *&pickedNoteEvent)
Definition: pianolevels.cpp:326
int subdiv() const
Definition: pianolevels.h:120
PianoLevels(QWidget *parent=0)
Definition: pianolevels.cpp:44
void setLevelsIndex(int index)
Definition: pianolevels.cpp:675
void setXZoom(qreal)
Definition: pianolevels.cpp:570