compile
[kdegraphics.git] / okular / ui / videowidget.h
blob764eb588c6f800ab0e54220efe43e322c8b72d05
1 /***************************************************************************
2 * Copyright (C) 2008 by Pino Toscano <pino@kde.org> *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 ***************************************************************************/
10 #ifndef _OKULAR_VIDEOWIDGET_H_
11 #define _OKULAR_VIDEOWIDGET_H_
13 #include <qwidget.h>
15 namespace Okular {
16 class Document;
17 class MovieAnnotation;
18 class NormalizedRect;
21 class VideoWidget : public QWidget
23 Q_OBJECT
24 public:
25 VideoWidget( Okular::MovieAnnotation *movieann, Okular::Document *document, QWidget *parent = 0 );
26 ~VideoWidget();
28 void setNormGeometry( const Okular::NormalizedRect &rect );
29 Okular::NormalizedRect normGeometry() const;
31 public slots:
32 void play();
33 void pause();
34 void stop();
36 protected:
37 /* reimp */ bool eventFilter( QObject * object, QEvent * event );
38 /* reimp */ bool event( QEvent * event );
39 /* reimp */ void resizeEvent( QResizeEvent * event );
41 private:
42 Q_PRIVATE_SLOT( d, void finished() )
43 Q_PRIVATE_SLOT( d, void playOrPause() )
45 // private storage
46 class Private;
47 Private *d;
50 #endif