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);
59 void setCurrentBook(const QModelIndex ¤t);
61 QAction *settingsAction;
62 QAction *libraryAction;
64 QAction *devToolsAction;
65 QAction *bookmarksAction;
66 QAction *fullScreenAction;
67 QAction *forwardAction;
68 QAction *backwardAction;
69 QAction *chaptersAction;
73 FullScreenWindow *fullScreenWindow;
74 int preventBlankingTimer;
76 TranslucentButton *previousButton;
77 TranslucentButton *nextButton;
78 ProgressDialog *libraryProgress;
81 #endif // MAINWINDOW_H