From 845c8a880a2ff701f21c2845674e97a2493499f4 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Sun, 20 Apr 2003 02:30:43 +0000 Subject: add video skin support *finally*, fixed widget for landscape/sizing --- (limited to 'core/multimedia/opieplayer/videowidget.h') diff --git a/core/multimedia/opieplayer/videowidget.h b/core/multimedia/opieplayer/videowidget.h index fe56ca1..fd86cd2 100644 --- a/core/multimedia/opieplayer/videowidget.h +++ b/core/multimedia/opieplayer/videowidget.h @@ -37,7 +37,6 @@ enum VideoButtons { VideoFullscreen }; - class VideoWidget : public QWidget { Q_OBJECT public: @@ -62,6 +61,7 @@ signals: void sliderMoved( long ); protected: + void resizeEvent( QResizeEvent * ); void paintEvent( QPaintEvent *pe ); void mouseMoveEvent( QMouseEvent *event ); void mousePressEvent( QMouseEvent *event ); @@ -70,15 +70,26 @@ protected: void keyReleaseEvent( QKeyEvent *e); private: - void paintButton( QPainter *p, int i ); - void toggleButton( int ); - void setToggleButton( int, bool ); - + QPixmap *pixBg; + QImage *imgUp; + QImage *imgDn; + QImage *imgButtonMask; + QBitmap *masks[7]; + QString backgroundPix; + QPixmap *buttonPixUp[7]; + QPixmap *buttonPixDown[7]; + QString skin; QSlider *slider; QPixmap *pixmaps[3]; QImage *currentFrame; + int xoff, yoff; int scaledWidth; int scaledHeight; + + void paintButton( QPainter *p, int i ); + void toggleButton( int ); + void setToggleButton( int, bool ); + }; -- cgit v0.9.0.2