author | llornkcor <llornkcor> | 2003-04-20 02:30:43 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2003-04-20 02:30:43 (UTC) |
commit | 845c8a880a2ff701f21c2845674e97a2493499f4 (patch) (side-by-side diff) | |
tree | c91b65869022c2628f509cb27685e45dfb199679 /core/multimedia/opieplayer/videowidget.h | |
parent | b62c40465c917e4952651b6f359e5ec76b340d3f (diff) | |
download | opie-845c8a880a2ff701f21c2845674e97a2493499f4.zip opie-845c8a880a2ff701f21c2845674e97a2493499f4.tar.gz opie-845c8a880a2ff701f21c2845674e97a2493499f4.tar.bz2 |
add video skin support *finally*, fixed widget for landscape/sizing
Diffstat (limited to 'core/multimedia/opieplayer/videowidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/videowidget.h | 21 |
1 files changed, 16 insertions, 5 deletions
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 @@ -39,3 +39,2 @@ enum VideoButtons { - class VideoWidget : public QWidget { @@ -64,2 +63,3 @@ signals: protected: + void resizeEvent( QResizeEvent * ); void paintEvent( QPaintEvent *pe ); @@ -72,6 +72,11 @@ protected: 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; @@ -79,4 +84,10 @@ private: QImage *currentFrame; + int xoff, yoff; int scaledWidth; int scaledHeight; + + void paintButton( QPainter *p, int i ); + void toggleButton( int ); + void setToggleButton( int, bool ); + }; |