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();
46 void closeEvent(QCloseEvent *event);
47 void timerEvent(QTimerEvent *event);
48 void resizeEvent(QResizeEvent *event);
51 void setCurrentBook(const QModelIndex ¤t);
52 QAction *addToolBarAction(const QObject *receiver, const char *member,
55 QAction *settingsAction;
56 QAction *libraryAction;
58 QAction *devToolsAction;
59 QAction *bookmarksAction;
60 QAction *fullScreenAction;
61 QAction *forwardAction;
62 QAction *backwardAction;
63 QAction *previousAction;
65 QAction *chaptersAction;
70 FullScreenWindow *fullScreenWindow;
71 int preventBlankingTimer;
73 TranslucentButton *previousButton;
74 TranslucentButton *nextButton;
77 #endif // MAINWINDOW_H