diff options
Diffstat (limited to 'src/configbackendspage.cpp')
-rwxr-xr-x | src/configbackendspage.cpp | 250 |
1 files changed, 125 insertions, 125 deletions
diff --git a/src/configbackendspage.cpp b/src/configbackendspage.cpp index d7b1589..5d61cb3 100755 --- a/src/configbackendspage.cpp +++ b/src/configbackendspage.cpp @@ -5,13 +5,13 @@ #include "ripperpluginloader.h" #include "config.h" -#include <qlayout.h> -#include <qlabel.h> -#include <qgroupbox.h> -#include <qtooltip.h> -#include <qvbox.h> -#include <qslider.h> -#include <qcheckbox.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqgroupbox.h> +#include <tqtooltip.h> +#include <tqvbox.h> +#include <tqslider.h> +#include <tqcheckbox.h> #include <kiconloader.h> #include <klocale.h> @@ -20,44 +20,44 @@ #include <kstandarddirs.h> -ConfigBackendsPage::ConfigBackendsPage( Config* _config, QMap<QString, QString>* _binaries, QWidget* parent, const char *name ) - : ConfigPageBase( parent, name ) +ConfigBackendsPage::ConfigBackendsPage( Config* _config, TQMap<TQString, TQString>* _binaries, TQWidget* tqparent, const char *name ) + : ConfigPageBase( tqparent, name ) { config = _config; binaries = _binaries; - grid = new QGridLayout( parent ); - scrollView = new KScrollView( parent, "scrollView" ); - scrollView->setResizePolicy( QScrollView::AutoOneFit ); + grid = new TQGridLayout( tqparent ); + scrollView = new KScrollView( tqparent, "scrollView" ); + scrollView->setResizePolicy( TQScrollView::AutoOneFit ); grid->addWidget( scrollView, 0, 0 ); - box = new QVBox( scrollView->viewport() ); + box = new TQVBox( scrollView->viewport() ); box->setMargin( 11 ); box->setSpacing( 6 ); scrollView->addChild( box ); - QHBox* legendBox = new QHBox( box ); + TQHBox* legendBox = new TQHBox( box ); legendBox->setMargin( 0 ); legendBox->setSpacing( 6 ); KStandardDirs* stdDirs = new KStandardDirs(); - QLabel* lLegendLabel = new QLabel( i18n("Legend")+":", legendBox, "lLegendLabel" ); - QLabel* lLegendGreen = new QLabel( "", legendBox, "lLegendGreen" ); - lLegendGreen->setPixmap( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledgreen_legend.png")) ); - QLabel* lLegendFull = new QLabel( i18n("Full support"), legendBox, "lLegendFull" ); - QLabel* lLegendYellow = new QLabel("",legendBox,"lLegendYellow"); - lLegendYellow->setPixmap( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledyellow_legend.png")) ); - QLabel* lLegendMost = new QLabel( i18n("Most supported"), legendBox, "lLegendMost" ); - QLabel* lLegendRed = new QLabel( "", legendBox, "lLegendRed" ); - lLegendRed->setPixmap( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledred_legend.png")) ); - QLabel* lLegendBasic = new QLabel( i18n("Basic support"), legendBox, "lLegendBasic" ); + TQLabel* lLegendLabel = new TQLabel( i18n("Legend")+":", legendBox, "lLegendLabel" ); + TQLabel* lLegendGreen = new TQLabel( "", legendBox, "lLegendGreen" ); + lLegendGreen->setPixmap( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledgreen_legend.png")) ); + TQLabel* lLegendFull = new TQLabel( i18n("Full support"), legendBox, "lLegendFull" ); + TQLabel* lLegendYellow = new TQLabel("",legendBox,"lLegendYellow"); + lLegendYellow->setPixmap( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledyellow_legend.png")) ); + TQLabel* lLegendMost = new TQLabel( i18n("Most supported"), legendBox, "lLegendMost" ); + TQLabel* lLegendRed = new TQLabel( "", legendBox, "lLegendRed" ); + lLegendRed->setPixmap( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledred_legend.png")) ); + TQLabel* lLegendBasic = new TQLabel( i18n("Basic support"), legendBox, "lLegendBasic" ); legendBox->setStretchFactor( lLegendLabel, 1 ); - QGroupBox* ripperGroup = new QGroupBox( 1, Qt::Vertical, box, "ripperGroup" ); - ripperGroup->layout()->setSpacing( 6 ); - ripperGroup->layout()->setMargin( 6 ); - QLabel* lRipper = new QLabel( i18n("CD Ripper")+":", ripperGroup, "lRipper" ); + TQGroupBox* ripperGroup = new TQGroupBox( 1, Qt::Vertical, box, "ripperGroup" ); + ripperGroup->tqlayout()->setSpacing( 6 ); + ripperGroup->tqlayout()->setMargin( 6 ); + TQLabel* lRipper = new TQLabel( i18n("CD Ripper")+":", ripperGroup, "lRipper" ); cRipper = new KComboBox( ripperGroup, "cRipper" ); - connect( cRipper, SIGNAL(activated(int)), - this, SLOT(cfgChanged()) + connect( cRipper, TQT_SIGNAL(activated(int)), + this, TQT_SLOT(cfgChanged()) ); delete stdDirs; @@ -77,8 +77,8 @@ void ConfigBackendsPage::resetDefaults() i = 1; rank = 60; item = 0; - QValueList<RipperPlugin*> rippers = config->allRippers(); - for( QValueList<RipperPlugin*>::Iterator it = rippers.begin(); it != rippers.end(); ++it ) + TQValueList<RipperPlugin*> rippers = config->allRippers(); + for( TQValueList<RipperPlugin*>::Iterator it = rippers.begin(); it != rippers.end(); ++it ) { if( (*it)->rip.rank > rank ) { rank = (*it)->rip.rank; @@ -88,13 +88,13 @@ void ConfigBackendsPage::resetDefaults() } cRipper->setCurrentItem( item ); - for( QValueList<FormatOptions>::Iterator a = formatOptions.begin(); a != formatOptions.end(); ++a ) + for( TQValueList<FormatOptions>::Iterator a = formatOptions.begin(); a != formatOptions.end(); ++a ) { FormatItem* formatItem = config->getFormatItem( (*a).format ); if( formatItem == 0 ) continue; i = item = rank = 0; - for( QValueList<ConvertPlugin*>::Iterator b = formatItem->encoders.begin(); b != formatItem->encoders.end(); ++b ) { + for( TQValueList<ConvertPlugin*>::Iterator b = formatItem->encoders.begin(); b != formatItem->encoders.end(); ++b ) { if( (*b)->enc.rank > rank ) { rank = (*b)->enc.rank; item = i; @@ -104,7 +104,7 @@ void ConfigBackendsPage::resetDefaults() (*a).cEncoder->setCurrentItem( item ); i = item = rank = 0; - for( QValueList<ConvertPlugin*>::Iterator b = formatItem->decoders.begin(); b != formatItem->decoders.end(); ++b ) { + for( TQValueList<ConvertPlugin*>::Iterator b = formatItem->decoders.begin(); b != formatItem->decoders.end(); ++b ) { if( (*b)->dec.rank > rank ) { rank = (*b)->dec.rank; item = i; @@ -114,7 +114,7 @@ void ConfigBackendsPage::resetDefaults() (*a).cDecoder->setCurrentItem( item ); i = item = rank = 0; - for( QValueList<ReplayGainPlugin*>::Iterator b = formatItem->replaygains.begin(); b != formatItem->replaygains.end(); ++b ) { + for( TQValueList<ReplayGainPlugin*>::Iterator b = formatItem->replaygains.begin(); b != formatItem->replaygains.end(); ++b ) { if( (*b)->replaygain.rank > rank ) { rank = (*b)->replaygain.rank; item = i; @@ -126,16 +126,16 @@ void ConfigBackendsPage::resetDefaults() encoderChanged(); - for( QValueList<FormatOptions>::Iterator a = formatOptions.begin(); a != formatOptions.end(); ++a ) + for( TQValueList<FormatOptions>::Iterator a = formatOptions.begin(); a != formatOptions.end(); ++a ) { FormatItem* formatItem = config->getFormatItem( (*a).format ); if( formatItem == 0 ) continue; - QString encoder = (*a).cEncoder->currentText(); + TQString encoder = (*a).cEncoder->currentText(); (*a).cInternalReplayGain->setChecked( false ); - for( QValueList<ConvertPlugin*>::Iterator b = formatItem->encoders.begin(); b != formatItem->encoders.end(); ++b ) { + for( TQValueList<ConvertPlugin*>::Iterator b = formatItem->encoders.begin(); b != formatItem->encoders.end(); ++b ) { if( (*b)->enc.bin == encoder && (*b)->enc.strength.enabled ) { if( (*b)->enc.strength.range_max >= (*b)->enc.strength.range_min ) (*a).sStrength->setValue( (*b)->enc.strength.default_value / (*b)->enc.strength.step ); @@ -160,20 +160,20 @@ void ConfigBackendsPage::resetDefaults() void ConfigBackendsPage::saveSettings() { config->setCurrentRipper( 0 ); - QValueList<RipperPlugin*> rippers = config->allRippers(); - for( QValueList<RipperPlugin*>::Iterator it = rippers.begin(); it != rippers.end(); ++it ) + TQValueList<RipperPlugin*> rippers = config->allRippers(); + for( TQValueList<RipperPlugin*>::Iterator it = rippers.begin(); it != rippers.end(); ++it ) { if( (*it)->rip.bin == cRipper->currentText() ) { config->setCurrentRipper( *it ); } } - for( QValueList<FormatOptions>::Iterator a = formatOptions.begin(); a != formatOptions.end(); ++a ) + for( TQValueList<FormatOptions>::Iterator a = formatOptions.begin(); a != formatOptions.end(); ++a ) { FormatItem* formatItem = config->getFormatItem( (*a).format ); if( formatItem == 0 ) continue; - for( QValueList<ConvertPlugin*>::Iterator b = formatItem->encoders.begin(); b != formatItem->encoders.end(); ++b ) { + for( TQValueList<ConvertPlugin*>::Iterator b = formatItem->encoders.begin(); b != formatItem->encoders.end(); ++b ) { if( (*b)->enc.bin == (*a).cEncoder->currentText() ) { formatItem->encoder = (*b); if( (*b)->enc.strength.enabled ) { @@ -185,13 +185,13 @@ void ConfigBackendsPage::saveSettings() } } - for( QValueList<ConvertPlugin*>::Iterator b = formatItem->decoders.begin(); b != formatItem->decoders.end(); ++b ) { + for( TQValueList<ConvertPlugin*>::Iterator b = formatItem->decoders.begin(); b != formatItem->decoders.end(); ++b ) { if( (*b)->dec.bin == (*a).cDecoder->currentText() ) { formatItem->decoder = (*b); } } - for( QValueList<ReplayGainPlugin*>::Iterator b = formatItem->replaygains.begin(); b != formatItem->replaygains.end(); ++b ) { + for( TQValueList<ReplayGainPlugin*>::Iterator b = formatItem->replaygains.begin(); b != formatItem->replaygains.end(); ++b ) { if( (*b)->replaygain.bin == (*a).cReplayGain->currentText() ) { formatItem->replaygain = (*b); } @@ -201,22 +201,22 @@ void ConfigBackendsPage::saveSettings() void ConfigBackendsPage::rebuild() { - for( QValueList<FormatOptions>::Iterator it = formatOptions.begin(); it != formatOptions.end(); ++it ) + for( TQValueList<FormatOptions>::Iterator it = formatOptions.begin(); it != formatOptions.end(); ++it ) { delete (*it).lEncoder; - disconnect( (*it).cEncoder, SIGNAL(activated(int)), 0, 0 ); + disconnect( (*it).cEncoder, TQT_SIGNAL(activated(int)), 0, 0 ); delete (*it).cEncoder; delete (*it).lStrength; - disconnect( (*it).sStrength,SIGNAL(valueChanged(int)), 0, 0 ); + disconnect( (*it).sStrength,TQT_SIGNAL(valueChanged(int)), 0, 0 ); delete (*it).sStrength; delete (*it).lStrengthDisplay; delete (*it).lDecoder; - disconnect( (*it).cDecoder, SIGNAL(activated(int)), 0, 0 ); + disconnect( (*it).cDecoder, TQT_SIGNAL(activated(int)), 0, 0 ); delete (*it).cDecoder; delete (*it).lReplayGain; - disconnect( (*it).cReplayGain, SIGNAL(activated(int)), 0, 0 ); + disconnect( (*it).cReplayGain, TQT_SIGNAL(activated(int)), 0, 0 ); delete (*it).cReplayGain; - disconnect( (*it).cInternalReplayGain, SIGNAL(toggled(bool)), 0, 0 ); + disconnect( (*it).cInternalReplayGain, TQT_SIGNAL(toggled(bool)), 0, 0 ); delete (*it).cInternalReplayGain; delete (*it).grid; delete (*it).group; @@ -226,23 +226,23 @@ void ConfigBackendsPage::rebuild() // TODO show all extensions - QStringList formats = config->allFormats(); + TQStringList formats = config->allFormats(); - for( QStringList::Iterator it = formats.begin(); it != formats.end(); ++it ) + for( TQStringList::Iterator it = formats.begin(); it != formats.end(); ++it ) { FormatOptions options; options.format = *it; FormatItem *formatItem = config->getFormatItem( options.format ); - QString title; + TQString title; if( formatItem ) { - for( QStringList::Iterator at = formatItem->extensions.begin(); at != formatItem->extensions.end(); ++at ) { - if( !title.contains((*at).lower()) ) title += (*at).lower() + ", "; + for( TQStringList::Iterator at = formatItem->extensions.begin(); at != formatItem->extensions.end(); ++at ) { + if( !title.tqcontains((*at).lower()) ) title += (*at).lower() + ", "; } title = title.left( title.length() - 2 ); /* title += " ["; - for( QStringList::Iterator bt = formatItem->mime_types.begin(); bt != formatItem->mime_types.end(); ++bt ) { - if( !title.contains((*bt).lower()) ) title += (*bt).lower() + ", "; + for( TQStringList::Iterator bt = formatItem->mime_types.begin(); bt != formatItem->mime_types.end(); ++bt ) { + if( !title.tqcontains((*bt).lower()) ) title += (*bt).lower() + ", "; } title = title.left( title.length() - 2 ) + "]";*/ } @@ -250,70 +250,70 @@ void ConfigBackendsPage::rebuild() title = options.format; } - options.group = new QGroupBox( title, box, options.format ); + options.group = new TQGroupBox( title, box, options.format ); options.group->setColumnLayout( 0, Qt::Vertical ); - options.group->layout()->setSpacing( 6 ); - options.group->layout()->setMargin( 6 ); + options.group->tqlayout()->setSpacing( 6 ); + options.group->tqlayout()->setMargin( 6 ); options.group->show(); - options.grid = new QGridLayout( options.group->layout() ); + options.grid = new TQGridLayout( options.group->tqlayout() ); - options.lEncoder = new QLabel( i18n("Encoder")+":", options.group, options.format ); + options.lEncoder = new TQLabel( i18n("Encoder")+":", options.group, options.format ); options.lEncoder->show(); options.grid->addWidget( options.lEncoder, 0, 0 ); options.cEncoder = new KComboBox( options.group, options.format ); options.cEncoder->show(); - connect( options.cEncoder, SIGNAL(activated(int)), - this, SLOT(cfgChanged()) + connect( options.cEncoder, TQT_SIGNAL(activated(int)), + this, TQT_SLOT(cfgChanged()) ); - connect( options.cEncoder, SIGNAL(activated(int)), - this, SLOT(encoderChanged()) + connect( options.cEncoder, TQT_SIGNAL(activated(int)), + this, TQT_SLOT(encoderChanged()) ); options.grid->addWidget( options.cEncoder, 0, 1 ); - options.lStrength = new QLabel( i18n("Strength")+":", options.group, options.format ); - options.lStrength->setAlignment( Qt::AlignRight | Qt::AlignVCenter ); + options.lStrength = new TQLabel( i18n("Strength")+":", options.group, options.format ); + options.lStrength->tqsetAlignment( TQt::AlignRight | TQt::AlignVCenter ); options.lStrength->show(); options.grid->addWidget( options.lStrength, 0, 2 ); - options.sStrength = new QSlider( Qt::Horizontal, options.group, options.format ); - options.sStrength->setTickmarks( QSlider::Below ); + options.sStrength = new TQSlider( Qt::Horizontal, options.group, options.format ); + options.sStrength->setTickmarks( TQSlider::Below ); options.sStrength->show(); - QToolTip::add( options.sStrength, i18n("Set the compression strength:\n\nLeft = fast conversion\nRight = good resultant file") ); + TQToolTip::add( options.sStrength, i18n("Set the compression strength:\n\nLeft = fast conversion\nRight = good resultant file") ); options.grid->addWidget( options.sStrength, 0, 3 ); - connect( options.sStrength, SIGNAL(valueChanged(int)), - this, SLOT(cfgChanged()) + connect( options.sStrength, TQT_SIGNAL(valueChanged(int)), + this, TQT_SLOT(cfgChanged()) ); - connect( options.sStrength, SIGNAL(valueChanged(int)), - this, SLOT(strengthChanged()) + connect( options.sStrength, TQT_SIGNAL(valueChanged(int)), + this, TQT_SLOT(strengthChanged()) ); - options.lDecoder = new QLabel( i18n("Decoder")+":", options.group, options.format ); + options.lDecoder = new TQLabel( i18n("Decoder")+":", options.group, options.format ); options.lDecoder->show(); options.grid->addWidget( options.lDecoder, 1, 0 ); options.cDecoder = new KComboBox( options.group, options.format ); options.cDecoder->show(); options.grid->addWidget( options.cDecoder, 1, 1 ); - connect( options.cDecoder, SIGNAL(activated(int)), - this, SLOT(cfgChanged()) + connect( options.cDecoder, TQT_SIGNAL(activated(int)), + this, TQT_SLOT(cfgChanged()) ); - options.lStrengthDisplay = new QLabel( "", options.group, options.format ); - options.lStrengthDisplay->setAlignment( Qt::AlignRight | Qt::AlignVCenter ); + options.lStrengthDisplay = new TQLabel( "", options.group, options.format ); + options.lStrengthDisplay->tqsetAlignment( TQt::AlignRight | TQt::AlignVCenter ); options.lStrengthDisplay->setEnabled( false ); options.grid->addWidget( options.lStrengthDisplay, 1, 3 ); - options.lReplayGain = new QLabel( i18n("Replay Gain")+":", options.group, options.format ); + options.lReplayGain = new TQLabel( i18n("Replay Gain")+":", options.group, options.format ); options.lReplayGain->show(); options.grid->addWidget( options.lReplayGain, 2, 0 ); options.cReplayGain = new KComboBox( options.group, options.format ); options.cReplayGain->show(); options.grid->addWidget( options.cReplayGain, 2, 1 ); - connect( options.cReplayGain, SIGNAL(activated(int)), - this, SLOT(cfgChanged()) + connect( options.cReplayGain, TQT_SIGNAL(activated(int)), + this, TQT_SLOT(cfgChanged()) ); - options.cInternalReplayGain = new QCheckBox( i18n("Use internal Replay Gain"), options.group, options.format ); - QToolTip::add( options.cInternalReplayGain, i18n("Use the internal Replay Gain calculator of the encoder") ); + options.cInternalReplayGain = new TQCheckBox( i18n("Use internal Replay Gain"), options.group, options.format ); + TQToolTip::add( options.cInternalReplayGain, i18n("Use the internal Replay Gain calculator of the encoder") ); options.grid->addWidget( options.cInternalReplayGain, 2, 3 ); - connect( options.cInternalReplayGain, SIGNAL(toggled(bool)), - this, SLOT(cfgChanged()) + connect( options.cInternalReplayGain, TQT_SIGNAL(toggled(bool)), + this, TQT_SLOT(cfgChanged()) ); options.grid->setColStretch( 0, 0 ); @@ -334,22 +334,22 @@ void ConfigBackendsPage::refill() cRipper->clear(); i = item = 0; - cRipper->insertItem( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledyellow.png")), i18n("KDE audio CD protocol") ); + cRipper->insertItem( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledyellow.png")), i18n("KDE audio CD protocol") ); i++; - QValueList<RipperPlugin*> rippers = config->allRippers(); - for( QValueList<RipperPlugin*>::Iterator it = rippers.begin(); it != rippers.end(); ++it ) + TQValueList<RipperPlugin*> rippers = config->allRippers(); + for( TQValueList<RipperPlugin*>::Iterator it = rippers.begin(); it != rippers.end(); ++it ) { if( (*binaries)[(*it)->rip.bin] == "" ) continue; - if( (*it)->rip.rank >= 70 ) cRipper->insertItem( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledgreen.png")), (*it)->rip.bin ); - else if( (*it)->rip.rank >= 40 ) cRipper->insertItem( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledyellow.png")), (*it)->rip.bin ); - else cRipper->insertItem( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledred.png")), (*it)->rip.bin ); + if( (*it)->rip.rank >= 70 ) cRipper->insertItem( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledgreen.png")), (*it)->rip.bin ); + else if( (*it)->rip.rank >= 40 ) cRipper->insertItem( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledyellow.png")), (*it)->rip.bin ); + else cRipper->insertItem( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledred.png")), (*it)->rip.bin ); if( (*it) == config->getCurrentRipper() ) item = i; i++; } cRipper->setCurrentItem( item ); - for( QValueList<FormatOptions>::Iterator a = formatOptions.begin(); a != formatOptions.end(); ++a ) + for( TQValueList<FormatOptions>::Iterator a = formatOptions.begin(); a != formatOptions.end(); ++a ) { FormatItem* formatItem = config->getFormatItem( (*a).format ); (*a).cEncoder->clear(); @@ -358,36 +358,36 @@ void ConfigBackendsPage::refill() if( formatItem == 0 ) continue; i = item = 0; - for( QValueList<ConvertPlugin*>::Iterator b = formatItem->encoders.begin(); b != formatItem->encoders.end(); ++b ) { + for( TQValueList<ConvertPlugin*>::Iterator b = formatItem->encoders.begin(); b != formatItem->encoders.end(); ++b ) { if( (*binaries)[(*b)->enc.bin] == "" ) continue; - if( (*b)->enc.rank >= 70 ) (*a).cEncoder->insertItem( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledgreen.png")), (*b)->enc.bin ); - else if( (*b)->enc.rank >= 40 ) (*a).cEncoder->insertItem( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledyellow.png")), (*b)->enc.bin ); - else (*a).cEncoder->insertItem( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledred.png")), (*b)->enc.bin ); + if( (*b)->enc.rank >= 70 ) (*a).cEncoder->insertItem( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledgreen.png")), (*b)->enc.bin ); + else if( (*b)->enc.rank >= 40 ) (*a).cEncoder->insertItem( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledyellow.png")), (*b)->enc.bin ); + else (*a).cEncoder->insertItem( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledred.png")), (*b)->enc.bin ); if( (*b) == formatItem->encoder ) item = i; i++; } (*a).cEncoder->setCurrentItem( item ); i = item = 0; - for( QValueList<ConvertPlugin*>::Iterator b = formatItem->decoders.begin(); b != formatItem->decoders.end(); ++b ) { + for( TQValueList<ConvertPlugin*>::Iterator b = formatItem->decoders.begin(); b != formatItem->decoders.end(); ++b ) { if( (*binaries)[(*b)->dec.bin] == "" ) continue; - if( (*b)->dec.rank >= 70 ) (*a).cDecoder->insertItem( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledgreen.png")), (*b)->dec.bin ); - else if( (*b)->dec.rank >= 40 ) (*a).cDecoder->insertItem( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledyellow.png")), (*b)->dec.bin ); - else (*a).cDecoder->insertItem( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledred.png")), (*b)->dec.bin ); + if( (*b)->dec.rank >= 70 ) (*a).cDecoder->insertItem( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledgreen.png")), (*b)->dec.bin ); + else if( (*b)->dec.rank >= 40 ) (*a).cDecoder->insertItem( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledyellow.png")), (*b)->dec.bin ); + else (*a).cDecoder->insertItem( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledred.png")), (*b)->dec.bin ); if( (*b) == formatItem->decoder ) item = i; i++; } (*a).cDecoder->setCurrentItem( item ); i = item = 0; - for( QValueList<ReplayGainPlugin*>::Iterator b = formatItem->replaygains.begin(); b != formatItem->replaygains.end(); ++b ) { + for( TQValueList<ReplayGainPlugin*>::Iterator b = formatItem->replaygains.begin(); b != formatItem->replaygains.end(); ++b ) { if( (*binaries)[(*b)->replaygain.bin] == "" ) continue; - if( (*b)->replaygain.rank >= 70 ) (*a).cReplayGain->insertItem( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledgreen.png")), (*b)->replaygain.bin ); - else if( (*b)->replaygain.rank >= 40 ) (*a).cReplayGain->insertItem( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledyellow.png")), (*b)->replaygain.bin ); - else (*a).cReplayGain->insertItem( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledred.png")), (*b)->replaygain.bin ); + if( (*b)->replaygain.rank >= 70 ) (*a).cReplayGain->insertItem( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledgreen.png")), (*b)->replaygain.bin ); + else if( (*b)->replaygain.rank >= 40 ) (*a).cReplayGain->insertItem( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledyellow.png")), (*b)->replaygain.bin ); + else (*a).cReplayGain->insertItem( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledred.png")), (*b)->replaygain.bin ); if( (*b) == formatItem->replaygain ) item = i; i++; } @@ -403,7 +403,7 @@ void ConfigBackendsPage::encoderChanged() { bool recalc; - for( QValueList<FormatOptions>::Iterator a = formatOptions.begin(); a != formatOptions.end(); ++a ) + for( TQValueList<FormatOptions>::Iterator a = formatOptions.begin(); a != formatOptions.end(); ++a ) { FormatItem* formatItem = config->getFormatItem( (*a).format ); (*a).lStrength->hide(); @@ -412,11 +412,11 @@ void ConfigBackendsPage::encoderChanged() (*a).cInternalReplayGain->hide(); if( formatItem == 0 ) continue; - QString encoder = (*a).cEncoder->currentText(); + TQString encoder = (*a).cEncoder->currentText(); - for( QValueList<ConvertPlugin*>::Iterator b = formatItem->encoders.begin(); b != formatItem->encoders.end(); ++b ) { - if( QObject::sender() && (*a).format == QObject::sender()->name() ) recalc = true; - else if( !QObject::sender() ) recalc = true; + for( TQValueList<ConvertPlugin*>::Iterator b = formatItem->encoders.begin(); b != formatItem->encoders.end(); ++b ) { + if( TQT_BASE_OBJECT_NAME::sender() && (*a).format == TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>((TQT_BASE_OBJECT_NAME::sender())))->name() ) recalc = true; + else if( !TQT_BASE_OBJECT_NAME::sender() ) recalc = true; else recalc = false; if( (*b)->enc.bin == encoder && (*b)->enc.strength.enabled ) { (*a).lStrength->show(); @@ -429,13 +429,13 @@ void ConfigBackendsPage::encoderChanged() (*a).sStrength->setMaxValue( (int)((*b)->enc.strength.range_min/(*b)->enc.strength.step) ); } (*a).sStrength->setPageStep( 1 ); - if( QObject::sender() && (*a).format == QObject::sender()->name() ) { + if( TQT_BASE_OBJECT_NAME::sender() && (*a).format == TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(TQT_BASE_OBJECT_NAME::sender()))->name() ) { if( (*b)->enc.strength.range_max >= (*b)->enc.strength.range_min ) (*a).sStrength->setValue( (*b)->enc.strength.default_value / (*b)->enc.strength.step ); else (*a).sStrength->setValue( ( (*b)->enc.strength.range_min - (*b)->enc.strength.default_value ) / (*b)->enc.strength.step ); } - else if( !QObject::sender() ) { + else if( !TQT_BASE_OBJECT_NAME::sender() ) { (*a).sStrength->setValue( formatItem->compressionLevel ); } (*a).sStrength->show(); @@ -453,35 +453,35 @@ void ConfigBackendsPage::encoderChanged() void ConfigBackendsPage::strengthChanged() { - for( QValueList<FormatOptions>::Iterator a = formatOptions.begin(); a != formatOptions.end(); ++a ) + for( TQValueList<FormatOptions>::Iterator a = formatOptions.begin(); a != formatOptions.end(); ++a ) { FormatItem* formatItem = config->getFormatItem( (*a).format ); if( formatItem == 0 ) continue; - QString encoder = (*a).cEncoder->currentText(); + TQString encoder = (*a).cEncoder->currentText(); - for( QValueList<ConvertPlugin*>::Iterator b = formatItem->encoders.begin(); b != formatItem->encoders.end(); ++b ) { + for( TQValueList<ConvertPlugin*>::Iterator b = formatItem->encoders.begin(); b != formatItem->encoders.end(); ++b ) { if( (*b)->enc.bin == encoder && (*b)->enc.strength.enabled ) { - QString strength = (*b)->enc.strength.param; + TQString strength = (*b)->enc.strength.param; int compressionLevel = (*a).sStrength->value(); if( (*b)->enc.strength.profiles.empty() ) { if( (*b)->enc.strength.step < 1 ) { if( (*b)->enc.strength.range_max >= (*b)->enc.strength.range_min ) - strength.replace( "%c", QString::number( compressionLevel * (*b)->enc.strength.step ) ); + strength.tqreplace( "%c", TQString::number( compressionLevel * (*b)->enc.strength.step ) ); else - strength.replace( "%c", QString::number( (*b)->enc.strength.range_min - compressionLevel * (*b)->enc.strength.step ) ); + strength.tqreplace( "%c", TQString::number( (*b)->enc.strength.range_min - compressionLevel * (*b)->enc.strength.step ) ); } else { if( (*b)->enc.strength.range_max >= (*b)->enc.strength.range_min ) - strength.replace( "%c", QString::number( (int)(compressionLevel * (*b)->enc.strength.step) ) ); + strength.tqreplace( "%c", TQString::number( (int)(compressionLevel * (*b)->enc.strength.step) ) ); else - strength.replace( "%c", QString::number( (int)((*b)->enc.strength.range_min - compressionLevel * (*b)->enc.strength.step) ) ); + strength.tqreplace( "%c", TQString::number( (int)((*b)->enc.strength.range_min - compressionLevel * (*b)->enc.strength.step) ) ); } - if( (*b)->enc.strength.separator != '.' ) strength.replace( QChar('.'), (*b)->enc.strength.separator ); + if( (*b)->enc.strength.separator != '.' ) strength.tqreplace( TQChar('.'), (*b)->enc.strength.separator ); } else { - QStringList::Iterator it = (*b)->enc.strength.profiles.at( (int)compressionLevel ); - strength.replace( "%c", *it ); + TQStringList::Iterator it = (*b)->enc.strength.profiles.at( (int)compressionLevel ); + strength.tqreplace( "%c", *it ); } (*a).lStrengthDisplay->setText( "( \"" + strength + "\" )" ); } |