6 #include "adopterwindow.h"
13 class FullScreenWindow;
15 class TranslucentButton;
17 class MainWindow: public AdopterWindow
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 goToPreviousPage();
46 void closeEvent(QCloseEvent *event);
47 void timerEvent(QTimerEvent *event);
48 void resizeEvent(QResizeEvent *event);
51 void setCurrentBook(const QModelIndex ¤t);
53 QAction *settingsAction;
54 QAction *libraryAction;
56 QAction *devToolsAction;
57 QAction *bookmarksAction;
58 QAction *fullScreenAction;
59 QAction *forwardAction;
60 QAction *backwardAction;
61 QAction *chaptersAction;
65 FullScreenWindow *fullScreenWindow;
66 int preventBlankingTimer;
68 TranslucentButton *previousButton;
69 TranslucentButton *nextButton;
72 #endif // MAINWINDOW_H