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 onChapterLoaded(int index);
35 # define MOUSE_ACTIVATE_EVENT mouseReleaseEvent
37 # define MOUSE_ACTIVATE_EVENT mousePressEvent
39 virtual void MOUSE_ACTIVATE_EVENT(QMouseEvent *event);
40 virtual void resizeEvent(QResizeEvent *event);
41 virtual void closeEvent(QCloseEvent *event);
44 void setCurrentBook(const QModelIndex ¤t);
45 QAction *addToolBarAction(const QObject *receiver, const char *member,
47 QRect fullScreenZone() const;
49 QAction *settingsAction;
50 QAction *libraryAction;
52 QAction *devToolsAction;
53 QAction *bookmarksAction;
54 QAction *fullScreenAction;
55 QAction *forwardAction;
56 QAction *backwardAction;
57 QAction *previousAction;
63 Qt::WindowFlags normalFlags;
64 TranslucentButton *restoreButton;
69 #endif // MAINWINDOW_H