summaryrefslogtreecommitdiffstats
path: root/src/soundkonverter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/soundkonverter.cpp')
-rw-r--r--src/soundkonverter.cpp182
1 files changed, 91 insertions, 91 deletions
diff --git a/src/soundkonverter.cpp b/src/soundkonverter.cpp
index 3cc6576..14f19a3 100644
--- a/src/soundkonverter.cpp
+++ b/src/soundkonverter.cpp
@@ -113,17 +113,17 @@ soundKonverter::soundKonverter()
options = new Options( config, i18n("Choose your prefered output options and click on \"Add files ...\"!"), widget, "options" );
fileList = new FileList( cdManager, tagEngine, config, options, logger, widget, "fileList" );
- startAction = new TDEAction( i18n("&Start conversion"), "system-run", 0, fileList, TQT_SLOT(startConversion()), actionCollection(), "start" );
+ startAction = new TDEAction( i18n("&Start conversion"), "system-run", 0, fileList, TQ_SLOT(startConversion()), actionCollection(), "start" );
startAction->setEnabled( false );
- new TDEAction( i18n("&Replay Gain Tool ..."), "soundkonverter_replaygain", CTRL+Key_R, this, TQT_SLOT(showReplayGainScanner()), actionCollection(), "replaygainscanner" );
- //new TDEAction( i18n("R&epair Tool ..."), "soundkonverter_repair", CTRL+Key_E, this, TQT_SLOT(showRepairTool()), actionCollection(), "repairtool" );
- new TDEAction( i18n("C&uesheet Editor ..."), "kwrite", CTRL+Key_U, this, TQT_SLOT(showCuesheetEditor()), actionCollection(), "cuesheeteditor" );
- new TDEAction( i18n("Show &Log ..."), "view_text", CTRL+Key_L, this, TQT_SLOT(showLogViewer()), actionCollection(), "log" );
-// new TDEAction( i18n("About &Plugins ..."), "connect_creating", CTRL+Key_P, this, TQT_SLOT(showAboutPlugins()), actionCollection(), "about_plugins" );
-
- stopAction = new TDEAction( i18n("S&top after current file is complete"), "process-stop", CTRL+Key_O, fileList, TQT_SLOT(stopConversion()), actionCollection(), "stop" );
- continueAction = new TDEAction( i18n("&Continue after current file is complete"), "system-run", CTRL+Key_T, fileList, TQT_SLOT(continueConversion()), actionCollection(), "continue" );
- killAction = new TDEAction( i18n("Stop &immediately"), "system-log-out", CTRL+Key_K, fileList, TQT_SLOT(killConversion()), actionCollection(), "kill" );
+ new TDEAction( i18n("&Replay Gain Tool ..."), "soundkonverter_replaygain", CTRL+Key_R, this, TQ_SLOT(showReplayGainScanner()), actionCollection(), "replaygainscanner" );
+ //new TDEAction( i18n("R&epair Tool ..."), "soundkonverter_repair", CTRL+Key_E, this, TQ_SLOT(showRepairTool()), actionCollection(), "repairtool" );
+ new TDEAction( i18n("C&uesheet Editor ..."), "kwrite", CTRL+Key_U, this, TQ_SLOT(showCuesheetEditor()), actionCollection(), "cuesheeteditor" );
+ new TDEAction( i18n("Show &Log ..."), "view_text", CTRL+Key_L, this, TQ_SLOT(showLogViewer()), actionCollection(), "log" );
+// new TDEAction( i18n("About &Plugins ..."), "connect_creating", CTRL+Key_P, this, TQ_SLOT(showAboutPlugins()), actionCollection(), "about_plugins" );
+
+ stopAction = new TDEAction( i18n("S&top after current file is complete"), "process-stop", CTRL+Key_O, fileList, TQ_SLOT(stopConversion()), actionCollection(), "stop" );
+ continueAction = new TDEAction( i18n("&Continue after current file is complete"), "system-run", CTRL+Key_T, fileList, TQ_SLOT(continueConversion()), actionCollection(), "continue" );
+ killAction = new TDEAction( i18n("Stop &immediately"), "system-log-out", CTRL+Key_K, fileList, TQ_SLOT(killConversion()), actionCollection(), "kill" );
stopActionMenu = new TDEActionMenu( i18n("Stop"), "process-stop", actionCollection(), "stopMenu" );
stopActionMenu->setDelayed( false );
stopActionMenu->setEnabled( false );
@@ -131,16 +131,16 @@ soundKonverter::soundKonverter()
// stopActionMenu->insert( continueAction );
// stopActionMenu->insert( killAction );
-/* veryHighPriorityAction = new TDEToggleAction( i18n("Very hi&gh"), CTRL+Key_1, this, TQT_SLOT(priorityChanged()), actionCollection(), "veryhigh" );
+/* veryHighPriorityAction = new TDEToggleAction( i18n("Very hi&gh"), CTRL+Key_1, this, TQ_SLOT(priorityChanged()), actionCollection(), "veryhigh" );
veryHighPriorityAction->setExclusiveGroup("priorityActionMenu");
- highPriorityAction = new TDEToggleAction( i18n("&High"), CTRL+Key_2, this, TQT_SLOT(priorityChanged()), actionCollection(), "high" );
+ highPriorityAction = new TDEToggleAction( i18n("&High"), CTRL+Key_2, this, TQ_SLOT(priorityChanged()), actionCollection(), "high" );
highPriorityAction->setExclusiveGroup("priorityActionMenu");
- normalPriorityAction = new TDEToggleAction( i18n("&Normal"), CTRL+Key_3, this, TQT_SLOT(priorityChanged()), actionCollection(), "nomal" );
+ normalPriorityAction = new TDEToggleAction( i18n("&Normal"), CTRL+Key_3, this, TQ_SLOT(priorityChanged()), actionCollection(), "nomal" );
normalPriorityAction->setExclusiveGroup("priorityActionMenu");
normalPriorityAction->setChecked(true);
- lowPriorityAction = new TDEToggleAction( i18n("&Low"), CTRL+Key_4, this, TQT_SLOT(priorityChanged()), actionCollection(), "low" );
+ lowPriorityAction = new TDEToggleAction( i18n("&Low"), CTRL+Key_4, this, TQ_SLOT(priorityChanged()), actionCollection(), "low" );
lowPriorityAction->setExclusiveGroup("priorityActionMenu");
- veryLowPriorityAction = new TDEToggleAction( i18n("Very lo&w"), CTRL+Key_5, this, TQT_SLOT(priorityChanged()), actionCollection(), "verylow" );
+ veryLowPriorityAction = new TDEToggleAction( i18n("Very lo&w"), CTRL+Key_5, this, TQ_SLOT(priorityChanged()), actionCollection(), "verylow" );
veryLowPriorityAction->setExclusiveGroup("priorityActionMenu");
priorityActionMenu = new TDEActionMenu( i18n("En-/Decoder priority"), "ksysguard", actionCollection(), "priorityMenu" );
priorityActionMenu->setDelayed( false );
@@ -151,22 +151,22 @@ soundKonverter::soundKonverter()
priorityActionMenu->insert(veryLowPriorityAction);*/
//priorityChanged();
- new TDEAction( i18n("A&dd Files ..."), "audio-x-generic", CTRL+Key_D, this, TQT_SLOT(showFileDialog()), actionCollection(), "add_files" );
- new TDEAction( i18n("Add &Folder ..."), "audio-x-generic", CTRL+Key_F, this, TQT_SLOT(showDirDialog()), actionCollection(), "add_folder" );
- new TDEAction( i18n("Add CD &tracks ..."), "media-optical-cdaudio-unmounted", CTRL+Key_T, this, TQT_SLOT(showCdDialog()), actionCollection(), "add_audiocd" );
- new TDEAction( i18n("Add &URL ..."), "browser", CTRL+Key_U, this, TQT_SLOT(showUrlDialog()), actionCollection(), "add_url" );
- KStdAction::quit(this, TQT_SLOT(close()), actionCollection());
+ new TDEAction( i18n("A&dd Files ..."), "audio-x-generic", CTRL+Key_D, this, TQ_SLOT(showFileDialog()), actionCollection(), "add_files" );
+ new TDEAction( i18n("Add &Folder ..."), "audio-x-generic", CTRL+Key_F, this, TQ_SLOT(showDirDialog()), actionCollection(), "add_folder" );
+ new TDEAction( i18n("Add CD &tracks ..."), "media-optical-cdaudio-unmounted", CTRL+Key_T, this, TQ_SLOT(showCdDialog()), actionCollection(), "add_audiocd" );
+ new TDEAction( i18n("Add &URL ..."), "browser", CTRL+Key_U, this, TQ_SLOT(showUrlDialog()), actionCollection(), "add_url" );
+ KStdAction::quit(this, TQ_SLOT(close()), actionCollection());
- new TDEAction( i18n("L&oad file list"), "document-open", 0, fileList, TQT_SLOT(load()), actionCollection(), "load" );
- new TDEAction( i18n("Sa&ve file list"), "document-save", 0, fileList, TQT_SLOT(save()), actionCollection(), "save" );
+ new TDEAction( i18n("L&oad file list"), "document-open", 0, fileList, TQ_SLOT(load()), actionCollection(), "load" );
+ new TDEAction( i18n("Sa&ve file list"), "document-save", 0, fileList, TQ_SLOT(save()), actionCollection(), "save" );
- // TODO //KStdAction::paste( this, TQT_SLOT(pasteFiles()), actionCollection() );
+ // TODO //KStdAction::paste( this, TQ_SLOT(pasteFiles()), actionCollection() );
- KStdAction::preferences( this, TQT_SLOT(showConfigDialog()), actionCollection() );
+ KStdAction::preferences( this, TQ_SLOT(showConfigDialog()), actionCollection() );
- showToolBarAction = KStdAction::showToolbar( this, TQT_SLOT(showToolbar()), actionCollection() );
+ showToolBarAction = KStdAction::showToolbar( this, TQ_SLOT(showToolbar()), actionCollection() );
//KStdAction::showStatusbar( 0, 0, actionCollection() );
- KStdAction::configureToolbars( this, TQT_SLOT(editToolbar()), actionCollection() );
+ KStdAction::configureToolbars( this, TQ_SLOT(editToolbar()), actionCollection() );
createGUI();
@@ -185,11 +185,11 @@ soundKonverter::soundKonverter()
// generate the options input area
// NOTE created above because of some dependences
//options = new Options( config, i18n("Choose your prefered output options and click on \"Add files ...\"!"), this, "options" );
- connect( options, TQT_SIGNAL(showConfigPluginsPage()),
- this, TQT_SLOT(showConfigPluginsPage())
+ connect( options, TQ_SIGNAL(showConfigPluginsPage()),
+ this, TQ_SLOT(showConfigPluginsPage())
);
- connect( options, TQT_SIGNAL(showConfigEnvironmentPage()),
- this, TQT_SLOT(showConfigEnvironmentPage())
+ connect( options, TQ_SIGNAL(showConfigEnvironmentPage()),
+ this, TQ_SLOT(showConfigEnvironmentPage())
);
gridLayout->addWidget( options, 0, 0 );
@@ -198,28 +198,28 @@ soundKonverter::soundKonverter()
//fileList = new FileList( cdManager, tagEngine, config, options, this, "fileList" );
gridLayout->addWidget( fileList, 1, 0 );
gridLayout->setRowStretch( 1, 1 );
- /*connect( this, TQT_SIGNAL(windowMoved(int,int)),
- fileList, TQT_SLOT(moveOptionsEditor(int,int))
+ /*connect( this, TQ_SIGNAL(windowMoved(int,int)),
+ fileList, TQ_SLOT(moveOptionsEditor(int,int))
);*/
- connect( fileList, TQT_SIGNAL(fileCountChanged(int)),
- this, TQT_SLOT(fileCountChanged(int))
+ connect( fileList, TQ_SIGNAL(fileCountChanged(int)),
+ this, TQ_SLOT(fileCountChanged(int))
);
- connect( fileList, TQT_SIGNAL(startedConversion()),
- this, TQT_SLOT(startedConversion())
+ connect( fileList, TQ_SIGNAL(startedConversion()),
+ this, TQ_SLOT(startedConversion())
);
- connect( fileList, TQT_SIGNAL(stopClicked()),
- this, TQT_SLOT(stopClicked())
+ connect( fileList, TQ_SIGNAL(stopClicked()),
+ this, TQ_SLOT(stopClicked())
);
- connect( fileList, TQT_SIGNAL(continueClicked()),
- this, TQT_SLOT(continueClicked())
+ connect( fileList, TQ_SIGNAL(continueClicked()),
+ this, TQ_SLOT(continueClicked())
);
- connect( fileList, TQT_SIGNAL(stoppedConversion()),
- this, TQT_SLOT(stoppedConversion())
+ connect( fileList, TQ_SIGNAL(stoppedConversion()),
+ this, TQ_SLOT(stoppedConversion())
);
convert = new Convert( config, tagEngine, cdManager, fileList, logger );
-// connect( this, TQT_SIGNAL(setPriority(int)),
-// convert, TQT_SLOT(priorityChanged(int))
+// connect( this, TQ_SIGNAL(setPriority(int)),
+// convert, TQ_SLOT(priorityChanged(int))
// );
// add a horizontal box layout for the add combobutton to the grid
@@ -237,8 +237,8 @@ soundKonverter::soundKonverter()
cAdd->insertItem( iconLoader->loadIcon("media-optical-cdaudio-unmounted",TDEIcon::Toolbar), i18n("Add CD tracks ...") );
cAdd->insertItem( iconLoader->loadIcon("browser",TDEIcon::Toolbar), i18n("Add URL ...") );
addBox->addWidget( cAdd );
- connect( cAdd, TQT_SIGNAL(clicked(int)),
- this, TQT_SLOT(addClicked(int))
+ connect( cAdd, TQ_SIGNAL(clicked(int)),
+ this, TQ_SLOT(addClicked(int))
);
addBox->addSpacing( 18 );
@@ -247,8 +247,8 @@ soundKonverter::soundKonverter()
pStart->setFixedHeight( pStart->size().height() );
pStart->setEnabled( false );
addBox->addWidget( pStart );
- connect( pStart, TQT_SIGNAL(clicked()),
- fileList, TQT_SLOT(startConversion())
+ connect( pStart, TQ_SIGNAL(clicked()),
+ fileList, TQ_SLOT(startConversion())
);
pStop = new KPushButton( iconLoader->loadIcon("process-stop",TDEIcon::Small), i18n("Stop"), widget, "pStop" );
@@ -261,29 +261,29 @@ soundKonverter::soundKonverter()
progressIndicator = new ProgressIndicator( systemTray, widget, "progressIndicator" );
addBox->addWidget( progressIndicator );
- connect( fileList, TQT_SIGNAL(increaseTime(float)),
- progressIndicator, TQT_SLOT(increaseTime(float))
+ connect( fileList, TQ_SIGNAL(increaseTime(float)),
+ progressIndicator, TQ_SLOT(increaseTime(float))
);
- connect( fileList, TQT_SIGNAL(decreaseTime(float)),
- progressIndicator, TQT_SLOT(decreaseTime(float))
+ connect( fileList, TQ_SIGNAL(decreaseTime(float)),
+ progressIndicator, TQ_SLOT(decreaseTime(float))
);
- /*connect( fileList, TQT_SIGNAL(setTime(float)),
- progressIndicator, TQT_SLOT(setTime(float))
+ /*connect( fileList, TQ_SIGNAL(setTime(float)),
+ progressIndicator, TQ_SLOT(setTime(float))
);*/
- connect( fileList, TQT_SIGNAL(finished(float)),
- progressIndicator, TQT_SLOT(finished(float))
+ connect( fileList, TQ_SIGNAL(finished(float)),
+ progressIndicator, TQ_SLOT(finished(float))
);
- connect( convert, TQT_SIGNAL(countTime(float)),
- progressIndicator, TQT_SLOT(countTime(float))
+ connect( convert, TQ_SIGNAL(countTime(float)),
+ progressIndicator, TQ_SLOT(countTime(float))
);
- connect( convert, TQT_SIGNAL(uncountTime(float)),
- progressIndicator, TQT_SLOT(uncountTime(float))
+ connect( convert, TQ_SIGNAL(uncountTime(float)),
+ progressIndicator, TQ_SLOT(uncountTime(float))
);
- connect( convert, TQT_SIGNAL(update(float)),
- progressIndicator, TQT_SLOT(update(float))
+ connect( convert, TQ_SIGNAL(update(float)),
+ progressIndicator, TQ_SLOT(update(float))
);
- connect( progressIndicator, TQT_SIGNAL(setTitle(const TQString&)),
- this, TQT_SLOT(setTitle(const TQString&))
+ connect( progressIndicator, TQ_SIGNAL(setTitle(const TQString&)),
+ this, TQ_SLOT(setTitle(const TQString&))
);
cAdd->increaseHeight( /*progressIndicator->height() - cAdd->height()*/ 10 ); // FIXME detect the height automaticly
@@ -340,11 +340,11 @@ void soundKonverter::openArgFiles( const TQStringList &files )
{
OptionsRequester* dialog = new OptionsRequester( config, files, this );
- connect( dialog, TQT_SIGNAL(setCurrentOptions(const ConversionOptions&)),
- options, TQT_SLOT(setCurrentOptions(const ConversionOptions&))
+ connect( dialog, TQ_SIGNAL(setCurrentOptions(const ConversionOptions&)),
+ options, TQ_SLOT(setCurrentOptions(const ConversionOptions&))
);
- connect( dialog, TQT_SIGNAL(addFiles(TQStringList)),
- fileList, TQT_SLOT(addFiles(TQStringList))
+ connect( dialog, TQ_SIGNAL(addFiles(TQStringList)),
+ fileList, TQ_SLOT(addFiles(TQStringList))
);
TQ_CHECK_PTR( dialog );
@@ -364,8 +364,8 @@ void soundKonverter::openArgFiles( const TQStringList &files )
dialog->exec();
- disconnect( dialog, TQT_SIGNAL(setCurrentOptions(const ConversionOptions&)), 0, 0 );
- disconnect( dialog, TQT_SIGNAL(addFiles(TQStringList)), 0, 0 );
+ disconnect( dialog, TQ_SIGNAL(setCurrentOptions(const ConversionOptions&)), 0, 0 );
+ disconnect( dialog, TQ_SIGNAL(addFiles(TQStringList)), 0, 0 );
delete dialog;
}
@@ -528,11 +528,11 @@ void soundKonverter::showCdDialog( bool intern )
{
OptionsRequester* dialog = new OptionsRequester( config, "", this );
- connect( dialog, TQT_SIGNAL(setCurrentOptions(const ConversionOptions&)),
- options, TQT_SLOT(setCurrentOptions(const ConversionOptions&))
+ connect( dialog, TQ_SIGNAL(setCurrentOptions(const ConversionOptions&)),
+ options, TQ_SLOT(setCurrentOptions(const ConversionOptions&))
);
-// connect( dialog, TQT_SIGNAL(addFiles(TQStringList)),
-// fileList, TQT_SLOT(addFiles(TQStringList))
+// connect( dialog, TQ_SIGNAL(addFiles(TQStringList)),
+// fileList, TQ_SLOT(addFiles(TQStringList))
// );
TQ_CHECK_PTR( dialog );
@@ -552,8 +552,8 @@ void soundKonverter::showCdDialog( bool intern )
dialog->exec();
- disconnect( dialog, TQT_SIGNAL(setCurrentOptions(const ConversionOptions&)), 0, 0 );
-// disconnect( dialog, TQT_SIGNAL(addFiles(TQStringList)), 0, 0 );
+ disconnect( dialog, TQ_SIGNAL(setCurrentOptions(const ConversionOptions&)), 0, 0 );
+// disconnect( dialog, TQ_SIGNAL(addFiles(TQStringList)), 0, 0 );
delete dialog;
}
@@ -594,21 +594,21 @@ void soundKonverter::showCdDialog( bool intern )
if( !dialog->noCD )
{
- connect( dialog, TQT_SIGNAL(addTracks(const TQString&,TQValueList<int>)),
- fileList, TQT_SLOT(addTracks(const TQString&,TQValueList<int>))
+ connect( dialog, TQ_SIGNAL(addTracks(const TQString&,TQValueList<int>)),
+ fileList, TQ_SLOT(addTracks(const TQString&,TQValueList<int>))
);
- connect( dialog, TQT_SIGNAL(addDisc(const TQString&)),
- fileList, TQT_SLOT(addDisc(const TQString&))
+ connect( dialog, TQ_SIGNAL(addDisc(const TQString&)),
+ fileList, TQ_SLOT(addDisc(const TQString&))
);
- /*connect( dialog, TQT_SIGNAL(openCuesheetEditor(const TQString&)),
- this, TQT_SLOT(openCuesheetEditor(const TQString&))
+ /*connect( dialog, TQ_SIGNAL(openCuesheetEditor(const TQString&)),
+ this, TQ_SLOT(openCuesheetEditor(const TQString&))
);*/
dialog->exec();
- disconnect( dialog, TQT_SIGNAL(addTracks(const TQString&,TQValueList<int>)), 0, 0 );
- disconnect( dialog, TQT_SIGNAL(addDisc(const TQString&)), 0, 0 );
- //disconnect( dialog, TQT_SIGNAL(openCuesheetEditor(const TQString&)), 0, 0 );
+ disconnect( dialog, TQ_SIGNAL(addTracks(const TQString&,TQValueList<int>)), 0, 0 );
+ disconnect( dialog, TQ_SIGNAL(addDisc(const TQString&)), 0, 0 );
+ //disconnect( dialog, TQ_SIGNAL(openCuesheetEditor(const TQString&)), 0, 0 );
}
delete dialog;
@@ -639,8 +639,8 @@ void soundKonverter::showReplayGainScanner()
// TODO error message
return;
}
-// connect( this, TQT_SIGNAL(addFilesToReplayGainScanner(TQStringList)),
-// replayGainScanner, TQT_SLOT(addFiles(TQStringList))
+// connect( this, TQ_SIGNAL(addFilesToReplayGainScanner(TQStringList)),
+// replayGainScanner, TQ_SLOT(addFiles(TQStringList))
// );
}
replayGainScanner->show();
@@ -684,8 +684,8 @@ void soundKonverter::showLogViewer()
// TODO error message
return;
}
-// connect( convert, TQT_SIGNAL(finishedProcess(int,int)),
-// logViewer, TQT_SLOT(processCompleted(int,int))
+// connect( convert, TQ_SIGNAL(finishedProcess(int,int)),
+// logViewer, TQ_SLOT(processCompleted(int,int))
// );
}
logViewer->show();
@@ -747,8 +747,8 @@ void soundKonverter::editToolbar()
{
saveMainWindowSettings( kapp->config(), "MainWindow" );
KEditToolbar dlg( actionCollection() );
- connect( &dlg, TQT_SIGNAL(newToolbarConfig()),
- this, TQT_SLOT(newToolbarConfig())
+ connect( &dlg, TQ_SIGNAL(newToolbarConfig()),
+ this, TQ_SLOT(newToolbarConfig())
);
dlg.exec();
}