Strip Mode is now optional
[qcomicbook-oblomov] / src / pagesdirector.h
1 /*
2  * This file is a part of QComicBook.
3  *
4  * Copyright (C) 2005-2006 Pawel Stolowski <yogin@linux.bydg.org>
5  *
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.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY. See GPL for more details.
11  */
12
13 #ifndef __PAGESDIRECTOR_H
14 #define __PAGESDIRECTOR_H
15
16 /*! \file pagesdirector.h */
17
18 #include <qlistview.h>
19 #include <qvaluelist.h>
20
21 namespace QComicBook
22 {
23         class ImgDirSink;
24         class ThumbnailLoaderThread;
25
26         class PagesDirector: public QListView
27         {
28                 Q_OBJECT
29
30                 private:
31                         ThumbnailLoaderThread *loader;
32                         QCheckListItem **pages;
33                         ImgDirSink *sink;
34
35                 protected:
36                         virtual void customEvent(QCustomEvent *e);
37
38                 public slots:
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();
47                                 
48                 public:
49                         PagesDirector(QWidget *parent, ImgDirSink *snk);
50                         virtual ~PagesDirector();
51
52                         QValueList<int> markedPages();
53         };
54 }
55
56 #endif
57