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);
44 void closeEvent(QCloseEvent *event);
45 void timerEvent(QTimerEvent *event);
46 void resizeEvent(QResizeEvent *event);
49 void setCurrentBook(const QModelIndex ¤t);
50 QAction *addToolBarAction(const QObject *receiver, const char *member,
53 QAction *settingsAction;
54 QAction *libraryAction;
56 QAction *devToolsAction;
57 QAction *bookmarksAction;
58 QAction *fullScreenAction;
59 QAction *forwardAction;
60 QAction *backwardAction;
61 QAction *previousAction;
63 QAction *chaptersAction;
68 FullScreenWindow *fullScreenWindow;
69 int preventBlankingTimer;
70 BookFinder *bookFinder;
71 BookFinderThread bookFinderThread;
75 #endif // MAINWINDOW_H