Fix Symbian bugs.
[dorian] / fullscreenwindow.h
index 5c8a15f..601269b 100644 (file)
@@ -1,35 +1,34 @@
 #ifndef FULLSCREENWINDOW_H
 #define FULLSCREENWINDOW_H
 
-#include <QMainWindow>
+#include <QRect>
+#include <QObject>
 
+#include "adopterwindow.h"
+
+class QWidget;
+class QMouseEvent;
+class QResizeEvent;
 class TranslucentButton;
 
-class FullScreenWindow: public QMainWindow
+/** A full screen window with a restore button. */
+class FullScreenWindow: public AdopterWindow
 {
     Q_OBJECT
+
 public:
     explicit FullScreenWindow(QWidget *parent);
     void showFullScreen();
-    void takeChild(QWidget *child);
-    void leaveChild();
 
 signals:
+    /** Emitted when the restore button is pressed. */
     void restore();
 
-public slots:
-
 protected:
-#ifdef Q_WS_MAEMO_5
-#   define MOUSE_ACTIVATE_EVENT mouseReleaseEvent
-#else
-#   define MOUSE_ACTIVATE_EVENT mousePressEvent
-#endif
-    virtual void MOUSE_ACTIVATE_EVENT(QMouseEvent *event);
-    virtual void resizeEvent(QResizeEvent *event);
-    QRect fullScreenZone() const;
+    void resizeEvent(QResizeEvent *e);
+
+private:
     TranslucentButton *restoreButton;
-    QWidget *child;
 };
 
 #endif // FULLSCREENWINDOW_H