diff options
Diffstat (limited to 'src/optionseditor.cpp')
-rwxr-xr-x | src/optionseditor.cpp | 248 |
1 files changed, 124 insertions, 124 deletions
diff --git a/src/optionseditor.cpp b/src/optionseditor.cpp index efd9b1e..d3c0661 100755 --- a/src/optionseditor.cpp +++ b/src/optionseditor.cpp @@ -6,10 +6,10 @@ #include "conversionoptions.h" #include "outputdirectory.h" -#include <qlayout.h> -#include <qstring.h> -#include <qlabel.h> -#include <qdatetime.h> +#include <tqlayout.h> +#include <tqstring.h> +#include <tqlabel.h> +#include <tqdatetime.h> #include <klocale.h> #include <kiconloader.h> @@ -22,13 +22,13 @@ // TODO add warning, when editing tags and converting to an unsupported file format -OptionsEditor::OptionsEditor( TagEngine* _tagEngine, Config* _config, FileList* _fileList, QWidget* parent, const char* name, Page startPage ) +OptionsEditor::OptionsEditor( TagEngine* _tagEngine, Config* _config, FileList* _fileList, TQWidget* tqparent, const char* name, Page startPage ) : KDialogBase( IconList, i18n("Options Editor"), /*User2 | User1 |*/ Ok, Ok, // default button - parent, + tqparent, name, false, // modal true/*, // separator @@ -54,160 +54,160 @@ OptionsEditor::OptionsEditor( TagEngine* _tagEngine, Config* _config, FileList* //// options page //// conversionOptions = addPage( i18n("Conversion"), i18n("Conversion options"), iconLoader->loadIcon("soundkonverter",KIcon::Desktop) ); // the grid for all widgets in the main window - QGridLayout* conversionOptionsGridLayout = new QGridLayout( conversionOptions, 1, 1, 0, 6, "conversionOptionsGridLayout" ); + TQGridLayout* conversionOptionsGridLayout = new TQGridLayout( conversionOptions, 1, 1, 0, 6, "conversionOptionsGridLayout" ); // generate the options input area options = new Options( config, i18n("Choose your prefered output options and click on \"Close\"!"), conversionOptions, "options" ); conversionOptionsGridLayout->addWidget( options, 0, 0 ); - connect( options, SIGNAL(optionsChanged()), - this, SLOT(optionsChanged()) + connect( options, TQT_SIGNAL(optionsChanged()), + this, TQT_SLOT(optionsChanged()) ); conversionOptionsGridLayout->setRowStretch( 1, 1 ); - lEditOptions = new QLabel( "", conversionOptions, "lEditOptions" ); + lEditOptions = new TQLabel( "", conversionOptions, "lEditOptions" ); conversionOptionsGridLayout->addWidget( lEditOptions, 2, 0 ); - lEditOptions->setAlignment( Qt::AlignHCenter ); + lEditOptions->tqsetAlignment( TQt::AlignHCenter ); lEditOptions->hide(); pEditOptions = new KPushButton( i18n("Edit conversion options"), conversionOptions, "pEditOptions" ); - pEditOptions->setFixedWidth( pEditOptions->sizeHint().width() ); - conversionOptionsGridLayout->addWidget( pEditOptions, 3, 0, Qt::AlignHCenter ); + pEditOptions->setFixedWidth( pEditOptions->tqsizeHint().width() ); + conversionOptionsGridLayout->addWidget( pEditOptions, 3, 0, TQt::AlignHCenter ); pEditOptions->hide(); - connect( pEditOptions, SIGNAL(clicked()), - this, SLOT(editOptionsClicked()) + connect( pEditOptions, TQT_SIGNAL(clicked()), + this, TQT_SLOT(editOptionsClicked()) ); //// tags page //// tags = addPage( i18n("Tags"), i18n("Tags"), iconLoader->loadIcon("view_text",KIcon::Desktop) ); // the grid for all widgets in the main window - QGridLayout* tagsGridLayout = new QGridLayout( tags, 1, 1, 0, 6, "tagsGridLayout" ); + TQGridLayout* tagsGridLayout = new TQGridLayout( tags, 1, 1, 0, 6, "tagsGridLayout" ); // add the inputs - // add a horizontal box layout for the title and track number - QHBoxLayout *titleBox = new QHBoxLayout( -1, "titleBox" ); + // add a horizontal box tqlayout for the title and track number + TQHBoxLayout *titleBox = new TQHBoxLayout( -1, "titleBox" ); tagsGridLayout->addLayout( titleBox, 0, 1 ); // and fill it up - lTitleLabel = new QLabel( i18n("Title:"), tags, "lTitleLabel" ); + lTitleLabel = new TQLabel( i18n("Title:"), tags, "lTitleLabel" ); tagsGridLayout->addWidget( lTitleLabel, 0, 0 ); lTitle = new KLineEdit( tags, "lTitle" ); titleBox->addWidget( lTitle ); - connect( lTitle, SIGNAL(textChanged(const QString&)), - this, SLOT(titleChanged(const QString&)) + connect( lTitle, TQT_SIGNAL(textChanged(const TQString&)), + this, TQT_SLOT(titleChanged(const TQString&)) ); pTitleEdit = new KPushButton( " ", tags, "pTitleEdit" ); pTitleEdit->setPixmap( iconLoader->loadIcon("kwrite",KIcon::Small) ); - pTitleEdit->setFixedSize( lTitle->sizeHint().height(), lTitle->sizeHint().height() ); + pTitleEdit->setFixedSize( lTitle->tqsizeHint().height(), lTitle->tqsizeHint().height() ); pTitleEdit->hide(); titleBox->addWidget( pTitleEdit ); - connect( pTitleEdit, SIGNAL(clicked()), - this, SLOT(editTitleClicked()) + connect( pTitleEdit, TQT_SIGNAL(clicked()), + this, TQT_SLOT(editTitleClicked()) ); - lNumberLabel = new QLabel( i18n("Track No.:"), tags, "lNumberLabel" ); + lNumberLabel = new TQLabel( i18n("Track No.:"), tags, "lNumberLabel" ); titleBox->addWidget( lNumberLabel ); iNumber = new KIntSpinBox( 0, 999, 1, 1, 10, tags, "iNumber" ); titleBox->addWidget( iNumber ); - connect( iNumber, SIGNAL(valueChanged(int)), - this, SLOT(numberChanged(int)) + connect( iNumber, TQT_SIGNAL(valueChanged(int)), + this, TQT_SLOT(numberChanged(int)) ); pNumberEdit = new KPushButton( " ", tags, "pNumberEdit" ); pNumberEdit->setPixmap( iconLoader->loadIcon("kwrite",KIcon::Small) ); - pNumberEdit->setFixedSize( iNumber->sizeHint().height(), iNumber->sizeHint().height() ); + pNumberEdit->setFixedSize( iNumber->tqsizeHint().height(), iNumber->tqsizeHint().height() ); pNumberEdit->hide(); titleBox->addWidget( pNumberEdit ); - connect( pNumberEdit, SIGNAL(clicked()), - this, SLOT(editNumberClicked()) + connect( pNumberEdit, TQT_SIGNAL(clicked()), + this, TQT_SLOT(editNumberClicked()) ); - // add a horizontal box layout for the artist and the composer - QHBoxLayout *artistBox = new QHBoxLayout( -1, "artistBox" ); + // add a horizontal box tqlayout for the artist and the composer + TQHBoxLayout *artistBox = new TQHBoxLayout( -1, "artistBox" ); tagsGridLayout->addLayout( artistBox, 1, 1 ); // and fill it up - lArtistLabel = new QLabel( i18n("Artist:"), tags, "lArtistLabel" ); + lArtistLabel = new TQLabel( i18n("Artist:"), tags, "lArtistLabel" ); tagsGridLayout->addWidget( lArtistLabel, 1, 0 ); lArtist = new KLineEdit( tags, "lArtist" ); artistBox->addWidget( lArtist ); - connect( lArtist, SIGNAL(textChanged(const QString&)), - this, SLOT(artistChanged(const QString&)) + connect( lArtist, TQT_SIGNAL(textChanged(const TQString&)), + this, TQT_SLOT(artistChanged(const TQString&)) ); pArtistEdit = new KPushButton( " ", tags, "pArtistEdit" ); pArtistEdit->setPixmap( iconLoader->loadIcon("kwrite",KIcon::Small) ); - pArtistEdit->setFixedSize( lArtist->sizeHint().height(), lArtist->sizeHint().height() ); + pArtistEdit->setFixedSize( lArtist->tqsizeHint().height(), lArtist->tqsizeHint().height() ); pArtistEdit->hide(); artistBox->addWidget( pArtistEdit ); - connect( pArtistEdit, SIGNAL(clicked()), - this, SLOT(editArtistClicked()) + connect( pArtistEdit, TQT_SIGNAL(clicked()), + this, TQT_SLOT(editArtistClicked()) ); - lComposerLabel = new QLabel( i18n("Composer:"), tags, "lComposerLabel" ); + lComposerLabel = new TQLabel( i18n("Composer:"), tags, "lComposerLabel" ); artistBox->addWidget( lComposerLabel ); lComposer = new KLineEdit( tags, "lComposer" ); artistBox->addWidget( lComposer ); - connect( lComposer, SIGNAL(textChanged(const QString&)), - this, SLOT(composerChanged(const QString&)) + connect( lComposer, TQT_SIGNAL(textChanged(const TQString&)), + this, TQT_SLOT(composerChanged(const TQString&)) ); pComposerEdit = new KPushButton( " ", tags, "pComposerEdit" ); pComposerEdit->setPixmap( iconLoader->loadIcon("kwrite",KIcon::Small) ); - pComposerEdit->setFixedSize( lComposer->sizeHint().height(), lComposer->sizeHint().height() ); + pComposerEdit->setFixedSize( lComposer->tqsizeHint().height(), lComposer->tqsizeHint().height() ); pComposerEdit->hide(); artistBox->addWidget( pComposerEdit ); - connect( pComposerEdit, SIGNAL(clicked()), - this, SLOT(editComposerClicked()) + connect( pComposerEdit, TQT_SIGNAL(clicked()), + this, TQT_SLOT(editComposerClicked()) ); - // add a horizontal box layout for the album - QHBoxLayout *albumBox = new QHBoxLayout( -1, "albumBox" ); + // add a horizontal box tqlayout for the album + TQHBoxLayout *albumBox = new TQHBoxLayout( -1, "albumBox" ); tagsGridLayout->addLayout( albumBox, 2, 1 ); // and fill it up - lAlbumLabel = new QLabel( i18n("Album:"), tags, "lAlbumLabel" ); + lAlbumLabel = new TQLabel( i18n("Album:"), tags, "lAlbumLabel" ); tagsGridLayout->addWidget( lAlbumLabel, 2, 0 ); lAlbum = new KLineEdit( tags, "lAlbum" ); albumBox->addWidget( lAlbum ); - connect( lAlbum, SIGNAL(textChanged(const QString&)), - this, SLOT(albumChanged(const QString&)) + connect( lAlbum, TQT_SIGNAL(textChanged(const TQString&)), + this, TQT_SLOT(albumChanged(const TQString&)) ); pAlbumEdit = new KPushButton( " ", tags, "pAlbumEdit" ); pAlbumEdit->setPixmap( iconLoader->loadIcon("kwrite",KIcon::Small) ); - pAlbumEdit->setFixedSize( lAlbum->sizeHint().height(), lAlbum->sizeHint().height() ); + pAlbumEdit->setFixedSize( lAlbum->tqsizeHint().height(), lAlbum->tqsizeHint().height() ); pAlbumEdit->hide(); albumBox->addWidget( pAlbumEdit ); - connect( pAlbumEdit, SIGNAL(clicked()), - this, SLOT(editAlbumClicked()) + connect( pAlbumEdit, TQT_SIGNAL(clicked()), + this, TQT_SLOT(editAlbumClicked()) ); - // add a horizontal box layout for the disc number, year and genre - QHBoxLayout *albumdataBox = new QHBoxLayout( -1, "albumdataBox" ); + // add a horizontal box tqlayout for the disc number, year and genre + TQHBoxLayout *albumdataBox = new TQHBoxLayout( -1, "albumdataBox" ); tagsGridLayout->addLayout( albumdataBox, 3, 1 ); // and fill it up - lDiscLabel = new QLabel( i18n("Disc No.:"), tags, "lDiscLabel" ); + lDiscLabel = new TQLabel( i18n("Disc No.:"), tags, "lDiscLabel" ); tagsGridLayout->addWidget( lDiscLabel, 3, 0 ); iDisc = new KIntSpinBox( 0, 99, 1, 1, 10, tags, "iDisc" ); albumdataBox->addWidget( iDisc ); - connect( iDisc, SIGNAL(valueChanged(int)), - this, SLOT(discChanged(int)) + connect( iDisc, TQT_SIGNAL(valueChanged(int)), + this, TQT_SLOT(discChanged(int)) ); pDiscEdit = new KPushButton( " ", tags, "pDiscEdit" ); pDiscEdit->setPixmap( iconLoader->loadIcon("kwrite",KIcon::Small) ); - pDiscEdit->setFixedSize( iDisc->sizeHint().height(), iDisc->sizeHint().height() ); + pDiscEdit->setFixedSize( iDisc->tqsizeHint().height(), iDisc->tqsizeHint().height() ); pDiscEdit->hide(); albumdataBox->addWidget( pDiscEdit ); - connect( pDiscEdit, SIGNAL(clicked()), - this, SLOT(editDiscClicked()) + connect( pDiscEdit, TQT_SIGNAL(clicked()), + this, TQT_SLOT(editDiscClicked()) ); albumdataBox->addStretch(); - lYearLabel = new QLabel( i18n("Year:"), tags, "lYearLabel" ); + lYearLabel = new TQLabel( i18n("Year:"), tags, "lYearLabel" ); albumdataBox->addWidget( lYearLabel ); - iYear = new KIntSpinBox( 0, 99999, 1, QDate::currentDate().year(), 10, tags, "iYear" ); + iYear = new KIntSpinBox( 0, 99999, 1, TQDate::tqcurrentDate().year(), 10, tags, "iYear" ); albumdataBox->addWidget( iYear ); - connect( iYear, SIGNAL(valueChanged(int)), - this, SLOT(yearChanged(int)) + connect( iYear, TQT_SIGNAL(valueChanged(int)), + this, TQT_SLOT(yearChanged(int)) ); pYearEdit = new KPushButton( " ", tags, "pYearEdit" ); pYearEdit->setPixmap( iconLoader->loadIcon("kwrite",KIcon::Small) ); - pYearEdit->setFixedSize( iYear->sizeHint().height(), iYear->sizeHint().height() ); + pYearEdit->setFixedSize( iYear->tqsizeHint().height(), iYear->tqsizeHint().height() ); pYearEdit->hide(); albumdataBox->addWidget( pYearEdit ); - connect( pYearEdit, SIGNAL(clicked()), - this, SLOT(editYearClicked()) + connect( pYearEdit, TQT_SIGNAL(clicked()), + this, TQT_SLOT(editYearClicked()) ); albumdataBox->addStretch(); - lGenreLabel = new QLabel( i18n("Genre:"), tags, "lGenreLabel" ); + lGenreLabel = new TQLabel( i18n("Genre:"), tags, "lGenreLabel" ); albumdataBox->addWidget( lGenreLabel ); cGenre = new KComboBox( true, tags, "cGenre" ); cGenre->insertStringList( tagEngine->genreList ); @@ -216,49 +216,49 @@ OptionsEditor::OptionsEditor( TagEngine* _tagEngine, Config* _config, FileList* cGenreCompletion->insertItems( tagEngine->genreList ); cGenreCompletion->setIgnoreCase( tags ); albumdataBox->addWidget( cGenre ); - connect( cGenre, SIGNAL(textChanged(const QString&)), - this, SLOT(genreChanged(const QString&)) + connect( cGenre, TQT_SIGNAL(textChanged(const TQString&)), + this, TQT_SLOT(genreChanged(const TQString&)) ); pGenreEdit = new KPushButton( " ", tags, "pGenreEdit" ); pGenreEdit->setPixmap( iconLoader->loadIcon("kwrite",KIcon::Small) ); - pGenreEdit->setFixedSize( cGenre->sizeHint().height(), cGenre->sizeHint().height() ); + pGenreEdit->setFixedSize( cGenre->tqsizeHint().height(), cGenre->tqsizeHint().height() ); pGenreEdit->hide(); albumdataBox->addWidget( pGenreEdit ); - connect( pGenreEdit, SIGNAL(clicked()), - this, SLOT(editGenreClicked()) + connect( pGenreEdit, TQT_SIGNAL(clicked()), + this, TQT_SLOT(editGenreClicked()) ); - // add a horizontal box layout for the comment - QHBoxLayout *commentBox = new QHBoxLayout( -1, "commentBox" ); + // add a horizontal box tqlayout for the comment + TQHBoxLayout *commentBox = new TQHBoxLayout( -1, "commentBox" ); tagsGridLayout->addLayout( commentBox, 4, 1 ); // and fill it up - lCommentLabel = new QLabel( i18n("Comment:"), tags, "lCommentLabel" ); + lCommentLabel = new TQLabel( i18n("Comment:"), tags, "lCommentLabel" ); tagsGridLayout->addWidget( lCommentLabel, 4, 0 ); tComment = new KTextEdit( tags, "tComment" ); commentBox->addWidget( tComment ); - connect( tComment, SIGNAL(textChanged()), - this, SLOT(commentChanged()) + connect( tComment, TQT_SIGNAL(textChanged()), + this, TQT_SLOT(commentChanged()) ); pCommentEdit = new KPushButton( " ", tags, "pCommentEdit" ); pCommentEdit->setPixmap( iconLoader->loadIcon("kwrite",KIcon::Small) ); - pCommentEdit->setFixedSize( lTitle->sizeHint().height(), lTitle->sizeHint().height() ); + pCommentEdit->setFixedSize( lTitle->tqsizeHint().height(), lTitle->tqsizeHint().height() ); pCommentEdit->hide(); commentBox->addWidget( pCommentEdit ); - connect( pCommentEdit, SIGNAL(clicked()), - this, SLOT(editCommentClicked()) + connect( pCommentEdit, TQT_SIGNAL(clicked()), + this, TQT_SLOT(editCommentClicked()) ); tagsGridLayout->setRowStretch( 4, 1 ); - lEditTags = new QLabel( "", tags, "lEditTags" ); + lEditTags = new TQLabel( "", tags, "lEditTags" ); tagsGridLayout->addWidget( lEditTags, 5, 1 ); - lEditTags->setAlignment( Qt::AlignHCenter ); + lEditTags->tqsetAlignment( TQt::AlignHCenter ); lEditTags->hide(); pEditTags = new KPushButton( i18n("Edit tags"), tags, "pEditTags" ); - pEditTags->setFixedWidth( pEditTags->sizeHint().width() ); - tagsGridLayout->addWidget( pEditTags, 6, 1, Qt::AlignHCenter ); + pEditTags->setFixedWidth( pEditTags->tqsizeHint().width() ); + tagsGridLayout->addWidget( pEditTags, 6, 1, TQt::AlignHCenter ); pEditTags->hide(); - connect( pEditTags, SIGNAL(clicked()), - this, SLOT(editTagsClicked()) + connect( pEditTags, TQT_SIGNAL(clicked()), + this, TQT_SLOT(editTagsClicked()) ); // delete the icon loader object @@ -317,9 +317,9 @@ void OptionsEditor::setTagInputEnabled( bool enabled ) } } -void OptionsEditor::itemsSelected( QValueList<FileListItem*> items ) +void OptionsEditor::itemsSelected( TQValueList<FileListItem*> items ) { - for( QValueList<FileListItem*>::Iterator it = items.begin(); it != items.end(); ) { + for( TQValueList<FileListItem*>::Iterator it = items.begin(); it != items.end(); ) { if( (*it)->converting || (*it) == 0 ) it = items.remove( it ); else it++; } @@ -345,13 +345,13 @@ void OptionsEditor::itemsSelected( QValueList<FileListItem*> items ) pEditTags->hide(); if( items.count() == 1 ) { - setCaption( KURL::decode_string(items.first()->fileName).replace("%2f","/").replace("%%","%") ); + setCaption( KURL::decode_string(items.first()->fileName).tqreplace("%2f","/").tqreplace("%%","%") ); // HACK ...but seems to work... // FIXME directory does get set properly - disconnect( options, SIGNAL(optionsChanged()), 0, 0 ); + disconnect( options, TQT_SIGNAL(optionsChanged()), 0, 0 ); options->setCurrentOptions( items.first()->options ); - connect( options, SIGNAL(optionsChanged()), - this, SLOT(optionsChanged()) + connect( options, TQT_SIGNAL(optionsChanged()), + this, TQT_SLOT(optionsChanged()) ); if( items.first()->tags == 0 && !items.first()->local ) { setTagInputEnabled( false ); @@ -384,18 +384,18 @@ void OptionsEditor::itemsSelected( QValueList<FileListItem*> items ) } } else { - setCaption( i18n("%1 Files").arg(items.count()) ); - QValueList<FileListItem*>::Iterator it = items.begin(); + setCaption( i18n("%1 Files").tqarg(items.count()) ); + TQValueList<FileListItem*>::Iterator it = items.begin(); ConversionOptions cOptions = (*it)->options; - QString title = ( (*it)->tags == 0 ) ? "" : (*it)->tags->title; + TQString title = ( (*it)->tags == 0 ) ? "" : (*it)->tags->title; int number = ( (*it)->tags == 0 ) ? 0 : (*it)->tags->track; - QString artist = ( (*it)->tags == 0 ) ? "" : (*it)->tags->artist; - QString composer = ( (*it)->tags == 0 ) ? "" : (*it)->tags->composer; - QString album = ( (*it)->tags == 0 ) ? "" : (*it)->tags->album; + TQString artist = ( (*it)->tags == 0 ) ? "" : (*it)->tags->artist; + TQString composer = ( (*it)->tags == 0 ) ? "" : (*it)->tags->composer; + TQString album = ( (*it)->tags == 0 ) ? "" : (*it)->tags->album; int disc = ( (*it)->tags == 0 ) ? 0 : (*it)->tags->disc; int year = ( (*it)->tags == 0 ) ? 0 : (*it)->tags->year; - QString genre = ( (*it)->tags == 0 ) ? "" : (*it)->tags->genre; - QString comment = ( (*it)->tags == 0 ) ? "" : (*it)->tags->comment; + TQString genre = ( (*it)->tags == 0 ) ? "" : (*it)->tags->genre; + TQString comment = ( (*it)->tags == 0 ) ? "" : (*it)->tags->comment; while( it != items.end() ) { if( !cOptions.nearlyEqual((*it)->options) ) { options->setEnabled( false ); @@ -446,7 +446,7 @@ void OptionsEditor::itemsSelected( QValueList<FileListItem*> items ) } if( year != (*it)->tags->year && iYear->isEnabled() ) { iYear->setEnabled( false ); - iYear->setValue( QDate::currentDate().year() ); + iYear->setValue( TQDate::tqcurrentDate().year() ); pYearEdit->show(); } if( genre != (*it)->tags->genre && cGenre->isEnabled() ) { @@ -465,10 +465,10 @@ void OptionsEditor::itemsSelected( QValueList<FileListItem*> items ) if( options->isEnabled() ) { // HACK ...but seems to work... // FIXME directory does get set properly - disconnect( options, SIGNAL(optionsChanged()), 0, 0 ); + disconnect( options, TQT_SIGNAL(optionsChanged()), 0, 0 ); options->setCurrentOptions( items.first()->options ); - connect( options, SIGNAL(optionsChanged()), - this, SLOT(optionsChanged()) + connect( options, TQT_SIGNAL(optionsChanged()), + this, TQT_SLOT(optionsChanged()) ); } if( lTitle->isEnabled() ) { @@ -516,10 +516,10 @@ void OptionsEditor::optionsChanged() { if( !options->isEnabled() ) return; - QString filePathName; -// QString outputFilePathName; + TQString filePathName; +// TQString outputFilePathName; - for( QValueList<FileListItem*>::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) { + for( TQValueList<FileListItem*>::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) { filePathName = (*it)->options.filePathName; // outputFilePathName = (*it)->options.outputFilePathName; (*it)->options = options->getCurrentOptions(); @@ -531,11 +531,11 @@ void OptionsEditor::optionsChanged() } } -void OptionsEditor::titleChanged( const QString& text ) +void OptionsEditor::titleChanged( const TQString& text ) { if( !lTitle->isEnabled() ) return; - for( QValueList<FileListItem*>::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) { + for( TQValueList<FileListItem*>::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) { (*it)->tags->title = text; //(*it)->updateOutputCell(); fileList->updateItem( *it ); @@ -546,40 +546,40 @@ void OptionsEditor::numberChanged( int value ) { if( !iNumber->isEnabled() ) return; - for( QValueList<FileListItem*>::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) { + for( TQValueList<FileListItem*>::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) { (*it)->tags->track = value; //(*it)->updateOutputCell(); fileList->updateItem( *it ); } } -void OptionsEditor::artistChanged( const QString& text ) +void OptionsEditor::artistChanged( const TQString& text ) { if( !lArtist->isEnabled() ) return; - for( QValueList<FileListItem*>::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) { + for( TQValueList<FileListItem*>::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) { (*it)->tags->artist = text; //(*it)->updateOutputCell(); fileList->updateItem( *it ); } } -void OptionsEditor::composerChanged( const QString& text ) +void OptionsEditor::composerChanged( const TQString& text ) { if( !lComposer->isEnabled() ) return; - for( QValueList<FileListItem*>::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) { + for( TQValueList<FileListItem*>::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) { (*it)->tags->composer = text; //(*it)->updateOutputCell(); fileList->updateItem( *it ); } } -void OptionsEditor::albumChanged( const QString& text ) +void OptionsEditor::albumChanged( const TQString& text ) { if( !lAlbum->isEnabled() ) return; - for( QValueList<FileListItem*>::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) { + for( TQValueList<FileListItem*>::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) { (*it)->tags->album = text; //(*it)->updateOutputCell(); fileList->updateItem( *it ); @@ -590,7 +590,7 @@ void OptionsEditor::discChanged( int value ) { if( !iDisc->isEnabled() ) return; - for( QValueList<FileListItem*>::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) { + for( TQValueList<FileListItem*>::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) { (*it)->tags->disc = value; //(*it)->updateOutputCell(); fileList->updateItem( *it ); @@ -601,18 +601,18 @@ void OptionsEditor::yearChanged( int value ) { if( !iYear->isEnabled() ) return; - for( QValueList<FileListItem*>::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) { + for( TQValueList<FileListItem*>::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) { (*it)->tags->year = value; //(*it)->updateOutputCell(); fileList->updateItem( *it ); } } -void OptionsEditor::genreChanged( const QString& text ) +void OptionsEditor::genreChanged( const TQString& text ) { if( !cGenre->isEnabled() ) return; - for( QValueList<FileListItem*>::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) { + for( TQValueList<FileListItem*>::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) { (*it)->tags->genre = text; //(*it)->updateOutputCell(); fileList->updateItem( *it ); @@ -623,9 +623,9 @@ void OptionsEditor::commentChanged() { if( !tComment->isEnabled() ) return; - QString text = tComment->text(); + TQString text = tComment->text(); - for( QValueList<FileListItem*>::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) { + for( TQValueList<FileListItem*>::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) { (*it)->tags->comment = text; //(*it)->updateOutputCell(); fileList->updateItem( *it ); @@ -720,7 +720,7 @@ void OptionsEditor::editOptionsClicked() void OptionsEditor::editTagsClicked() { - for( QValueList<FileListItem*>::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) { + for( TQValueList<FileListItem*>::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) { (*it)->tags = new TagData(); } |