]> git.sur5r.net Git - minitube/blob - src/videoareawidget.h
view crossfades only on the Mac
[minitube] / src / videoareawidget.h
1 #ifndef VIDEOAREAWIDGET_H
2 #define VIDEOAREAWIDGET_H
3
4 #include <QWidget>
5 #include "video.h"
6 #include "loadingwidget.h"
7
8 class VideoAreaWidget : public QWidget {
9
10     Q_OBJECT
11
12 public:
13     VideoAreaWidget(QWidget *parent);
14     void setVideoWidget(QWidget *videoWidget);
15     void setLoadingWidget(LoadingWidget *loadingWidget);
16     void showLoading(Video* video);
17     void showVideo();
18
19 signals:
20     void doubleClicked();
21     void rightClicked();
22
23 protected:
24     void mouseDoubleClickEvent(QMouseEvent *event);
25     void mousePressEvent(QMouseEvent *event);
26
27 private:
28     QStackedLayout *stackedLayout;
29     QWidget *videoWidget;
30     LoadingWidget *loadingWidget;
31
32 };
33
34 #endif // VIDEOAREAWIDGET_H