diff options
author | Michele Calgaro <[email protected]> | 2023-12-09 18:25:42 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-12-09 18:25:42 +0900 |
commit | 32336122808eb037000d303793ef4609c95aa015 (patch) | |
tree | 4ae6c01ddbc9a0e9858689aeb4f644caef03c07b /src/soundkonverter.cpp | |
parent | 530df121961f2e35d26b80a43dab57c74e375657 (diff) | |
download | soundkonverter-32336122808eb037000d303793ef4609c95aa015.tar.gz soundkonverter-32336122808eb037000d303793ef4609c95aa015.zip |
Remove various '#define' strings - part 6
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/soundkonverter.cpp')
-rw-r--r-- | src/soundkonverter.cpp | 110 |
1 files changed, 55 insertions, 55 deletions
diff --git a/src/soundkonverter.cpp b/src/soundkonverter.cpp index 1914c1d..3cc6576 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, TQT_TQOBJECT(fileList), TQT_SLOT(startConversion()), actionCollection(), "start" ); + startAction = new TDEAction( i18n("&Start conversion"), "system-run", 0, fileList, TQT_SLOT(startConversion()), actionCollection(), "start" ); startAction->setEnabled( false ); - new TDEAction( i18n("&Replay Gain Tool ..."), "soundkonverter_replaygain", CTRL+Key_R, TQT_TQOBJECT(this), TQT_SLOT(showReplayGainScanner()), actionCollection(), "replaygainscanner" ); - //new TDEAction( i18n("R&epair Tool ..."), "soundkonverter_repair", CTRL+Key_E, TQT_TQOBJECT(this), TQT_SLOT(showRepairTool()), actionCollection(), "repairtool" ); - new TDEAction( i18n("C&uesheet Editor ..."), "kwrite", CTRL+Key_U, TQT_TQOBJECT(this), TQT_SLOT(showCuesheetEditor()), actionCollection(), "cuesheeteditor" ); - new TDEAction( i18n("Show &Log ..."), "view_text", CTRL+Key_L, TQT_TQOBJECT(this), TQT_SLOT(showLogViewer()), actionCollection(), "log" ); -// new TDEAction( i18n("About &Plugins ..."), "connect_creating", CTRL+Key_P, TQT_TQOBJECT(this), TQT_SLOT(showAboutPlugins()), actionCollection(), "about_plugins" ); - - stopAction = new TDEAction( i18n("S&top after current file is complete"), "process-stop", CTRL+Key_O, TQT_TQOBJECT(fileList), TQT_SLOT(stopConversion()), actionCollection(), "stop" ); - continueAction = new TDEAction( i18n("&Continue after current file is complete"), "system-run", CTRL+Key_T, TQT_TQOBJECT(fileList), TQT_SLOT(continueConversion()), actionCollection(), "continue" ); - killAction = new TDEAction( i18n("Stop &immediately"), "system-log-out", CTRL+Key_K, TQT_TQOBJECT(fileList), TQT_SLOT(killConversion()), actionCollection(), "kill" ); + 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" ); 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, TQT_TQOBJECT(this), TQT_SLOT(priorityChanged()), actionCollection(), "veryhigh" ); +/* veryHighPriorityAction = new TDEToggleAction( i18n("Very hi&gh"), CTRL+Key_1, this, TQT_SLOT(priorityChanged()), actionCollection(), "veryhigh" ); veryHighPriorityAction->setExclusiveGroup("priorityActionMenu"); - highPriorityAction = new TDEToggleAction( i18n("&High"), CTRL+Key_2, TQT_TQOBJECT(this), TQT_SLOT(priorityChanged()), actionCollection(), "high" ); + highPriorityAction = new TDEToggleAction( i18n("&High"), CTRL+Key_2, this, TQT_SLOT(priorityChanged()), actionCollection(), "high" ); highPriorityAction->setExclusiveGroup("priorityActionMenu"); - normalPriorityAction = new TDEToggleAction( i18n("&Normal"), CTRL+Key_3, TQT_TQOBJECT(this), TQT_SLOT(priorityChanged()), actionCollection(), "nomal" ); + normalPriorityAction = new TDEToggleAction( i18n("&Normal"), CTRL+Key_3, this, TQT_SLOT(priorityChanged()), actionCollection(), "nomal" ); normalPriorityAction->setExclusiveGroup("priorityActionMenu"); normalPriorityAction->setChecked(true); - lowPriorityAction = new TDEToggleAction( i18n("&Low"), CTRL+Key_4, TQT_TQOBJECT(this), TQT_SLOT(priorityChanged()), actionCollection(), "low" ); + lowPriorityAction = new TDEToggleAction( i18n("&Low"), CTRL+Key_4, this, TQT_SLOT(priorityChanged()), actionCollection(), "low" ); lowPriorityAction->setExclusiveGroup("priorityActionMenu"); - veryLowPriorityAction = new TDEToggleAction( i18n("Very lo&w"), CTRL+Key_5, TQT_TQOBJECT(this), TQT_SLOT(priorityChanged()), actionCollection(), "verylow" ); + veryLowPriorityAction = new TDEToggleAction( i18n("Very lo&w"), CTRL+Key_5, this, TQT_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, TQT_TQOBJECT(this), TQT_SLOT(showFileDialog()), actionCollection(), "add_files" ); - new TDEAction( i18n("Add &Folder ..."), "audio-x-generic", CTRL+Key_F, TQT_TQOBJECT(this), TQT_SLOT(showDirDialog()), actionCollection(), "add_folder" ); - new TDEAction( i18n("Add CD &tracks ..."), "media-optical-cdaudio-unmounted", CTRL+Key_T, TQT_TQOBJECT(this), TQT_SLOT(showCdDialog()), actionCollection(), "add_audiocd" ); - new TDEAction( i18n("Add &URL ..."), "browser", CTRL+Key_U, TQT_TQOBJECT(this), TQT_SLOT(showUrlDialog()), actionCollection(), "add_url" ); - KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection()); + 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("L&oad file list"), "document-open", 0, TQT_TQOBJECT(fileList), TQT_SLOT(load()), actionCollection(), "load" ); - new TDEAction( i18n("Sa&ve file list"), "document-save", 0, TQT_TQOBJECT(fileList), TQT_SLOT(save()), actionCollection(), "save" ); + 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" ); - // TODO //KStdAction::paste( TQT_TQOBJECT(this), TQT_SLOT(pasteFiles()), actionCollection() ); + // TODO //KStdAction::paste( this, TQT_SLOT(pasteFiles()), actionCollection() ); - KStdAction::preferences( TQT_TQOBJECT(this), TQT_SLOT(showConfigDialog()), actionCollection() ); + KStdAction::preferences( this, TQT_SLOT(showConfigDialog()), actionCollection() ); - showToolBarAction = KStdAction::showToolbar( TQT_TQOBJECT(this), TQT_SLOT(showToolbar()), actionCollection() ); + showToolBarAction = KStdAction::showToolbar( this, TQT_SLOT(showToolbar()), actionCollection() ); //KStdAction::showStatusbar( 0, 0, actionCollection() ); - KStdAction::configureToolbars( TQT_TQOBJECT(this), TQT_SLOT(editToolbar()), actionCollection() ); + KStdAction::configureToolbars( this, TQT_SLOT(editToolbar()), actionCollection() ); createGUI(); @@ -186,10 +186,10 @@ soundKonverter::soundKonverter() // 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()), - TQT_TQOBJECT(this), TQT_SLOT(showConfigPluginsPage()) + this, TQT_SLOT(showConfigPluginsPage()) ); connect( options, TQT_SIGNAL(showConfigEnvironmentPage()), - TQT_TQOBJECT(this), TQT_SLOT(showConfigEnvironmentPage()) + this, TQT_SLOT(showConfigEnvironmentPage()) ); gridLayout->addWidget( options, 0, 0 ); @@ -198,27 +198,27 @@ soundKonverter::soundKonverter() //fileList = new FileList( cdManager, tagEngine, config, options, this, "fileList" ); gridLayout->addWidget( fileList, 1, 0 ); gridLayout->setRowStretch( 1, 1 ); - /*connect( TQT_TQOBJECT(this), TQT_SIGNAL(windowMoved(int,int)), - TQT_TQOBJECT(fileList), TQT_SLOT(moveOptionsEditor(int,int)) + /*connect( this, TQT_SIGNAL(windowMoved(int,int)), + fileList, TQT_SLOT(moveOptionsEditor(int,int)) );*/ - connect( TQT_TQOBJECT(fileList), TQT_SIGNAL(fileCountChanged(int)), - TQT_TQOBJECT(this), TQT_SLOT(fileCountChanged(int)) + connect( fileList, TQT_SIGNAL(fileCountChanged(int)), + this, TQT_SLOT(fileCountChanged(int)) ); - connect( TQT_TQOBJECT(fileList), TQT_SIGNAL(startedConversion()), - TQT_TQOBJECT(this), TQT_SLOT(startedConversion()) + connect( fileList, TQT_SIGNAL(startedConversion()), + this, TQT_SLOT(startedConversion()) ); - connect( TQT_TQOBJECT(fileList), TQT_SIGNAL(stopClicked()), - TQT_TQOBJECT(this), TQT_SLOT(stopClicked()) + connect( fileList, TQT_SIGNAL(stopClicked()), + this, TQT_SLOT(stopClicked()) ); - connect( TQT_TQOBJECT(fileList), TQT_SIGNAL(continueClicked()), - TQT_TQOBJECT(this), TQT_SLOT(continueClicked()) + connect( fileList, TQT_SIGNAL(continueClicked()), + this, TQT_SLOT(continueClicked()) ); - connect( TQT_TQOBJECT(fileList), TQT_SIGNAL(stoppedConversion()), - TQT_TQOBJECT(this), TQT_SLOT(stoppedConversion()) + connect( fileList, TQT_SIGNAL(stoppedConversion()), + this, TQT_SLOT(stoppedConversion()) ); convert = new Convert( config, tagEngine, cdManager, fileList, logger ); -// connect( TQT_TQOBJECT(this), TQT_SIGNAL(setPriority(int)), +// connect( this, TQT_SIGNAL(setPriority(int)), // convert, TQT_SLOT(priorityChanged(int)) // ); @@ -238,7 +238,7 @@ soundKonverter::soundKonverter() cAdd->insertItem( iconLoader->loadIcon("browser",TDEIcon::Toolbar), i18n("Add URL ...") ); addBox->addWidget( cAdd ); connect( cAdd, TQT_SIGNAL(clicked(int)), - TQT_TQOBJECT(this), TQT_SLOT(addClicked(int)) + this, TQT_SLOT(addClicked(int)) ); addBox->addSpacing( 18 ); @@ -248,7 +248,7 @@ soundKonverter::soundKonverter() pStart->setEnabled( false ); addBox->addWidget( pStart ); connect( pStart, TQT_SIGNAL(clicked()), - TQT_TQOBJECT(fileList), TQT_SLOT(startConversion()) + fileList, TQT_SLOT(startConversion()) ); pStop = new KPushButton( iconLoader->loadIcon("process-stop",TDEIcon::Small), i18n("Stop"), widget, "pStop" ); @@ -261,16 +261,16 @@ soundKonverter::soundKonverter() progressIndicator = new ProgressIndicator( systemTray, widget, "progressIndicator" ); addBox->addWidget( progressIndicator ); - connect( TQT_TQOBJECT(fileList), TQT_SIGNAL(increaseTime(float)), + connect( fileList, TQT_SIGNAL(increaseTime(float)), progressIndicator, TQT_SLOT(increaseTime(float)) ); - connect( TQT_TQOBJECT(fileList), TQT_SIGNAL(decreaseTime(float)), + connect( fileList, TQT_SIGNAL(decreaseTime(float)), progressIndicator, TQT_SLOT(decreaseTime(float)) ); - /*connect( TQT_TQOBJECT(fileList), TQT_SIGNAL(setTime(float)), + /*connect( fileList, TQT_SIGNAL(setTime(float)), progressIndicator, TQT_SLOT(setTime(float)) );*/ - connect( TQT_TQOBJECT(fileList), TQT_SIGNAL(finished(float)), + connect( fileList, TQT_SIGNAL(finished(float)), progressIndicator, TQT_SLOT(finished(float)) ); connect( convert, TQT_SIGNAL(countTime(float)), @@ -283,7 +283,7 @@ soundKonverter::soundKonverter() progressIndicator, TQT_SLOT(update(float)) ); connect( progressIndicator, TQT_SIGNAL(setTitle(const TQString&)), - TQT_TQOBJECT(this), TQT_SLOT(setTitle(const TQString&)) + this, TQT_SLOT(setTitle(const TQString&)) ); cAdd->increaseHeight( /*progressIndicator->height() - cAdd->height()*/ 10 ); // FIXME detect the height automaticly @@ -344,7 +344,7 @@ void soundKonverter::openArgFiles( const TQStringList &files ) options, TQT_SLOT(setCurrentOptions(const ConversionOptions&)) ); connect( dialog, TQT_SIGNAL(addFiles(TQStringList)), - TQT_TQOBJECT(fileList), TQT_SLOT(addFiles(TQStringList)) + fileList, TQT_SLOT(addFiles(TQStringList)) ); TQ_CHECK_PTR( dialog ); @@ -532,7 +532,7 @@ void soundKonverter::showCdDialog( bool intern ) options, TQT_SLOT(setCurrentOptions(const ConversionOptions&)) ); // connect( dialog, TQT_SIGNAL(addFiles(TQStringList)), -// TQT_TQOBJECT(fileList), TQT_SLOT(addFiles(TQStringList)) +// fileList, TQT_SLOT(addFiles(TQStringList)) // ); TQ_CHECK_PTR( dialog ); @@ -595,13 +595,13 @@ void soundKonverter::showCdDialog( bool intern ) if( !dialog->noCD ) { connect( dialog, TQT_SIGNAL(addTracks(const TQString&,TQValueList<int>)), - TQT_TQOBJECT(fileList), TQT_SLOT(addTracks(const TQString&,TQValueList<int>)) + fileList, TQT_SLOT(addTracks(const TQString&,TQValueList<int>)) ); connect( dialog, TQT_SIGNAL(addDisc(const TQString&)), - TQT_TQOBJECT(fileList), TQT_SLOT(addDisc(const TQString&)) + fileList, TQT_SLOT(addDisc(const TQString&)) ); /*connect( dialog, TQT_SIGNAL(openCuesheetEditor(const TQString&)), - TQT_TQOBJECT(this), TQT_SLOT(openCuesheetEditor(const TQString&)) + this, TQT_SLOT(openCuesheetEditor(const TQString&)) );*/ dialog->exec(); @@ -639,7 +639,7 @@ void soundKonverter::showReplayGainScanner() // TODO error message return; } -// connect( TQT_TQOBJECT(this), TQT_SIGNAL(addFilesToReplayGainScanner(TQStringList)), +// connect( this, TQT_SIGNAL(addFilesToReplayGainScanner(TQStringList)), // replayGainScanner, TQT_SLOT(addFiles(TQStringList)) // ); } @@ -748,7 +748,7 @@ void soundKonverter::editToolbar() saveMainWindowSettings( kapp->config(), "MainWindow" ); KEditToolbar dlg( actionCollection() ); connect( &dlg, TQT_SIGNAL(newToolbarConfig()), - TQT_TQOBJECT(this), TQT_SLOT(newToolbarConfig()) + this, TQT_SLOT(newToolbarConfig()) ); dlg.exec(); } |