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);
38 # define MOUSE_ACTIVATE_EVENT mouseReleaseEvent
40 # define MOUSE_ACTIVATE_EVENT mousePressEvent
42 virtual void MOUSE_ACTIVATE_EVENT(QMouseEvent *event);
43 virtual void resizeEvent(QResizeEvent *event);
44 virtual void closeEvent(QCloseEvent *event);
47 void setCurrentBook(const QModelIndex ¤t);
48 QAction *addToolBarAction(const QObject *receiver, const char *member,
50 QRect fullScreenZone() const;
52 QAction *settingsAction;
53 QAction *libraryAction;
55 QAction *devToolsAction;
56 QAction *bookmarksAction;
57 QAction *fullScreenAction;
58 QAction *forwardAction;
59 QAction *backwardAction;
60 QAction *previousAction;
66 Qt::WindowFlags normalFlags;
67 TranslucentButton *restoreButton;
72 #endif // MAINWINDOW_H