X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=adopterwindow.h;h=c6c99cd4adc3ea104f86f90d2a4f957497142137;hb=b72c0798bfde194a8f87ecd15956bbe99b184db8;hp=eb30d53b8f36fbd8cf0abd960e2393368fa28011;hpb=6c8d9bb19213aee37517232ef889409200e53ac1;p=dorian diff --git a/adopterwindow.h b/adopterwindow.h index eb30d53..c6c99cd 100644 --- a/adopterwindow.h +++ b/adopterwindow.h @@ -60,10 +60,14 @@ public slots: /** Handle settings changes. */ void onSettingsChanged(const QString &key); -protected: - /** Return true, if we are in portrait mode. */ - bool portrait(); +signals: + /** Emitted when Page Up or Volume Up pressed. */ + void pageUp(); + + /** Emitted when Page Down or Volume Down pressed. */ + void pageDown(); +protected: /** Handle key press events. */ void keyPressEvent(QKeyEvent *event); @@ -73,16 +77,35 @@ protected: */ void showEvent(QShowEvent *event); - /** Handle resize events. */ + /** Handle resize event: Restore reading position. */ void resizeEvent(QResizeEvent *event); + /** Handle close event. */ + void closeEvent(QCloseEvent *event); + + /** Handle leave event: Save reading position. */ + void leaveEvent(QEvent *event); + +#ifdef Q_OS_SYMBIAN + /** Update toolbar visibility. */ + void updateToolBar(); + + /** Return true in portrait mode. */ + bool portrait(); +#endif // Q_OS_SYMBIAN + #ifdef Q_WS_MAEMO_5 /** Actually grab the volume keys. */ void doGrabVolumeKeys(bool grab); -#endif +#endif // Q_WS_MAEMO_5 + + /** Hide tool bar if visible. */ + void hideToolBar(); protected slots: void placeDecorations(); + void onPageDown(); + void onPageUp(); private: BookView *bookView; /**< Book view widget. */