00001 #ifndef __VIDEO_H
00002 #define __VIDEO_H
00003
00004 #include <qframe.h>
00005 #include <arts/kmedia2.h>
00006
00007
00008 class Video : public QFrame
00009 {
00010 Q_OBJECT
00011
00012 public:
00013
00014
00015
00016
00017
00018
00019 Video(const QString &title, QWidget *parent, const char *name=0, WFlags f=0);
00020 ~Video();
00021
00022 bool fullscreen() const;
00023
00024 Arts::VideoPlayObject video() const;
00025
00026 public slots:
00027 virtual void setFullscreen(bool fs);
00028 void setFullscreen() { setFullscreen(true); }
00029
00030 protected:
00031 virtual void window(WId video);
00032 virtual void destroyed();
00033
00034 private slots:
00035 void changed();
00036 void doItAgain();
00037 public:
00038 void embed(WId w);
00039 bool embedded() { if(mWindow != 0) return true; else return false; }
00040
00041 QSize sizeHint() const;
00042 QSize minimumSizeHint() const;
00043 QSizePolicy sizePolicy() const;
00044
00045 bool eventFilter(QObject *, QEvent *);
00046
00047 protected:
00048 bool event(QEvent *);
00049
00050 void focusInEvent(QFocusEvent *);
00051 void focusOutEvent(QFocusEvent *);
00052 void resizeEvent(QResizeEvent *);
00053
00054 bool x11Event(XEvent *);
00055
00056 bool focusNextPrevChild(bool next);
00057
00058 private:
00059 WId mWindow;
00060 };
00061
00062
00063 #endif
00064