You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
amarok/amarok/src/equalizergraph.h

51 lines
1.7 KiB

/***************************************************************************
Graphical spline display for equalizer
(c) 2004 Mark Kretschmann <markey@web.de>
Based on code from XMMS
(c) 1998-2000 Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
***************************************************************************/
/***************************************************************************
* *
* 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. *
* *
***************************************************************************/
#ifndef AMAROK_ETQUALIZERGRAPH_H
#define AMAROK_ETQUALIZERGRAPH_H
#include <tqwidget.h> //baseclass
class TQPixmap;
class EqualizerGraph : public TQWidget
{
public:
EqualizerGraph( TQWidget* parent );
~EqualizerGraph();
TQSize tqsizeHint() const;
protected:
void resizeEvent( TQResizeEvent* );
void paintEvent( TQPaintEvent* );
private:
static const int NUM_BANDS = 10;
void drawBackground();
void init_spline( float* x, float* y, int n, float* y2 );
float eval_spline( float xa[], float ya[], float y2a[], int n, float x );
TQPixmap* m_backgroundPixmap;
TQPixmap* m_composePixmap;
};
#endif /*AMAROK_ETQUALIZERGRAPH_H*/