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.
tdemultimedia/noatun/modules/kjofol-skin/kjequalizer.h

41 lines
857 B

#ifndef KJETQUALIZER_H
#define KJETQUALIZER_H
#include "kjwidget.h"
//#include "kjloader.h"
class KJLoader;
class VInterpolation;
#include <tqobject.h>
class KJEqualizer : public TQObject, public KJWidget
{
Q_OBJECT
TQ_OBJECT
public:
KJEqualizer(const TQStringList &, KJLoader *parent);
~KJEqualizer(void);
virtual void mouseMove(const TQPoint &pos, bool);
virtual bool mousePress(const TQPoint&);
virtual void paint(TQPainter *p, const TQRect &rect);
int barNum(const TQPoint &pos) const;
int level(const TQPoint &pos) const;
public slots:
void slotUpdateBuffer();
private:
int mBands;
int mXSpace;
int mBandWidth;
int mBandHalfHeight;
TQPixmap mBars; // holds all slider images
TQPixmap *mBack; // holds background of EQ for easy repaint
TQPixmap *mView; // holds prepared img of all sliders
VInterpolation *mInterpEq;
};
#endif