summaryrefslogtreecommitdiffstats
path: root/noatun/modules/kjofol-skin/kjbutton.h
blob: 28dcf3555a506720a2f5d44fdb8c827a255fb67f (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
#ifndef KJBUTTON_H
#define KJBUTTON_H

#include "kjwidget.h"
#include <tqobject.h>
class KJLoader;

class KJButton : public TQObject, public KJWidget
{
Q_OBJECT
  
public:
	KJButton(const TQStringList&, KJLoader *);

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

	virtual TQString tip();

private slots:
	void slotPlaylistShown(void);
	void slotPlaylistHidden(void);
	void slotEqEnabled(bool on);

private:
	TQPixmap mBackground;
	bool mPushedPixmap;
	TQPixmap mPressed;
	TQString mTitle;
	bool mShowPressed;
};

#endif