Show cover images in library.
[dorian] / fullscreenwindow.h
1 #ifndef FULLSCREENWINDOW_H
2 #define FULLSCREENWINDOW_H
3
4 #include <QMainWindow>
5
6 class TranslucentButton;
7
8 class FullScreenWindow: public QMainWindow
9 {
10     Q_OBJECT
11 public:
12     explicit FullScreenWindow(QWidget *parent);
13     void showFullScreen();
14     void takeChild(QWidget *child);
15     void leaveChild();
16
17 signals:
18     void restore();
19
20 protected:
21 #ifdef Q_WS_MAEMO_5
22 #   define MOUSE_ACTIVATE_EVENT mouseReleaseEvent
23 #else
24 #   define MOUSE_ACTIVATE_EVENT mousePressEvent
25 #endif
26     virtual void MOUSE_ACTIVATE_EVENT(QMouseEvent *event);
27     virtual void resizeEvent(QResizeEvent *event);
28     QRect fullScreenZone() const;
29     TranslucentButton *restoreButton;
30     QWidget *child;
31 };
32
33 #endif // FULLSCREENWINDOW_H