Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

video.h

Go to the documentation of this file.
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      * Give this widget a name.  The name should be
00015      * unique, probably the same as your plugin's
00016      * name.  This class is OPTIONAL, and only useful
00017      * for reparenting
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 

Generated at Mon Apr 1 11:45:01 2002 for noatun by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001