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

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

class KJButton : public QObject, public KJWidget
{
Q_OBJECT
public:
	KJButton(const QStringList&, KJLoader *);

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

	virtual QString tip();

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

private:
	QPixmap mBackground;
	bool mPushedPixmap;
	QPixmap mPressed;
	QString mTitle;
	bool mShowPressed;
};

#endif