]>
code.delx.au - virtualtones/blob - pianoinstrument.h
6ece08581cca37752409635d21e8ab8fac83d1ae
1 // pianoinstrument.h - A piano simulator
2 // Written by James Bunton <james@delx.cjb.net>
3 // Licensed under the GPL, see COPYING.txt for more details
6 #ifndef PIANOINSTRUMENT_H
7 #define PIANOINSTRUMENT_H
13 #include "instrument.h"
16 class PianoInstrument
: public Instrument
20 PianoInstrument(QWidget
*parent
);
24 QString
generateHelp();
25 void paintEvent(QPaintEvent
*);
26 void keyPressEvent(QKeyEvent
*);
27 void keyReleaseEvent(QKeyEvent
*);
30 void paintPart(QPainter
&paint
, int start
, int stop
, int y
, bool sharp
);
31 void copyArray(bool source
[26], bool dest
[26]);