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);
36 # define MOUSE_ACTIVATE_EVENT mouseReleaseEvent
38 # define MOUSE_ACTIVATE_EVENT mousePressEvent
40 virtual void MOUSE_ACTIVATE_EVENT(QMouseEvent *event);
41 virtual void resizeEvent(QResizeEvent *event);
42 virtual void closeEvent(QCloseEvent *event);
45 void setCurrentBook(const QModelIndex ¤t);
46 QAction *addToolBarAction(const QObject *receiver, const char *member,
48 QRect fullScreenZone() const;
50 QAction *settingsAction;
51 QAction *libraryAction;
53 QAction *devToolsAction;
54 QAction *bookmarksAction;
55 QAction *fullScreenAction;
56 QAction *forwardAction;
57 QAction *backwardAction;
58 QAction *previousAction;
64 Qt::WindowFlags normalFlags;
65 TranslucentButton *restoreButton;
70 #endif // MAINWINDOW_H