summaryrefslogtreecommitdiffstats
path: root/src/replaygainscanner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/replaygainscanner.cpp')
-rwxr-xr-xsrc/replaygainscanner.cpp98
1 files changed, 49 insertions, 49 deletions
diff --git a/src/replaygainscanner.cpp b/src/replaygainscanner.cpp
index 9eb0bcd..2303e18 100755
--- a/src/replaygainscanner.cpp
+++ b/src/replaygainscanner.cpp
@@ -5,11 +5,11 @@
#include "config.h"
#include "dirdialog.h"
-#include <qlayout.h>
-#include <qstringlist.h>
-#include <qlabel.h>
-#include <qcheckbox.h>
-#include <qtooltip.h>
+#include <tqlayout.h>
+#include <tqstringlist.h>
+#include <tqlabel.h>
+#include <tqcheckbox.h>
+#include <tqtooltip.h>
#include <klocale.h>
#include <kiconloader.h>
@@ -20,8 +20,8 @@
// FIXME file name encoding !!!
-ReplayGainScanner::ReplayGainScanner( TagEngine* _tagEngine, Config* _config, Logger* _logger, QWidget *parent, const char *name, bool modal, WFlags f )
- : KDialog( parent, name, modal, f )
+ReplayGainScanner::ReplayGainScanner( TagEngine* _tagEngine, Config* _config, Logger* _logger, TQWidget *tqparent, const char *name, bool modal, WFlags f )
+ : KDialog( tqparent, name, modal, f )
{
tagEngine = _tagEngine;
config = _config;
@@ -34,29 +34,29 @@ ReplayGainScanner::ReplayGainScanner( TagEngine* _tagEngine, Config* _config, Lo
resize( 600, 400 );
setIcon( iconLoader->loadIcon("soundkonverter_replaygain",KIcon::Small) );
- QGridLayout* grid = new QGridLayout( this, 4, 1, 11, 6 );
+ TQGridLayout* grid = new TQGridLayout( this, 4, 1, 11, 6 );
- QHBoxLayout* filterBox = new QHBoxLayout();
+ TQHBoxLayout* filterBox = new TQHBoxLayout();
grid->addLayout( filterBox, 0, 0 );
cAdd = new ComboButton( this, "cAdd" );
cAdd->insertItem( iconLoader->loadIcon("folder",KIcon::Small),i18n("Add Folder ...") );
cAdd->insertItem( iconLoader->loadIcon("sound",KIcon::Small),i18n("Add Files ...") );
filterBox->addWidget( cAdd );
- connect( cAdd, SIGNAL(clicked(int)),
- this, SLOT(addClicked(int))
+ connect( cAdd, TQT_SIGNAL(clicked(int)),
+ this, TQT_SLOT(addClicked(int))
);
filterBox->addStretch();
- cForce = new QCheckBox( i18n("Force recalculation"), this, "cForce" );
- QToolTip::add( cForce, i18n("Recalculate Replay Gain tag for files that already have a Replay Gain tag set.") );
+ cForce = new TQCheckBox( i18n("Force recalculation"), this, "cForce" );
+ TQToolTip::add( cForce, i18n("Recalculate Replay Gain tag for files that already have a Replay Gain tag set.") );
filterBox->addWidget( cForce );
- /*QLabel *lFilter=new QLabel(i18n("Show:"),this,"lFilter");
+ /*TQLabel *lFilter=new TQLabel(i18n("Show:"),this,"lFilter");
filterBox->addWidget(lFilter);
- cFilter=new QComboBox(this,"cFilter");
+ cFilter=new TQComboBox(this,"cFilter");
cFilter->insertItem(i18n("All"));
cFilter->insertItem(i18n("With Replay Gain"));
cFilter->insertItem(i18n("Without Replay Gain"));
@@ -65,59 +65,59 @@ ReplayGainScanner::ReplayGainScanner( TagEngine* _tagEngine, Config* _config, Lo
lList = new ReplayGainFileList( tagEngine, config, logger, this, "lList" );
grid->addWidget( lList, 1, 0 );
- connect( this, SIGNAL(addFile(const QString&)),
- lList, SLOT(addFile(const QString&))
+ connect( this, TQT_SIGNAL(addFile(const TQString&)),
+ lList, TQT_SLOT(addFile(const TQString&))
);
- connect( this, SIGNAL(addDir(const QString&,const QStringList&,bool)),
- lList, SLOT(addDir(const QString&,const QStringList&,bool))
+ connect( this, TQT_SIGNAL(addDir(const TQString&,const TQStringList&,bool)),
+ lList, TQT_SLOT(addDir(const TQString&,const TQStringList&,bool))
);
- connect( this, SIGNAL(calcAllReplayGain(bool)),
- lList, SLOT(calcAllReplayGain(bool))
+ connect( this, TQT_SIGNAL(calcAllReplayGain(bool)),
+ lList, TQT_SLOT(calcAllReplayGain(bool))
);
- connect( this, SIGNAL(removeAllReplayGain()),
- lList, SLOT(removeAllReplayGain())
+ connect( this, TQT_SIGNAL(removeAllReplayGain()),
+ lList, TQT_SLOT(removeAllReplayGain())
);
- connect( this, SIGNAL(cancelProcess()),
- lList, SLOT(cancelProcess())
+ connect( this, TQT_SIGNAL(cancelProcess()),
+ lList, TQT_SLOT(cancelProcess())
);
- connect( lList, SIGNAL(processStarted()),
- this, SLOT(processStarted())
+ connect( lList, TQT_SIGNAL(processStarted()),
+ this, TQT_SLOT(processStarted())
);
- connect( lList, SIGNAL(processStopped()),
- this, SLOT(processStopped())
+ connect( lList, TQT_SIGNAL(processStopped()),
+ this, TQT_SLOT(processStopped())
);
- connect( lList, SIGNAL(updateProgress(int,int)),
- this, SLOT(updateProgress(int,int))
+ connect( lList, TQT_SIGNAL(updateProgress(int,int)),
+ this, TQT_SLOT(updateProgress(int,int))
);
- QHBoxLayout* progressBox = new QHBoxLayout();
+ TQHBoxLayout* progressBox = new TQHBoxLayout();
grid->addLayout( progressBox, 2, 0 );
pProgressBar = new KProgress( this, "pProgressBar" );
progressBox->addWidget( pProgressBar );
- QHBoxLayout* buttonBox = new QHBoxLayout();
+ TQHBoxLayout* buttonBox = new TQHBoxLayout();
grid->addLayout( buttonBox, 3, 0 );
pTagVisible = new KPushButton( iconLoader->loadIcon("apply",KIcon::Small), i18n("Tag untagged"), this, "pTagVisible" );
- QToolTip::add( pTagVisible, i18n("Calculate Replay Gain tag for all files in the file list without Replay Gain tag.") );
+ TQToolTip::add( pTagVisible, i18n("Calculate Replay Gain tag for all files in the file list without Replay Gain tag.") );
buttonBox->addWidget( pTagVisible );
- connect( pTagVisible, SIGNAL(clicked()),
- this, SLOT(calcReplayGainClicked())
+ connect( pTagVisible, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(calcReplayGainClicked())
);
pRemoveTag = new KPushButton( iconLoader->loadIcon("cancel",KIcon::Small), i18n("Untag tagged"), this, "pRemoveTag" );
- QToolTip::add( pRemoveTag, i18n("Remove the Replay Gain tag from all files in the file list.") );
+ TQToolTip::add( pRemoveTag, i18n("Remove the Replay Gain tag from all files in the file list.") );
buttonBox->addWidget( pRemoveTag );
- connect( pRemoveTag, SIGNAL(clicked()),
- this, SLOT(removeReplayGainClicked())
+ connect( pRemoveTag, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(removeReplayGainClicked())
);
pCancel = new KPushButton( iconLoader->loadIcon("cancel",KIcon::Small),i18n("Cancel"), this, "pCancel" );
pCancel->hide();
buttonBox->addWidget( pCancel );
- connect( pCancel, SIGNAL(clicked()),
- this, SLOT(cancelClicked())
+ connect( pCancel, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(cancelClicked())
);
buttonBox->addStretch();
@@ -125,8 +125,8 @@ ReplayGainScanner::ReplayGainScanner( TagEngine* _tagEngine, Config* _config, Lo
pOk = new KPushButton( iconLoader->loadIcon("exit",KIcon::Small), i18n("Close"), this, "pOk" );
pOk->setFocus();
buttonBox->addWidget( pOk );
- connect( pOk, SIGNAL(clicked()),
- this, SLOT(accept())
+ connect( pOk, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(accept())
);
// delete the icon loader object
@@ -151,8 +151,8 @@ void ReplayGainScanner::showFileDialog()
KFileDialog* dialog = new KFileDialog( ":file_open", config->replayGainFilter(), this, i18n("Choose files!"), true );
dialog->setMode ( KFile::Files | KFile::ExistingOnly );
if( dialog->exec() == KDialog::Accepted ) {
- QStringList urls = dialog->selectedURLs().toStringList();
- for( QStringList::Iterator it = urls.begin(); it != urls.end(); ++it ) {
+ TQStringList urls = dialog->selectedURLs().toStringList();
+ for( TQStringList::Iterator it = urls.begin(); it != urls.end(); ++it ) {
emit addFile( *it );
}
}
@@ -160,7 +160,7 @@ void ReplayGainScanner::showFileDialog()
void ReplayGainScanner::showDirDialog()
{
-// QString directory = KFileDialog::getExistingDirectory( ":file_open", this, i18n("Choose a directory!") );
+// TQString directory = KFileDialog::getExistingDirectory( ":file_open", this, i18n("Choose a directory!") );
// if( directory != NULL )
// {
// emit addDir( directory );
@@ -177,9 +177,9 @@ void ReplayGainScanner::showDirDialog()
delete dialog;
}
-void ReplayGainScanner::addFiles( QStringList files )
+void ReplayGainScanner::addFiles( TQStringList files )
{
- for( QStringList::Iterator it = files.begin(); it != files.end(); ++it ) {
+ for( TQStringList::Iterator it = files.begin(); it != files.end(); ++it ) {
emit addFile( *it );
}
}
@@ -226,7 +226,7 @@ void ReplayGainScanner::updateProgress( int progress, int totalSteps )
if( pProgressBar->totalSteps() > 0 ) fPercent = pProgressBar->progress() * 100 / pProgressBar->totalSteps();
else fPercent = 0;
- QString percent;
+ TQString percent;
percent.sprintf( "%i%%", (int)fPercent );
setCaption( percent + " - " + i18n("Replay Gain Tool") );
}