summaryrefslogtreecommitdiffstats
path: root/src/optionsdetailed.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/optionsdetailed.cpp')
-rwxr-xr-xsrc/optionsdetailed.cpp306
1 files changed, 153 insertions, 153 deletions
diff --git a/src/optionsdetailed.cpp b/src/optionsdetailed.cpp
index 320f3bb..cd8163a 100755
--- a/src/optionsdetailed.cpp
+++ b/src/optionsdetailed.cpp
@@ -3,11 +3,11 @@
#include "convertpluginloader.h"
#include "config.h"
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qcheckbox.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqcheckbox.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
#include <knuminput.h>
#include <klocale.h>
@@ -26,103 +26,103 @@
// FIXME refill the formats box, when the configuration changed
-OptionsDetailed::OptionsDetailed( Config* _config, QWidget *parent, const char *name )
- : QWidget( parent, name )
+OptionsDetailed::OptionsDetailed( Config* _config, TQWidget *tqparent, const char *name )
+ : TQWidget( tqparent, name )
{
config = _config;
- QGridLayout *gridLayout = new QGridLayout( this );
+ TQGridLayout *gridLayout = new TQGridLayout( this );
// normal options
- normalOptions = new QWidget( this, "normalOptions" );
+ normalOptions = new TQWidget( this, "normalOptions" );
gridLayout->addWidget( normalOptions, 0, 0 );
- QGridLayout *normalGrid = new QGridLayout( normalOptions, 2, 1, 6, 3 );
+ TQGridLayout *normalGrid = new TQGridLayout( normalOptions, 2, 1, 6, 3 );
- QHBoxLayout *normalTopBox = new QHBoxLayout();
+ TQHBoxLayout *normalTopBox = new TQHBoxLayout();
normalGrid->addLayout( normalTopBox, 0, 0 );
- QLabel* lConvert = new QLabel( i18n("Convert")+":", normalOptions, "lConvert" );
- normalTopBox->addWidget( lConvert, 0, Qt::AlignVCenter );
+ TQLabel* lConvert = new TQLabel( i18n("Convert")+":", normalOptions, "lConvert" );
+ normalTopBox->addWidget( lConvert, 0, TQt::AlignVCenter );
cFormat = new KComboBox( normalOptions, "cFormat" );
- normalTopBox->addWidget( cFormat, 0, Qt::AlignVCenter );
- connect( cFormat, SIGNAL(activated(int)),
- this, SLOT(formatChanged())
+ normalTopBox->addWidget( cFormat, 0, TQt::AlignVCenter );
+ connect( cFormat, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(formatChanged())
);
- connect( cFormat, SIGNAL(activated(int)),
- this, SLOT(somethingChanged())
+ connect( cFormat, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(somethingChanged())
);
cQualityMode = new KComboBox( normalOptions, "cQualityMode" );
- cQualityMode->setFixedSize( cQualityMode->sizeHint() );
- normalTopBox->addWidget( cQualityMode, 0, Qt::AlignVCenter );
- connect( cQualityMode, SIGNAL(activated(int)),
- this, SLOT(qualityModeChanged())
+ cQualityMode->setFixedSize( cQualityMode->tqsizeHint() );
+ normalTopBox->addWidget( cQualityMode, 0, TQt::AlignVCenter );
+ connect( cQualityMode, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(qualityModeChanged())
);
- connect( cQualityMode, SIGNAL(activated(int)),
- this, SLOT(somethingChanged())
+ connect( cQualityMode, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(somethingChanged())
);
iQuality = new KIntSpinBox( normalOptions, "iQuality" );
- normalTopBox->addWidget( iQuality, 0, Qt::AlignVCenter );
- connect( iQuality, SIGNAL(valueChanged(int)),
- this, SLOT(qualityChanged())
+ normalTopBox->addWidget( iQuality, 0, TQt::AlignVCenter );
+ connect( iQuality, TQT_SIGNAL(valueChanged(int)),
+ this, TQT_SLOT(qualityChanged())
);
- connect( iQuality, SIGNAL(valueChanged(int)),
- this, SLOT(somethingChanged())
+ connect( iQuality, TQT_SIGNAL(valueChanged(int)),
+ this, TQT_SLOT(somethingChanged())
);
cBitrateMode = new KComboBox( normalOptions, "cBitrateMode" );
- QToolTip::add( cBitrateMode, i18n("vbr - variable bitrate\nabr - average bitrate\ncbr - constant bitrate") );
- normalTopBox->addWidget( cBitrateMode, 0, Qt::AlignVCenter );
- connect( cBitrateMode, SIGNAL(activated(int)),
- this, SLOT(bitrateModeChanged())
+ TQToolTip::add( cBitrateMode, i18n("vbr - variable bitrate\nabr - average bitrate\ncbr - constant bitrate") );
+ normalTopBox->addWidget( cBitrateMode, 0, TQt::AlignVCenter );
+ connect( cBitrateMode, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(bitrateModeChanged())
);
- connect( cBitrateMode, SIGNAL(activated(int)),
- this, SLOT(somethingChanged())
+ connect( cBitrateMode, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(somethingChanged())
);
normalTopBox->addSpacing( 18 );
- cBitrateRangeSwitch = new QCheckBox( i18n("Bitrate range")+":", normalOptions, "cBitrateRangeSwitch" );
- QToolTip::add( cBitrateRangeSwitch, i18n("Use it only if, you know what you are doing, you could reduce the quality.") );
- normalTopBox->addWidget( cBitrateRangeSwitch, 0, Qt::AlignVCenter );
- connect( cBitrateRangeSwitch, SIGNAL(toggled(bool)),
- this, SLOT(bitrateRangeToggled())
+ cBitrateRangeSwitch = new TQCheckBox( i18n("Bitrate range")+":", normalOptions, "cBitrateRangeSwitch" );
+ TQToolTip::add( cBitrateRangeSwitch, i18n("Use it only if, you know what you are doing, you could reduce the quality.") );
+ normalTopBox->addWidget( cBitrateRangeSwitch, 0, TQt::AlignVCenter );
+ connect( cBitrateRangeSwitch, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(bitrateRangeToggled())
);
- connect( cBitrateRangeSwitch, SIGNAL(toggled(bool)),
- this, SLOT(somethingChanged())
+ connect( cBitrateRangeSwitch, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(somethingChanged())
);
iMinBitrate = new KIntSpinBox( normalOptions, "iMinBitrate" );
iMinBitrate->setMinValue( 32 );
iMinBitrate->setMaxValue( 320 );
iMinBitrate->setLineStep( 8 );
iMinBitrate->setValue( 64 );
- normalTopBox->addWidget( iMinBitrate, 0, Qt::AlignVCenter );
- connect( iMinBitrate, SIGNAL(valueChanged(int)),
- this, SLOT(somethingChanged())
+ normalTopBox->addWidget( iMinBitrate, 0, TQt::AlignVCenter );
+ connect( iMinBitrate, TQT_SIGNAL(valueChanged(int)),
+ this, TQT_SLOT(somethingChanged())
);
- lBitrateRangeTo = new QLabel( "-", normalOptions, "lBitrateRangeTo" );
- normalTopBox->addWidget( lBitrateRangeTo, 0, Qt::AlignVCenter );
+ lBitrateRangeTo = new TQLabel( "-", normalOptions, "lBitrateRangeTo" );
+ normalTopBox->addWidget( lBitrateRangeTo, 0, TQt::AlignVCenter );
iMaxBitrate = new KIntSpinBox( normalOptions, "iMaxBitrate" );
iMaxBitrate->setMinValue( 32 );
iMaxBitrate->setMaxValue( 320 );
iMaxBitrate->setLineStep( 8 );
iMaxBitrate->setValue( 192 );
- normalTopBox->addWidget( iMaxBitrate, 0, Qt::AlignVCenter );
- connect( iMaxBitrate, SIGNAL(valueChanged(int)),
- this, SLOT(somethingChanged())
+ normalTopBox->addWidget( iMaxBitrate, 0, TQt::AlignVCenter );
+ connect( iMaxBitrate, TQT_SIGNAL(valueChanged(int)),
+ this, TQT_SLOT(somethingChanged())
);
- lBitrateRangeUnit = new QLabel( "kbps", normalOptions, "lBitrateRangeUnit" );
- normalTopBox->addWidget( lBitrateRangeUnit, 0, Qt::AlignVCenter );
+ lBitrateRangeUnit = new TQLabel( "kbps", normalOptions, "lBitrateRangeUnit" );
+ normalTopBox->addWidget( lBitrateRangeUnit, 0, TQt::AlignVCenter );
normalTopBox->addStretch();
- QHBoxLayout *normalMiddleBox = new QHBoxLayout();
+ TQHBoxLayout *normalMiddleBox = new TQHBoxLayout();
normalGrid->addLayout( normalMiddleBox, 1, 0 );
- cSamplingrateSwitch = new QCheckBox( i18n("Resample")+":", normalOptions, "cSamplingrateSwitch" );
- normalMiddleBox->addWidget( cSamplingrateSwitch, 0, Qt::AlignVCenter );
- connect( cSamplingrateSwitch, SIGNAL(toggled(bool)),
- this, SLOT(samplingrateToggled())
+ cSamplingrateSwitch = new TQCheckBox( i18n("Resample")+":", normalOptions, "cSamplingrateSwitch" );
+ normalMiddleBox->addWidget( cSamplingrateSwitch, 0, TQt::AlignVCenter );
+ connect( cSamplingrateSwitch, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(samplingrateToggled())
);
- connect( cSamplingrateSwitch, SIGNAL(toggled(bool)),
- this, SLOT(somethingChanged())
+ connect( cSamplingrateSwitch, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(somethingChanged())
);
cSamplingrate = new KComboBox( normalOptions, "cSamplingrate" );
cSamplingrate->setEditable(true);
@@ -136,21 +136,21 @@ OptionsDetailed::OptionsDetailed( Config* _config, QWidget *parent, const char *
cSamplingrate->insertItem("11025");
cSamplingrate->insertItem("8000");
cSamplingrate->setCurrentText("44100");
- normalMiddleBox->addWidget( cSamplingrate, 0, Qt::AlignVCenter );
- connect( cSamplingrate, SIGNAL(activated(int)),
- this, SLOT(somethingChanged())
+ normalMiddleBox->addWidget( cSamplingrate, 0, TQt::AlignVCenter );
+ connect( cSamplingrate, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(somethingChanged())
);
- lSamplingrateUnit = new QLabel( "Hz", normalOptions, "lSamplingrateUnit" );
- normalMiddleBox->addWidget( lSamplingrateUnit, 0, Qt::AlignVCenter );
+ lSamplingrateUnit = new TQLabel( "Hz", normalOptions, "lSamplingrateUnit" );
+ normalMiddleBox->addWidget( lSamplingrateUnit, 0, TQt::AlignVCenter );
normalMiddleBox->addSpacing( 18 );
- cChannelsSwitch = new QCheckBox( i18n("Channels")+":", normalOptions, "cChannelsSwitch" );
- normalMiddleBox->addWidget( cChannelsSwitch, 0, Qt::AlignVCenter );
- connect( cChannelsSwitch, SIGNAL(toggled(bool)),
- this, SLOT(channelsToggled())
+ cChannelsSwitch = new TQCheckBox( i18n("Channels")+":", normalOptions, "cChannelsSwitch" );
+ normalMiddleBox->addWidget( cChannelsSwitch, 0, TQt::AlignVCenter );
+ connect( cChannelsSwitch, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(channelsToggled())
);
- connect( cChannelsSwitch, SIGNAL(toggled(bool)),
- this, SLOT(somethingChanged())
+ connect( cChannelsSwitch, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(somethingChanged())
);
cChannels = new KComboBox( normalOptions, "cChannels" );
/* sChannels.append( i18n("Mono") );
@@ -159,71 +159,71 @@ OptionsDetailed::OptionsDetailed( Config* _config, QWidget *parent, const char *
sChannels.append( i18n("Forced Joint-Stereo") );
sChannels.append( i18n("Dual Channels") );
cChannels->insertStringList( sChannels );*/
- normalMiddleBox->addWidget( cChannels, 0, Qt::AlignVCenter );
- connect( cChannels, SIGNAL(activated(int)),
- this, SLOT(somethingChanged())
+ normalMiddleBox->addWidget( cChannels, 0, TQt::AlignVCenter );
+ connect( cChannels, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(somethingChanged())
);
normalMiddleBox->addSpacing( 18 );
- cReplayGain = new QCheckBox( i18n("Replay Gain"), normalOptions, "cReplayGain" );
+ cReplayGain = new TQCheckBox( i18n("Replay Gain"), normalOptions, "cReplayGain" );
cReplayGain->setChecked(true);
- QToolTip::add( cReplayGain, i18n("Add a Replay Gain tag to the converted file.") );
- QWhatsThis::add( cReplayGain, i18n("Replay Gain is a volume correction technique. A volume difference is calculated and stored in a tag. This way audio players can automatically adjust the volume and the original music data is not modified (like at normalization).") );
- normalMiddleBox->addWidget( cReplayGain, 0, Qt::AlignVCenter );
- connect( cReplayGain, SIGNAL(toggled(bool)),
- this, SLOT(somethingChanged())
+ TQToolTip::add( cReplayGain, i18n("Add a Replay Gain tag to the converted file.") );
+ TQWhatsThis::add( cReplayGain, i18n("Replay Gain is a volume correction technique. A volume difference is calculated and stored in a tag. This way audio players can automatically adjust the volume and the original music data is not modified (like at normalization).") );
+ normalMiddleBox->addWidget( cReplayGain, 0, TQt::AlignVCenter );
+ connect( cReplayGain, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(somethingChanged())
);
normalMiddleBox->addStretch();
- QHBoxLayout *normalBottomBox = new QHBoxLayout( );
+ TQHBoxLayout *normalBottomBox = new TQHBoxLayout( );
normalGrid->addLayout( normalBottomBox, 2, 0 );
outputDirectory = new OutputDirectory( config, normalOptions, "outputDirectory" );
- normalBottomBox->addWidget( outputDirectory, 0, Qt::AlignVCenter );
- connect( outputDirectory, SIGNAL(modeChanged(OutputDirectory::Mode)),
- this, SLOT(somethingChanged())
+ normalBottomBox->addWidget( outputDirectory, 0, TQt::AlignVCenter );
+ connect( outputDirectory, TQT_SIGNAL(modeChanged(OutputDirectory::Mode)),
+ this, TQT_SLOT(somethingChanged())
);
- connect( outputDirectory, SIGNAL(directoryChanged(const QString&)),
- this, SLOT(somethingChanged())
+ connect( outputDirectory, TQT_SIGNAL(directoryChanged(const TQString&)),
+ this, TQT_SLOT(somethingChanged())
);
normalBottomBox->addSpacing( 18 );
pProfileSave = new KToolBarButton( "filesave", 1003, normalOptions, "pProfileSave" );
- QToolTip::add( pProfileSave, i18n("Save current options as a profile") );
- normalBottomBox->addWidget( pProfileSave, 0, Qt::AlignVCenter );
- connect( pProfileSave, SIGNAL(clicked()),
- this, SLOT(saveProfile())
+ TQToolTip::add( pProfileSave, i18n("Save current options as a profile") );
+ normalBottomBox->addWidget( pProfileSave, 0, TQt::AlignVCenter );
+ connect( pProfileSave, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(saveProfile())
);
// advanced options
- advancedOptions = new QWidget( this, "advancedOptions" );
+ advancedOptions = new TQWidget( this, "advancedOptions" );
advancedOptions->hide();
gridLayout->addWidget( advancedOptions, 0, 0 );
- QGridLayout *advancedGrid = new QGridLayout( advancedOptions, 2, 1, 6, 3 );
+ TQGridLayout *advancedGrid = new TQGridLayout( advancedOptions, 2, 1, 6, 3 );
- QHBoxLayout *advancedTopBox = new QHBoxLayout();
+ TQHBoxLayout *advancedTopBox = new TQHBoxLayout();
advancedGrid->addLayout( advancedTopBox, 0, 0 );
- QLabel* lUserOptionsLabel = new QLabel( i18n("Command")+":", advancedOptions, "lUserOptionsLabel" );
- advancedTopBox->addWidget( lUserOptionsLabel, 0, Qt::AlignVCenter );
+ TQLabel* lUserOptionsLabel = new TQLabel( i18n("Command")+":", advancedOptions, "lUserOptionsLabel" );
+ advancedTopBox->addWidget( lUserOptionsLabel, 0, TQt::AlignVCenter );
lUserOptions = new KLineEdit( advancedOptions, "lUserOptions" );
- advancedTopBox->addWidget( lUserOptions, 0, Qt::AlignVCenter );
- connect( lUserOptions, SIGNAL(textChanged(const QString&)),
- this, SLOT(somethingChanged())
+ advancedTopBox->addWidget( lUserOptions, 0, TQt::AlignVCenter );
+ connect( lUserOptions, TQT_SIGNAL(textChanged(const TQString&)),
+ this, TQT_SLOT(somethingChanged())
);
- QHBoxLayout *advancedMiddleBox = new QHBoxLayout();
+ TQHBoxLayout *advancedMiddleBox = new TQHBoxLayout();
advancedGrid->addLayout( advancedMiddleBox, 1, 0 );
- QLabel* lInfoParams = new QLabel( i18n("%p: The parameters generated by soundKonverter"), advancedOptions, "lInfoParams" );
- advancedMiddleBox->addWidget( lInfoParams, 0, Qt::AlignVCenter );
+ TQLabel* lInfoParams = new TQLabel( i18n("%p: The parameters generated by soundKonverter"), advancedOptions, "lInfoParams" );
+ advancedMiddleBox->addWidget( lInfoParams, 0, TQt::AlignVCenter );
- QHBoxLayout *advancedBottomBox = new QHBoxLayout();
+ TQHBoxLayout *advancedBottomBox = new TQHBoxLayout();
advancedGrid->addLayout( advancedBottomBox, 2, 0 );
- QLabel* lInfoFiles = new QLabel( i18n("%i: The input file ; %o: The output file"), advancedOptions, "lInfoFiles" );
- advancedBottomBox->addWidget( lInfoFiles, 0, Qt::AlignVCenter );
+ TQLabel* lInfoFiles = new TQLabel( i18n("%i: The input file ; %o: The output file"), advancedOptions, "lInfoFiles" );
+ advancedBottomBox->addWidget( lInfoFiles, 0, TQt::AlignVCenter );
refill();
}
@@ -320,7 +320,7 @@ void OptionsDetailed::setCurrentOptions( const ConversionOptions& options )
if( options.encodingOptions.samplingRate.bEnabled == true ) {
cSamplingrateSwitch->setChecked( true );
- cSamplingrate->setCurrentText( QString::number(options.encodingOptions.samplingRate.iSamplingRate) );
+ cSamplingrate->setCurrentText( TQString::number(options.encodingOptions.samplingRate.iSamplingRate) );
}
else {
cSamplingrateSwitch->setChecked( false );
@@ -350,9 +350,9 @@ void OptionsDetailed::setCurrentOptions( const ConversionOptions& options )
void OptionsDetailed::saveProfile()
{
bool ok;
- QString name = KInputDialog::getText( i18n("New profile"), i18n("Enter a name for the new profile:"), "", &ok );
+ TQString name = KInputDialog::getText( i18n("New profile"), i18n("Enter a name for the new profile:"), "", &ok );
if( ok ) {
- QStringList profiles;
+ TQStringList profiles;
profiles += i18n("Very low");
profiles += i18n("Low");
profiles += i18n("Medium");
@@ -363,14 +363,14 @@ void OptionsDetailed::saveProfile()
profiles += i18n("Last used");
profiles += "Last used";
profiles += i18n("User defined");
- if( profiles.findIndex(name) != -1 ) {
+ if( profiles.tqfindIndex(name) != -1 ) {
KMessageBox::error( this,
i18n("You cannot overwrite the built-in profiles."),
i18n("Profile already exists") );
return;
}
profiles = config->getAllProfiles();
- if( profiles.findIndex(name) == -1 ) {
+ if( profiles.tqfindIndex(name) == -1 ) {
config->addProfile( name, getCurrentOptions() );
}
else {
@@ -385,29 +385,29 @@ void OptionsDetailed::saveProfile()
}
}
-int OptionsDetailed::formatIndex( const QString &string )
+int OptionsDetailed::formatIndex( const TQString &string )
{
- return sFormat.findIndex( string );
+ return sFormat.tqfindIndex( string );
}
-int OptionsDetailed::qualityModeIndex( const QString &string )
+int OptionsDetailed::qualityModeIndex( const TQString &string )
{
- return sQualityMode.findIndex( string );
+ return sQualityMode.tqfindIndex( string );
}
-int OptionsDetailed::bitrateModeIndex( const QString &string )
+int OptionsDetailed::bitrateModeIndex( const TQString &string )
{
- return sBitrateMode.findIndex( string );
+ return sBitrateMode.tqfindIndex( string );
}
-int OptionsDetailed::channelsIndex( const QString &string )
+int OptionsDetailed::channelsIndex( const TQString &string )
{
- return sChannels.findIndex( string );
+ return sChannels.tqfindIndex( string );
}
void OptionsDetailed::refill()
{
- QString format = cFormat->currentText();
+ TQString format = cFormat->currentText();
sFormat = config->allEncodableFormats();
sFormat.append( "wav" );
@@ -446,13 +446,13 @@ void OptionsDetailed::formatChanged()
}
lUserOptions->setEnabled( true );
- QString lastString = lUserOptions->text();
- QString bin = config->binaries[plugin->enc.bin];
+ TQString lastString = lUserOptions->text();
+ TQString bin = config->binaries[plugin->enc.bin];
if( lastString.left(bin.length()) != bin ) {
lUserOptions->setText( config->binaries[plugin->enc.bin] + " " + plugin->enc.in_out_files );
}
- QString lastQualityMode = cQualityMode->currentText();
+ TQString lastQualityMode = cQualityMode->currentText();
sQualityMode.clear();
if( formatItem->replaygain || ( plugin->enc.replaygain.enabled && formatItem->internalReplayGain ) ) {
@@ -492,7 +492,7 @@ void OptionsDetailed::formatChanged()
void OptionsDetailed::qualityModeChanged()
{
- QWhatsThis::remove( iQuality );
+ TQWhatsThis::remove( iQuality );
if( cFormat->currentText() == "wav" ) {
iQuality->setEnabled( false );
@@ -510,8 +510,8 @@ void OptionsDetailed::qualityModeChanged()
return;
}
- QString qualityModeString = cQualityMode->currentText();
- QString lastString;
+ TQString qualityModeString = cQualityMode->currentText();
+ TQString lastString;
int lastValue;
ConvertPlugin* plugin = config->encoderForFormat( cFormat->currentText() );
@@ -558,7 +558,7 @@ void OptionsDetailed::qualityModeChanged()
}
if( qualityModeString == i18n("Bitrate") ) {
- QToolTip::add( iQuality, i18n("Kilobit per second") );
+ TQToolTip::add( iQuality, i18n("Kilobit per second") );
iQuality->setEnabled( true );
iQuality->setMinValue( 32 );
iQuality->setMaxValue( 320 );
@@ -580,7 +580,7 @@ void OptionsDetailed::qualityModeChanged()
bitrateModeChanged();
}
else if( qualityModeString == i18n("Quality") ) {
-// QToolTip::add( iQuality, i18n("This is a relative quality between 0 and 100.\nThe higher this number the higher is the quality.\nsoundKonverter will convert it into the file format's quality format.\nSee the \"What's this?\" for more informations.") );
+// TQToolTip::add( iQuality, i18n("This is a relative quality between 0 and 100.\nThe higher this number the higher is the quality.\nsoundKonverter will convert it into the file format's quality format.\nSee the \"What's this?\" for more informations.") );
iQuality->setEnabled( true );
iQuality->setMinValue( 0 );
iQuality->setMaxValue( 100 );
@@ -596,9 +596,9 @@ void OptionsDetailed::qualityModeChanged()
bitrateModeChanged();
if( plugin->enc.lossy.quality.help ) {
- QString str = plugin->enc.lossy.quality.help;
- str.replace("\\n","<br>");
- QWhatsThis::add( iQuality, "<p>"+str+"</p>" );
+ TQString str = plugin->enc.lossy.quality.help;
+ str.tqreplace("\\n","<br>");
+ TQWhatsThis::add( iQuality, "<p>"+str+"</p>" );
}
}
else if( qualityModeString == i18n("Lossless") || qualityModeString == i18n("Undefined") ) {
@@ -616,7 +616,7 @@ void OptionsDetailed::qualityModeChanged()
cChannels->setEnabled( false );
}
else if( qualityModeString == i18n("Hybrid") ) {
- QToolTip::add( iQuality, i18n("Kilobit per second") );
+ TQToolTip::add( iQuality, i18n("Kilobit per second") );
iQuality->setEnabled( true );
iQuality->setMinValue( 32 );
iQuality->setMaxValue( 320 );
@@ -639,7 +639,7 @@ void OptionsDetailed::qualityModeChanged()
void OptionsDetailed::qualityChanged()
{
if( cQualityMode->currentText() == i18n("Quality") ) {
- QToolTip::remove( iQuality );
+ TQToolTip::remove( iQuality );
FormatItem* formatItem = config->getFormatItem( cFormat->currentText() );
if( formatItem == 0 ) {
@@ -654,7 +654,7 @@ void OptionsDetailed::qualityChanged()
return;
}
- QString quality;
+ TQString quality;
if( plugin->enc.lossy.quality.enabled ) {
quality = plugin->enc.lossy.quality.param;
int qualityLevel = iQuality->value();
@@ -662,33 +662,33 @@ void OptionsDetailed::qualityChanged()
if( plugin->enc.lossy.quality.step < 1 ) {
if( plugin->enc.lossy.quality.range_max >= plugin->enc.lossy.quality.range_min)
// t_float = ( (float)item->fileListItem->options.encodingOptions.iQuality * ( plugin->enc.lossy.quality.range_max - plugin->enc.lossy.quality.range_min ) / 100 ) + plugin->enc.lossy.quality.range_min;
- quality.replace( "%q", QString::number( ( (float)qualityLevel * ( plugin->enc.lossy.quality.range_max - plugin->enc.lossy.quality.range_min ) / 100 ) + plugin->enc.lossy.quality.range_min ) );
+ quality.tqreplace( "%q", TQString::number( ( (float)qualityLevel * ( plugin->enc.lossy.quality.range_max - plugin->enc.lossy.quality.range_min ) / 100 ) + plugin->enc.lossy.quality.range_min ) );
else
// t_float = ( (100.0f - (float)item->fileListItem->options.encodingOptions.iQuality) * ( plugin->enc.lossy.quality.range_min - plugin->enc.lossy.quality.range_max ) / 100 ) + plugin->enc.lossy.quality.range_max;
- quality.replace( "%q", QString::number( ( (100.0f - qualityLevel) * ( plugin->enc.lossy.quality.range_min - plugin->enc.lossy.quality.range_max ) / 100 ) + plugin->enc.lossy.quality.range_max ) );
+ quality.tqreplace( "%q", TQString::number( ( (100.0f - qualityLevel) * ( plugin->enc.lossy.quality.range_min - plugin->enc.lossy.quality.range_max ) / 100 ) + plugin->enc.lossy.quality.range_max ) );
}
else {
if( plugin->enc.lossy.quality.range_max >= plugin->enc.lossy.quality.range_min)
// t_int = ( item->fileListItem->options.encodingOptions.iQuality * (int)( plugin->enc.lossy.quality.range_max - plugin->enc.lossy.quality.range_min ) / 100) + (int)plugin->enc.lossy.quality.range_min;
- quality.replace( "%q", QString::number( (qualityLevel * (int)( plugin->enc.lossy.quality.range_max - plugin->enc.lossy.quality.range_min ) / 100) + (int)plugin->enc.lossy.quality.range_min ) );
+ quality.tqreplace( "%q", TQString::number( (qualityLevel * (int)( plugin->enc.lossy.quality.range_max - plugin->enc.lossy.quality.range_min ) / 100) + (int)plugin->enc.lossy.quality.range_min ) );
else
// t_int = ( (100 - item->fileListItem->options.encodingOptions.iQuality) * (int)( plugin->enc.lossy.quality.range_min - plugin->enc.lossy.quality.range_max ) / 100) + (int)plugin->enc.lossy.quality.range_max;
- quality.replace( "%q", QString::number( ( (100 - qualityLevel) * (int)( plugin->enc.lossy.quality.range_min - plugin->enc.lossy.quality.range_max ) / 100) + (int)plugin->enc.lossy.quality.range_max ) );
+ quality.tqreplace( "%q", TQString::number( ( (100 - qualityLevel) * (int)( plugin->enc.lossy.quality.range_min - plugin->enc.lossy.quality.range_max ) / 100) + (int)plugin->enc.lossy.quality.range_max ) );
}
- if( plugin->enc.bin == "oggenc" ) quality.replace(QChar('.'),KGlobal::locale()->decimalSymbol()); // HACK make oggenc usable with all langauges
+ if( plugin->enc.bin == "oggenc" ) quality.tqreplace(TQChar('.'),KGlobal::locale()->decimalSymbol()); // HACK make oggenc usable with all langauges
else if( plugin->enc.lossy.quality.separator != '.' ) {
- quality.replace( QChar('.'), plugin->enc.lossy.quality.separator );
+ quality.tqreplace( TQChar('.'), plugin->enc.lossy.quality.separator );
}
}
else {
- QStringList::Iterator it = plugin->enc.lossy.quality.profiles.at( rint(qualityLevel*plugin->enc.lossy.quality.range_max/100) );
- quality.replace( "%q", *it );
+ TQStringList::Iterator it = plugin->enc.lossy.quality.profiles.at( rint(qualityLevel*plugin->enc.lossy.quality.range_max/100) );
+ quality.tqreplace( "%q", *it );
}
}
- QToolTip::add( iQuality, i18n("This is a relative quality between 0 and 100.\nThe higher this number the higher is the quality.\nsoundKonverter will convert it into the file format's quality format.\nSee the \"What's this?\" for more informations.\n\nCurrent parameter: \"%1\"").arg(quality) );
-// QToolTip toolTip( iQuality );
-// toolTip.tip( i18n("Current parameter: \"%1\"").arg(quality) );
+ TQToolTip::add( iQuality, i18n("This is a relative quality between 0 and 100.\nThe higher this number the higher is the quality.\nsoundKonverter will convert it into the file format's quality format.\nSee the \"What's this?\" for more informations.\n\nCurrent parameter: \"%1\"").tqarg(quality) );
+// TQToolTip toolTip( iQuality );
+// toolTip.tip( i18n("Current parameter: \"%1\"").tqarg(quality) );
}
}
@@ -754,12 +754,12 @@ void OptionsDetailed::somethingChanged()
// access the options data - BEGIN
////////////////////////////////////////////////////////////
-QString OptionsDetailed::getFormat()
+TQString OptionsDetailed::getFormat()
{
return cFormat->currentText();
}
-// QString OptionsDetailed::getQualityMode()
+// TQString OptionsDetailed::getQualityMode()
// {
// return cQualityMode->currentText();
// }
@@ -769,20 +769,20 @@ OutputDirectory::Mode OptionsDetailed::getOutputDirectoryMode()
return outputDirectory->mode();
}
-QString OptionsDetailed::getOutputDirectoryPath()
+TQString OptionsDetailed::getOutputDirectoryPath()
{
return outputDirectory->directory();
}
-void OptionsDetailed::setFormat( const QString &format )
+void OptionsDetailed::setFormat( const TQString &format )
{
cFormat->setCurrentItem( formatIndex(format) );
formatChanged();
}
-void OptionsDetailed::setQualityMode( const QString &qualityMode )
+void OptionsDetailed::setQualityMode( const TQString &qualityMode )
{
cQualityMode->setCurrentItem( qualityModeIndex(qualityMode) );
qualityModeChanged();
@@ -793,7 +793,7 @@ void OptionsDetailed::setQuality( int quality )
iQuality->setValue( quality );
}
-void OptionsDetailed::setBitrateMode( const QString &bitrateMode )
+void OptionsDetailed::setBitrateMode( const TQString &bitrateMode )
{
cBitrateMode->setCurrentItem( bitrateModeIndex(bitrateMode) );
bitrateModeChanged();
@@ -828,7 +828,7 @@ void OptionsDetailed::setSamplingrate( int samplingrate )
setSamplingrate( text );
}
-void OptionsDetailed::setSamplingrate( const QString &samplingrate )
+void OptionsDetailed::setSamplingrate( const TQString &samplingrate )
{
cSamplingrate->setCurrentText( samplingrate );
}
@@ -838,7 +838,7 @@ void OptionsDetailed::setChannelsEnabled( bool enabled )
cChannelsSwitch->setChecked( enabled );
}
-void OptionsDetailed::setChannels( const QString &channels )
+void OptionsDetailed::setChannels( const TQString &channels )
{
cChannels->setCurrentItem( channelsIndex(channels) );
}
@@ -853,12 +853,12 @@ void OptionsDetailed::setOutputDirectoryMode( OutputDirectory::Mode mode )
outputDirectory->setMode( mode );
}
-void OptionsDetailed::setOutputDirectoryPath( const QString &path )
+void OptionsDetailed::setOutputDirectoryPath( const TQString &path )
{
outputDirectory->setDirectory( path );
}
-void OptionsDetailed::setUserOptions( const QString &options )
+void OptionsDetailed::setUserOptions( const TQString &options )
{
lUserOptions->setText( options );
}
@@ -888,7 +888,7 @@ bool OptionsDetailed::getChannelsEnabled()
return cChannelsSwitch->isChecked();
}
-QString OptionsDetailed::getChannels()
+TQString OptionsDetailed::getChannels()
{
return cChannels->currentText();
}