6 #include "adopterwindow.h"
13 class FullScreenWindow;
16 class TranslucentButton;
18 class MainWindow: public AdopterWindow
23 MainWindow(QWidget *parent = 0);
32 void onCurrentBookChanged();
35 void onSettingsChanged(const QString &key);
36 void onPartLoadStart();
37 void onPartLoadEnd(int index);
38 void onAddBookmark(const QString ¬e);
39 void onGoToBookmark(int index);
41 void onGoToChapter(int index);
44 void goToPreviousPage();
45 void onBeginUpgrade(int total);
46 void onUpgrading(const QString &book);
48 void onBeginLoad(int total);
49 void onLoading(const QString &book);
53 void closeEvent(QCloseEvent *event);
54 void timerEvent(QTimerEvent *event);
55 void resizeEvent(QResizeEvent *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 *previousButton;
76 TranslucentButton *nextButton;
77 ProgressDialog *libraryProgress;
80 #endif // MAINWINDOW_H