summaryrefslogtreecommitdiff
path: root/core/settings/launcher/tabdialog.h
blob: e1935fd04a0f015b51af7739b995913dca476a2c (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
38
39
40
41
42
43
44
45
#ifndef __TABDIALOG_H__
#define __TABDIALOG_H__

#include <qdialog.h>
#include "tabconfig.h"

class QButtonGroup;
class OFontSelector;
class SampleView;
class OColorButton;

class TabDialog : public QDialog {
	Q_OBJECT
public:
	TabDialog ( const QPixmap *tabicon, const QString &tabname, TabConfig &cfg, QWidget *parent = 0, const char *name = 0, bool modal = false, WFlags = 0 );
	virtual ~TabDialog ( );	

public slots:
	virtual void accept ( );

protected slots:
	void iconSizeClicked ( int );
	void fontClicked ( const QFont & );
	void bgTypeClicked ( int );
	void colorClicked ( const QColor & );

private:
	QWidget *createBgTab ( QWidget *parent );
	QWidget *createFontTab ( QWidget *parent );
	QWidget *createIconTab ( QWidget *parent );
	
	
private:
	SampleView *m_sample;
	QButtonGroup *m_iconsize;
	OFontSelector *m_fontselect;
	OColorButton *m_solidcolor;
	
	QButtonGroup *m_bgtype;
	
	TabConfig &m_tc;
};


#endif