summaryrefslogtreecommitdiffstats
path: root/noatun/modules/kjofol-skin/kjseeker.h
blob: 78fea6fbc0517453ec5e762f485017c7ab4a86b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef KJSEEKER_H
#define KJSEEKER_H

#include "kjwidget.h"
//#include "kjloader.h"
class KJLoader;

#include <qpainter.h>

class KJSeeker : public KJWidget
{
public:
	KJSeeker(const QStringList &i, KJLoader *);
	~KJSeeker();


	virtual void paint(QPainter *, const QRect &rect);
	virtual bool mousePress(const QPoint &pos);
	virtual void mouseRelease(const QPoint &pos, bool);

	void timeUpdate(int mille);

	void closest();

private:
	QPixmap *toPixmap(int n);
	
private:
	QImage mScale;
	QImage mActive;
	QPixmap *barmode[256];
	QImage *barmodeImages[256];
	QBitmap barModeMask;
	int g;
};

#endif