X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=fullscreenwindow.h;h=0a84e549b97007f17581ebef79df02f97b532354;hb=HEAD;hp=601269b2470800c5ff4bdd5bbe17ff73c045db9e;hpb=986c5df2ad57bad44e8dd02286a2326406ace831;p=dorian diff --git a/fullscreenwindow.h b/fullscreenwindow.h index 601269b..0a84e54 100644 --- a/fullscreenwindow.h +++ b/fullscreenwindow.h @@ -10,6 +10,7 @@ class QWidget; class QMouseEvent; class QResizeEvent; class TranslucentButton; +class Progress; /** A full screen window with a restore button. */ class FullScreenWindow: public AdopterWindow @@ -17,16 +18,34 @@ class FullScreenWindow: public AdopterWindow Q_OBJECT public: - explicit FullScreenWindow(QWidget *parent); - void showFullScreen(); + explicit FullScreenWindow(QWidget *parent = 0); + + /** + * Adopt children. + * Same as @AdopterWindow::takeChildren(), but saves prog, previous + * and next, before calling base class method. + */ + void takeChildren(BookView *bookView, Progress *prog, + TranslucentButton *previous, TranslucentButton *next); signals: /** Emitted when the restore button is pressed. */ void restore(); protected: + /** Handle size (and orientation) change. */ void resizeEvent(QResizeEvent *e); + /** Handle show event. */ + void showEvent(QShowEvent *e); + + /** Handle close event. */ + void closeEvent(QCloseEvent *e); + +protected slots: + /** Re-align adopted child windows. */ + void placeChildren(); + private: TranslucentButton *restoreButton; };