diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | e2de64d6f1beb9e492daf5b886e19933c1fa41dd (patch) | |
tree | 9047cf9e6b5c43878d5bf82660adae77ceee097a /noatun/library/noatun/video.h | |
download | tdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.tar.gz tdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun/library/noatun/video.h')
-rw-r--r-- | noatun/library/noatun/video.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/noatun/library/noatun/video.h b/noatun/library/noatun/video.h new file mode 100644 index 00000000..3655c489 --- /dev/null +++ b/noatun/library/noatun/video.h @@ -0,0 +1,60 @@ +#ifndef NOATUN__VIDEO_H +#define NOATUN__VIDEO_H + +#include <kvideowidget.h> +#include <arts/kmedia2.h> + +class QPopupMenu; + +/** + * a widget that contains the video being played + **/ +class VideoFrame : public KVideoWidget +{ +Q_OBJECT + struct Private; + VideoFrame::Private *d; + + static QPtrList<VideoFrame> frames; + static VideoFrame *whose; + +public: + VideoFrame(KXMLGUIClient *clientParent, QWidget *parent=0, const char *name=0, WFlags f=0); + VideoFrame(QWidget *parent = 0, const char *name=0, WFlags f=0); + ~VideoFrame(); + + /** + * which one has the video (or will have it next, if no video is playing) + **/ + static VideoFrame *playing(); + + QPopupMenu *popupMenu(QWidget *parent); + QPopupMenu *popupMenu() { return popupMenu(this); } + +public slots: + /** + * only one VideoFrame can be playing a video, make this the one + **/ + void give(); + +private slots: + void stopped(); + void changed(); + +signals: + /** + * signaled when video is playing in here, when + * (width*height) != 0 + **/ + void acquired(); + /** + * signaled when video is no longer playing + * here, when (width*heoght) == 0 + */ + void lost(); +}; + + + +#endif + |