author | llornkcor <llornkcor> | 2002-08-10 17:41:15 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-08-10 17:41:15 (UTC) |
commit | b488752cf2149443dcebcc8f7ad21c1ba47070fa (patch) (unidiff) | |
tree | 461adc8345f14d495466e5082f36651a844bde67 /noncore/multimedia/opieplayer2/videowidget.h | |
parent | fb46a101bab9348ebfb68094b7c6cf54e56ea774 (diff) | |
download | opie-b488752cf2149443dcebcc8f7ad21c1ba47070fa.zip opie-b488752cf2149443dcebcc8f7ad21c1ba47070fa.tar.gz opie-b488752cf2149443dcebcc8f7ad21c1ba47070fa.tar.bz2 |
added skins to videowidget, fixed fullscreen menu. Still needs work on buttonmask.
Diffstat (limited to 'noncore/multimedia/opieplayer2/videowidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/videowidget.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/videowidget.h b/noncore/multimedia/opieplayer2/videowidget.h index 04e810e..830696e 100644 --- a/noncore/multimedia/opieplayer2/videowidget.h +++ b/noncore/multimedia/opieplayer2/videowidget.h | |||
@@ -56,6 +56,7 @@ public: | |||
56 | VideoWidget( QWidget* parent=0, const char* name=0, WFlags f=0 ); | 56 | VideoWidget( QWidget* parent=0, const char* name=0, WFlags f=0 ); |
57 | ~VideoWidget(); | 57 | ~VideoWidget(); |
58 | 58 | ||
59 | bool playVideo(); | ||
59 | XineVideoWidget* vidWidget(); | 60 | XineVideoWidget* vidWidget(); |
60 | public slots: | 61 | public slots: |
61 | void updateSlider( long, long ); | 62 | void updateSlider( long, long ); |
@@ -71,9 +72,11 @@ public slots: | |||
71 | 72 | ||
72 | signals: | 73 | signals: |
73 | void sliderMoved( long ); | 74 | void sliderMoved( long ); |
74 | void videoResized ( const QSize &s ); | 75 | void videoResized ( const QSize &s ); |
75 | 76 | ||
76 | protected: | 77 | protected: |
78 | QString skin; | ||
79 | void resizeEvent( QResizeEvent * ); | ||
77 | void paintEvent( QPaintEvent *pe ); | 80 | void paintEvent( QPaintEvent *pe ); |
78 | void mouseMoveEvent( QMouseEvent *event ); | 81 | void mouseMoveEvent( QMouseEvent *event ); |
79 | void mousePressEvent( QMouseEvent *event ); | 82 | void mousePressEvent( QMouseEvent *event ); |
@@ -82,6 +85,18 @@ protected: | |||
82 | void keyReleaseEvent( QKeyEvent *e); | 85 | void keyReleaseEvent( QKeyEvent *e); |
83 | 86 | ||
84 | private: | 87 | private: |
88 | // Ticker songInfo; | ||
89 | QPixmap *pixBg; | ||
90 | QImage *imgUp; | ||
91 | QImage *imgDn; | ||
92 | QImage *imgButtonMask; | ||
93 | QBitmap *masks[7]; | ||
94 | QPixmap *buttonPixUp[7]; | ||
95 | QPixmap *buttonPixDown[7]; | ||
96 | // QPixmap *pixmaps[4]; | ||
97 | int xoff, yoff; | ||
98 | |||
99 | |||
85 | void paintButton( QPainter *p, int i ); | 100 | void paintButton( QPainter *p, int i ); |
86 | void toggleButton( int ); | 101 | void toggleButton( int ); |
87 | void setToggleButton( int, bool ); | 102 | void setToggleButton( int, bool ); |