11 #ifndef ARTSKDE_KVIDEOWIDGET_H
12 #define ARTSKDE_KVIDEOWIDGET_H
18 #include <kxmlguiclient.h>
21 class KDE_ARTS_EXPORT KVideoWidget :
public TQWidget,
virtual public KXMLGUIClient
26 KVideoWidget(
KXMLGUIClient *clientParent, TQWidget *parent = 0,
const char *name = 0, WFlags f = 0 );
27 KVideoWidget( TQWidget *parent = 0,
const char *name = 0, WFlags f = 0 );
28 virtual ~KVideoWidget();
30 void embed( Arts::VideoPlayObject vpo );
31 static TQImage snapshot( Arts::VideoPlayObject vpo );
39 TQSize sizeHint()
const;
41 virtual int heightForWidth (
int w )
const;
44 virtual void mousePressEvent( TQMouseEvent *event );
45 virtual void mouseDoubleClickEvent( TQMouseEvent *event);
46 virtual void resizeEvent( TQResizeEvent *event );
47 virtual bool x11Event( XEvent *event );
56 void resizeNotify(
int width,
int height );
59 void fullscreenActivated();
60 void halfSizeActivated();
61 void normalSizeActivated();
62 void doubleSizeActivated();
65 void adaptSize(
int width,
int height );
66 void mouseButtonPressed(
int type,
const TQPoint &,
int state );
67 void mouseButtonDoubleClick(
const TQPoint &,
int state );
72 void rightButtonPressed(
const TQPoint & );
76 TQWidget *fullscreenWidget;
79 Arts::VideoPlayObject poVideo;