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 closeEvent(QCloseEvent *event);
55 void timerEvent(QTimerEvent *event);
58 void setCurrentBook(const QModelIndex ¤t);
60 QAction *settingsAction;
61 QAction *libraryAction;
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