13 #ifndef __CHORDVIEW_H__ 14 #define __CHORDVIEW_H__ 39 virtual void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget = 0);
61 virtual void paint(QPainter*,
const QStyleOptionGraphicsItem*, QWidget* = 0);
70 void setCurrent(
bool v);
94 virtual void drawBackground(QPainter*,
const QRectF& rect);
97 virtual void wheelEvent(QWheelEvent*);
99 virtual void leaveEvent(QEvent*);
100 virtual void mousePressEvent(QMouseEvent*);
103 void magChanged(
double,
double);
104 void xposChanged(
int);
105 void pitchChanged(
int);
106 void posChanged(
int);
113 void selectionChanged();
117 void setChord(
Chord*);
118 void ensureVisible(
int tick);
119 QList<QGraphicsItem*>
items() {
return scene()->selectedItems(); }
124 bool dirty()
const {
return _dirty; }
128 static int pos2pix(
int pos);
129 static int pix2pos(
int pix);
Definition: chordview.h:77
Definition: chordview.h:55
virtual int type() const
Definition: chordview.h:46
NoteEvent * event() const
Definition: chordview.h:67
Definition: noteevent.h:25
int _pos
Definition: chordview.h:83
GripItem * rg
Definition: chordview.h:88
int y2pitch(qreal y, ClefType clef, qreal _spatium)
Definition: utils.cpp:404
bool _current
Definition: chordview.h:59
Definition: chordview.h:27
QList< QGraphicsItem * > items()
Definition: chordview.h:119
GripItem * rightGrip() const
Definition: chordview.h:122
Note * note() const
Definition: chordview.h:68
ChordView * _view
Definition: chordview.h:56
void setDirty(bool b)
Definition: chordview.h:125
Definition: chordview.h:33
bool current() const
Definition: chordview.h:69
bool dirty() const
Definition: chordview.h:124
void setEvent(ChordItem *e)
Definition: chordview.h:48
void setEvenGrid(bool val)
Definition: chordview.h:121
Definition: aeolus.cpp:26
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: chordview.cpp:48
bool _dirty
Definition: chordview.h:92
ChordView * _view
Definition: chordview.h:36
GripItem(int gripType, ChordView *)
Definition: chordview.cpp:32
GripItem * lg
Definition: chordview.h:87
Graphic representation of a chord.
Definition: chord.h:55
int _locator
Definition: chordview.h:82
ChordItem * _event
Definition: chordview.h:34
int pitch2y(int pitch, int enh, int clefOffset, int key, int &prefix, const char *tversatz)
Note * curNote() const
Definition: chordview.h:126
int magStep
Definition: chordview.h:86
NoteEvent * _event
Definition: chordview.h:58
Graphic representation of a note.
Definition: note.h:212
int _gripType
Definition: chordview.h:35
ChordItem * curEvent
Definition: chordview.h:89
virtual int type() const
Definition: chordview.h:66
int ticks
Definition: chordview.h:85
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *)
Definition: chordview.cpp:61
bool _evenGrid
Definition: chordview.h:91
ChordItem * event() const
Definition: chordview.h:47
Note * _curNote
Definition: chordview.h:81
bool evenGrid() const
Definition: chordview.h:120
Definition: chordview.h:27
Note * _note
Definition: chordview.h:57
Chord * chord
Definition: chordview.h:80
QGraphicsLineItem * locatorLine
Definition: chordview.h:84