10 class TranslucentButton;
12 class MainWindow: public QMainWindow
17 MainWindow(QWidget *parent = 0);
18 virtual ~MainWindow() {}
26 void onCurrentBookChanged();
28 void showFullScreen();
29 void onSettingsChanged(const QString &key);
30 void onChapterLoaded(int index);
34 # define MOUSE_ACTIVATE_EVENT mouseReleaseEvent
36 # define MOUSE_ACTIVATE_EVENT mousePressEvent
38 virtual void MOUSE_ACTIVATE_EVENT(QMouseEvent *event);
39 virtual void resizeEvent(QResizeEvent *event);
40 virtual void closeEvent(QCloseEvent *event);
43 void setCurrentBook(Book *book);
44 QAction *addToolBarAction(const QObject *receiver, const char *member,
46 QRect fullScreenZone() const;
48 QAction *settingsAction;
49 QAction *libraryAction;
51 QAction *devToolsAction;
52 QAction *bookmarksAction;
53 QAction *fullScreenAction;
54 QAction *forwardAction;
55 QAction *backwardAction;
56 QAction *previousAction;
62 Qt::WindowFlags normalFlags;
63 TranslucentButton *restoreButton;
68 #endif // MAINWINDOW_H