summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/audiowidget.cpp5
-rw-r--r--noncore/multimedia/opieplayer2/audiowidget.h1
-rw-r--r--noncore/multimedia/opieplayer2/mediawidget.cpp5
-rw-r--r--noncore/multimedia/opieplayer2/mediawidget.h2
-rw-r--r--noncore/multimedia/opieplayer2/videowidget.cpp5
-rw-r--r--noncore/multimedia/opieplayer2/videowidget.h1
6 files changed, 7 insertions, 12 deletions
diff --git a/noncore/multimedia/opieplayer2/audiowidget.cpp b/noncore/multimedia/opieplayer2/audiowidget.cpp
index 3070bc3..f6e6086 100644
--- a/noncore/multimedia/opieplayer2/audiowidget.cpp
+++ b/noncore/multimedia/opieplayer2/audiowidget.cpp
@@ -409,69 +409,64 @@ void AudioWidget::mouseMoveEvent( QMouseEvent *event ) {
409 toggleButton(i); 409 toggleButton(i);
410 } 410 }
411 } else { 411 } else {
412 if ( audioButtons[i].isHeld ) { 412 if ( audioButtons[i].isHeld ) {
413 audioButtons[i].isHeld = FALSE; 413 audioButtons[i].isHeld = FALSE;
414 if ( !audioButtons[i].isToggle ) { 414 if ( !audioButtons[i].isToggle ) {
415 setToggleButton( i, FALSE ); 415 setToggleButton( i, FALSE );
416 } 416 }
417 qDebug("mouseEvent %d", i); 417 qDebug("mouseEvent %d", i);
418 handleCommand( static_cast<Command>( i ), audioButtons[ i ].isDown ); 418 handleCommand( static_cast<Command>( i ), audioButtons[ i ].isDown );
419 } 419 }
420 } 420 }
421 } 421 }
422} 422}
423 423
424 424
425void AudioWidget::mousePressEvent( QMouseEvent *event ) { 425void AudioWidget::mousePressEvent( QMouseEvent *event ) {
426 mouseMoveEvent( event ); 426 mouseMoveEvent( event );
427} 427}
428 428
429 429
430void AudioWidget::mouseReleaseEvent( QMouseEvent *event ) { 430void AudioWidget::mouseReleaseEvent( QMouseEvent *event ) {
431 mouseMoveEvent( event ); 431 mouseMoveEvent( event );
432} 432}
433 433
434 434
435void AudioWidget::showEvent( QShowEvent* ) { 435void AudioWidget::showEvent( QShowEvent* ) {
436 QMouseEvent event( QEvent::MouseMove, QPoint( 0, 0 ), 0, 0 ); 436 QMouseEvent event( QEvent::MouseMove, QPoint( 0, 0 ), 0, 0 );
437 mouseMoveEvent( &event ); 437 mouseMoveEvent( &event );
438} 438}
439 439
440 440
441void AudioWidget::closeEvent( QCloseEvent* ) {
442 mediaPlayerState.setList();
443}
444
445
446void AudioWidget::paintEvent( QPaintEvent * pe ) { 441void AudioWidget::paintEvent( QPaintEvent * pe ) {
447 if ( !pe->erased() ) { 442 if ( !pe->erased() ) {
448 // Combine with background and double buffer 443 // Combine with background and double buffer
449 QPixmap pix( pe->rect().size() ); 444 QPixmap pix( pe->rect().size() );
450 QPainter p( &pix ); 445 QPainter p( &pix );
451 p.translate( -pe->rect().topLeft().x(), -pe->rect().topLeft().y() ); 446 p.translate( -pe->rect().topLeft().x(), -pe->rect().topLeft().y() );
452 p.drawTiledPixmap( pe->rect(), pixBg, pe->rect().topLeft() ); 447 p.drawTiledPixmap( pe->rect(), pixBg, pe->rect().topLeft() );
453 for ( int i = 0; i < numButtons; i++ ) 448 for ( int i = 0; i < numButtons; i++ )
454 paintButton( &p, i ); 449 paintButton( &p, i );
455 QPainter p2( this ); 450 QPainter p2( this );
456 p2.drawPixmap( pe->rect().topLeft(), pix ); 451 p2.drawPixmap( pe->rect().topLeft(), pix );
457 } else { 452 } else {
458 QPainter p( this ); 453 QPainter p( this );
459 for ( int i = 0; i < numButtons; i++ ) 454 for ( int i = 0; i < numButtons; i++ )
460 paintButton( &p, i ); 455 paintButton( &p, i );
461 } 456 }
462} 457}
463 458
464void AudioWidget::keyReleaseEvent( QKeyEvent *e) { 459void AudioWidget::keyReleaseEvent( QKeyEvent *e) {
465 switch ( e->key() ) { 460 switch ( e->key() ) {
466 ////////////////////////////// Zaurus keys 461 ////////////////////////////// Zaurus keys
467 case Key_Home: 462 case Key_Home:
468 break; 463 break;
469 case Key_F9: //activity 464 case Key_F9: //activity
470 hide(); 465 hide();
471 // qDebug("Audio F9"); 466 // qDebug("Audio F9");
472 break; 467 break;
473 case Key_F10: //contacts 468 case Key_F10: //contacts
474 break; 469 break;
475 case Key_F11: //menu 470 case Key_F11: //menu
476 mediaPlayerState.toggleBlank(); 471 mediaPlayerState.toggleBlank();
477 break; 472 break;
diff --git a/noncore/multimedia/opieplayer2/audiowidget.h b/noncore/multimedia/opieplayer2/audiowidget.h
index 1778a30..f092699 100644
--- a/noncore/multimedia/opieplayer2/audiowidget.h
+++ b/noncore/multimedia/opieplayer2/audiowidget.h
@@ -56,63 +56,62 @@ public:
56 ~AudioWidget(); 56 ~AudioWidget();
57 void setTickerText( const QString &text ) { songInfo.setText( text ); } 57 void setTickerText( const QString &text ) { songInfo.setText( text ); }
58public slots: 58public slots:
59 void updateSlider( long, long ); 59 void updateSlider( long, long );
60 void sliderPressed( ); 60 void sliderPressed( );
61 void sliderReleased( ); 61 void sliderReleased( );
62 void setLooping( bool b) { setToggleButton( Loop, b ); } 62 void setLooping( bool b) { setToggleButton( Loop, b ); }
63 void setPosition( long ); 63 void setPosition( long );
64 void setSeekable( bool ); 64 void setSeekable( bool );
65 65
66public: 66public:
67 virtual void setLength( long ); 67 virtual void setLength( long );
68 virtual void setPlaying( bool b) { setToggleButton( Play, b ); } 68 virtual void setPlaying( bool b) { setToggleButton( Play, b ); }
69 virtual void setDisplayType( MediaPlayerState::DisplayType displayType ); 69 virtual void setDisplayType( MediaPlayerState::DisplayType displayType );
70 70
71signals: 71signals:
72 void moreClicked(); 72 void moreClicked();
73 void lessClicked(); 73 void lessClicked();
74 void forwardClicked(); 74 void forwardClicked();
75 void backClicked(); 75 void backClicked();
76 void sliderMoved(long); 76 void sliderMoved(long);
77 77
78protected: 78protected:
79 void doBlank(); 79 void doBlank();
80 void doUnblank(); 80 void doUnblank();
81 void paintEvent( QPaintEvent *pe ); 81 void paintEvent( QPaintEvent *pe );
82 void showEvent( QShowEvent *se ); 82 void showEvent( QShowEvent *se );
83 void resizeEvent( QResizeEvent *re ); 83 void resizeEvent( QResizeEvent *re );
84 void mouseMoveEvent( QMouseEvent *event ); 84 void mouseMoveEvent( QMouseEvent *event );
85 void mousePressEvent( QMouseEvent *event ); 85 void mousePressEvent( QMouseEvent *event );
86 void mouseReleaseEvent( QMouseEvent *event ); 86 void mouseReleaseEvent( QMouseEvent *event );
87 void timerEvent( QTimerEvent *event ); 87 void timerEvent( QTimerEvent *event );
88 void closeEvent( QCloseEvent *event );
89 void keyReleaseEvent( QKeyEvent *e); 88 void keyReleaseEvent( QKeyEvent *e);
90private slots: 89private slots:
91 void skipFor(); 90 void skipFor();
92 void skipBack(); 91 void skipBack();
93 void stopSkip(); 92 void stopSkip();
94private: 93private:
95 void toggleButton( int ); 94 void toggleButton( int );
96 void setToggleButton( int, bool ); 95 void setToggleButton( int, bool );
97 void paintButton( QPainter *p, int i ); 96 void paintButton( QPainter *p, int i );
98 int skipDirection; 97 int skipDirection;
99 QString skin; 98 QString skin;
100 QPixmap pixBg; 99 QPixmap pixBg;
101 QImage imgUp; 100 QImage imgUp;
102 QImage imgDn; 101 QImage imgDn;
103 QImage imgButtonMask; 102 QImage imgButtonMask;
104 QBitmap *masks[10]; 103 QBitmap *masks[10];
105 QPixmap *buttonPixUp[10]; 104 QPixmap *buttonPixUp[10];
106 QPixmap *buttonPixDown[10]; 105 QPixmap *buttonPixDown[10];
107 106
108 QPixmap *pixmaps[4]; 107 QPixmap *pixmaps[4];
109 OTicker songInfo; 108 OTicker songInfo;
110 QSlider slider; 109 QSlider slider;
111 QLineEdit time; 110 QLineEdit time;
112 int xoff, yoff; 111 int xoff, yoff;
113 bool isStreaming : 1; 112 bool isStreaming : 1;
114}; 113};
115 114
116 115
117#endif // AUDIO_WIDGET_H 116#endif // AUDIO_WIDGET_H
118 117
diff --git a/noncore/multimedia/opieplayer2/mediawidget.cpp b/noncore/multimedia/opieplayer2/mediawidget.cpp
index 01a7295..2992fd6 100644
--- a/noncore/multimedia/opieplayer2/mediawidget.cpp
+++ b/noncore/multimedia/opieplayer2/mediawidget.cpp
@@ -9,50 +9,55 @@
9 This library is distributed in the hope that it will be useful, 9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details. 12 Library General Public License for more details.
13 13
14 You should have received a copy of the GNU Library General Public License 14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to 15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 16 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 Boston, MA 02111-1307, USA. 17 Boston, MA 02111-1307, USA.
18*/ 18*/
19 19
20 20
21#include "mediawidget.h" 21#include "mediawidget.h"
22#include "playlistwidget.h" 22#include "playlistwidget.h"
23 23
24extern PlayListWidget *playList; 24extern PlayListWidget *playList;
25 25
26MediaWidget::MediaWidget( MediaPlayerState &_mediaPlayerState, QWidget *parent, const char *name ) 26MediaWidget::MediaWidget( MediaPlayerState &_mediaPlayerState, QWidget *parent, const char *name )
27 : QWidget( parent, name ), mediaPlayerState( _mediaPlayerState ) 27 : QWidget( parent, name ), mediaPlayerState( _mediaPlayerState )
28{ 28{
29 connect( &mediaPlayerState, SIGNAL( displayTypeChanged( MediaPlayerState::DisplayType ) ), 29 connect( &mediaPlayerState, SIGNAL( displayTypeChanged( MediaPlayerState::DisplayType ) ),
30 this, SLOT( setDisplayType( MediaPlayerState::DisplayType ) ) ); 30 this, SLOT( setDisplayType( MediaPlayerState::DisplayType ) ) );
31 connect( &mediaPlayerState, SIGNAL( lengthChanged( long ) ), 31 connect( &mediaPlayerState, SIGNAL( lengthChanged( long ) ),
32 this, SLOT( setLength( long ) ) ); 32 this, SLOT( setLength( long ) ) );
33 connect( &mediaPlayerState, SIGNAL( playingToggled( bool ) ), 33 connect( &mediaPlayerState, SIGNAL( playingToggled( bool ) ),
34 this, SLOT( setPlaying( bool ) ) ); 34 this, SLOT( setPlaying( bool ) ) );
35} 35}
36 36
37MediaWidget::~MediaWidget() 37MediaWidget::~MediaWidget()
38{ 38{
39} 39}
40 40
41void MediaWidget::closeEvent( QCloseEvent * )
42{
43 mediaPlayerState.setList();
44}
45
41void MediaWidget::handleCommand( Command command, bool buttonDown ) 46void MediaWidget::handleCommand( Command command, bool buttonDown )
42{ 47{
43 switch ( command ) { 48 switch ( command ) {
44 case Play: mediaPlayerState.togglePaused(); 49 case Play: mediaPlayerState.togglePaused();
45 case Stop: mediaPlayerState.setPlaying(FALSE); return; 50 case Stop: mediaPlayerState.setPlaying(FALSE); return;
46 case Next: if( playList->currentTab() == PlayListWidget::CurrentPlayList ) mediaPlayerState.setNext(); return; 51 case Next: if( playList->currentTab() == PlayListWidget::CurrentPlayList ) mediaPlayerState.setNext(); return;
47 case Previous: if( playList->currentTab() == PlayListWidget::CurrentPlayList ) mediaPlayerState.setPrev(); return; 52 case Previous: if( playList->currentTab() == PlayListWidget::CurrentPlayList ) mediaPlayerState.setPrev(); return;
48 case Loop: mediaPlayerState.setLooping( buttonDown ); return; 53 case Loop: mediaPlayerState.setLooping( buttonDown ); return;
49 case VolumeUp: emit moreReleased(); return; 54 case VolumeUp: emit moreReleased(); return;
50 case VolumeDown: emit lessReleased(); return; 55 case VolumeDown: emit lessReleased(); return;
51 case PlayList: mediaPlayerState.setList(); return; 56 case PlayList: mediaPlayerState.setList(); return;
52 case Forward: emit forwardReleased(); return; 57 case Forward: emit forwardReleased(); return;
53 case Back: emit backReleased(); return; 58 case Back: emit backReleased(); return;
54 } 59 }
55} 60}
56 61
57/* vim: et sw=4 ts=4 62/* vim: et sw=4 ts=4
58 */ 63 */
diff --git a/noncore/multimedia/opieplayer2/mediawidget.h b/noncore/multimedia/opieplayer2/mediawidget.h
index 550f0fc..e3f09ce 100644
--- a/noncore/multimedia/opieplayer2/mediawidget.h
+++ b/noncore/multimedia/opieplayer2/mediawidget.h
@@ -16,40 +16,42 @@
16 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 16 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 Boston, MA 02111-1307, USA. 17 Boston, MA 02111-1307, USA.
18*/ 18*/
19 19
20#ifndef MEDIAWIDGET_H 20#ifndef MEDIAWIDGET_H
21#define MEDIAWIDGET_H 21#define MEDIAWIDGET_H
22 22
23#include <qwidget.h> 23#include <qwidget.h>
24 24
25#include "mediaplayerstate.h" 25#include "mediaplayerstate.h"
26 26
27class MediaWidget : public QWidget 27class MediaWidget : public QWidget
28{ 28{
29 Q_OBJECT 29 Q_OBJECT
30public: 30public:
31 enum Command { Play = 0, Stop, Next, Previous, VolumeUp, VolumeDown, Loop, PlayList, Forward, Back }; 31 enum Command { Play = 0, Stop, Next, Previous, VolumeUp, VolumeDown, Loop, PlayList, Forward, Back };
32 32
33 MediaWidget( MediaPlayerState &_mediaPlayerState, QWidget *parent = 0, const char *name = 0 ); 33 MediaWidget( MediaPlayerState &_mediaPlayerState, QWidget *parent = 0, const char *name = 0 );
34 virtual ~MediaWidget(); 34 virtual ~MediaWidget();
35 35
36public slots: 36public slots:
37 virtual void setDisplayType( MediaPlayerState::DisplayType displayType ) = 0; 37 virtual void setDisplayType( MediaPlayerState::DisplayType displayType ) = 0;
38 virtual void setLength( long length ) = 0; 38 virtual void setLength( long length ) = 0;
39 virtual void setPlaying( bool playing ) = 0; 39 virtual void setPlaying( bool playing ) = 0;
40 40
41signals: 41signals:
42 void moreReleased(); 42 void moreReleased();
43 void lessReleased(); 43 void lessReleased();
44 void forwardReleased(); 44 void forwardReleased();
45 void backReleased(); 45 void backReleased();
46 46
47protected: 47protected:
48 virtual void closeEvent( QCloseEvent * );
49
48 void handleCommand( Command command, bool buttonDown ); 50 void handleCommand( Command command, bool buttonDown );
49 51
50 MediaPlayerState &mediaPlayerState; 52 MediaPlayerState &mediaPlayerState;
51}; 53};
52 54
53#endif // MEDIAWIDGET_H 55#endif // MEDIAWIDGET_H
54/* vim: et sw=4 ts=4 56/* vim: et sw=4 ts=4
55 */ 57 */
diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp
index b4ecb4c..41dddb7 100644
--- a/noncore/multimedia/opieplayer2/videowidget.cpp
+++ b/noncore/multimedia/opieplayer2/videowidget.cpp
@@ -418,69 +418,64 @@ void VideoWidget::makeVisible() {
418 418
419 419
420 420
421 421
422void VideoWidget::paintEvent( QPaintEvent * pe) { 422void VideoWidget::paintEvent( QPaintEvent * pe) {
423 QPainter p( this ); 423 QPainter p( this );
424 424
425 if ( mediaPlayerState.isFullscreen() ) { 425 if ( mediaPlayerState.isFullscreen() ) {
426 // Clear the background 426 // Clear the background
427 p.setBrush( QBrush( Qt::black ) ); 427 p.setBrush( QBrush( Qt::black ) );
428 } else { 428 } else {
429 if ( !pe->erased() ) { 429 if ( !pe->erased() ) {
430 // Combine with background and double buffer 430 // Combine with background and double buffer
431 QPixmap pix( pe->rect().size() ); 431 QPixmap pix( pe->rect().size() );
432 QPainter p( &pix ); 432 QPainter p( &pix );
433 p.translate( -pe->rect().topLeft().x(), -pe->rect().topLeft().y() ); 433 p.translate( -pe->rect().topLeft().x(), -pe->rect().topLeft().y() );
434 p.drawTiledPixmap( pe->rect(), *pixBg, pe->rect().topLeft() ); 434 p.drawTiledPixmap( pe->rect(), *pixBg, pe->rect().topLeft() );
435 for ( int i = 0; i < numVButtons; i++ ) { 435 for ( int i = 0; i < numVButtons; i++ ) {
436 paintButton( &p, i ); 436 paintButton( &p, i );
437 } 437 }
438 QPainter p2( this ); 438 QPainter p2( this );
439 p2.drawPixmap( pe->rect().topLeft(), pix ); 439 p2.drawPixmap( pe->rect().topLeft(), pix );
440 } else { 440 } else {
441 QPainter p( this ); 441 QPainter p( this );
442 for ( int i = 0; i < numVButtons; i++ ) 442 for ( int i = 0; i < numVButtons; i++ )
443 paintButton( &p, i ); 443 paintButton( &p, i );
444 } 444 }
445 //slider->repaint( TRUE ); 445 //slider->repaint( TRUE );
446 } 446 }
447} 447}
448 448
449 449
450void VideoWidget::closeEvent( QCloseEvent* ) {
451 mediaPlayerState.setList();
452}
453
454
455void VideoWidget::keyReleaseEvent( QKeyEvent *e) { 450void VideoWidget::keyReleaseEvent( QKeyEvent *e) {
456 switch ( e->key() ) { 451 switch ( e->key() ) {
457////////////////////////////// Zaurus keys 452////////////////////////////// Zaurus keys
458 case Key_Home: 453 case Key_Home:
459 break; 454 break;
460 case Key_F9: //activity 455 case Key_F9: //activity
461 break; 456 break;
462 case Key_F10: //contacts 457 case Key_F10: //contacts
463// hide(); 458// hide();
464 break; 459 break;
465 case Key_F11: //menu 460 case Key_F11: //menu
466 break; 461 break;
467 case Key_F12: //home 462 case Key_F12: //home
468 break; 463 break;
469 case Key_F13: //mail 464 case Key_F13: //mail
470 break; 465 break;
471 case Key_Space: { 466 case Key_Space: {
472 if(mediaPlayerState.isPlaying()) { 467 if(mediaPlayerState.isPlaying()) {
473 mediaPlayerState.setPlaying(FALSE); 468 mediaPlayerState.setPlaying(FALSE);
474 } else { 469 } else {
475 mediaPlayerState.setPlaying(TRUE); 470 mediaPlayerState.setPlaying(TRUE);
476 } 471 }
477 } 472 }
478 break; 473 break;
479 case Key_Down: 474 case Key_Down:
480// toggleButton(6); 475// toggleButton(6);
481 emit lessClicked(); 476 emit lessClicked();
482 emit lessReleased(); 477 emit lessReleased();
483// toggleButton(6); 478// toggleButton(6);
484 break; 479 break;
485 case Key_Up: 480 case Key_Up:
486// toggleButton(5); 481// toggleButton(5);
diff --git a/noncore/multimedia/opieplayer2/videowidget.h b/noncore/multimedia/opieplayer2/videowidget.h
index 38eb726..149c78e 100644
--- a/noncore/multimedia/opieplayer2/videowidget.h
+++ b/noncore/multimedia/opieplayer2/videowidget.h
@@ -62,65 +62,64 @@ public:
62 62
63 XineVideoWidget* vidWidget(); 63 XineVideoWidget* vidWidget();
64public slots: 64public slots:
65 void updateSlider( long, long ); 65 void updateSlider( long, long );
66 void sliderPressed( ); 66 void sliderPressed( );
67 void sliderReleased( ); 67 void sliderReleased( );
68 void setFullscreen( bool b ); 68 void setFullscreen( bool b );
69 void makeVisible(); 69 void makeVisible();
70 void backToNormal(); 70 void backToNormal();
71 void setPosition( long ); 71 void setPosition( long );
72 72
73public: 73public:
74 virtual void setPlaying( bool b); 74 virtual void setPlaying( bool b);
75 virtual void setLength( long ); 75 virtual void setLength( long );
76 virtual void setDisplayType( MediaPlayerState::DisplayType displayType ); 76 virtual void setDisplayType( MediaPlayerState::DisplayType displayType );
77 77
78signals: 78signals:
79 void moreClicked(); 79 void moreClicked();
80 void lessClicked(); 80 void lessClicked();
81 void moreReleased(); 81 void moreReleased();
82 void lessReleased(); 82 void lessReleased();
83 void sliderMoved( long ); 83 void sliderMoved( long );
84 void videoResized ( const QSize &s ); 84 void videoResized ( const QSize &s );
85 85
86protected: 86protected:
87 87
88 void resizeEvent( QResizeEvent * ); 88 void resizeEvent( QResizeEvent * );
89 void paintEvent( QPaintEvent *pe ); 89 void paintEvent( QPaintEvent *pe );
90 void showEvent( QShowEvent *se ); 90 void showEvent( QShowEvent *se );
91 void mouseMoveEvent( QMouseEvent *event ); 91 void mouseMoveEvent( QMouseEvent *event );
92 void mousePressEvent( QMouseEvent *event ); 92 void mousePressEvent( QMouseEvent *event );
93 void mouseReleaseEvent( QMouseEvent *event ); 93 void mouseReleaseEvent( QMouseEvent *event );
94 void closeEvent( QCloseEvent *event );
95 void keyReleaseEvent( QKeyEvent *e); 94 void keyReleaseEvent( QKeyEvent *e);
96 95
97private: 96private:
98// Ticker songInfo; 97// Ticker songInfo;
99 QPixmap *pixBg; 98 QPixmap *pixBg;
100 QImage *imgUp; 99 QImage *imgUp;
101 QImage *imgDn; 100 QImage *imgDn;
102 QImage *imgButtonMask; 101 QImage *imgButtonMask;
103 QBitmap *masks[7]; 102 QBitmap *masks[7];
104 QPixmap *buttonPixUp[7]; 103 QPixmap *buttonPixUp[7];
105 QPixmap *buttonPixDown[7]; 104 QPixmap *buttonPixDown[7];
106 QString skin; 105 QString skin;
107// QPixmap *pixmaps[4]; 106// QPixmap *pixmaps[4];
108 int xoff, yoff; 107 int xoff, yoff;
109 108
110 109
111 void paintButton( QPainter *p, int i ); 110 void paintButton( QPainter *p, int i );
112 void toggleButton( int ); 111 void toggleButton( int );
113 void setToggleButton( int, bool ); 112 void setToggleButton( int, bool );
114 113
115 QString backgroundPix; 114 QString backgroundPix;
116 QSlider *slider; 115 QSlider *slider;
117 QPixmap *pixmaps[3]; 116 QPixmap *pixmaps[3];
118 QImage *currentFrame; 117 QImage *currentFrame;
119 int scaledWidth; 118 int scaledWidth;
120 int scaledHeight; 119 int scaledHeight;
121 XineVideoWidget* videoFrame; 120 XineVideoWidget* videoFrame;
122}; 121};
123 122
124#endif // VIDEO_WIDGET_H 123#endif // VIDEO_WIDGET_H
125 124
126 125