1 /***************************************************************************
2 Graphical spline display for equalizer
4 (c) 2004 Mark Kretschmann <markey@web.de>
5 Based on code from XMMS
6 (c) 1998-2000 Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
18 #ifndef AMAROK_EQUALIZERGRAPH_H
19 #define AMAROK_EQUALIZERGRAPH_H
21 #include <QtGui/QWidget> //baseclass
28 class EqualizerGraph
: public QWidget
31 EqualizerGraph( QWidget
* parent
);
33 QSize
sizeHint() const;
36 void resizeEvent( QResizeEvent
* );
37 void paintEvent( QPaintEvent
* );
40 static const int NUM_BANDS
= 10;
42 void drawBackground();
44 void init_spline( float* x
, float* y
, int n
, float* y2
);
45 float eval_spline( float xa
[], float ya
[], float y2a
[], int n
, float x
);
47 QPixmap
* m_backgroundPixmap
;
51 #endif /*AMAROK_EQUALIZERGRAPH_H*/