Logo Search packages:      
Sourcecode: qcomicbook version File versions  Download package


 * This file is a part of QComicBook.
 * Copyright (C) 2005-2006 Pawel Stolowski <yogin@linux.bydg.org>
 * QComicBook is free software; you can redestribute it and/or modify it
 * under terms of GNU General Public License by Free Software Foundation.
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY. See GPL for more details.


#include <qiconview.h>
#include <qptrvector.h>
#include <iconviewthumbnail.h>

class QPixmap;
class QIconViewItem;
class QPopupMenu;
namespace QComicBook
      class Thumbnail;

      class ThumbnailsView: public QIconView

                  int numpages;
                  QPixmap *emptypage;
                  QPtrVector<IconViewThumbnail> icons;
                  QPopupMenu *menu;
                  QIconViewItem *selected;

                  void requestedPage(int n, bool force);

            protected slots:
                  void onDoubleClick(QIconViewItem *item);
                  void showContextMenu(QIconViewItem *item, const QPoint &p);
                  void goToPageAction();

                  ThumbnailsView(QWidget *parent);
                  virtual ~ThumbnailsView();
                  virtual bool isLoaded(int n) const;

            public slots:
                  void setPages(int pages);
                  void setPage(int n, const QImage &img);
                  void setPage(const Thumbnail &t);
                  void clear();
                  void scrollToPage(int n);


Generated by  Doxygen 1.6.0   Back to index