diff options
Diffstat (limited to 'plugins/encoder')
27 files changed, 61 insertions, 153 deletions
diff --git a/plugins/encoder/Makefile.am b/plugins/encoder/Makefile.am deleted file mode 100644 index 35724e1..0000000 --- a/plugins/encoder/Makefile.am +++ /dev/null @@ -1,9 +0,0 @@ -if include_LAME -ENCLAMEDIR = lame -endif - -if include_OGG -ENCOGGDIR = ogg -endif - -SUBDIRS = sox external $(ENCLAMEDIR) $(ENCOGGDIR) diff --git a/plugins/encoder/external/CMakeLists.txt b/plugins/encoder/external/CMakeLists.txt index e2b9f1a..334dbea 100644 --- a/plugins/encoder/external/CMakeLists.txt +++ b/plugins/encoder/external/CMakeLists.txt @@ -38,6 +38,7 @@ tde_add_kpart( libk3bexternalencoder AUTOMOC ##### other data ################################ -install( FILES k3bexternalencoder.plugin +tde_create_translated_desktop( + SOURCE k3bexternalencoder.plugin DESTINATION ${DATA_INSTALL_DIR}/k3b/plugins ) diff --git a/plugins/encoder/external/Makefile.am b/plugins/encoder/external/Makefile.am deleted file mode 100644 index b092cde..0000000 --- a/plugins/encoder/external/Makefile.am +++ /dev/null @@ -1,15 +0,0 @@ -AM_CPPFLAGS = -I$(srcdir)/../../../libk3b/core -I$(srcdir)/../../../libk3b/plugin -I$(srcdir)/../../../libk3b/core -I$(srcdir)/../../../libk3bdevice $(all_includes) - -kde_module_LTLIBRARIES = libk3bexternalencoder.la - -libk3bexternalencoder_la_SOURCES = base_k3bexternalencoderconfigwidget.ui \ - base_k3bexternalencodereditwidget.ui k3bexternalencoder.cpp \ - k3bexternalencoderconfigwidget.cpp k3bexternalencodercommand.cpp - -libk3bexternalencoder_la_LIBADD = ../../../libk3b/libk3b.la ../../../libk3bdevice/libk3bdevice.la $(LIB_TDECORE) $(LIB_TQT) $(LIB_TDEUI) -libk3bexternalencoder_la_LDFLAGS = -avoid-version -module -no-undefined $(all_libraries) - -pluginsdir = $(kde_datadir)/k3b/plugins -plugins_DATA = k3bexternalencoder.plugin - -METASOURCES = AUTO diff --git a/plugins/encoder/external/k3bexternalencoder.cpp b/plugins/encoder/external/k3bexternalencoder.cpp index 2a3ccba..ce2d0d6 100644 --- a/plugins/encoder/external/k3bexternalencoder.cpp +++ b/plugins/encoder/external/k3bexternalencoder.cpp @@ -207,12 +207,12 @@ bool K3bExternalEncoder::initEncoderInternal( const TQString& extension ) d->process->setSplitStdout(true); d->process->setRawStdin(true); - connect( d->process, TQT_SIGNAL(processExited(TDEProcess*)), - this, TQT_SLOT(slotExternalProgramFinished(TDEProcess*)) ); - connect( d->process, TQT_SIGNAL(stderrLine(const TQString&)), - this, TQT_SLOT(slotExternalProgramOutputLine(const TQString&)) ); - connect( d->process, TQT_SIGNAL(stdoutLine(const TQString&)), - this, TQT_SLOT(slotExternalProgramOutputLine(const TQString&)) ); + connect( d->process, TQ_SIGNAL(processExited(TDEProcess*)), + this, TQ_SLOT(slotExternalProgramFinished(TDEProcess*)) ); + connect( d->process, TQ_SIGNAL(stderrLine(const TQString&)), + this, TQ_SLOT(slotExternalProgramOutputLine(const TQString&)) ); + connect( d->process, TQ_SIGNAL(stdoutLine(const TQString&)), + this, TQ_SLOT(slotExternalProgramOutputLine(const TQString&)) ); // create the commandline diff --git a/plugins/encoder/external/k3bexternalencoder.h b/plugins/encoder/external/k3bexternalencoder.h index 1ef865a..4ab5930 100644 --- a/plugins/encoder/external/k3bexternalencoder.h +++ b/plugins/encoder/external/k3bexternalencoder.h @@ -26,7 +26,7 @@ class TDEProcess; class K3bExternalEncoder : public K3bAudioEncoder { - Q_OBJECT + TQ_OBJECT public: diff --git a/plugins/encoder/external/k3bexternalencoder.plugin b/plugins/encoder/external/k3bexternalencoder.plugin index 2faaa3a..de0a5d3 100644 --- a/plugins/encoder/external/k3bexternalencoder.plugin +++ b/plugins/encoder/external/k3bexternalencoder.plugin @@ -1,9 +1,9 @@ [K3b Plugin] -Lib=libk3bexternalencoder -Group=AudioEncoder Name=K3b External Audio Encoder +Comment=Encoding module that allows specifying an encoding commmand Author=Sebastian Trueg Email=trueg@k3b.org Version=4.0 -Comment=Encoding module that allows specifying an encoding commmand License=GPL +Group=AudioEncoder +Lib=libk3bexternalencoder diff --git a/plugins/encoder/external/k3bexternalencoderconfigwidget.cpp b/plugins/encoder/external/k3bexternalencoderconfigwidget.cpp index 0f89798..18a986d 100644 --- a/plugins/encoder/external/k3bexternalencoderconfigwidget.cpp +++ b/plugins/encoder/external/k3bexternalencoderconfigwidget.cpp @@ -119,14 +119,14 @@ K3bExternalEncoderSettingsWidget::K3bExternalEncoderSettingsWidget( TQWidget* pa lay->setMargin( 0 ); lay->addWidget( w ); - connect( w->m_viewEncoders, TQT_SIGNAL(selectionChanged()), - this, TQT_SLOT(slotSelectionChanged()) ); - connect( w->m_buttonAdd, TQT_SIGNAL(clicked()), - this, TQT_SLOT(slotNewCommand()) ); - connect( w->m_buttonEdit, TQT_SIGNAL(clicked()), - this, TQT_SLOT(slotEditCommand()) ); - connect( w->m_buttonRemove, TQT_SIGNAL(clicked()), - this, TQT_SLOT(slotRemoveCommand()) ); + connect( w->m_viewEncoders, TQ_SIGNAL(selectionChanged()), + this, TQ_SLOT(slotSelectionChanged()) ); + connect( w->m_buttonAdd, TQ_SIGNAL(clicked()), + this, TQ_SLOT(slotNewCommand()) ); + connect( w->m_buttonEdit, TQ_SIGNAL(clicked()), + this, TQ_SLOT(slotEditCommand()) ); + connect( w->m_buttonRemove, TQ_SIGNAL(clicked()), + this, TQ_SLOT(slotRemoveCommand()) ); m_editDlg = new K3bExternalEncoderEditDialog( this ); } diff --git a/plugins/encoder/external/k3bexternalencoderconfigwidget.h b/plugins/encoder/external/k3bexternalencoderconfigwidget.h index 8fe19c6..68027f0 100644 --- a/plugins/encoder/external/k3bexternalencoderconfigwidget.h +++ b/plugins/encoder/external/k3bexternalencoderconfigwidget.h @@ -26,7 +26,7 @@ class K3bExternalEncoderEditDialog : public KDialogBase { - Q_OBJECT + TQ_OBJECT public: @@ -46,7 +46,7 @@ class K3bExternalEncoderEditDialog : public KDialogBase class K3bExternalEncoderSettingsWidget : public K3bPluginConfigWidget { - Q_OBJECT + TQ_OBJECT public: diff --git a/plugins/encoder/lame/CMakeLists.txt b/plugins/encoder/lame/CMakeLists.txt index 940ed62..ebee326 100644 --- a/plugins/encoder/lame/CMakeLists.txt +++ b/plugins/encoder/lame/CMakeLists.txt @@ -37,6 +37,7 @@ tde_add_kpart( libk3blameencoder AUTOMOC ##### other data ################################ -install( FILES k3blameencoder.plugin +tde_create_translated_desktop( + SOURCE k3blameencoder.plugin DESTINATION ${DATA_INSTALL_DIR}/k3b/plugins ) diff --git a/plugins/encoder/lame/Makefile.am b/plugins/encoder/lame/Makefile.am deleted file mode 100644 index 15e310e..0000000 --- a/plugins/encoder/lame/Makefile.am +++ /dev/null @@ -1,15 +0,0 @@ -AM_CPPFLAGS = -I$(srcdir)/../../../libk3b/core -I$(srcdir)/../../../libk3b/plugin -I$(srcdir)/../../../libk3b/core -I$(srcdir)/../../../libk3bdevice $(all_includes) - -kde_module_LTLIBRARIES = libk3blameencoder.la - -libk3blameencoder_la_SOURCES = base_k3blameencodersettingswidget.ui \ - base_k3bmanualbitratesettingswidget.ui \ - k3blameencoder.cpp - -libk3blameencoder_la_LIBADD = ../../../libk3b/libk3b.la $(LIB_TDECORE) -lmp3lame -libk3blameencoder_la_LDFLAGS = -avoid-version -module -no-undefined $(all_libraries) - -pluginsdir = $(kde_datadir)/k3b/plugins -plugins_DATA = k3blameencoder.plugin - -METASOURCES = AUTO diff --git a/plugins/encoder/lame/configure.in.bot b/plugins/encoder/lame/configure.in.bot deleted file mode 100644 index 5bb35c9..0000000 --- a/plugins/encoder/lame/configure.in.bot +++ /dev/null @@ -1,11 +0,0 @@ -echo "" - -if test x$have_lame = xyes; then - echo "K3b - Lame Mp3 encoder plugin: yes" -else - echo "K3b - Lame Mp3 encoder plugin no" -if test "$ac_cv_use_lame" = "yes"; then - echo "K3b - You are missing the Lame headers and libraries." - echo "K3b - The Lame Mp3 encoding plugin won't be compiled." -fi -fi diff --git a/plugins/encoder/lame/configure.in.in b/plugins/encoder/lame/configure.in.in deleted file mode 100644 index 11ce49d..0000000 --- a/plugins/encoder/lame/configure.in.in +++ /dev/null @@ -1,20 +0,0 @@ -dnl === test for LAME - begin ==== -AC_ARG_WITH( - lame, - AS_HELP_STRING([--without-lame], [build K3b without LAME support (default=no)]), - [ac_cv_use_lame=$withval], - [ac_cv_use_lame=yes] -) - -have_lame=no -if test "$ac_cv_use_lame" = "yes"; then - KDE_CHECK_HEADERS(lame/lame.h, [ - KDE_CHECK_LIB(mp3lame, lame_init, [ - have_lame=yes - AC_DEFINE(HAVE_LAME,1,[defined if you have the lame header and lib]) - ], [], $all_libraries -lm) - ]) -fi - -AM_CONDITIONAL(include_LAME, [test x$have_lame = xyes]) -dnl === test for LAME - end ==== diff --git a/plugins/encoder/lame/k3blameencoder.cpp b/plugins/encoder/lame/k3blameencoder.cpp index 127422b..9b08dcd 100644 --- a/plugins/encoder/lame/k3blameencoder.cpp +++ b/plugins/encoder/lame/k3blameencoder.cpp @@ -427,10 +427,10 @@ K3bLameEncoderSettingsWidget::K3bLameEncoderSettingsWidget( TQWidget* parent, co // TODO: add whatsthis help for the quality level. // TQString qualityLevelWhatsThis = i18n("<p>"); - connect( m_w->m_buttonManualSettings, TQT_SIGNAL(clicked()), - this, TQT_SLOT(slotShowManualSettings()) ); - connect( m_w->m_sliderQuality, TQT_SIGNAL(valueChanged(int)), - this, TQT_SLOT(slotQualityLevelChanged(int)) ); + connect( m_w->m_buttonManualSettings, TQ_SIGNAL(clicked()), + this, TQ_SLOT(slotShowManualSettings()) ); + connect( m_w->m_sliderQuality, TQ_SIGNAL(valueChanged(int)), + this, TQ_SLOT(slotQualityLevelChanged(int)) ); updateManualSettingsLabel(); slotQualityLevelChanged( 5 ); diff --git a/plugins/encoder/lame/k3blameencoder.h b/plugins/encoder/lame/k3blameencoder.h index 2e3ca09..7e2a95b 100644 --- a/plugins/encoder/lame/k3blameencoder.h +++ b/plugins/encoder/lame/k3blameencoder.h @@ -29,7 +29,7 @@ class KDialogBase; class K3bLameEncoder : public K3bAudioEncoder { - Q_OBJECT + TQ_OBJECT public: @@ -65,7 +65,7 @@ class K3bLameEncoder : public K3bAudioEncoder class K3bLameEncoderSettingsWidget : public K3bPluginConfigWidget { - Q_OBJECT + TQ_OBJECT public: diff --git a/plugins/encoder/lame/k3blameencoder.plugin b/plugins/encoder/lame/k3blameencoder.plugin index 432bc58..2c92052 100644 --- a/plugins/encoder/lame/k3blameencoder.plugin +++ b/plugins/encoder/lame/k3blameencoder.plugin @@ -1,9 +1,9 @@ [K3b Plugin] -Lib=libk3blameencoder -Group=AudioEncoder Name=K3b Lame Mp3 Encoder +Comment=Encoding module to encode MPEG1 Layer III (mp3) files Author=Sebastian Trueg Email=trueg@k3b.org Version=3.0 -Comment=Encoding module to encode MPEG1 Layer III (mp3) files License=GPL +Group=AudioEncoder +Lib=libk3blameencoder diff --git a/plugins/encoder/ogg/CMakeLists.txt b/plugins/encoder/ogg/CMakeLists.txt index cb7208b..b58d6a9 100644 --- a/plugins/encoder/ogg/CMakeLists.txt +++ b/plugins/encoder/ogg/CMakeLists.txt @@ -40,6 +40,7 @@ tde_add_kpart( libk3boggvorbisencoder AUTOMOC ##### other data ################################ -install( FILES k3boggvorbisencoder.plugin +tde_create_translated_desktop( + SOURCE k3boggvorbisencoder.plugin DESTINATION ${DATA_INSTALL_DIR}/k3b/plugins ) diff --git a/plugins/encoder/ogg/Makefile.am b/plugins/encoder/ogg/Makefile.am deleted file mode 100644 index e712a82..0000000 --- a/plugins/encoder/ogg/Makefile.am +++ /dev/null @@ -1,13 +0,0 @@ -AM_CPPFLAGS = -I$(srcdir)/../../../libk3b/core -I$(srcdir)/../../../libk3b/plugin -I$(srcdir)/../../../libk3b/core -I$(srcdir)/../../../libk3bdevice $(all_includes) - -kde_module_LTLIBRARIES = libk3boggvorbisencoder.la - -libk3boggvorbisencoder_la_SOURCES = base_k3boggvorbisencodersettingswidget.ui k3boggvorbisencoder.cpp - -libk3boggvorbisencoder_la_LIBADD = ../../../libk3b/libk3b.la $(LIB_TDECORE) -logg -lvorbis -lvorbisenc $(LIB_TQT) $(LIB_TDEUI) -libk3boggvorbisencoder_la_LDFLAGS = -avoid-version -module -no-undefined $(all_libraries) - -pluginsdir = $(kde_datadir)/k3b/plugins -plugins_DATA = k3boggvorbisencoder.plugin - -METASOURCES = AUTO diff --git a/plugins/encoder/ogg/k3boggvorbisencoder.cpp b/plugins/encoder/ogg/k3boggvorbisencoder.cpp index c2ce5b3..2936a3c 100644 --- a/plugins/encoder/ogg/k3boggvorbisencoder.cpp +++ b/plugins/encoder/ogg/k3boggvorbisencoder.cpp @@ -455,8 +455,8 @@ K3bOggVorbisEncoderSettingsWidget::K3bOggVorbisEncoderSettingsWidget( TQWidget* lay->addWidget( w ); - connect( w->m_slideQualityLevel, TQT_SIGNAL(valueChanged(int)), - this, TQT_SLOT(slotQualityLevelChanged(int)) ); + connect( w->m_slideQualityLevel, TQ_SIGNAL(valueChanged(int)), + this, TQ_SLOT(slotQualityLevelChanged(int)) ); slotQualityLevelChanged( 4 ); } diff --git a/plugins/encoder/ogg/k3boggvorbisencoder.h b/plugins/encoder/ogg/k3boggvorbisencoder.h index 8f632f3..50dbcf5 100644 --- a/plugins/encoder/ogg/k3boggvorbisencoder.h +++ b/plugins/encoder/ogg/k3boggvorbisencoder.h @@ -26,7 +26,7 @@ class base_K3bOggVorbisEncoderSettingsWidget; class K3bOggVorbisEncoder : public K3bAudioEncoder { - Q_OBJECT + TQ_OBJECT public: @@ -62,7 +62,7 @@ class K3bOggVorbisEncoder : public K3bAudioEncoder class K3bOggVorbisEncoderSettingsWidget : public K3bPluginConfigWidget { - Q_OBJECT + TQ_OBJECT public: diff --git a/plugins/encoder/ogg/k3boggvorbisencoder.plugin b/plugins/encoder/ogg/k3boggvorbisencoder.plugin index 2f73e8e..57e2989 100644 --- a/plugins/encoder/ogg/k3boggvorbisencoder.plugin +++ b/plugins/encoder/ogg/k3boggvorbisencoder.plugin @@ -1,9 +1,9 @@ [K3b Plugin] -Lib=libk3boggvorbisencoder -Group=AudioEncoder Name=K3b Ogg Vorbis Encoder +Comment=Encoding module to encode Ogg Vorbis files Author=Sebastian Trueg Email=trueg@k3b.org Version=2.1 -Comment=Encoding module to encode Ogg Vorbis files License=GPL +Group=AudioEncoder +Lib=libk3boggvorbisencoder diff --git a/plugins/encoder/skeleton.h b/plugins/encoder/skeleton.h index c353349..0fcf1cc 100644 --- a/plugins/encoder/skeleton.h +++ b/plugins/encoder/skeleton.h @@ -23,7 +23,7 @@ class K3b<name>Encoder : public K3bAudioEncoder { - Q_OBJECT + TQ_OBJECT public: @@ -51,7 +51,7 @@ class K3b<name>Encoder : public K3bAudioEncoder class K3b<name>EncoderSettingsWidget : public K3bPluginConfigWidget { - Q_OBJECT + TQ_OBJECT public: diff --git a/plugins/encoder/skeleton.plugin b/plugins/encoder/skeleton.plugin index cf178b7..1711f52 100644 --- a/plugins/encoder/skeleton.plugin +++ b/plugins/encoder/skeleton.plugin @@ -1,9 +1,9 @@ [K3b Plugin] -Lib=libk3b<name>encoder -Group=AudioEncoder Name=K3b ??? Encoder +Comment=Encoding module to encode <name> files Author=??? Email=??? Version=?? -Comment=Encoding module to encode <name> files License=??? +Group=AudioEncoder +Lib=libk3b<name>encoder diff --git a/plugins/encoder/sox/CMakeLists.txt b/plugins/encoder/sox/CMakeLists.txt index f0c4c38..4fc9f18 100644 --- a/plugins/encoder/sox/CMakeLists.txt +++ b/plugins/encoder/sox/CMakeLists.txt @@ -36,6 +36,7 @@ tde_add_kpart( libk3bsoxencoder AUTOMOC ##### other data ################################ -install( FILES k3bsoxencoder.plugin +tde_create_translated_desktop( + SOURCE k3bsoxencoder.plugin DESTINATION ${DATA_INSTALL_DIR}/k3b/plugins ) diff --git a/plugins/encoder/sox/Makefile.am b/plugins/encoder/sox/Makefile.am deleted file mode 100644 index 7cd09fe..0000000 --- a/plugins/encoder/sox/Makefile.am +++ /dev/null @@ -1,13 +0,0 @@ -AM_CPPFLAGS = -I$(srcdir)/../../../libk3b/core -I$(srcdir)/../../../libk3b/plugin -I$(srcdir)/../../../libk3b/core -I$(srcdir)/../../../libk3bdevice $(all_includes) - -kde_module_LTLIBRARIES = libk3bsoxencoder.la - -libk3bsoxencoder_la_SOURCES = base_k3bsoxencoderconfigwidget.ui k3bsoxencoder.cpp - -libk3bsoxencoder_la_LIBADD = ../../../libk3b/libk3b.la ../../../libk3bdevice/libk3bdevice.la $(LIB_TDECORE) $(LIB_TQT) -libk3bsoxencoder_la_LDFLAGS = -avoid-version -module -no-undefined $(all_libraries) - -pluginsdir = $(kde_datadir)/k3b/plugins -plugins_DATA = k3bsoxencoder.plugin - -METASOURCES = AUTO diff --git a/plugins/encoder/sox/k3bsoxencoder.cpp b/plugins/encoder/sox/k3bsoxencoder.cpp index d91502f..8b170f6 100644 --- a/plugins/encoder/sox/k3bsoxencoder.cpp +++ b/plugins/encoder/sox/k3bsoxencoder.cpp @@ -182,12 +182,12 @@ bool K3bSoxEncoder::initEncoderInternal( const TQString& extension ) d->process->setSplitStdout(true); d->process->setRawStdin(true); - connect( d->process, TQT_SIGNAL(processExited(TDEProcess*)), - this, TQT_SLOT(slotSoxFinished(TDEProcess*)) ); - connect( d->process, TQT_SIGNAL(stderrLine(const TQString&)), - this, TQT_SLOT(slotSoxOutputLine(const TQString&)) ); - connect( d->process, TQT_SIGNAL(stdoutLine(const TQString&)), - this, TQT_SLOT(slotSoxOutputLine(const TQString&)) ); + connect( d->process, TQ_SIGNAL(processExited(TDEProcess*)), + this, TQ_SLOT(slotSoxFinished(TDEProcess*)) ); + connect( d->process, TQ_SIGNAL(stderrLine(const TQString&)), + this, TQ_SLOT(slotSoxOutputLine(const TQString&)) ); + connect( d->process, TQ_SIGNAL(stdoutLine(const TQString&)), + this, TQ_SLOT(slotSoxOutputLine(const TQString&)) ); // input settings *d->process << soxBin->path @@ -376,7 +376,7 @@ K3bSoxEncoderSettingsWidget::K3bSoxEncoderSettingsWidget( TQWidget* parent, cons : K3bPluginConfigWidget( parent, name ) { w = new base_K3bSoxEncoderConfigWidget( this ); - w->m_editSamplerate->setValidator( new TQIntValidator( TQT_TQOBJECT(w->m_editSamplerate) ) ); + w->m_editSamplerate->setValidator( new TQIntValidator( w->m_editSamplerate ) ); TQHBoxLayout* lay = new TQHBoxLayout( this ); lay->setMargin( 0 ); diff --git a/plugins/encoder/sox/k3bsoxencoder.h b/plugins/encoder/sox/k3bsoxencoder.h index a34271f..d495dd3 100644 --- a/plugins/encoder/sox/k3bsoxencoder.h +++ b/plugins/encoder/sox/k3bsoxencoder.h @@ -26,7 +26,7 @@ class TDEProcess; class K3bSoxEncoder : public K3bAudioEncoder { - Q_OBJECT + TQ_OBJECT public: @@ -66,7 +66,7 @@ class K3bSoxEncoder : public K3bAudioEncoder class K3bSoxEncoderSettingsWidget : public K3bPluginConfigWidget { - Q_OBJECT + TQ_OBJECT public: diff --git a/plugins/encoder/sox/k3bsoxencoder.plugin b/plugins/encoder/sox/k3bsoxencoder.plugin index dd43f7d..6f80b1b 100644 --- a/plugins/encoder/sox/k3bsoxencoder.plugin +++ b/plugins/encoder/sox/k3bsoxencoder.plugin @@ -1,9 +1,9 @@ [K3b Plugin] -Lib=libk3bsoxencoder -Group=AudioEncoder Name=K3b SoX Audio Encoder +Comment=Encoding module to encode many file formats using SoX Author=Sebastian Trueg Email=trueg@k3b.org Version=2.0 -Comment=Encoding module to encode many file formats using SoX License=GPL +Group=AudioEncoder +Lib=libk3bsoxencoder |