/*
 *  Copyright (C) 2007-2008 CMM Sigma Andrzej Chmielowiec <cmmsigma@cmmsigma.eu>
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License version 3
 *  as published by the Free Software Foundation.
 *
 *  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.
 */

// QDetailsMessageBox.h: interface for the QDetailsMessageBox class.
//
//////////////////////////////////////////////////////////////////////

#ifndef Q_DETAILS_MESSAGEBOX_H
#define Q_DETAILS_MESSAGEBOX_H

#include <QtGui>

class QDetailsMessageBox : public QDialog  
{
	Q_OBJECT

public:
	QDetailsMessageBox(QWidget *parent, const QString &title, const QString& text, const QString& details);

	static int information(QWidget *parent, const QString &title,
		const QString& text, const QString& details = "");
    static int warning(QWidget *parent, const QString &title,
		const QString& text, const QString& details = "");
    static int critical(QWidget *parent, const QString &title,
		const QString& text, const QString& details = "");

private:
	QTextEdit *mDetails;
	QPushButton *mBtnDetails;
	QLabel *mIcon;
	bool mExpanded;
	int mMinHeight;
	int mMaxHeight;

private slots:
	void detailsSlot();
};

#endif
