2 * This file is a part of QComicBook.
4 * Copyright (C) 2005-2006 Pawel Stolowski <yogin@linux.bydg.org>
6 * QComicBook is free software; you can redestribute it and/or modify it
7 * under terms of GNU General Public License by Free Software Foundation.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY. See GPL for more details.
13 #ifndef __PAGESDIRECTOR_H
14 #define __PAGESDIRECTOR_H
16 /*! \file pagesdirector.h */
18 #include <qlistview.h>
19 #include <qvaluelist.h>
24 class ThumbnailLoaderThread;
26 class PagesDirector: public QListView
31 ThumbnailLoaderThread *loader;
32 QCheckListItem **pages;
36 virtual void customEvent(QCustomEvent *e);
39 void moveUp(QListViewItem *item);
40 void moveDown(QListViewItem *item);
41 void moveUpSelected();
42 void moveDownSelected();
43 void makeSelectedFirst(QListViewItem *item);
44 void makeSelectedLast(QListViewItem *item);
45 void makeSelectedFirst();
46 void makeSelectedLast();
49 PagesDirector(QWidget *parent, ImgDirSink *snk);
50 virtual ~PagesDirector();
52 QValueList<int> markedPages();