summaryrefslogtreecommitdiff
path: root/noncore/multimedia/powerchord/vumeter.h
Unidiff
Diffstat (limited to 'noncore/multimedia/powerchord/vumeter.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/powerchord/vumeter.h59
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 @@
1//
2// VUMeter class
3//
4
5// Copyright (c) 2001 Camilo Mesias
6// camilo@mesias.co.uk
7//
8// This program is free software; you can redistribute it and/or
9// modify it under the terms of the GNU General Public License
10// as published by the Free Software Foundation; either version 2
11// of the License, or (at your option) any later version.
12//
13// This program is distributed in the hope that it will be useful,
14// but WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16// GNU General Public License for more details.
17//
18// You should have received a copy of the GNU General Public License
19// along with this program; if not, write to the Free Software
20// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21
22#ifndef __VUMETER_H
23#define __VUMETER_H
24
25#include <qwidget.h>
26#include <qstring.h>
27#include <qpixmap.h>
28
29class VUMeter : public QWidget {
30
31 Q_OBJECT
32
33 private:
34 int vuvalue;
35 QString Lannot;
36 QString Rannot;
37
38 QPixmap *pix;
39
40 protected:
41 void paintEvent(QPaintEvent *);
42 void bupdate();
43 void vupdate();
44
45 public:
46 VUMeter(QWidget *parent=0, const char *name=0);
47 ~VUMeter();
48
49 // slots
50 public slots:
51 void Value(int x){vuvalue = x; vupdate(); };
52 void AnnotL(const QString &s){Lannot = s; bupdate(); };
53 void AnnotR(const QString &s){Rannot = s; bupdate(); };
54};
55
56#endif
57
58
59