You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdemultimedia/noatun/library/noatun/video.h

62 lines
1.1 KiB

#ifndef NOATUN__VIDEO_H
#define NOATUN__VIDEO_H
#include <kvideowidget.h>
#include <arts/kmedia2.h>
class TQPopupMenu;
/**
* a widget that contains the video being played
**/
class VideoFrame : public KVideoWidget
{
TQ_OBJECT
struct Private;
VideoFrame::Private *d;
static TQPtrList<VideoFrame> frames;
static VideoFrame *whose;
public:
VideoFrame(KXMLGUIClient *clientParent, TQWidget *parent=0, const char *name=0, WFlags f=0);
VideoFrame(TQWidget *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();
TQPopupMenu *popupMenu(TQWidget *parent);
TQPopupMenu *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