20 #ifndef __DRUMVIEW_H__ 21 #define __DRUMVIEW_H__ 38 virtual void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget = 0);
54 QGraphicsLineItem* locatorLines[3];
59 virtual void drawBackground(QPainter* painter,
const QRectF& rect);
62 Pos pix2pos(
int x)
const;
63 int pos2pix(
const Pos& p)
const;
66 virtual void wheelEvent(QWheelEvent* event);
67 virtual void mouseMoveEvent(QMouseEvent* event);
68 virtual void leaveEvent(QEvent*);
71 void magChanged(
double,
double);
72 void xposChanged(
int);
73 void pitchChanged(
int);
74 void posChanged(
const Pos&);
77 void moveLocator(
int);
82 void ensureVisible(
int tick);
83 QList<QGraphicsItem*>
items() {
return scene()->selectedItems(); }
Global staff data not directly related to drawing.
Definition: staff.h:62
int y2pitch(qreal y, ClefType clef, qreal _spatium)
Definition: utils.cpp:404
Definition: drumview.h:35
int magStep
Definition: drumview.h:57
Pos pos
Definition: drumview.h:52
int ticks
Definition: drumview.h:55
Definition: drumview.h:48
DrumItem(Note *)
Definition: drumview.cpp:53
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: drumview.cpp:74
QList< QGraphicsItem * > items()
Definition: drumview.h:83
Pos * _locator
Definition: drumview.h:53
Definition: aeolus.cpp:26
Staff * staff
Definition: drumview.h:51
Graphic representation of a note.
Definition: note.h:212
Note * _note
Definition: drumview.h:36
TType
Definition: pos.h:32
TType _timeType
Definition: drumview.h:56