author | harlekin <harlekin> | 2002-08-02 11:38:17 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-08-02 11:38:17 (UTC) |
commit | d3a54af5288cd30fc1a4f2dafc9f848b245046d6 (patch) (unidiff) | |
tree | 7390858ac62708bfc81078493e580a57297c61fa | |
parent | 471dc69956af37e7c5f481c10482f280db853491 (diff) | |
download | opie-d3a54af5288cd30fc1a4f2dafc9f848b245046d6.zip opie-d3a54af5288cd30fc1a4f2dafc9f848b245046d6.tar.gz opie-d3a54af5288cd30fc1a4f2dafc9f848b245046d6.tar.bz2 |
theme work
-rw-r--r-- | noncore/multimedia/opieplayer2/audiowidget.cpp | 2 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/videowidget.cpp | 38 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/videowidget.h | 1 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/xinecontrol.cpp | 1 |
4 files changed, 26 insertions, 16 deletions
diff --git a/noncore/multimedia/opieplayer2/audiowidget.cpp b/noncore/multimedia/opieplayer2/audiowidget.cpp index 689366e..300a5c8 100644 --- a/noncore/multimedia/opieplayer2/audiowidget.cpp +++ b/noncore/multimedia/opieplayer2/audiowidget.cpp | |||
@@ -162,5 +162,5 @@ AudioWidget::AudioWidget(QWidget* parent, const char* name, WFlags f) : | |||
162 | connect( mediaPlayerState, SIGNAL( pausedToggled(bool) ), this, SLOT( setPaused(bool) ) ); | 162 | connect( mediaPlayerState, SIGNAL( pausedToggled(bool) ), this, SLOT( setPaused(bool) ) ); |
163 | connect( mediaPlayerState, SIGNAL( playingToggled(bool) ), this, SLOT( setPlaying(bool) ) ); | 163 | connect( mediaPlayerState, SIGNAL( playingToggled(bool) ), this, SLOT( setPlaying(bool) ) ); |
164 | 164 | ||
165 | // Intialise state | 165 | // Intialise state |
166 | setLength( mediaPlayerState->length() ); | 166 | setLength( mediaPlayerState->length() ); |
diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp index bce6b89..48caf00 100644 --- a/noncore/multimedia/opieplayer2/videowidget.cpp +++ b/noncore/multimedia/opieplayer2/videowidget.cpp | |||
@@ -87,10 +87,15 @@ VideoWidget::VideoWidget(QWidget* parent, const char* name, WFlags f) : | |||
87 | cfg.setGroup("VideoWidget"); | 87 | cfg.setGroup("VideoWidget"); |
88 | 88 | ||
89 | QString backgroundPix, Button0aPix, Button0bPix, controlsPix; | 89 | QString Button0aPix, Button0bPix, controlsPix; |
90 | backgroundPix=cfg.readEntry( "backgroundPix", "opieplayer/metalFinish"); | 90 | //backgroundPix=cfg.readEntry( "backgroundPix", "opieplayer/metalFinish"); |
91 | Button0aPix=cfg.readEntry( "Button0aPix", "opieplayer/mediaButton0a"); | 91 | Button0aPix=cfg.readEntry( "Button0aPix", "opieplayer/mediaButton0a"); |
92 | Button0bPix=cfg.readEntry( "Button0bPix","opieplayer/mediaButton0b"); | 92 | Button0bPix=cfg.readEntry( "Button0bPix","opieplayer/mediaButton0b"); |
93 | controlsPix=cfg.readEntry( "controlsPix","opieplayer/mediaControls0" ); | 93 | controlsPix=cfg.readEntry( "controlsPix","opieplayer/mediaControls0" ); |
94 | 94 | ||
95 | cfg.setGroup("AudioWidget"); | ||
96 | QString skin = cfg.readEntry("Skin","default"); | ||
97 | QString skinPath = "opieplayer/skins/" + skin; | ||
98 | backgroundPix = QString("%1/background").arg(skinPath) ; | ||
99 | |||
95 | setBackgroundPixmap( Resource::loadPixmap( backgroundPix) ); | 100 | setBackgroundPixmap( Resource::loadPixmap( backgroundPix) ); |
96 | pixmaps[0] = new QPixmap( Resource::loadPixmap( Button0aPix ) ); | 101 | pixmaps[0] = new QPixmap( Resource::loadPixmap( Button0aPix ) ); |
@@ -124,5 +129,5 @@ VideoWidget::VideoWidget(QWidget* parent, const char* name, WFlags f) : | |||
124 | 129 | ||
125 | videoFrame = new XineVideoWidget( 240, 155 ,this, "Video frame" ); | 130 | videoFrame = new XineVideoWidget( 240, 155 ,this, "Video frame" ); |
126 | videoFrame->setGeometry( QRect( 0, 15 , 240 ,170 ) ); | 131 | |
127 | } | 132 | } |
128 | 133 | ||
@@ -270,15 +275,15 @@ void VideoWidget::mouseReleaseEvent( QMouseEvent *event ) { | |||
270 | 275 | ||
271 | void VideoWidget::makeVisible() { | 276 | void VideoWidget::makeVisible() { |
272 | if ( mediaPlayerState->fullscreen() ) { | 277 | if ( mediaPlayerState->fullscreen() ) { |
273 | setBackgroundMode( QWidget::NoBackground ); | 278 | setBackgroundMode( QWidget::NoBackground ); |
274 | showFullScreen(); | 279 | showFullScreen(); |
275 | resize( qApp->desktop()->size() ); | 280 | resize( qApp->desktop()->size() ); |
276 | slider->hide(); | 281 | slider->hide(); |
277 | } else { | 282 | } else { |
278 | setBackgroundPixmap( Resource::loadPixmap( "opieplayer/metalFinish" ) ); | 283 | setBackgroundPixmap( Resource::loadPixmap( backgroundPix ) ); |
279 | showNormal(); | 284 | showNormal(); |
280 | showMaximized(); | 285 | showMaximized(); |
281 | slider->show(); | 286 | slider->show(); |
282 | } | 287 | } |
283 | } | 288 | } |
284 | 289 | ||
@@ -291,7 +296,10 @@ void VideoWidget::paintEvent( QPaintEvent * ) { | |||
291 | p.setBrush( QBrush( Qt::black ) ); | 296 | p.setBrush( QBrush( Qt::black ) ); |
292 | videoFrame->setGeometry( QRect( 0, 0 , 240 ,340 ) ); | 297 | videoFrame->setGeometry( QRect( 0, 0 , 240 ,340 ) ); |
293 | 298 | ||
294 | } else { | 299 | } else { |
300 | |||
301 | videoFrame->setGeometry( QRect( 0, 15 , 240 ,170 ) ); | ||
295 | // draw the buttons | 302 | // draw the buttons |
303 | |||
296 | for ( int i = 0; i < numButtons; i++ ) { | 304 | for ( int i = 0; i < numButtons; i++ ) { |
297 | paintButton( &p, i ); | 305 | paintButton( &p, i ); |
diff --git a/noncore/multimedia/opieplayer2/videowidget.h b/noncore/multimedia/opieplayer2/videowidget.h index 8f98889..0122d5d 100644 --- a/noncore/multimedia/opieplayer2/videowidget.h +++ b/noncore/multimedia/opieplayer2/videowidget.h | |||
@@ -87,4 +87,5 @@ private: | |||
87 | void setToggleButton( int, bool ); | 87 | void setToggleButton( int, bool ); |
88 | 88 | ||
89 | QString backgroundPix; | ||
89 | QSlider *slider; | 90 | QSlider *slider; |
90 | QPixmap *pixmaps[3]; | 91 | QPixmap *pixmaps[3]; |
diff --git a/noncore/multimedia/opieplayer2/xinecontrol.cpp b/noncore/multimedia/opieplayer2/xinecontrol.cpp index 3be9fa4..3faeab1 100644 --- a/noncore/multimedia/opieplayer2/xinecontrol.cpp +++ b/noncore/multimedia/opieplayer2/xinecontrol.cpp | |||
@@ -46,4 +46,5 @@ XineControl::XineControl( QObject *parent, const char *name ) | |||
46 | connect( mediaPlayerState, SIGNAL( pausedToggled(bool) ), this, SLOT( pause(bool) ) ); | 46 | connect( mediaPlayerState, SIGNAL( pausedToggled(bool) ), this, SLOT( pause(bool) ) ); |
47 | connect( this, SIGNAL( positionChanged( int position ) ), mediaPlayerState, SLOT( updatePosition( long p ) ) ); | 47 | connect( this, SIGNAL( positionChanged( int position ) ), mediaPlayerState, SLOT( updatePosition( long p ) ) ); |
48 | connect(this, SIGNAL( postitionChanged(int position) ), mediaPlayerState, SLOT( setPosition( long p ) ) ); | ||
48 | connect( mediaPlayerState, SIGNAL( playingToggled( bool ) ), this, SLOT( stop( bool ) ) ); | 49 | connect( mediaPlayerState, SIGNAL( playingToggled( bool ) ), this, SLOT( stop( bool ) ) ); |
49 | connect( mediaPlayerState, SIGNAL( fullscreenToggled( bool ) ), this, SLOT( setFullscreen( bool ) ) ); | 50 | connect( mediaPlayerState, SIGNAL( fullscreenToggled( bool ) ), this, SLOT( setFullscreen( bool ) ) ); |