7 #include "adopterwindow.h"
14 class FullScreenWindow;
17 class TranslucentButton;
19 class MainWindow: public AdopterWindow
24 MainWindow(QWidget *parent = 0);
34 void onCurrentBookChanged();
37 void onSettingsChanged(const QString &key);
38 void onPartLoadStart();
39 void onPartLoadEnd(int index);
40 void onAddBookmark(const QString ¬e);
41 void onGoToBookmark(int index);
43 void onGoToChapter(int index);
46 void goToPreviousPage();
47 void onBeginUpgrade(int total);
48 void onUpgrading(const QString &book);
50 void onBeginLoad(int total);
51 void onLoading(const QString &book);
55 void timerEvent(QTimerEvent *event);
58 void setCurrentBook(const QModelIndex ¤t);
60 QAction *settingsAction;
61 QAction *libraryAction;
62 QAction *rotateAction;
63 QAction *devToolsAction;
64 QAction *bookmarksAction;
65 QAction *fullScreenAction;
66 QAction *forwardAction;
67 QAction *backwardAction;
68 QAction *chaptersAction;
72 FullScreenWindow *fullScreenWindow;
73 int preventBlankingTimer;
75 TranslucentButton *prev;
76 TranslucentButton *next;
77 ProgressDialog *libraryProgress;
80 #endif // MAINWINDOW_H