7 #include "adopterwindow.h"
14 class FullScreenWindow;
17 class TranslucentButton;
19 class MainWindow: public AdopterWindow
24 MainWindow(QWidget *parent = 0);
33 void onCurrentBookChanged();
36 void onSettingsChanged(const QString &key);
37 void onPartLoadStart();
38 void onPartLoadEnd(int index);
39 void onAddBookmark(const QString ¬e);
40 void onGoToBookmark(int index);
42 void onGoToChapter(int index);
45 void goToPreviousPage();
46 void onBeginUpgrade(int total);
47 void onUpgrading(const QString &book);
49 void onBeginLoad(int total);
50 void onLoading(const QString &book);
54 void timerEvent(QTimerEvent *event);
57 void setCurrentBook(const QModelIndex ¤t);
59 QAction *settingsAction;
60 QAction *libraryAction;
62 QAction *devToolsAction;
63 QAction *bookmarksAction;
64 QAction *fullScreenAction;
65 QAction *forwardAction;
66 QAction *backwardAction;
67 QAction *chaptersAction;
71 FullScreenWindow *fullScreenWindow;
72 int preventBlankingTimer;
74 TranslucentButton *prev;
75 TranslucentButton *next;
76 ProgressDialog *libraryProgress;
79 #endif // MAINWINDOW_H