/*
* gencfg.h -- Declaration of class KGeneralCfg.
* Generated by newclass on Mon Aug  3 01:32:26 EST 1998.
*/
#ifndef SSK_GENCFG_H
#define SSK_GENCFG_H

#include<moncfg.h>
#include<qcolor.h>

class QLineEdit;
class QCheckBox;
class KColorButton;
class KIconButton;

/**
* Configuration for basic @ref KMailDrop
* @author Sirtaj Singh Kang (taj@kde.org)
* @version $Id: gencfg.h,v 1.2 2000/04/23 15:41:16 jansen Exp $
*/
class KGeneralCfg : public KMonitorCfg
{
	Q_OBJECT

public:
	/**
	* KGeneralCfg Constructor
	*/
	KGeneralCfg( KMailDrop *drop ) : KMonitorCfg( drop ),
		_caption( 0 ), _onClick( 0 ), _onReceipt( 0 ),
		_hlcBtn( 0 ), _tcBtn( 0 ), _bgBtn( 0 ), _useColour( 0 )
		{}

	/**
	* KGeneralCfg Destructor
	*/
	virtual ~KGeneralCfg() {}

	virtual const QString name() const;
	virtual QWidget *makeWidget( QWidget *parent );
	virtual void updateConfig();
	
private slots:
	void setUseColour( bool );
	
private:
	KGeneralCfg& operator=( KGeneralCfg& );
	KGeneralCfg( const KGeneralCfg& );

	QLineEdit *_caption;
	QLineEdit *_onClick;
	QLineEdit *_onReceipt;

	KColorButton *_hlcBtn;
	KColorButton *_tcBtn;
	KIconButton *_bgBtn;
	QCheckBox *_useColour;

signals:
	void coloursEnabled( bool );
};

#endif // SSK_GENCFG_H
