5 #include "bookfinder.h"
12 class FullScreenWindow;
15 class MainWindow: public QMainWindow
20 MainWindow(QWidget *parent = 0);
29 void onCurrentBookChanged();
32 void onSettingsChanged(const QString &key);
33 void onPartLoadStart();
34 void onPartLoadEnd(int index);
36 void onGoToBookmark(int index);
38 void onGoToChapter(int index);
41 void closeEvent(QCloseEvent *event);
42 void timerEvent(QTimerEvent *event);
43 void resizeEvent(QResizeEvent *event);
46 void setCurrentBook(const QModelIndex ¤t);
47 QAction *addToolBarAction(const QObject *receiver, const char *member,
51 QAction *settingsAction;
52 QAction *libraryAction;
54 QAction *devToolsAction;
55 QAction *bookmarksAction;
56 QAction *fullScreenAction;
57 QAction *forwardAction;
58 QAction *backwardAction;
59 QAction *previousAction;
61 QAction *chaptersAction;
66 FullScreenWindow *fullScreenWindow;
67 int preventBlankingTimer;
68 BookFinder *bookFinder;
69 BookFinderThread bookFinderThread;
73 #endif // MAINWINDOW_H