|
|
@ -31,7 +31,7 @@
|
|
|
|
#include <klocale.h>
|
|
|
|
#include <klocale.h>
|
|
|
|
#include <kiconloader.h>
|
|
|
|
#include <kiconloader.h>
|
|
|
|
#include <kmessagebox.h>
|
|
|
|
#include <kmessagebox.h>
|
|
|
|
#include <kaction.h>
|
|
|
|
#include <tdeaction.h>
|
|
|
|
#include <kstdaction.h>
|
|
|
|
#include <kstdaction.h>
|
|
|
|
#include <kdebug.h>
|
|
|
|
#include <kdebug.h>
|
|
|
|
#include <kinputdialog.h>
|
|
|
|
#include <kinputdialog.h>
|
|
|
@ -301,19 +301,19 @@ void Disc::setEncoding( bool b )
|
|
|
|
void Disc::encode()
|
|
|
|
void Disc::encode()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQListViewItem *it;
|
|
|
|
TQListViewItem *it;
|
|
|
|
TQStringList tracklist;
|
|
|
|
TQStringList tractdelist;
|
|
|
|
|
|
|
|
|
|
|
|
it = list->firstChild();
|
|
|
|
it = list->firstChild();
|
|
|
|
if ( !it )
|
|
|
|
if ( !it )
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
tracklist.append( artistLab->text() );
|
|
|
|
tractdelist.append( artistLab->text() );
|
|
|
|
tracklist.append( albumLab->text() );
|
|
|
|
tractdelist.append( albumLab->text() );
|
|
|
|
while ( it!=0 ) {
|
|
|
|
while ( it!=0 ) {
|
|
|
|
if ( it->isSelected() )
|
|
|
|
if ( it->isSelected() )
|
|
|
|
tracklist.append( it->text(0)+"-"+it->text(1) );
|
|
|
|
tractdelist.append( it->text(0)+"-"+it->text(1) );
|
|
|
|
it = it->nextSibling();
|
|
|
|
it = it->nextSibling();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ( (int)tracklist.count()<3 ) {
|
|
|
|
if ( (int)tractdelist.count()<3 ) {
|
|
|
|
KMessageBox::information( mainWidget, i18n("You must select the tracks to rip."), i18n("Warning") );
|
|
|
|
KMessageBox::information( mainWidget, i18n("You must select the tracks to rip."), i18n("Warning") );
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -329,7 +329,7 @@ void Disc::encode()
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ( para->encode( tracklist, mainWidget ) )
|
|
|
|
if ( para->encode( tractdelist, mainWidget ) )
|
|
|
|
encodeTimer.start( 1000 );
|
|
|
|
encodeTimer.start( 1000 );
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
delete para;
|
|
|
|
delete para;
|
|
|
|