/****************************************************************************
** Class DialogLibrary
**
**   Created : Sun Feb 18 09:13:25 2007
**        by : Varol Okan, using XEmaxs
** Copyright : (c) Varol Okan
**   License : GPL v 2.0
**
**
****************************************************************************/

#ifndef DIALOGLIBRARY_H
#define DIALOGLIBRARY_H

//#include <q3valuelist.h>	//oxx

//#include "uidialoglibrary.h"		//ooo
#include "ui_uidialoglibrary.h"		//xxx

//class Q3IconView; //ooo
class QListWidget;   //xxx

//class DialogLibrary : public uiDialogLibrary				//ooo
class DialogLibrary : public QDialog, public Ui::uiDialogLibrary	//xxx
{
    Q_OBJECT

protected:
    class LibraryPart {
    public:
      //LibraryPart ( Q3IconView *, QString );  //ooo
      LibraryPart ( QListWidget *, QString );    //xxx
      //Q3IconView *pIconView;  //ooo
      QListWidget *pIconView;    //xxx
      QString    qsLibraryPath;
    };

public:
           //DialogLibrary ( QWidget *p=0, const char *n=NULL, bool m=FALSE, Qt::WFlags f=0 );		//ooo
	   DialogLibrary ( QWidget *pParent=0 );							//xxx
  virtual ~DialogLibrary ( );

  void createTab ( QString, QString, QStringList & );

  static bool m_bCreateButtonMask;

protected:
  void initMe ( );
  void setTransparentColor ( QImage & );

protected slots:
  virtual void accept        ( );
  virtual void slotRefresh   ( );
  virtual void slotChecked   ( );
  virtual void slotAfterInit ( );

protected:
  int m_iWidth;
  int m_iHeight;
  QList<LibraryPart *>  m_listLibrary;		//oxx
};

#endif // DIALOGLIBRARY_H
