6 #include "adopterwindow.h"
13 class FullScreenWindow;
15 class TranslucentButton;
17 class MainWindow: public AdopterWindow
22 MainWindow(QWidget *parent = 0);
31 void onCurrentBookChanged();
34 void onSettingsChanged(const QString &key);
35 void onPartLoadStart();
36 void onPartLoadEnd(int index);
38 void onGoToBookmark(int index);
40 void onGoToChapter(int index);
43 void goToPreviousPage();
44 void onBeginUpgrade(int total);
45 void onUpgrading(const QString &book);
47 void onBeginLoad(int total);
48 void onLoading(const QString &book);
52 void closeEvent(QCloseEvent *event);
53 void timerEvent(QTimerEvent *event);
54 void resizeEvent(QResizeEvent *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 *previousButton;
75 TranslucentButton *nextButton;
76 QProgressDialog *libraryProgress;
79 #endif // MAINWINDOW_H