// stringinstrument.h - A stringed instrument simulator
-// Written by James Bunton <james@delx.cjb.net>
+// Written by James Bunton <james@delx.net.au>
// Licensed under the GPL, see COPYING.txt for more details
#include <qwidget.h>
#include <qpixmap.h>
#include <qpainter.h>
+#include <qtimer.h>
+#include <QWidget>
+#include <QPixmap>
+#include <QPainter>
+#include <QTimer>
#include "instrument.h"
StringInstrument(QWidget *parent);
~StringInstrument();
+ private slots:
+ void emitSounds();
+
protected:
QString generateHelp();
void paintEvent(QPaintEvent *);
void keyReleaseEvent(QKeyEvent *);
- void zeroArray(bool array[4][4]);
- void zeroArray(bool array[4]);
- void zeroArray(int array[4]);
virtual void setNotes(int array[4])=0; // Set the base string notes
- void copyArray(int source[4], int dest[4]);
- void emitSounds();
+
+ QPixmap background;
// Keys
bool down[4][4];