author | llornkcor <llornkcor> | 2003-04-20 02:30:43 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2003-04-20 02:30:43 (UTC) |
commit | 845c8a880a2ff701f21c2845674e97a2493499f4 (patch) (unidiff) | |
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 { | |||
39 | 39 | ||
40 | |||
41 | class VideoWidget : public QWidget { | 40 | class VideoWidget : public QWidget { |
@@ -64,2 +63,3 @@ signals: | |||
64 | protected: | 63 | protected: |
64 | void resizeEvent( QResizeEvent * ); | ||
65 | void paintEvent( QPaintEvent *pe ); | 65 | void paintEvent( QPaintEvent *pe ); |
@@ -72,6 +72,11 @@ protected: | |||
72 | private: | 72 | private: |
73 | void paintButton( QPainter *p, int i ); | 73 | QPixmap *pixBg; |
74 | void toggleButton( int ); | 74 | QImage *imgUp; |
75 | void setToggleButton( int, bool ); | 75 | QImage *imgDn; |
76 | 76 | QImage *imgButtonMask; | |
77 | QBitmap *masks[7]; | ||
78 | QString backgroundPix; | ||
79 | QPixmap *buttonPixUp[7]; | ||
80 | QPixmap *buttonPixDown[7]; | ||
81 | QString skin; | ||
77 | QSlider *slider; | 82 | QSlider *slider; |
@@ -79,4 +84,10 @@ private: | |||
79 | QImage *currentFrame; | 84 | QImage *currentFrame; |
85 | int xoff, yoff; | ||
80 | int scaledWidth; | 86 | int scaledWidth; |
81 | int scaledHeight; | 87 | int scaledHeight; |
88 | |||
89 | void paintButton( QPainter *p, int i ); | ||
90 | void toggleButton( int ); | ||
91 | void setToggleButton( int, bool ); | ||
92 | |||
82 | }; | 93 | }; |