summaryrefslogtreecommitdiff
path: root/core/multimedia
authorbipolar <bipolar>2002-03-06 02:57:58 (UTC)
committer bipolar <bipolar>2002-03-06 02:57:58 (UTC)
commitf8e5caafffd11726cf0b0ea6a69c19aaad379533 (patch) (unidiff)
treee29820f9a66f6446a9329cc0404c045f1b20f148 /core/multimedia
parent406bed0f501ea131ba31dbdecdde8c1fe8b15806 (diff)
downloadopie-f8e5caafffd11726cf0b0ea6a69c19aaad379533.zip
opie-f8e5caafffd11726cf0b0ea6a69c19aaad379533.tar.gz
opie-f8e5caafffd11726cf0b0ea6a69c19aaad379533.tar.bz2
ljp:fixed stuff
Diffstat (limited to 'core/multimedia') (more/less context) (show whitespace changes)
-rw-r--r--core/multimedia/opieplayer/playlistselection.cpp15
-rw-r--r--core/multimedia/opieplayer/playlistselection.h1
-rw-r--r--core/multimedia/opieplayer/playlistwidget.cpp25
3 files changed, 21 insertions, 20 deletions
diff --git a/core/multimedia/opieplayer/playlistselection.cpp b/core/multimedia/opieplayer/playlistselection.cpp
index d70df51..d6aff66 100644
--- a/core/multimedia/opieplayer/playlistselection.cpp
+++ b/core/multimedia/opieplayer/playlistselection.cpp
@@ -52,6 +52,8 @@ PlayListSelection::PlayListSelection( QWidget *parent, const char *name )
52{ 52{
53 qDebug("starting playlistselector");
53// #ifdef USE_PLAYLIST_BACKGROUND 54// #ifdef USE_PLAYLIST_BACKGROUND
54 setStaticBackground( TRUE ); 55// setStaticBackground( TRUE );
55// setBackgroundPixmap( Resource::loadPixmap( "mpegplayer/background" ) ); 56// setBackgroundPixmap( Resource::loadPixmap( "mpegplayer/background" ) );
56 setBackgroundPixmap( Resource::loadPixmap( "opielogo" ) ); 57
58// setBackgroundPixmap( Resource::loadPixmap( "opielogo" ) );
57// #endif 59// #endif
@@ -71,7 +73,8 @@ PlayListSelection::~PlayListSelection() {
71void PlayListSelection::drawBackground( QPainter *p, const QRect &r ) { 73void PlayListSelection::drawBackground( QPainter *p, const QRect &r ) {
72 p->fillRect( r, QBrush( white ) ); 74// qDebug("drawBackground");
75// p->fillRect( r, QBrush( white ) );
73// QImage logo = Resource::loadImage( "mpegplayer/background" ); 76// QImage logo = Resource::loadImage( "mpegplayer/background" );
74 QImage logo = Resource::loadImage( "opielogo" ); 77// // QImage logo = Resource::loadImage( "opielogo" );
75 if ( !logo.isNull() ) 78// if ( !logo.isNull() )
76 p->drawImage( (width() - logo.width()) / 2, (height() - logo.height()) / 2, logo ); 79// p->drawImage( (width() - logo.width()) / 2, (height() - logo.height()) / 2, logo );
77} 80}
diff --git a/core/multimedia/opieplayer/playlistselection.h b/core/multimedia/opieplayer/playlistselection.h
index 57e10f1..b0d249c 100644
--- a/core/multimedia/opieplayer/playlistselection.h
+++ b/core/multimedia/opieplayer/playlistselection.h
@@ -34,3 +34,2 @@ public:
34 const DocLnk *current(); // retrieve the current playlist entry (media file link) 34 const DocLnk *current(); // retrieve the current playlist entry (media file link)
35
36public slots: 35public slots:
diff --git a/core/multimedia/opieplayer/playlistwidget.cpp b/core/multimedia/opieplayer/playlistwidget.cpp
index a6202bc..3171a84 100644
--- a/core/multimedia/opieplayer/playlistwidget.cpp
+++ b/core/multimedia/opieplayer/playlistwidget.cpp
@@ -420,2 +420,3 @@ void PlayListWidget::setDocument(const QString& fileref) {
420 } 420 }
421 if(fileref.find("playlist",0,TRUE) == -1) {
421 addToSelection( DocLnk( fileref ) ); 422 addToSelection( DocLnk( fileref ) );
@@ -427,2 +428,9 @@ void PlayListWidget::setDocument(const QString& fileref) {
427 d->selectedFiles->removeSelected( ); 428 d->selectedFiles->removeSelected( );
429 } else {
430 loadList(DocLnk(fileref));
431 d->selectedFiles->first();
432// mediaPlayerState->setPlaying( TRUE );
433// mediaPlayerState->setPlaying( FALSE );
434
435 }
428} 436}
@@ -531,23 +539,13 @@ void PlayListWidget::saveList() {
531 qDebug("saving playlist "+filename+".playlist"); 539 qDebug("saving playlist "+filename+".playlist");
532
533// DocLnk *lnk;
534// lnk.setName( filename); //sets file name
535// // lnk.setComment(title);
536// lnk.setFile( filename+".playlist"); //sets File property
537// lnk.setType("player/plain");// hey is this a REGISTERED mime type?!?!? ;D
538// lnk.setIcon("MPEGPlayer");
539// if(!lnk.writeLink())
540// qDebug("Writing doclink did not work");
541
542 Config cfg( filename +".playlist"); 540 Config cfg( filename +".playlist");
543 writeConfig( cfg ); 541 writeConfig( cfg );
544 }
545 DocLnk lnk; 542 DocLnk lnk;
546 lnk.setName( filename); //sets file name 543 lnk.setName( filename); //sets file name
547// lnk.setComment(title); 544// lnk.setComment( "");
548 lnk.setFile(QPEApplication::qpeDir()+"Settings/"+filename+".playlist.conf"); //sets File property 545 lnk.setFile(QPEApplication::qpeDir()+"Settings/"+filename+".playlist.conf"); //sets File property
549 lnk.setType("playlist/plain");// hey is this a REGISTERED mime type?!?!? ;D 546 lnk.setType("playlist/plain");// hey is this a REGISTERED mime type?!?!? ;D
550 lnk.setIcon("MPEGPlayer"); 547 lnk.setIcon("mpegplayer/playlist2");
551 if(!lnk.writeLink()) 548 if(!lnk.writeLink())
552 qDebug("Writing doclink did not work"); 549 qDebug("Writing doclink did not work");
550 }
553 551
@@ -555,2 +553,3 @@ void PlayListWidget::saveList() {
555 delete fileDlg; 553 delete fileDlg;
554
556} 555}