5 #include "bookfinder.h"
12 class FullScreenWindow;
14 class MainWindow: public QMainWindow
19 MainWindow(QWidget *parent = 0);
28 void onCurrentBookChanged();
31 void onSettingsChanged(const QString &key);
32 void onChapterLoadStart();
33 void onChapterLoadEnd(int index);
35 void onGoToBookmark(int index);
37 void onGoToChapter(int index);
40 virtual void closeEvent(QCloseEvent *event);
41 virtual void timerEvent(QTimerEvent *event);
44 void setCurrentBook(const QModelIndex ¤t);
45 QAction *addToolBarAction(const QObject *receiver, const char *member,
48 QAction *settingsAction;
49 QAction *libraryAction;
51 QAction *devToolsAction;
52 QAction *bookmarksAction;
53 QAction *fullScreenAction;
54 QAction *forwardAction;
55 QAction *backwardAction;
56 QAction *previousAction;
58 QAction *chaptersAction;
63 FullScreenWindow *fullScreenWindow;
64 int preventBlankingTimer;
65 BookFinder *bookFinder;
66 BookFinderThread bookFinderThread;
69 #endif // MAINWINDOW_H