/****************************************************************************
** Form interface generated from reading ui file 'uidialogtemp.ui'
**
**   Created : Tue Dec 25 22:05:18 2007
**        by : Varol Okan
** Copyright : (c) Varol Okan
**   License : GPL v 2.0
**
****************************************************************************/

#ifndef DIALOGVFOLDER_H
#define DIALOGVFOLDER_H

#include <qlistview.h>

#include "cachethumbs.h"
#include "uidialogvfolder.h"

namespace Input 
{

class DialogVFolder : public uiDialogVFolder
{
  Q_OBJECT

  class VFolderItem : public QListViewItem
  {
  public:
    VFolderItem ( Cache::Thumbs::Entry *, QListView *, QString );
    virtual void paintCell ( QPainter *, const QColorGroup &, int, int, int );

    bool bAlternateColor;
    Cache::Thumbs::Entry *pEntry;
  };

public:
   DialogVFolder ( QWidget *p=0, const char *n=0, bool m=FALSE, WFlags fl=0 );
  ~DialogVFolder ( );

  void initMe ( QString, bool );
  QValueList<Cache::Thumbs::Entry *> &getEntries ( );

protected slots:
  virtual void slotAdd    ( );
  virtual void slotDelete ( );
  virtual void slotUp     ( );
  virtual void slotDown   ( );
  virtual void slotAlternateColors ( );

  virtual void accept ( );
  virtual void reject ( );

protected:
  virtual void timerEvent ( QTimerEvent * );

private:
  QListViewItem *m_pNextItem;
  QString m_qsFolderName;
  int     m_iThumbSize;
  bool    m_bCanClose;
  bool    m_bIsImageFolder;
  QValueList<Cache::Thumbs::Entry *> m_returnList;
};

}; // end namespace Input

#endif // DIALOGVFOLDER_H
