6 #include "bookwindow.h"
7 #include "bookfinder.h"
14 class FullScreenWindow;
17 class MainWindow: public BookWindow
22 MainWindow(QWidget *parent = 0);
31 void onCurrentBookChanged();
34 void onSettingsChanged(const QString &key);
35 void onPartLoadStart();
36 void onPartLoadEnd(int index);
38 void onGoToBookmark(int index);
40 void onGoToChapter(int index);
43 void closeEvent(QCloseEvent *event);
44 void timerEvent(QTimerEvent *event);
45 void resizeEvent(QResizeEvent *event);
48 void setCurrentBook(const QModelIndex ¤t);
49 QAction *addToolBarAction(const QObject *receiver, const char *member,
52 QAction *settingsAction;
53 QAction *libraryAction;
55 QAction *devToolsAction;
56 QAction *bookmarksAction;
57 QAction *fullScreenAction;
58 QAction *forwardAction;
59 QAction *backwardAction;
60 QAction *previousAction;
62 QAction *chaptersAction;
67 FullScreenWindow *fullScreenWindow;
68 int preventBlankingTimer;
69 BookFinder *bookFinder;
70 BookFinderThread bookFinderThread;
74 #endif // MAINWINDOW_H