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();
44 void onBeginUpgrade(int total);
45 void onUpgrading(const QString &book);
49 void closeEvent(QCloseEvent *event);
50 void timerEvent(QTimerEvent *event);
51 void resizeEvent(QResizeEvent *event);
54 void setCurrentBook(const QModelIndex ¤t);
56 QAction *settingsAction;
57 QAction *libraryAction;
59 QAction *devToolsAction;
60 QAction *bookmarksAction;
61 QAction *fullScreenAction;
62 QAction *forwardAction;
63 QAction *backwardAction;
64 QAction *chaptersAction;
68 FullScreenWindow *fullScreenWindow;
69 int preventBlankingTimer;
71 TranslucentButton *previousButton;
72 TranslucentButton *nextButton;
73 QProgressDialog *upgradeProgress;
76 #endif // MAINWINDOW_H