summaryrefslogtreecommitdiffstats
path: root/noatun/modules/kjofol-skin/kjseeker.h
blob: 048d51270f888f974f0264fd523b43c0b97a16d9 (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 <tqpainter.h>

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


	virtual void paint(TQPainter *, const TQRect &rect);
	virtual bool mousePress(const TQPoint &pos);
	virtual void mouseRelease(const TQPoint &pos, bool);

	void timeUpdate(int mille);

	void closest();

private:
	TQPixmap *toPixmap(int n);
	
private:
	TQImage mScale;
	TQImage mActive;
	TQPixmap *barmode[256];
	TQImage *barmodeImages[256];
	TQBitmap barModeMask;
	int g;
};

#endif