X-Git-Url: http://git.maemo.org/git/?p=dorian;a=blobdiff_plain;f=adopterwindow.h;h=c6c99cd4adc3ea104f86f90d2a4f957497142137;hp=841b527b4b73fabb9eb4cfa5d2897c97b6032f1e;hb=5b90676a3adb2b9df8504684093c165f684eac29;hpb=7b42f323a258a49383e60efa14d3511723adc6e5 diff --git a/adopterwindow.h b/adopterwindow.h index 841b527..c6c99cd 100644 --- a/adopterwindow.h +++ b/adopterwindow.h @@ -60,6 +60,13 @@ public slots: /** Handle settings changes. */ void onSettingsChanged(const QString &key); +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); @@ -70,9 +77,15 @@ 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(); @@ -86,8 +99,13 @@ protected: void doGrabVolumeKeys(bool grab); #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. */