summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/videowidget.h
authorharlekin <harlekin>2002-08-15 16:29:52 (UTC)
committer harlekin <harlekin>2002-08-15 16:29:52 (UTC)
commit320f73ae9a8ffc6daf009b3fefb9035506b0f684 (patch) (side-by-side diff)
tree52b4e54d1c73cdff58411a1da2485effb2aaa6bb /noncore/multimedia/opieplayer2/videowidget.h
parent32ce744f58463ff11afb26ef5c4c8cf3f3d03fd3 (diff)
downloadopie-320f73ae9a8ffc6daf009b3fefb9035506b0f684.zip
opie-320f73ae9a8ffc6daf009b3fefb9035506b0f684.tar.gz
opie-320f73ae9a8ffc6daf009b3fefb9035506b0f684.tar.bz2
more simular to audiowidget
Diffstat (limited to 'noncore/multimedia/opieplayer2/videowidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/videowidget.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/noncore/multimedia/opieplayer2/videowidget.h b/noncore/multimedia/opieplayer2/videowidget.h
index 92193a4..710ba9e 100644
--- a/noncore/multimedia/opieplayer2/videowidget.h
+++ b/noncore/multimedia/opieplayer2/videowidget.h
@@ -38,13 +38,13 @@
#include "xinevideowidget.h"
class QPixmap;
class QSlider;
enum VideoButtons {
- VideoStop,
+ VideoStop = 0,
VideoPlay,
// VideoPause,
VideoPrevious,
VideoNext,
VideoVolUp,
VideoVolDown,
@@ -54,13 +54,13 @@ enum VideoButtons {
class VideoWidget : public QWidget {
Q_OBJECT
public:
VideoWidget( QWidget* parent=0, const char* name=0, WFlags f=0 );
~VideoWidget();
- bool playVideo();
+
XineVideoWidget* vidWidget();
public slots:
void updateSlider( long, long );
void sliderPressed( );
void sliderReleased( );
void setPaused( bool b);
@@ -69,19 +69,24 @@ public slots:
void makeVisible();
void setPosition( long );
void setLength( long );
void setView( char );
signals:
+ void moreClicked();
+ void lessClicked();
+ void moreReleased();
+ void lessReleased();
void sliderMoved( long );
- void videoResized ( const QSize &s );
+ void videoResized ( const QSize &s );
protected:
- QString skin;
+
void resizeEvent( QResizeEvent * );
void paintEvent( QPaintEvent *pe );
+ void showEvent( QShowEvent *se );
void mouseMoveEvent( QMouseEvent *event );
void mousePressEvent( QMouseEvent *event );
void mouseReleaseEvent( QMouseEvent *event );
void closeEvent( QCloseEvent *event );
void keyReleaseEvent( QKeyEvent *e);
@@ -91,15 +96,16 @@ private:
QImage *imgUp;
QImage *imgDn;
QImage *imgButtonMask;
QBitmap *masks[7];
QPixmap *buttonPixUp[7];
QPixmap *buttonPixDown[7];
+ QString skin;
// QPixmap *pixmaps[4];
int xoff, yoff;
-
+
void paintButton( QPainter *p, int i );
void toggleButton( int );
void setToggleButton( int, bool );
QString backgroundPix;