diff options
Diffstat (limited to 'src/configgeneralpage.cpp')
-rwxr-xr-x | src/configgeneralpage.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/src/configgeneralpage.cpp b/src/configgeneralpage.cpp index 337b099..6edca91 100755 --- a/src/configgeneralpage.cpp +++ b/src/configgeneralpage.cpp @@ -20,20 +20,20 @@ // ### soundkonverter 0.4: add an option to use vfat save names when the output device is vfat -ConfigGeneralPage::ConfigGeneralPage( Config* _config, TQWidget *tqparent, const char *name ) - : ConfigPageBase( tqparent, name ) +ConfigGeneralPage::ConfigGeneralPage( Config* _config, TQWidget *parent, const char *name ) + : ConfigPageBase( parent, name ) { config = _config; // create an icon loader object for loading icons KIconLoader* iconLoader = new KIconLoader(); - TQVBoxLayout* box = new TQVBoxLayout( tqparent, 0, 6 ); + TQVBoxLayout* box = new TQVBoxLayout( parent, 0, 6 ); TQHBoxLayout* startTabBox = new TQHBoxLayout( box, 6 ); - TQLabel* lStartTab = new TQLabel( i18n("Start in Mode")+":", tqparent, "lStartTab" ); + TQLabel* lStartTab = new TQLabel( i18n("Start in Mode")+":", parent, "lStartTab" ); startTabBox->addWidget( lStartTab ); - cStartTab = new KComboBox( tqparent, "cStartTab" ); + cStartTab = new KComboBox( parent, "cStartTab" ); cStartTab->insertItem( i18n("Last used") ); cStartTab->insertItem( i18n("Simple") ); cStartTab->insertItem( i18n("Detailed") ); @@ -46,9 +46,9 @@ ConfigGeneralPage::ConfigGeneralPage( Config* _config, TQWidget *tqparent, const box->addSpacing( 5 ); TQHBoxLayout* defaultProfileBox = new TQHBoxLayout( box, 6 ); - TQLabel* lDefaultProfile = new TQLabel( i18n("Default profile")+":", tqparent, "lDefaultProfile" ); + TQLabel* lDefaultProfile = new TQLabel( i18n("Default profile")+":", parent, "lDefaultProfile" ); defaultProfileBox->addWidget( lDefaultProfile ); - cDefaultProfile = new KComboBox( tqparent, "cDefaultProfile" ); + cDefaultProfile = new KComboBox( parent, "cDefaultProfile" ); sDefaultProfile += i18n("Very low"); sDefaultProfile += i18n("Low"); sDefaultProfile += i18n("Medium"); @@ -69,9 +69,9 @@ ConfigGeneralPage::ConfigGeneralPage( Config* _config, TQWidget *tqparent, const connect( cDefaultProfile, TQT_SIGNAL(activated(int)), this, TQT_SLOT(cfgChanged()) ); - TQLabel* lDefaultFormat = new TQLabel( i18n("Default format")+":", tqparent, "lDefaultFormat" ); + TQLabel* lDefaultFormat = new TQLabel( i18n("Default format")+":", parent, "lDefaultFormat" ); defaultProfileBox->addWidget( lDefaultFormat ); - cDefaultFormat = new KComboBox( tqparent, "cDefaultFormat" ); + cDefaultFormat = new KComboBox( parent, "cDefaultFormat" ); defaultProfileBox->addWidget( cDefaultFormat ); connect( cDefaultFormat, TQT_SIGNAL(activated(int)), this, TQT_SLOT(cfgChanged()) @@ -81,22 +81,22 @@ ConfigGeneralPage::ConfigGeneralPage( Config* _config, TQWidget *tqparent, const box->addSpacing( 5 ); /* TQHBoxLayout* defaultDirBox = new TQHBoxLayout( box, 6 ); - TQLabel* lDefaultDir = new TQLabel( i18n("Default output directory")+":", tqparent, "lDefaultDir" ); + TQLabel* lDefaultDir = new TQLabel( i18n("Default output directory")+":", parent, "lDefaultDir" ); defaultDirBox->addWidget( lDefaultDir ); - lDir = new KLineEdit( tqparent, "lDir" ); + lDir = new KLineEdit( parent, "lDir" ); lDir->setText( config->data.general.defaultOutputDirectory ); TQToolTip::add( lDir, i18n("<p>The following strings are space holders, that will be replaced by the information in the meta data:</p><p>%a - Artist<br>%b - Album<br>%c - Comment<br>%d - Disc number<br>%g - Genre<br>%n - Track number<br>%p - Composer<br>%t - Title<br>%y - Year<br>%f - Original file name<p>") ); defaultDirBox->addWidget( lDir ); connect( lDir, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(cfgChanged()) );*/ - /*pDirInfo = new KPushButton( iconLoader->loadIcon("messagebox_info",KIcon::Small), "", tqparent, "pDirInfo" ); + /*pDirInfo = new KPushButton( iconLoader->loadIcon("messagebox_info",KIcon::Small), "", parent, "pDirInfo" ); TQToolTip::add( pDirInfo, i18n("Information about the wildcards.") ); defaultDirBox->addWidget( pDirInfo ); connect( pDirInfo, TQT_SIGNAL(clicked()), this, TQT_SLOT(dirInfo()) );*/ -// pDirSelect = new KPushButton( iconLoader->loadIcon("folder",KIcon::Small), "", tqparent, "pDirSelect" ); +// pDirSelect = new KPushButton( iconLoader->loadIcon("folder",KIcon::Small), "", parent, "pDirSelect" ); // TQToolTip::add( pDirSelect, i18n("Choose an output directory") ); // defaultDirBox->addWidget( pDirSelect ); // connect( pDirSelect, TQT_SIGNAL(clicked()), @@ -104,9 +104,9 @@ ConfigGeneralPage::ConfigGeneralPage( Config* _config, TQWidget *tqparent, const // ); TQHBoxLayout* priorityBox = new TQHBoxLayout( box, 6 ); - TQLabel* lPriority = new TQLabel( i18n("Process priority of the backends")+":", tqparent, "lPriority" ); + TQLabel* lPriority = new TQLabel( i18n("Process priority of the backends")+":", parent, "lPriority" ); priorityBox->addWidget( lPriority ); - cPriority = new KComboBox( tqparent, "cPriority" ); + cPriority = new KComboBox( parent, "cPriority" ); sPriority += i18n("Normal"); sPriority += i18n("Low"); cPriority->insertStringList( sPriority ); @@ -119,7 +119,7 @@ ConfigGeneralPage::ConfigGeneralPage( Config* _config, TQWidget *tqparent, const box->addSpacing( 5 ); TQHBoxLayout* useVFATNamesBox = new TQHBoxLayout( box, 6 ); - cUseVFATNames = new TQCheckBox( i18n("Use FAT compatible output file names"), tqparent, "cUseVFATNames" ); + cUseVFATNames = new TQCheckBox( i18n("Use FAT compatible output file names"), parent, "cUseVFATNames" ); TQToolTip::add( cUseVFATNames, i18n("Replaces some special characters like \'?\' by \'_\'.") ); cUseVFATNames->setChecked( config->data.general.useVFATNames ); useVFATNamesBox->addWidget( cUseVFATNames ); @@ -130,9 +130,9 @@ ConfigGeneralPage::ConfigGeneralPage( Config* _config, TQWidget *tqparent, const box->addSpacing( 5 ); TQHBoxLayout* conflictHandlingBox = new TQHBoxLayout( box, 6 ); - TQLabel* lConflictHandling = new TQLabel( i18n("Conflict handling")+":", tqparent, "lConflictHandling" ); + TQLabel* lConflictHandling = new TQLabel( i18n("Conflict handling")+":", parent, "lConflictHandling" ); conflictHandlingBox->addWidget( lConflictHandling ); - cConflictHandling = new KComboBox( tqparent, "cConflictHandling" ); + cConflictHandling = new KComboBox( parent, "cConflictHandling" ); TQToolTip::add( cConflictHandling, i18n("Do that if the output file already exists") ); sConflictHandling += i18n("Generate new file name"); sConflictHandling += i18n("Skip file"); @@ -146,9 +146,9 @@ ConfigGeneralPage::ConfigGeneralPage( Config* _config, TQWidget *tqparent, const box->addSpacing( 5 ); TQHBoxLayout* numFilesBox = new TQHBoxLayout( box, 6 ); - TQLabel* lNumFiles = new TQLabel( i18n("Number of files to convert at once")+":", tqparent, "lNumFiles" ); + TQLabel* lNumFiles = new TQLabel( i18n("Number of files to convert at once")+":", parent, "lNumFiles" ); numFilesBox->addWidget( lNumFiles ); - iNumFiles = new KIntSpinBox( 1, 100, 1, config->data.general.numFiles, 10, tqparent, "iNumFiles" ); + iNumFiles = new KIntSpinBox( 1, 100, 1, config->data.general.numFiles, 10, parent, "iNumFiles" ); numFilesBox->addWidget( iNumFiles ); connect( iNumFiles, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(cfgChanged()) @@ -157,9 +157,9 @@ ConfigGeneralPage::ConfigGeneralPage( Config* _config, TQWidget *tqparent, const box->addSpacing( 5 ); TQHBoxLayout* updateDelayBox = new TQHBoxLayout( box, 6 ); - TQLabel* lUpdateDelay = new TQLabel( i18n("tqStatus update delay (time in msec.)")+":", tqparent, "lUpdateDelay" ); + TQLabel* lUpdateDelay = new TQLabel( i18n("tqStatus update delay (time in msec.)")+":", parent, "lUpdateDelay" ); updateDelayBox->addWidget( lUpdateDelay ); - iUpdateDelay = new KIntSpinBox( 100, 5000, 100, config->data.general.updateDelay, 10, tqparent, "iUpdateDelay" ); + iUpdateDelay = new KIntSpinBox( 100, 5000, 100, config->data.general.updateDelay, 10, parent, "iUpdateDelay" ); TQToolTip::add( iUpdateDelay, i18n("Update the progress bar in this interval (time in milliseconds)") ); updateDelayBox->addWidget( iUpdateDelay ); connect( iUpdateDelay, TQT_SIGNAL(valueChanged(int)), @@ -169,7 +169,7 @@ ConfigGeneralPage::ConfigGeneralPage( Config* _config, TQWidget *tqparent, const box->addSpacing( 5 ); TQHBoxLayout* askForNewOptionsBox = new TQHBoxLayout( box, 6 ); - cAskForNewOptions = new TQCheckBox( i18n("Ask for new options, when adding files from external program"), tqparent, "cAskForNewOptions" ); + cAskForNewOptions = new TQCheckBox( i18n("Ask for new options, when adding files from external program"), parent, "cAskForNewOptions" ); TQToolTip::add( cAskForNewOptions, i18n("If you open a file with soundKonverter and soundKonverter is already running,\nyou can either be asked to define new converting options\nor the current settings from the soundKonverter main window are used.") ); cAskForNewOptions->setChecked( config->data.general.askForNewOptions ); askForNewOptionsBox->addWidget( cAskForNewOptions ); @@ -180,7 +180,7 @@ ConfigGeneralPage::ConfigGeneralPage( Config* _config, TQWidget *tqparent, const box->addSpacing( 5 ); TQHBoxLayout* executeUserScriptBox = new TQHBoxLayout( box, 6 ); - cExecuteUserScript = new TQCheckBox( i18n("Execute user script (for advanced users)"), tqparent, "cAskForNewOptions" ); + cExecuteUserScript = new TQCheckBox( i18n("Execute user script (for advanced users)"), parent, "cAskForNewOptions" ); TQToolTip::add( cExecuteUserScript, i18n("Executes a script after every finished conversion. Have a look at $KDEDIR/soundkonverter/userscript.sh") ); cExecuteUserScript->setChecked( config->data.general.executeUserScript ); executeUserScriptBox->addWidget( cExecuteUserScript ); |