author | mickeyl <mickeyl> | 2004-01-20 13:07:31 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-01-20 13:07:31 (UTC) |
commit | d388324e7b91bdd95553c3849d77cddd5bd0bfc4 (patch) (side-by-side diff) | |
tree | ef660ffd25aa8cabbfa58e6c3b170e7c82511bc6 /noncore/multimedia/powerchord/vumeter.h | |
parent | 105007cca23072ee42a1f36625979966eb8a4854 (diff) | |
download | opie-d388324e7b91bdd95553c3849d77cddd5bd0bfc4.zip opie-d388324e7b91bdd95553c3849d77cddd5bd0bfc4.tar.gz opie-d388324e7b91bdd95553c3849d77cddd5bd0bfc4.tar.bz2 |
initial import of powerchord courtesy Camilo Mesias <mailto:camilo@mesias.co.uk>
modified some bits to be compatible with the opie build system
packaging not complete yet
i hope camilo will maintain this here...
Diffstat (limited to 'noncore/multimedia/powerchord/vumeter.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/powerchord/vumeter.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/noncore/multimedia/powerchord/vumeter.h b/noncore/multimedia/powerchord/vumeter.h new file mode 100644 index 0000000..d708435 --- a/dev/null +++ b/noncore/multimedia/powerchord/vumeter.h @@ -0,0 +1,59 @@ +// +// VUMeter class +// + +// Copyright (c) 2001 Camilo Mesias +// camilo@mesias.co.uk +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +#ifndef __VUMETER_H +#define __VUMETER_H + +#include <qwidget.h> +#include <qstring.h> +#include <qpixmap.h> + +class VUMeter : public QWidget { + + Q_OBJECT + + private: + int vuvalue; + QString Lannot; + QString Rannot; + + QPixmap *pix; + + protected: + void paintEvent(QPaintEvent *); + void bupdate(); + void vupdate(); + + public: + VUMeter(QWidget *parent=0, const char *name=0); + ~VUMeter(); + + // slots + public slots: + void Value(int x){vuvalue = x; vupdate(); }; + void AnnotL(const QString &s){Lannot = s; bupdate(); }; + void AnnotR(const QString &s){Rannot = s; bupdate(); }; +}; + +#endif + + + |