-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.cpp | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp index c35e03d..a65495e 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.cpp +++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp @@ -57,5 +57,5 @@ PlayListWidget::PlayListWidget( MediaPlayerState &mediaPlayerState, QWidget* parent, const char* name ) - : PlayListWidgetGui( mediaPlayerState, parent, name ) , currentFileListView( 0 ) + : PlayListWidgetGui( mediaPlayerState, parent, name ) , currentFileListView( 0 ) { @@ -102,11 +102,11 @@ PlayListWidget::PlayListWidget( MediaPlayerState &mediaPlayerState, QWidget* par pmView->setItemChecked( -16, b ); - (void)new ToolButton( vbox1, tr( "Move Up" ), "opieplayer2/up", + (void)new ToolButton( vbox1, tr( "Move Up" ), "opieplayer2/up", d->selectedFiles, SLOT(moveSelectedUp() ) ); - (void)new ToolButton( vbox1, tr( "Remove" ), "opieplayer2/cut", + (void)new ToolButton( vbox1, tr( "Remove" ), "opieplayer2/cut", d->selectedFiles, SLOT(removeSelected() ) ); (void)new ToolButton( vbox1, tr( "Move Down" ), "opieplayer2/down", d->selectedFiles, SLOT(moveSelectedDown() ) ); - // QVBox *stretch2 = new QVBox( vbox1 ); + QVBox *stretch2 = new QVBox( vbox1 ); connect( tbDeletePlaylist, ( SIGNAL( released() ) ), @@ -189,5 +189,5 @@ void PlayListWidget::writeDefaultPlaylist() { m3uList->close(); delete m3uList; - + } } @@ -200,5 +200,5 @@ void PlayListWidget::addToSelection( const DocLnk& lnk ) { d->selectedFiles->addToSelection( lnk ); } -// writeCurrentM3u(); +// writeCurrentM3u(); } @@ -262,5 +262,5 @@ void PlayListWidget::addAllToList() { lnk.setFile( filename ); //sets file name d->selectedFiles->addToSelection( lnk); - } + } videoView->populateView(); @@ -272,5 +272,5 @@ void PlayListWidget::addAllToList() { lnk.setFile( filename ); //sets file name d->selectedFiles->addToSelection( lnk); - } + } // d->selectedFiles->addToSelection( ); @@ -278,9 +278,9 @@ void PlayListWidget::addAllToList() { // lst->append( audioIt.current() ); // } - + // if(!audioScan) // scanForAudio(); -// if(!videoScan) +// if(!videoScan) // scanForVideo(); @@ -297,5 +297,5 @@ void PlayListWidget::addAllToList() { tabWidget->setCurrentPage(0); - + writeCurrentM3u(); d->selectedFiles->first(); @@ -316,5 +316,5 @@ void PlayListWidget::addAllMusicToList() { lnk.setFile( filename ); //sets file name d->selectedFiles->addToSelection( lnk); - } + } /* if(!audioScan) @@ -345,5 +345,5 @@ void PlayListWidget::addAllVideoToList() { lnk.setFile( filename ); //sets file name d->selectedFiles->addToSelection( lnk); - } + } @@ -356,7 +356,7 @@ void PlayListWidget::addAllVideoToList() { } } -*/ +*/ tabWidget->setCurrentPage(0); - writeCurrentM3u(); + writeCurrentM3u(); d->selectedFiles->first(); } @@ -384,6 +384,6 @@ void PlayListWidget::setDocument( const QString& fileref ) { clearList(); addToSelection( DocLnk( fileref ) ); - writeCurrentM3u(); - + writeCurrentM3u(); + d->setDocumentUsed = TRUE; mediaPlayerState.setPlaying( FALSE ); @@ -506,5 +506,5 @@ void PlayListWidget::addSelected() { void PlayListWidget::removeSelected() { d->selectedFiles->removeSelected( ); - writeCurrentM3u(); + writeCurrentM3u(); } @@ -532,8 +532,8 @@ void PlayListWidget::addToSelection( QListViewItem *it) { lnk.setFile( filename ); //sets file name d->selectedFiles->addToSelection( lnk); - - writeCurrentM3u(); + + writeCurrentM3u(); // tabWidget->setCurrentPage(0); - + } } @@ -694,5 +694,5 @@ void PlayListWidget::openFile() { } } - + delete fileDlg; } @@ -700,5 +700,5 @@ void PlayListWidget::openFile() { /* reads m3u and shows files/urls to playlist widget */ -void PlayListWidget::readm3u( const QString &filename ) { +void PlayListWidget::readm3u( const QString &filename ) { qDebug( "read m3u filename " + filename ); @@ -715,10 +715,10 @@ void PlayListWidget::readm3u( const QString &filename ) { lnk.setIcon("opieplayer2/musicfile"); lnk.setFile( s ); //sets file name - + } else { // if( QFileInfo( s ).exists() ) { lnk.setName( QFileInfo(s).baseName()); // if(s.right(4) == '.') {//if regular file - if(s.left(1) != "/") { + if(s.left(1) != "/") { // qDebug("set link "+QFileInfo(filename).dirPath()+"/"+s); lnk.setFile( QFileInfo(filename).dirPath()+"/"+s); @@ -747,5 +747,5 @@ void PlayListWidget::readm3u( const QString &filename ) { d->selectedFiles->setSelectedItem( s); setCaption(tr("OpiePlayer: ")+ QFileInfo(filename).baseName()); - + } @@ -816,5 +816,5 @@ void PlayListWidget::writeCurrentM3u() { } delete m3uList; - + } @@ -851,5 +851,5 @@ void PlayListWidget::writem3u() { m3uList->close(); delete m3uList; - + delete fileDlg; @@ -862,5 +862,5 @@ void PlayListWidget::writem3u() { Config config( "OpiePlayer" ); config.setGroup( "PlayList" ); - + config.writeEntry("CurrentPlaylist",filename); currentPlayList=filename; |