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);
56 void resizeEvent(QResizeEvent *event);
62 void setCurrentBook(const QModelIndex ¤t);
64 QAction *settingsAction;
65 QAction *libraryAction;
67 QAction *devToolsAction;
68 QAction *bookmarksAction;
69 QAction *fullScreenAction;
70 QAction *forwardAction;
71 QAction *backwardAction;
72 QAction *chaptersAction;
76 FullScreenWindow *fullScreenWindow;
77 int preventBlankingTimer;
79 TranslucentButton *previousButton;
80 TranslucentButton *nextButton;
81 ProgressDialog *libraryProgress;
84 #endif // MAINWINDOW_H