]> code.delx.au - virtualtones/blobdiff - stringinstrument.h
Updated README and email addresses
[virtualtones] / stringinstrument.h
index e88d29f332276799e769c3683a53cebf287cb501..e7ca2384e109ecc7103fbec7f174be97a982b45b 100644 (file)
@@ -1,5 +1,5 @@
 // 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
 
 
@@ -9,6 +9,11 @@
 #include <qwidget.h>
 #include <qpixmap.h>
 #include <qpainter.h>
+#include <qtimer.h>
+#include <QWidget>
+#include <QPixmap>
+#include <QPainter>
+#include <QTimer>
 
 #include "instrument.h"
 
@@ -21,6 +26,9 @@ Q_OBJECT
                StringInstrument(QWidget *parent);
                ~StringInstrument();
 
+       private slots:
+               void emitSounds();
+
        protected:
                QString generateHelp();
                void paintEvent(QPaintEvent *);
@@ -28,12 +36,9 @@ Q_OBJECT
                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];