/***************************************************************************
 *   Copyright (C) 2004 by Christian Hubinger                              *
 *   e9806056@student.tuwien.ac.at                                         *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
#ifndef KFDIALOG_H
#define KFDIALOG_H
#include <kdialog.h>
#include <qwidget.h>

// QT includes
#include <qstring.h>
#include <qpixmap.h>
#include <qfont.h>
#include <qptrlist.h>



// KDE includes

class QLabel;
class QPixmapLabel;
class KPushButton;
class QSlider;
class QLCDNumber;
class QTextEdit;
class KFButton;
class QRadioButton;
class KFButtonGroup;



/**
@author Christian Hubinger
*/
class KFDialog : public QWidget {
	Q_OBJECT
public:
	KFDialog(QWidget *parent = 0, const char *name = 0, int dialogType = YESNO, const QString& text = QString::null );
	~KFDialog();
	enum { YESNO, INFORMATION, SETLEVEL, SETTRAININGSLEVEL };

	void setPaletteBackgroundPixmap( const QPixmap& );
	void setPaletteForegroundColor( const QColor& );
	void setFont( const QFont & );
	
public slots:
	void show();
	
private slots:
	void slotAccept();
	void slotReject();

private:
	void setChildBackground( QWidget *, QPixmap ); 

private:
	int m_dialogType;
/* 	QString m_caption; */
	QString m_text;
	QTextEdit* m_textLabel;
	KFButtonGroup *m_bgroup;
	QRadioButton *m_easy, *m_medium, *m_hard, *m_hardCore; 
/* 	QLabel * m_pixmapLabel; */
	QSlider *m_slider;
// 	KPushButton *m_cancel, *m_close;
	KFButton *m_ok,*m_cancel, *m_close ;
	QLCDNumber *m_number;
	QPtrList<QWidget> *m_childWidgets;
signals:
	void sigAccepted();
	void sigRejected();

};

#endif
