summaryrefslogtreecommitdiffstats
path: root/noatun/modules/kjofol-skin/kjbutton.h
blob: c0eba625761a9291222b74e575748fca72c0af86 (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
  TQ_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