Fix navigation in twoPagesSpread mode
[qcomicbook-oblomov] / src / thumbnailswin.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 __THUMBNAILSWIN_H
14 #define __THUMBNAILSWIN_H
15
16 #include <qdockwindow.h>
17
18 namespace QComicBook
19 {
20         class ThumbnailsView;
21
22         class ThumbnailsWindow: public QDockWindow
23         {
24                 Q_OBJECT
25
26                 private:
27                         ThumbnailsView *tview;
28
29                 signals:
30                         void requestedThumbnail(int n);
31                         void requestedPage(int n, bool force);
32
33                 protected:
34                         void customEvent(QCustomEvent *e);
35
36                 protected slots:
37                         void onOrientationChanged(Orientation o);
38
39                 public:
40                         ThumbnailsWindow(Place p=InDock, QWidget *parent=0);
41                         virtual ~ThumbnailsWindow();
42                         ThumbnailsView* view() const;
43         };
44 }
45
46 #endif
47