/***************************************************************************
                          ExpandPnl.h  -  description
                             -------------------
    begin                : Fri May 18 23:05:50 EDT 2001
    copyright            : (C) 2001 by Alex Podolsky
    email                : alexpod@users.sourceforge.net
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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.                                   *
 *                                                                         *
 ***************************************************************************/
#ifndef EXPANDPNL_H
#define EXPANDPNL_H

#include <qvariant.h>
#include <qwidget.h>
class QVBoxLayout; 
class QHBoxLayout; 
class QGridLayout;
class QFrame;
class QToolButton;

class ExpandPnl : public QWidget
{ 
    Q_OBJECT

public:
    ExpandPnl( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
    ~ExpandPnl();
	void addCustomWidget(QWidget* customWidget);
	inline void setId(QString id){ this->id = id;}
	void saveOptions();
	
protected slots:
    void expandSlot();
    void expandSlot(bool);

protected:
	QFrame* expandBtnFrm;
    	QToolButton* expandBtn;
	QHBoxLayout* expandPnlLayout;
	QVBoxLayout* expandBtnFrmLayout;
	
	QWidget* customWidget;
	 bool expanded;
	 QString id;
};

#endif // EXPANDPNL_H
