11 class TranslucentButton;
13 class MainWindow: public QMainWindow
18 MainWindow(QWidget *parent = 0);
19 virtual ~MainWindow() {}
27 void onCurrentBookChanged();
29 void showFullScreen();
30 void onSettingsChanged(const QString &key);
31 void onChapterLoadStart();
32 void onChapterLoadEnd(int index);
34 void onGoToBookmark(int index);
36 void onGoToChapter(int index);
40 # define MOUSE_ACTIVATE_EVENT mouseReleaseEvent
42 # define MOUSE_ACTIVATE_EVENT mousePressEvent
44 virtual void MOUSE_ACTIVATE_EVENT(QMouseEvent *event);
45 virtual void resizeEvent(QResizeEvent *event);
46 virtual void closeEvent(QCloseEvent *event);
49 void setCurrentBook(const QModelIndex ¤t);
50 QAction *addToolBarAction(const QObject *receiver, const char *member,
52 QRect fullScreenZone() const;
54 QAction *settingsAction;
55 QAction *libraryAction;
57 QAction *devToolsAction;
58 QAction *bookmarksAction;
59 QAction *fullScreenAction;
60 QAction *forwardAction;
61 QAction *backwardAction;
62 QAction *previousAction;
64 QAction *chaptersAction;
69 Qt::WindowFlags normalFlags;
70 TranslucentButton *restoreButton;
75 #endif // MAINWINDOW_H