Add tool bar on Symbian. Fix some orientation change bugs.
[dorian] / fullscreenwindow.h
index 601269b..c30c309 100644 (file)
@@ -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
@@ -18,17 +19,31 @@ class FullScreenWindow: public AdopterWindow
 
 public:
     explicit FullScreenWindow(QWidget *parent);
+
+    /** Swith to full screen, and flash the restore button. */
     void showFullScreen();
 
+    /**
+     * 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);
 
 private:
     TranslucentButton *restoreButton;
+    Progress *progress;
+    TranslucentButton *previousButton;
+    TranslucentButton *nextButton;
 };
 
 #endif // FULLSCREENWINDOW_H